function addRelationship($people, $relative, $relation = NULL, $accepted = true)
 {
     $data = array('people' => $people, 'relative' => $relative, 'relation' => $relation, 'accepted' => $accepted);
     $data += uidTime(false);
     $this->db->insert('people_relationship', $data);
     return $this->db->insert_id();
 }
Exemple #2
0
 function addStatus($item_id, $name, $date, $content = NULL, $team = NULL, $comment = NULL)
 {
     $data = array($this->table => $item_id, 'name' => $name, 'date' => $date, 'content' => $content, 'team' => $team, 'comment' => $comment);
     $data += uidTime(false);
     $this->db->insert($this->table . '_status', $data);
     return $this->db->insert_id();
 }
 function addDocument($project_id, $document_id)
 {
     $project_id = intval($project_id);
     $document_id = intval($document_id);
     $data = array('project' => $project_id, 'document' => $document_id);
     $data += uidTime(false);
     $this->db->insert('project_document', $data);
     return $this->db->insert_id();
 }