PHP 클래스 EventTypeModuleCode

상속: extends BaseModuleCode
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cssPath
$eventGroupName
$event_group
$event_type
$files_to_process
$form_errors
$imgPath
$jsPath
$mode
$moduleID
$moduleShortID
$moduleShortSuffix
$moduleSuffix
$moduleTemplateFile
$specialty
$template
$validation_rules
$validation_rules_path

공개 메소드들

메소드 설명
__construct ( )
changeAllInstancesOfString ( $path, $from, $to )
dump_field_unique_values ( $table, $field, $selected = false )
dump_field_unique_values_multi ( $table, $field, $selected = false )
dump_table_fields ( $table, $selected = false )
elementExists ( string $name ) : boolean validation check to determine if an element called $name already exists for the event type only performs check for updates.
elementShortNameExists ( $name ) checks if an element short name exists.
eventTypeProperties ( $event_type_id )
extraElementFieldWrangling_DropdownList ( $elements, $number, $field_number, $fields_value )
extraElementFieldWrangling_EyeDraw ( $elements, $number, $field_number, $fields_value )
extraElementFieldWrangling_MultiSelect ( $elements, $number, $field_number, $fields_value )
extraElementFieldWrangling_RadioButtons ( $elements, $number, $field_number, $fields_value )
extraElementFieldWrangling_TextareaWithDropdown ( $elements, $number, $field_number, $fields_value )
findModelClassForTable ( $table, $path = false )
generateKeyName ( $field, $elementName )
generateKeyNames ( $table, $keys )
getDBFieldSQLType ( $field )
getElementsFromPost ( )
getEventShortName ( $event_type ) * works out the short name for an event type - if the event was generated through this version of gii then it will use the moduleShortSuffix property on the class. Otherwise it uses the table names generated for the event elements.
getEyedrawSize ( $class )
getHTMLField ( $field, $mode ) the
getHTMLFieldView ( $field )
getTableForeignKeys ( $table )
handleModuleNameChange ( $current_class, $target_class )
handleViewChanges ( )
init ( )
initialise ( $properties = false )
prepare ( )
regExpFile ( $regExp, $dir )
renderMigrations ( $file, $migrationid )
rules ( )
shouldUpdateFile ( $model )
substitutePostValue ( $field, $element_num, $field_num )
updateFormView ( $view_path, $element, $mode )
updateModel ( $model_path, $element )
updateViewView ( $view_path, $element )
validateRule ( $field_type, $element_num, $field_num )
validate_form ( )

메소드 상세

__construct() 공개 메소드

public __construct ( )

changeAllInstancesOfString() 공개 메소드

public changeAllInstancesOfString ( $path, $from, $to )

dump_field_unique_values() 공개 정적인 메소드

public static dump_field_unique_values ( $table, $field, $selected = false )

dump_field_unique_values_multi() 공개 정적인 메소드

public static dump_field_unique_values_multi ( $table, $field, $selected = false )

dump_table_fields() 공개 정적인 메소드

public static dump_table_fields ( $table, $selected = false )

elementExists() 공개 메소드

validation check to determine if an element called $name already exists for the event type only performs check for updates.
public elementExists ( string $name ) : boolean
$name string
리턴 boolean

elementShortNameExists() 공개 메소드

We use the short name to define table names, so here we check for the table being defined in the db based off the current event. Only works for updates.
public elementShortNameExists ( $name )

eventTypeProperties() 공개 정적인 메소드

public static eventTypeProperties ( $event_type_id )

extraElementFieldWrangling_DropdownList() 공개 메소드

public extraElementFieldWrangling_DropdownList ( $elements, $number, $field_number, $fields_value )

extraElementFieldWrangling_EyeDraw() 공개 메소드

public extraElementFieldWrangling_EyeDraw ( $elements, $number, $field_number, $fields_value )

extraElementFieldWrangling_MultiSelect() 공개 메소드

public extraElementFieldWrangling_MultiSelect ( $elements, $number, $field_number, $fields_value )

extraElementFieldWrangling_RadioButtons() 공개 메소드

public extraElementFieldWrangling_RadioButtons ( $elements, $number, $field_number, $fields_value )

extraElementFieldWrangling_TextareaWithDropdown() 공개 메소드

public extraElementFieldWrangling_TextareaWithDropdown ( $elements, $number, $field_number, $fields_value )

findModelClassForTable() 공개 정적인 메소드

public static findModelClassForTable ( $table, $path = false )

generateKeyName() 공개 메소드

public generateKeyName ( $field, $elementName )

generateKeyNames() 공개 메소드

public generateKeyNames ( $table, $keys )

getDBFieldSQLType() 공개 메소드

public getDBFieldSQLType ( $field )

getElementsFromPost() 공개 메소드

public getElementsFromPost ( )

getEventShortName() 공개 정적인 메소드

assumes table names of the form et_[specialty_code][group_code][short_name]_[element_short_name] event needs to have had an element defined.
public static getEventShortName ( $event_type )

getEyedrawSize() 공개 정적인 메소드

public static getEyedrawSize ( $class )

getHTMLField() 공개 메소드

the
public getHTMLField ( $field, $mode )

getHTMLFieldView() 공개 메소드

public getHTMLFieldView ( $field )

getTableForeignKeys() 공개 메소드

public getTableForeignKeys ( $table )

handleModuleNameChange() 공개 메소드

public handleModuleNameChange ( $current_class, $target_class )

handleViewChanges() 공개 메소드

public handleViewChanges ( )

init() 공개 메소드

public init ( )

initialise() 공개 메소드

public initialise ( $properties = false )

prepare() 공개 메소드

public prepare ( )

regExpFile() 공개 메소드

public regExpFile ( $regExp, $dir )

renderMigrations() 공개 메소드

public renderMigrations ( $file, $migrationid )

rules() 공개 메소드

public rules ( )

shouldUpdateFile() 공개 메소드

public shouldUpdateFile ( $model )

substitutePostValue() 공개 메소드

public substitutePostValue ( $field, $element_num, $field_num )

updateFormView() 공개 메소드

public updateFormView ( $view_path, $element, $mode )

updateModel() 공개 메소드

public updateModel ( $model_path, $element )

updateViewView() 공개 메소드

public updateViewView ( $view_path, $element )

validateRule() 공개 메소드

public validateRule ( $field_type, $element_num, $field_num )

validate_form() 공개 메소드

public validate_form ( )

프로퍼티 상세

$cssPath 공개적으로 프로퍼티

public $cssPath

$eventGroupName 공개적으로 프로퍼티

public $eventGroupName

$event_group 공개적으로 프로퍼티

public $event_group

$event_type 공개적으로 프로퍼티

public $event_type

$files_to_process 공개적으로 프로퍼티

public $files_to_process

$form_errors 공개적으로 프로퍼티

public $form_errors

$imgPath 공개적으로 프로퍼티

public $imgPath

$jsPath 공개적으로 프로퍼티

public $jsPath

$mode 공개적으로 프로퍼티

public $mode

$moduleID 공개적으로 프로퍼티

public $moduleID

$moduleShortID 공개적으로 프로퍼티

public $moduleShortID

$moduleShortSuffix 공개적으로 프로퍼티

public $moduleShortSuffix

$moduleSuffix 공개적으로 프로퍼티

public $moduleSuffix

$moduleTemplateFile 공개적으로 프로퍼티

public $moduleTemplateFile

$specialty 공개적으로 프로퍼티

public $specialty

$template 공개적으로 프로퍼티

public $template

$validation_rules 공개적으로 프로퍼티

public $validation_rules

$validation_rules_path 공개적으로 프로퍼티

public $validation_rules_path