private function LoadDocumentObjects()
 {
     $db = new \Library\DAL\Managers('PDO', $this->app());
     $dal = $db->getManagerOf("Document", false);
     if (isset($this->dataPost["itemCategory"]) and isset($this->dataPost["itemId"]) and is_numeric($this->dataPost["itemId"])) {
         return $dal->selectManyByCategoryAndId($this->dataPost["itemCategory"], $this->dataPost["itemId"]);
     } else {
         return array();
     }
 }
Example #2
0
 public static function AddLogToDatabase($app, $log)
 {
     $db = new \Library\DAL\Managers('PDO', $app);
     $dal = $db->getManagerOf("Log", TRUE);
     $dal->Add($log);
 }
 private function AddDocumentToDatabase($document)
 {
     $db = new \Library\DAL\Managers('PDO', $this->app());
     $dal = $db->getManagerOf("Document", TRUE);
     $dal->add($document);
 }