Beispiel #1
0
 /**
  * Loads the existing fields from the current item.
  *
  * @return bool								- Success
  */
 protected function loadExisting()
 {
     // Check if an existing item has been specified
     if (!isset($this->item) and !isset($this->item_id)) {
         return false;
     }
     // Ensure the item is instatiated
     $this->assertItem();
     // Tell the item to populate the DM
     $this->item->loadDM($this);
     if (sizeof($this->existing_fields)) {
         return true;
     }
     throw new vB_Exception_DM('Existing fields loaded from current item but no fields were set');
 }