PHP Class Attribute

Mostra file Open project: yupe/yupe Class Usage Examples

Public Properties

Property Type Description
$rawOptions

Public Methods

Method Description
attributeDescriptions ( ) : array
attributeLabels ( ) : array
behaviors ( ) : array
changeType ( $currentType, $newType ) : boolean
getAttributeByName ( $name ) : null | static
getGroupTitle ( ) : string
getTypeTitle ( $type ) : mixed
getTypes ( ) : array
getTypesList ( ) : array
getYesNoList ( ) : array
isMultipleValues ( ) : boolean
isRequired ( ) : boolean
isType ( $type ) : boolean
model ( null | string $className = __CLASS__ )
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
setMultipleValuesAttributes ( array $attributes ) : boolean
setTypes ( array $types ) : boolean
tableName ( ) : string

Method Details

attributeDescriptions() public method

public attributeDescriptions ( ) : array
return array customized attribute descriptions (name=>description)

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

behaviors() public method

public behaviors ( ) : array
return array

changeType() public method

public changeType ( $currentType, $newType ) : boolean
$currentType
$newType
return boolean

getAttributeByName() public method

public getAttributeByName ( $name ) : null | static
$name
return null | static

getGroupTitle() public method

public getGroupTitle ( ) : string
return string

getTypeTitle() public method

public getTypeTitle ( $type ) : mixed
$type
return mixed

getTypes() public method

public getTypes ( ) : array
return array

getTypesList() public method

public getTypesList ( ) : array
return array

getYesNoList() public method

public getYesNoList ( ) : array
return array

isMultipleValues() public method

public isMultipleValues ( ) : boolean
return boolean

isRequired() public method

public isRequired ( ) : boolean
return boolean

isType() public method

public isType ( $type ) : boolean
$type
return boolean

model() public static method

public static model ( null | string $className = __CLASS__ )
$className null | string

relations() public method

public relations ( ) : array
return array

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

setMultipleValuesAttributes() public method

public setMultipleValuesAttributes ( array $attributes ) : boolean
$attributes array
return boolean

setTypes() public method

public setTypes ( array $types ) : boolean
$types array
return boolean

tableName() public method

public tableName ( ) : string
return string the associated database table name

Property Details

$rawOptions public_oe property

public $rawOptions