本文整理汇总了PHP中AbstractModel::getAll方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractModel::getAll方法的具体用法?PHP AbstractModel::getAll怎么用?PHP AbstractModel::getAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractModel
的用法示例。
在下文中一共展示了AbstractModel::getAll方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionLots
public function actionLots()
{
$this->model->authAdmin();
$itemInPage = 5;
if ($this->request->itemInPage != '') {
$itemInPage = $this->request->itemInPage;
}
$direction = $this->request->direction;
$sort = $this->request->sort;
$allItem = AbstractModel::getOnCount('lot', 'id');
$pagItem = $allItem / $itemInPage;
if ($allItem % $itemInPage) {
$pagItem++;
}
$this->view->lots = AbstractModel::getAll('Model_Lot', 'lot');
//AbstractModel::getOnLimit('Model_Lot', 'lot');
$this->view->paginatorItem = $pagItem;
if ($this->request->deLot !== '') {
$deLot = (int) $this->request->deLot;
AbstractModel::deleteOnId('lot', $deLot);
//app::redirect($_SERVER['HTTP_REFERER']);
}
$this->view->render('lots');
$this->view->display();
}
示例2: getAll
public function getAll(array $inputParam = array())
{
$param = array_merge(array('select' => 'sections.title as section_title,projects.*', 'join' => 'sections ON (projects.section_id = sections.id)', 'orderby' => 'sections.created DESC, projects.created DESC'), $inputParam);
return parent::getAll($param);
}
示例3: getAll
public function getAll(array $inputParam = array())
{
$param = array_merge(array('select' => 'projects.title as project_title,samples.*', 'join' => 'projects ON (samples.project_id = projects.id)'), $inputParam);
return parent::getAll($param);
}
示例4: getAll
public function getAll(array $inputParam = array())
{
$param = array_merge(array('onlyStatusOn' => false), $inputParam);
return parent::getAll($param);
}
示例5: getAll
public function getAll()
{
return parent::getAll(array('orderby' => $this->_tablename . '.id ASC'));
}