Exemple #1
0
 public function store()
 {
     if (!$this->check()) {
         return false;
     }
     $this->resolveLocation($this->location);
     return parent::store();
 }
Exemple #2
0
 public function store()
 {
     if (empty($source)) {
         $source = $this;
     }
     if (!$this->check()) {
         return false;
     }
     if (!parent::store()) {
         return false;
     }
     $this->setError('');
     return true;
 }
Exemple #3
0
 public function store()
 {
     return parent::store();
 }
Exemple #4
0
 /**
  * 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();
 }
Exemple #5
0
 public function store()
 {
     if (!$this->check()) {
         return false;
     }
     if (empty($this->latitude) || empty($this->longitude)) {
         $this->resolveLocation($this->location);
     }
     return parent::store();
 }
Exemple #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();
 }
Exemple #7
0
 /**
  * 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();
 }