示例#1
0
 protected function preInsert()
 {
     $this->url = DatabaseObject_StaticUtility::generateUniqueUrl($this->_db, $this->_table, $this->profile->name, $this->user_id);
     return true;
 }
示例#2
0
 protected function preInsert()
 {
     $this->url = DatabaseObject_StaticUtility::generateUniqueUrl($this->_db, $this->_table, $this->profile->title, $this->user_id);
     //echo "here at preinsert id: ".$this->user_id; this->user_id is retrived because when the user inserts a new column, the user_id is automatically et.
     return true;
 }