/** @return Post */ public function getPostByIdent(PostsBean $bean, $ident) { $postTable = $bean->getPostsTable(); $postType = $bean->getPostType(); $dataArr = $this->getRec("SELECT * FROM {$postTable} p where p.ident=?", $ident); return $dataArr == null ? null : new AdminPost($postType, $dataArr); }
/** @return ISBean */ public static function inst() { return parent::inst(); }