예제 #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'));
 }