PHP Class Gallery

Inheritance: extends QS_Controller
Exibir arquivo Open project: yupe/yupe Class Usage Examples

Public Methods

Method 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 method

public addImage ( Image $image )
$image Image

attributeLabels() public method

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

beforeValidate() public method

beforeValidate
public beforeValidate ( ) : parent::beforeValidate()
return parent::beforeValidate()

getCanAddPhoto() public method

can add photo
public getCanAddPhoto ( ) : boolean
return boolean can add photo

getCategoryName() public method

public getCategoryName ( )

getOwnerName() public method

get owner name
public getOwnerName ( ) : string
return string owner name

getStatus() public method

public getStatus ( )

getStatusList() public method

public getStatusList ( )

model() public static method

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

previewImage() public method

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

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

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

scopes() public method

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

tableName() public method

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