Exemplo n.º 1
0
 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 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();
 }