PHP Class Gallery

Inheritance: extends QS_Controller
Afficher le fichier Open project: yupe/yupe Class Usage Examples

Méthodes publiques

Méthode Description
addImage ( Image $image )
attributeLabels ( ) : array
beforeValidate ( ) : parent::beforeValidate() beforeValidate
getCanAddPhoto ( ) : boolean can add photo
getCategoryName ( )
getOwnerName ( ) : string get owner name
getStatus ( )
getStatusList ( )
model ( string $className = __CLASS__ ) : Gallery Returns the static model of the specified AR class.
previewImage ( integer $width = 190, integer $height = 190 ) : string Получаем картинку для галереи:
relations ( ) : array
rules ( ) : array
scopes ( ) : array Именованные условия
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Method Details

addImage() public méthode

public addImage ( Image $image )
$image Image

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeValidate() public méthode

beforeValidate
public beforeValidate ( ) : parent::beforeValidate()
Résultat parent::beforeValidate()

getCanAddPhoto() public méthode

can add photo
public getCanAddPhoto ( ) : boolean
Résultat boolean can add photo

getCategoryName() public méthode

public getCategoryName ( )

getOwnerName() public méthode

get owner name
public getOwnerName ( ) : string
Résultat string owner name

getStatus() public méthode

public getStatus ( )

getStatusList() public méthode

public getStatusList ( )

model() public static méthode

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : Gallery
$className string
Résultat Gallery the static model class

previewImage() public méthode

Получаем картинку для галереи:
public previewImage ( integer $width = 190, integer $height = 190 ) : string
$width integer - ширина
$height integer - высота
Résultat string image Url

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

scopes() public méthode

Именованные условия
public scopes ( ) : array
Résultat array of scopes

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name