Exemple #1
0
 /**
  * Locks sheme to a standart design document sheme after calling paraent
  * 
  * @return void
  * @author Bahtiar Gadimov <*****@*****.**>
  */
 protected function _postConfig()
 {
     parent::_postConfig();
 }
Exemple #2
0
 /**
  * Generates an array from a Document it already formated right for
  * inserting in Couchdb
  * 
  * @param JForg_Dodb_Document $doc  The document to format
  * 
  * @return array
  * @author Bahtiar Gadimov <*****@*****.**>
  */
 protected function _docToArray(JForg_Dodb_Document $doc)
 {
     $data = $doc->toArray();
     if (isset($data['id'])) {
         $data['special']['_id'] = $data['id'];
         unset($data['id']);
     }
     return array_merge($data['data'], $data['special']);
 }