PHP 클래스 Ulaform_Driver_Sql, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
저자: Marko Djukic ([email protected])
저자: Vilius Šumskas ([email protected])
상속: extends Ulaform_Driver
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_charset string Charset
$_db Horde_Db_Adapter The database connection object.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Construct a new SQL storage object.
deleteField ( integer $field_id ) : boolean Deletes a field from the database.
deleteForm ( integer $form_id ) : boolean Deletes a form and all of its fields from the database.
getAvailableForms ( ) : array Fetches the a list of available forms to use.
getFields ( integer $form_id, $field_id = null ) : array Fetches the fields for a particular form.
getForm ( integer $form_id, $permission = Horde_Perms::SHOW ) : array Fetches all the data specific to the supplied form id.
getForms ( $form_id = null ) : array Fetches the a list of available forms and the basic data.
saveField ( &$info ) : boolean Saves the passed field into the db, either inserting a new field if no field_id is available, or updating an existing field if a field_id has been passed.
saveForm ( array &$info ) : integer Saves the passed form into the db, either inserting a new form if no form_id is available, or updating an existing form if a form_id has been passed.
sortFields ( array &$info ) : boolean Sets the specified sort order to the fields in a form.

보호된 메소드들

메소드 설명
_nextFieldOrder ( integer $form_id ) : integer Gets the next field order position within a form.

메소드 상세

__construct() 공개 메소드

Construct a new SQL storage object.
public __construct ( array $params = [] )
$params array The connection parameters

_nextFieldOrder() 보호된 메소드

Gets the next field order position within a form.
protected _nextFieldOrder ( integer $form_id ) : integer
$form_id integer
리턴 integer

deleteField() 공개 메소드

Deletes a field from the database.
public deleteField ( integer $field_id ) : boolean
$field_id integer The field id of the field to delete.
리턴 boolean True on success.

deleteForm() 공개 메소드

Deletes a form and all of its fields from the database.
public deleteForm ( integer $form_id ) : boolean
$form_id integer The form id of the form to delete.
리턴 boolean True on success.

getAvailableForms() 공개 메소드

Fetches the a list of available forms to use.
public getAvailableForms ( ) : array
리턴 array An array of the available forms.

getFields() 공개 메소드

Fetches the fields for a particular form.
public getFields ( integer $form_id, $field_id = null ) : array
$form_id integer The form id of the form to return.
리턴 array The fields.

getForm() 공개 메소드

Fetches all the data specific to the supplied form id.
public getForm ( integer $form_id, $permission = Horde_Perms::SHOW ) : array
$form_id integer The form id of the form to return.
리턴 array The form data.

getForms() 공개 메소드

Fetches the a list of available forms and the basic data.
public getForms ( $form_id = null ) : array
리턴 array An array of the available forms.

saveField() 공개 메소드

If no form_id is available will throw an exception.
public saveField ( &$info ) : boolean
리턴 boolean True on success.

saveForm() 공개 메소드

Saves the passed form into the db, either inserting a new form if no form_id is available, or updating an existing form if a form_id has been passed.
public saveForm ( array &$info ) : integer
$info array An array with the form details.
리턴 integer The form id.

sortFields() 공개 메소드

Sets the specified sort order to the fields in a form.
public sortFields ( array &$info ) : boolean
$info array An array with the field ids in a specific order.
리턴 boolean True on success.

프로퍼티 상세

$_charset 보호되어 있는 프로퍼티

Charset
protected string $_charset
리턴 string

$_db 보호되어 있는 프로퍼티

The database connection object.
protected Horde_Db_Adapter $_db
리턴 Horde_Db_Adapter