PHP Class Gc\Document\Model

Inheritance: extends Gc\Db\AbstractTable, implements Gc\Component\IterableInterface
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name string Table name

Méthodes publiques

Méthode Description
canBeCached ( boolean $canBeCached = null ) : boolean Define if document can be cached
delete ( ) : boolean Delete document
fromArray ( array $array ) : Model Initialize document from array
fromId ( integer $documentId ) : Model Initiliaze document from id
fromUrlKey ( string $urlKey, mixed $parentId = false ) : Model Initiliaze from url and parent
getAvailableChildren ( ) : false Retrieve children with his status is enable
getChildren ( ) : array (non-PHPdoc)
getDocumentType ( ) : Model Get Document type
getEditUrl ( ) : mixed (non-PHPdoc)
getIcon ( ) : mixed (non-PHPdoc)
getId ( ) : integer (non-PHPdoc)
getIterableId ( ) : string (non-PHPdoc)
getLayout ( ) : Model get View Model
getName ( ) : string (non-PHPdoc)
getParent ( ) : Model (non-PHPdoc)
getProperty ( string $propertyName ) : false Get property
getUrl ( boolean $forceCanonical = false ) : string Get document url
getView ( ) : Model get View Model
init ( integer $documentId = null ) : void Initiliaze document
isPublished ( ) : boolean Test if status is equal to self::STATUS_ENABLE
save ( ) : integer Save Model
showInNav ( boolean $isShow = null ) : boolean Define if document is show in navigation

Method Details

canBeCached() public méthode

Define if document can be cached
public canBeCached ( boolean $canBeCached = null ) : boolean
$canBeCached boolean Optional
Résultat boolean

delete() public méthode

Delete document
public delete ( ) : boolean
Résultat boolean

fromArray() public static méthode

Initialize document from array
public static fromArray ( array $array ) : Model
$array array Data
Résultat Model

fromId() public static méthode

Initiliaze document from id
public static fromId ( integer $documentId ) : Model
$documentId integer Document id
Résultat Model

fromUrlKey() public static méthode

Initiliaze from url and parent
public static fromUrlKey ( string $urlKey, mixed $parentId = false ) : Model
$urlKey string Url key
$parentId mixed Parent id
Résultat Model

getAvailableChildren() public méthode

Retrieve children with his status is enable
public getAvailableChildren ( ) : false
Résultat false | PropertyModel

getChildren() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getChildren()
public getChildren ( ) : array
Résultat array

getDocumentType() public méthode

Get Document type
public getDocumentType ( ) : Model
Résultat Gc\DocumentType\Model

getEditUrl() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getEditUrl()
public getEditUrl ( ) : mixed
Résultat mixed

getIcon() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getIcon()
public getIcon ( ) : mixed
Résultat mixed

getId() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getId()
public getId ( ) : integer
Résultat integer

getIterableId() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getIterableId()
public getIterableId ( ) : string
Résultat string

getLayout() public méthode

get View Model
public getLayout ( ) : Model
Résultat Gc\View\Model

getName() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getName()
public getName ( ) : string
Résultat string

getParent() public méthode

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getParent()
public getParent ( ) : Model
Résultat Model

getProperty() public méthode

Get property
public getProperty ( string $propertyName ) : false
$propertyName string Property name
Résultat false | PropertyModel

getUrl() public méthode

Get document url
public getUrl ( boolean $forceCanonical = false ) : string
$forceCanonical boolean Force canonical url
Résultat string

getView() public méthode

get View Model
public getView ( ) : Model
Résultat Gc\View\Model

init() public méthode

Initiliaze document
public init ( integer $documentId = null ) : void
$documentId integer Document id
Résultat void

isPublished() public méthode

Test if status is equal to self::STATUS_ENABLE
public isPublished ( ) : boolean
Résultat boolean

save() public méthode

Save Model
public save ( ) : integer
Résultat integer

showInNav() public méthode

Define if document is show in navigation
public showInNav ( boolean $isShow = null ) : boolean
$isShow boolean Optional
Résultat boolean

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string