Rename 'trial' to 'experiment'

This commit is contained in:
Eike Foken
2011-09-08 01:37:32 +02:00
parent 33e116ed60
commit 7b329f4501
25 changed files with 341 additions and 277 deletions

View File

@@ -1,5 +1,4 @@
<?php
<?php defined('BASEPATH') || exit('No direct script access allowed');
/*
* Copyright (c) 2011 Karsten Heiken <karsten@disposed.de>
*
@@ -85,11 +84,22 @@ class Server extends CI_Model {
get_where('servers', 'workload <= 2')->row_array();
}
/**
*
* @param string $secret
*/
public function getBySecret($secret) {
return $this->db->get_where('servers', array('secret' => $secret))->row();
}
public function getById($server_id) {
return $this->db->get_where('servers', array('id' => $server_id))->row();
/**
*
* @param string $serverId
*/
public function getById($serverId) {
return $this->db->get_where('servers', array('id' => $serverId))->row();
}
}
/* End of file server.php */
/* Location: ./application/models/server.php */