PHP 클래스 sfPropelFormGenerator, sfPropelORMPlugin

This class generates a Propel forms.
저자: Fabien Potencier ([email protected])
상속: extends sfGenerator
파일 보기 프로젝트 열기: propelorm/sfPropelORMPlugin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dbMap

공개 메소드들

메소드 설명
generate ( array $params = [] ) : string Generates classes and templates in cache.
getColumnNameMaxLength ( ) : integer Returns the maximum length for a column name.
getForeignKeyNames ( ) : array Returns PHP names for all foreign keys of the current table.
getForeignTable ( ColumnMap $column ) : TableMap Returns the foreign table associated with a column.
getI18nModel ( ) : string Returns the i18n model name for the current table.
getManyToManyTables ( ) : array Returns an array of tables that represents a many to many relationship.
getPrimaryKey ( ) : ColumnMap Returns the first primary key column of the current table.
getPrimaryKeyColumNames ( ) : array Returns an array of primary key column names.
getPrimaryKeyColumNamesAsString ( ) : string Returns a PHP string representation for the array of all primary key column names.
getUniqueColumnNames ( )
getValidatorClassForColumn ( ColumnMap $column ) : string Returns a sfValidator class name for a given column.
getValidatorOptionsForColumn ( ColumnMap $column ) : string Returns a PHP string representing options to pass to a validator for a given column.
getWidgetClassForColumn ( ColumnMap $column ) : string Returns a sfWidgetForm class name for a given column.
getWidgetOptionsForColumn ( ColumnMap $column ) : string Returns a PHP string representing options to pass to a widget for a given column.
initialize ( sfGeneratorManager $generatorManager ) Initializes the current sfGenerator instance.
isI18n ( ) : boolean Returns true if the current table is internationalized.
translateColumnName ( $column, $related = false, $to = BasePeer::TYPE_FIELDNAME )
underscore ( $name )

보호된 메소드들

메소드 설명
loadBuilders ( ) Loads all Propel builders.

메소드 상세

generate() 공개 메소드

Generates classes and templates in cache.
public generate ( array $params = [] ) : string
$params array The parameters
리턴 string The data to put in configuration cache

getColumnNameMaxLength() 공개 메소드

Returns the maximum length for a column name.
public getColumnNameMaxLength ( ) : integer
리턴 integer The length of the longer column name

getForeignKeyNames() 공개 메소드

This method does not returns foreign keys that are also primary keys.
public getForeignKeyNames ( ) : array
리턴 array An array composed of: * The foreign table PHP name * The foreign key PHP name * A Boolean to indicate whether the column is required or not * A Boolean to indicate whether the column is a many to many relationship or not

getForeignTable() 공개 메소드

Returns the foreign table associated with a column.
public getForeignTable ( ColumnMap $column ) : TableMap
$column ColumnMap A ColumnMap object
리턴 TableMap A TableMap object

getI18nModel() 공개 메소드

Returns the i18n model name for the current table.
public getI18nModel ( ) : string
리턴 string The model class name

getManyToManyTables() 공개 메소드

A table is considered to be a m2m table if it has 2 foreign keys that are also primary keys.
public getManyToManyTables ( ) : array
리턴 array An array of tables.

getPrimaryKey() 공개 메소드

Returns the first primary key column of the current table.
public getPrimaryKey ( ) : ColumnMap
리턴 ColumnMap A ColumnMap object

getPrimaryKeyColumNames() 공개 메소드

Returns an array of primary key column names.
public getPrimaryKeyColumNames ( ) : array
리턴 array An array of primary key column names

getPrimaryKeyColumNamesAsString() 공개 메소드

Returns a PHP string representation for the array of all primary key column names.
또한 보기: getPrimaryKeyColumNames()
public getPrimaryKeyColumNamesAsString ( ) : string
리턴 string A PHP string representation for the array of all primary key column names

getUniqueColumnNames() 공개 메소드

getValidatorClassForColumn() 공개 메소드

Returns a sfValidator class name for a given column.
public getValidatorClassForColumn ( ColumnMap $column ) : string
$column ColumnMap A ColumnMap object
리턴 string The name of a subclass of sfValidator

getValidatorOptionsForColumn() 공개 메소드

Returns a PHP string representing options to pass to a validator for a given column.
public getValidatorOptionsForColumn ( ColumnMap $column ) : string
$column ColumnMap A ColumnMap object
리턴 string The options to pass to the validator as a PHP string

getWidgetClassForColumn() 공개 메소드

Returns a sfWidgetForm class name for a given column.
public getWidgetClassForColumn ( ColumnMap $column ) : string
$column ColumnMap A ColumnMap object
리턴 string The name of a subclass of sfWidgetForm

getWidgetOptionsForColumn() 공개 메소드

Returns a PHP string representing options to pass to a widget for a given column.
public getWidgetOptionsForColumn ( ColumnMap $column ) : string
$column ColumnMap A ColumnMap object
리턴 string The options to pass to the widget as a PHP string

initialize() 공개 메소드

Initializes the current sfGenerator instance.
public initialize ( sfGeneratorManager $generatorManager )
$generatorManager sfGeneratorManager A sfGeneratorManager instance

isI18n() 공개 메소드

Returns true if the current table is internationalized.
public isI18n ( ) : boolean
리턴 boolean true if the current table is internationalized, false otherwise

loadBuilders() 보호된 메소드

Loads all Propel builders.
protected loadBuilders ( )

translateColumnName() 공개 메소드

public translateColumnName ( $column, $related = false, $to = BasePeer::TYPE_FIELDNAME )

underscore() 공개 메소드

public underscore ( $name )

프로퍼티 상세

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

protected $dbMap