当前位置: 首页>>代码示例>>PHP>>正文


PHP Admin::setListFields方法代码示例

本文整理汇总了PHP中Admin::setListFields方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::setListFields方法的具体用法?PHP Admin::setListFields怎么用?PHP Admin::setListFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Admin的用法示例。


在下文中一共展示了Admin::setListFields方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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();
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:11,代码来源:DrugSetAdminController.php

示例2: 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();
 }
开发者ID:code-4-england,项目名称:OpenEyes,代码行数:13,代码来源:MedicationController.php

示例3: 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();
 }
开发者ID:code-4-england,项目名称:OpenEyes,代码行数:14,代码来源:ComplicationController.php

示例4: 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();
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:14,代码来源:ProcedureController.php

示例5: 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();
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:15,代码来源:LensTypeAdminController.php

示例6: 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();
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:15,代码来源:FormularyDrugsController.php

示例7: 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();
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:13,代码来源:ExaminationElementAttributesController.php

示例8: 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);
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:15,代码来源:EventLogController.php

示例9: 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);
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:15,代码来源:UniqueCodesController.php

示例10: 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();
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:15,代码来源:OperativeDeviceController.php

示例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;
 }
开发者ID:code-4-england,项目名称:OpenEyes,代码行数:14,代码来源:Admin.php


注:本文中的Admin::setListFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。