as_array() 공개 메소드

Wrapper for Idiorm's as_array method.
public as_array ( ) : Array
리턴 Array
예제 #1
0
파일: session.php 프로젝트: 2bj/slim-common
 function as_array()
 {
     $data = parent::as_array();
     unset($data['password']);
     unset($data['email_address']);
     $data['roles'] = $this->getRoles(true);
     $data['prefs'] = $this->getPrefs(true);
     return $data;
 }
예제 #2
0
 public function create(Model $model, Validation $validation = NULL, Validation $default_validation = NULL)
 {
     $model->valid($validation, $default_validation);
     return DB::insert($this->_table)->columns($model->columns())->values($model->as_array())->execute($this->_db);
 }