Rename a few classes, fix bugs, fix syntax

This commit is contained in:
osaajani 2019-11-06 20:34:26 +01:00
parent 7cb963b8cf
commit bda1c7ddfd
18 changed files with 106 additions and 37 deletions

View file

@ -58,18 +58,17 @@ namespace models;
return isset($contacts[0]) ? $contacts[0] : false;
}
/**
* Get contacts of a particular group
* Get contacts of a particular group.
*
* @param int $id_group : Id of the group we want contacts for
*
* @return array
*/
public function get_by_group($id_group)
{
$contacts = $this->_select('contact', ['id_group' => $id_group]);
return $contacts;
return $this->_select('contact', ['id_group' => $id_group]);
}
/**