コード例 #1
0
 /**
  * Create a new forum file node using the specified object values
  *
  * @param mixed $node
  *           Forum File Node object
  * @throws PDOException
  * @return mixed new Forum File Node object with GUID assigned by server
  */
 public function createFileNode($node)
 {
     try {
         if (!isset($node['id']) || strlen($node['id']) < 2) {
             $node['id'] = AppUtils::guid();
         }
         $this->db->forum_file_node()->insert((array) $node);
         // AppUtils::logDebug(
         // "Created file node with ID: {" . $node['id'] . "} and parentId {" .
         // $node['parentId'] . "}");
         return $node;
     } catch (Exception $e) {
         throw $e;
     }
 }