PHP Класс EventTypeModuleCode

Наследование: extends BaseModuleCode
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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