コード例 #1
0
ファイル: search.php プロジェクト: mvonballmo/earthli-webcore
 /**
  * @param SQL_STORAGE $storage Store values to this object.
  */
 public function store_to($storage)
 {
     parent::store_to($storage);
     $tname = $this->table_name();
     $storage->add($tname, 'user_id', Field_type_integer, $this->user_id, Storage_action_create);
     $storage->add($tname, 'type', Field_type_string, $this->type, Storage_action_create);
     $storage->add($tname, 'title', Field_type_string, $this->title);
     $storage->add($tname, 'parameters', Field_type_string, serialize($this->parameters));
     $storage->add($tname, 'description', Field_type_string, $this->description);
     $storage->add($tname, 'folder_based', Field_type_boolean, $this->folder_based);
     $storage->add($tname, 'user_based', Field_type_boolean, $this->user_based);
 }
コード例 #2
0
ファイル: user.php プロジェクト: mvonballmo/earthli-webcore
 /**
  * @param SQL_STORAGE $storage Store values to this object.
  */
 public function store_to($storage)
 {
     parent::store_to($storage);
     $tname = $this->table_name();
     if ($this->ip_address) {
         $ip = ip2long($this->ip_address);
     } else {
         $ip = 0;
     }
     $storage->add($tname, 'ip_address', Field_type_integer, $ip, Storage_action_create);
     $storage->add($tname, 'kind', Field_type_string, $this->kind, Storage_action_create);
     $storage->add($tname, 'password', Field_type_string, $this->password);
     $storage->add($tname, 'real_first_name', Field_type_string, $this->real_first_name);
     $storage->add($tname, 'real_last_name', Field_type_string, $this->real_last_name);
     $storage->add($tname, 'email', Field_type_string, $this->email);
     $storage->add($tname, 'home_page_url', Field_type_string, $this->home_page_url);
     $storage->add($tname, 'picture_url', Field_type_string, $this->picture_url);
     $storage->add($tname, 'signature', Field_type_string, $this->signature);
     $storage->add($tname, 'icon_url', Field_type_string, $this->icon_url);
     $storage->add($tname, 'email_visibility', Field_type_string, $this->email_visibility);
 }
コード例 #3
0
 /**
  * @param SQL_STORAGE $storage Store values to this object.
  */
 public function store_to($storage)
 {
     parent::store_to($storage);
     $table_name = $this->table_name();
     $storage->add($table_name, 'state', Field_type_integer, $this->state);
     $storage->add($table_name, 'owner_id', Field_type_integer, $this->owner_id);
 }