support for created_by
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
|
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//define the conference center class
|
//define the conference center class
|
||||||
@@ -36,6 +37,7 @@
|
|||||||
private $fields;
|
private $fields;
|
||||||
public $search;
|
public $search;
|
||||||
public $count;
|
public $count;
|
||||||
|
public $created_by;
|
||||||
|
|
||||||
public function room_count() {
|
public function room_count() {
|
||||||
//get the room count
|
//get the room count
|
||||||
@@ -49,6 +51,11 @@
|
|||||||
if (isset($this->search)) {
|
if (isset($this->search)) {
|
||||||
$sql .= "and r.meeting_uuid = '".$this->meeting_uuid."' ";
|
$sql .= "and r.meeting_uuid = '".$this->meeting_uuid."' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($this->created_by)) {
|
||||||
|
$sql .= "and created_by = '".$this->created_by."' ";
|
||||||
|
}
|
||||||
|
|
||||||
$prep_statement = $this->db->prepare(check_sql($sql));
|
$prep_statement = $this->db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
@@ -80,6 +87,9 @@
|
|||||||
if (isset($this->search)) {
|
if (isset($this->search)) {
|
||||||
$sql .= "and r.meeting_uuid = '".$this->meeting_uuid."' ";
|
$sql .= "and r.meeting_uuid = '".$this->meeting_uuid."' ";
|
||||||
}
|
}
|
||||||
|
if (isset($this->created_by)) {
|
||||||
|
$sql .= "and r.created_by = '".$this->created_by."' ";
|
||||||
|
}
|
||||||
if (strlen($this->order_by) == 0) {
|
if (strlen($this->order_by) == 0) {
|
||||||
$sql .= "order by r.description, r.meeting_uuid asc ";
|
$sql .= "order by r.description, r.meeting_uuid asc ";
|
||||||
} else {
|
} else {
|
||||||
@@ -136,10 +146,11 @@
|
|||||||
$conference_center->domain_uuid = $_SESSION['domain_uuid'];
|
$conference_center->domain_uuid = $_SESSION['domain_uuid'];
|
||||||
$conference_center->rows_per_page = 150;
|
$conference_center->rows_per_page = 150;
|
||||||
$conference_center->offset = 0;
|
$conference_center->offset = 0;
|
||||||
|
$conference_center->created_by = uuid;
|
||||||
$conference_center->order_by = $order_by;
|
$conference_center->order_by = $order_by;
|
||||||
$conference_center->order = $order;
|
$conference_center->order = $order;
|
||||||
$result = $conference_center->rooms();
|
$result = $conference_center->rooms();
|
||||||
print_r($result);
|
print_r($result);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user