示例#1
0
文件: Fk.php 项目: nabble/ajde-core
 public function getValue()
 {
     $value = parent::getValue();
     if (!$value instanceof Model && !empty($value)) {
         $model = $this->getModel();
         $model->loadByPK($value);
         $this->set('value', $model);
     }
     return parent::getValue();
 }
示例#2
0
文件: I18n.php 项目: nabble/ajde-core
 public function __construct(Crud $crud, $fieldOptions)
 {
     parent::__construct($crud, $fieldOptions);
     $this->set('default', Config::get('lang'));
 }