本文整理汇总了PHP中Admin::getSearch方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::getSearch方法的具体用法?PHP Admin::getSearch怎么用?PHP Admin::getSearch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin
的用法示例。
在下文中一共展示了Admin::getSearch方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionList
/**
* Lists procedures.
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(Procedure::model(), $this);
$admin->setListFields(array('term', 'snomed_code', 'opcsCodes.name', 'default_duration', 'aliases', 'has_benefits', 'has_complications', 'active'));
$admin->searchAll();
$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例2: actionList
/**
* Lists procedures
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(Complication::model(), $this);
$admin->setListFields(array('id', 'name', 'active'));
$admin->searchAll();
$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例3: actionList
/**
* Lists lens types.
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(OphInBiometry_LensType_Lens::model(), $this);
$admin->setListFields(array('id', 'name', 'description', 'acon', 'active'));
$admin->setModelDisplayName('Lens types');
$admin->searchAll();
$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例4: actionList
/**
* Lists procedures.
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(FormularyDrugs::model(), $this);
$admin->setListFields(array('name', 'drug_type.name', 'aliases', 'active'));
$admin->searchAll();
$admin->setModelDisplayName('Formulary Drugs');
$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例5: actionList
/**
* Lists procedures.
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(AutomaticExaminationEventLog::model(), $this);
$admin->setModelDisplayName('Examination Event Log(s)');
$admin->setListFields(array('event_id', 'unique_code', 'examination_date', 'import_status.status_value'));
$admin->searchAll();
$admin->getSearch()->addSearchItem('import_success', array('type' => 'dropdown', 'options' => CHtml::listData(ImportStatus::model()->findAll(), 'id', 'status_value')));
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel(false);
}
示例6: actionList
/**
* Lists procedures.
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(UniqueCodes::model(), $this);
$admin->setModelDisplayName('Unique Codes');
$admin->setListFields(array('id', 'code', 'active'));
$admin->searchAll();
$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel(false);
}
示例7: actionList
/**
* Lists operative devices.
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(OperativeDevice::model(), $this);
$admin->setModelDisplayName('Operative Devices');
$admin->setListFields(array('id', 'name', 'active'));
$admin->searchAll();
$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例8: actionDrugSets
/**
* Render the basic drug set admin page.
*/
public function actionDrugSets()
{
$admin = new Admin(DrugSet::model(), $this);
$admin->setListFields(array('id', 'name', 'subspecialty.name', 'active'));
$admin->searchAll();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例9: actionList
/**
* Lists medications
*
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(MedicationDrug::model(), $this);
$admin->setListFields(array('id', 'name', 'external_code', 'external_source', 'aliases'));
$admin->searchAll();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例10: actionList
/**
* @throws CHttpException
*/
public function actionList()
{
$admin = new Admin(OEModule\OphCiExamination\models\OphCiExamination_Attribute::model(), $this);
$admin->setListFields(array('display_order', 'name', 'label', 'attribute_elements_id.id', 'attribute_elements.name'));
$admin->searchAll();
$admin->setModelDisplayName('Element Attributes');
//$admin->getSearch()->addActiveFilter();
$admin->getSearch()->setItemsPerPage($this->itemsPerPage);
$admin->listModel();
}
示例11: generateAdminForRelationList
public function generateAdminForRelationList($relation, array $listFields)
{
$relatedModel = $this->relationClassFromRelation($relation);
$relatedAdmin = new Admin($relatedModel, $this->controller);
$relatedAdmin->setListFields($listFields);
$relatedAdmin->setIsSubList(true);
$relationField = $this->relationFieldFromRelation($relation);
if ($relationField) {
$criteria = $relatedAdmin->getSearch()->getCriteria();
$criteria->addCondition($relationField . ' = ' . $this->model->id);
$relatedAdmin->setSubListParent(array($relationField => $this->model->id));
}
return $relatedAdmin;
}