PHP Class Admin\Model\PostModel

Inheritance: extends Windwalker\Core\Model\DatabaseModel
Datei anzeigen Open project: asika32764/natika Class Usage Examples

Protected Properties

Property Type Description
$name string Property name.
$reorderConditions array Property reorderConditions.

Public Methods

Method Description
getReorderConditions ( Windwalker\Record\Record $record ) : array getReorderConditions
setOrderPosition ( Windwalker\Record\Record $record, string $position = self::ORDER_POSITION_LAST ) : void Method to set new item ordering as first or last.

Protected Methods

Method Description
postGetItem ( Windwalker\Data\Data $item ) : void postGetItem
prepareRecord ( Windwalker\Record\Record $record ) : void prepareRecord

Method Details

getReorderConditions() public method

getReorderConditions
public getReorderConditions ( Windwalker\Record\Record $record ) : array
$record Windwalker\Record\Record
return array An array of conditions to add to ordering queries.

postGetItem() protected method

postGetItem
protected postGetItem ( Windwalker\Data\Data $item ) : void
$item Windwalker\Data\Data
return void

prepareRecord() protected method

prepareRecord
protected prepareRecord ( Windwalker\Record\Record $record ) : void
$record Windwalker\Record\Record
return void

setOrderPosition() public method

Method to set new item ordering as first or last.
public setOrderPosition ( Windwalker\Record\Record $record, string $position = self::ORDER_POSITION_LAST ) : void
$record Windwalker\Record\Record Item table to save.
$position string `first` or other are `last`.
return void

Property Details

$name protected_oe property

Property name.
protected string $name
return string

$reorderConditions protected_oe property

Property reorderConditions.
protected array $reorderConditions
return array