예제 #1
0
파일: arraydata.php 프로젝트: azuya/Wi3
 protected function _init()
 {
     parent::_init();
     // Overrule the names of the Roles and User_Token model to the Site_... version
     $this->_fields = array('id' => new Sprig_Field_Auto(), 'array' => new Sprig_Field_BelongsTo(array('model' => 'Array')), 'key' => new Sprig_Field_Char(array('empty' => TRUE, 'unique' => TRUE)), 'val' => new Sprig_Field_Char(array('empty' => TRUE, 'unique' => FALSE)));
 }
예제 #2
0
파일: array.php 프로젝트: azuya/Wi3
 protected function _init()
 {
     parent::_init();
     // Overrule the names of the Roles and User_Token model to the Site_... version
     $this->_fields = array('id' => new Sprig_Field_Auto(), 'refclass' => new Sprig_Field_Char(array('empty' => TRUE, 'unique' => TRUE)), 'refid' => new Sprig_Field_Char(array('empty' => TRUE, 'unique' => TRUE)), 'arraydatas' => new Sprig_Field_HasMany(array('model' => 'Arraydata')));
 }