$db
$db :
__construct(\TriTan\Interfaces\DatabaseInterface $db, \TriTan\Interfaces\ContextInterface $context)
\TriTan\Interfaces\DatabaseInterface | $db | |
\TriTan\Interfaces\ContextInterface | $context |
populate(\TriTan\Common\Posttype\Posttype $posttype, array $data) : \TriTan\Common\Posttype\TriTan\Common\Posttype\Posttype
Populate the Posttype object with the data array.
\TriTan\Common\Posttype\Posttype | $posttype | object. |
array | $data | Posttype data. |
insert(\TriTan\Common\Posttype\Posttype $posttype) : integer
Inserts a new posttype into the posttype document.
\TriTan\Common\Posttype\Posttype | $posttype | Posttype object. |
Last insert id.
update(\TriTan\Common\Posttype\Posttype $posttype) : \TriTan\Common\Posttype\Posttype
Updates a Posttype object.
\TriTan\Common\Posttype\Posttype | $posttype | Posttype object. |
id.
save(\TriTan\Common\Posttype\Posttype $posttype)
Save the Posttype object.
\TriTan\Common\Posttype\Posttype | $posttype | Posttype object. |
delete(\TriTan\Common\Posttype\Posttype $posttype) : boolean
Deletes posttype object.
\TriTan\Common\Posttype\Posttype | $posttype | Posttype object. |
True if deleted, false otherwise.