/**
  * select_builder()
  *
  * Set "text" and "values" attributes based on instance's 'build' attribute
  *
  * @param array $options The options array from this instance (destructive)
  *
  * @return void
  **/
 private function select_builder(&$options)
 {
     $options['text'] = NORM::all($options['build'][0], $options['build'][1]);
     if (isset($options['build'][2])) {
         $options['values'] = NORM::all($options['build'][0], $options['build'][2]);
     }
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct(array('table_name' => 'test_author'));
     $this->has_many('books');
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     $this->has_many('photos', array('order_by' => 'position'));
 }
 public function __construct()
 {
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->belongs_to('category', array('class' => 'CmsCategory'));
 }
Beispiel #6
0
 function __construct()
 {
     parent::__construct(array('table_name' => 'contact'));
 }
Beispiel #7
0
 public function __construct()
 {
     parent::__construct();
     $this->config->ignore[] = 'role';
 }
Beispiel #8
0
 public function __construct()
 {
     parent::__construct();
     $this->belongs_to('project');
 }
Beispiel #9
0
 public function __construct()
 {
     parent::__construct(array('table_name' => 'test_norm_account'));
     $this->belongs_to('author');
 }