PHP Class Tree\Model\Category

Inheritance: extends Application\Mvc\Model\Model
Show file Open project: oleksandr-torosh/yona-cms Class Usage Examples

Public Properties

Property Type Description
$roots translate
$title

Protected Properties

Property Type Description
$translateModel

Public Methods

Method Description
beforeCreate ( )
beforeUpdate ( )
children ( )
getCreatedAt ( ) : mixed
getDepth ( ) : mixed
getId ( ) : mixed
getLeftKey ( ) : mixed
getParentId ( ) : mixed
getRightKey ( ) : mixed
getRoot ( ) : string
getSlug ( ) : mixed
getSource ( )
getTitle ( ) : mixed
getUpdatedAt ( ) : mixed
hasChildren ( )
initialize ( )
setCreatedAt ( mixed $created_at )
setDepth ( mixed $depth )
setId ( mixed $id )
setLeftKey ( mixed $left_key )
setParentId ( mixed $parent_id )
setRightKey ( mixed $right_key )
setRoot ( string $root )
setSlug ( mixed $slug )
setTitle ( mixed $title )
setUpdatedAt ( mixed $updated_at )
treeUpperLeafs ( $root )
validation ( )

Method Details

beforeCreate() public method

public beforeCreate ( )

beforeUpdate() public method

public beforeUpdate ( )

children() public method

public children ( )

getCreatedAt() public method

public getCreatedAt ( ) : mixed
return mixed

getDepth() public method

public getDepth ( ) : mixed
return mixed

getId() public method

public getId ( ) : mixed
return mixed

getLeftKey() public method

public getLeftKey ( ) : mixed
return mixed

getParentId() public method

public getParentId ( ) : mixed
return mixed

getRightKey() public method

public getRightKey ( ) : mixed
return mixed

getRoot() public method

public getRoot ( ) : string
return string

getSlug() public method

public getSlug ( ) : mixed
return mixed

getSource() public method

public getSource ( )

getTitle() public method

public getTitle ( ) : mixed
return mixed

getUpdatedAt() public method

public getUpdatedAt ( ) : mixed
return mixed

hasChildren() public method

public hasChildren ( )

initialize() public method

public initialize ( )

setCreatedAt() public method

public setCreatedAt ( mixed $created_at )
$created_at mixed

setDepth() public method

public setDepth ( mixed $depth )
$depth mixed

setId() public method

public setId ( mixed $id )
$id mixed

setLeftKey() public method

public setLeftKey ( mixed $left_key )
$left_key mixed

setParentId() public method

public setParentId ( mixed $parent_id )
$parent_id mixed

setRightKey() public method

public setRightKey ( mixed $right_key )
$right_key mixed

setRoot() public method

public setRoot ( string $root )
$root string

setSlug() public method

public setSlug ( mixed $slug )
$slug mixed

setTitle() public method

public setTitle ( mixed $title )
$title mixed

setUpdatedAt() public method

public setUpdatedAt ( mixed $updated_at )
$updated_at mixed

treeUpperLeafs() public static method

public static treeUpperLeafs ( $root )

validation() public method

public validation ( )

Property Details

$roots public static property

translate
public static $roots

$title public property

public $title

$translateModel protected property

protected $translateModel