/**
  * 
  */
 function store()
 {
     if ($id = parent::store()) {
         $this->saveRelationship('byrdlist_listings');
         return $id;
     }
     return false;
 }
 /**
  * 
  */
 function store()
 {
     //initializing object properties
     $this->setSlug();
     if ($id = parent::store()) {
         $this->saveRelationship('byrdlist_images');
         return $id;
     }
     return false;
 }
Пример #3
0
 /**
  * 
  */
 function store()
 {
     //initializing object properties
     $this->setExt();
     if ($id = parent::store()) {
         //$this->saveRelationship('listings');
         $this->saveFile();
         $this->purge();
         if (!$this->valid()) {
             $this->delete();
             $this->setError("106: Could not save image.");
             return false;
         }
         return $id;
     } else {
         $this->setError("109: Couldn't save the record.");
     }
     return false;
 }
 /**
  * Store
  * 
  */
 function store()
 {
     //initializing object properties
     $this->cleanNumbers();
     $this->getGeoLocation();
     if ($id = parent::store()) {
         $this->saveRelationship('byrdlist_categories');
         $this->saveRelationship('byrdlist_tags');
         $this->saveRelationship('financials');
         return $id;
     }
     return false;
 }
 /**
  * 
  */
 function store()
 {
     //initializing object properties
     $this->setExt();
     if ($id = parent::store()) {
         $this->saveRelationship('byrdlist_listings');
         $this->saveRelationship('byrdlist_categories');
         $this->saveRelationship('byrdlist_websites');
         $this->saveFile();
         if (!$this->valid()) {
             $this->delete();
             $this->setError("ERROR: Could not save image.");
             return false;
         }
         return $id;
     }
     return false;
 }