示例#1
0
文件: event.php 项目: bizanto/Hooked
 public function store()
 {
     if (!$this->check()) {
         return false;
     }
     $this->resolveLocation($this->location);
     return parent::store();
 }
示例#2
0
文件: video.php 项目: bizanto/Hooked
 public function store()
 {
     if (empty($source)) {
         $source = $this;
     }
     if (!$this->check()) {
         return false;
     }
     if (!parent::store()) {
         return false;
     }
     $this->setError('');
     return true;
 }
示例#3
0
 public function store()
 {
     return parent::store();
 }
示例#4
0
文件: photo.php 项目: bizanto/Hooked
 /**
  * Overrides parent store function as we need to clean up some variables
  **/
 public function store()
 {
     if (!$this->check()) {
         return false;
     }
     $this->image = JString::str_ireplace('\\', '/', $this->image);
     $this->thumbnail = JString::str_ireplace('\\', '/', $this->thumbnail);
     $this->original = JString::str_ireplace('\\', '/', $this->original);
     return parent::store();
 }
示例#5
0
 public function store()
 {
     if (!$this->check()) {
         return false;
     }
     if (empty($this->latitude) || empty($this->longitude)) {
         $this->resolveLocation($this->location);
     }
     return parent::store();
 }
示例#6
0
 /**
  * Binds an array into this object's property
  *
  * @access	public
  * @param	$data	mixed	An associative array or object
  **/
 public function store()
 {
     if (!$this->check()) {
         return false;
     }
     // Update activities as necessary
     $activityModel = CFactory::getModel('activities');
     $activityModel->update(array('groupid' => $this->id), array('group_access' => $this->approvals));
     return parent::store();
 }
示例#7
0
文件: group.php 项目: bizanto/Hooked
 /**
  * Binds an array into this object's property
  *
  * @access	public
  * @param	$data	mixed	An associative array or object
  **/
 function store()
 {
     if (!$this->check()) {
         return false;
     }
     return parent::store();
 }