Rename get to getById in project controller

This commit is contained in:
Karsten Heiken
2011-07-28 20:18:04 +02:00
parent 5cf99a7640
commit 2a8f4e1b97

View File

@@ -52,7 +52,7 @@ class Project extends CI_Model {
* *
* @param type $project_id The project to get. * @param type $project_id The project to get.
*/ */
public function get($project_id) { public function getById($project_id) {
$result = $this->db->get_where('projects', array('id' => $project_id))->row_array(); $result = $this->db->get_where('projects', array('id' => $project_id))->row_array();
$this->db->where('id', $project_id)->update('projects', array( $this->db->where('id', $project_id)->update('projects', array(
'lastaccess' => mysql_now(), 'lastaccess' => mysql_now(),