コード例 #1
0
ファイル: AdminPostsBean.php プロジェクト: ilivanoff/www
 /** @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);
 }
コード例 #2
0
ファイル: ISBean.php プロジェクト: ilivanoff/www
 /** @return ISBean */
 public static function inst()
 {
     return parent::inst();
 }