/home/beta/public_html/vendors/minphp/db/src/PdoConnection.php
array(1) {
[0]=>
array(1) {
[0]=>
string(1) "3"
}
}
/home/beta/public_html/vendors/minphp/record/src/Record.php
array(2) {
[0]=>
string(285) "SELECT `support_departments`.*, COUNT(`support_staff_departments`.`staff_id`) AS `assigned_staff` FROM `support_departments` LEFT JOIN `support_staff_departments` ON `support_staff_departments`.`department_id`=`support_departments`.`id` WHERE `id`=? GROUP BY `support_departments`.`id`"
[1]=>
array(1) {
[0]=>
string(1) "3"
}
}
/home/beta/public_html/plugins/support_manager/models/support_manager_departments.php
/home/beta/public_html/plugins/support_manager/controllers/client_tickets.php
array(1) {
[0]=>
string(1) "3"
}
/home/beta/public_html/vendors/minphp/bridge/src/Lib/Dispatcher.php
/home/beta/public_html/index.php
array(1) {
[0]=>
string(44) "/plugin/support_manager/client_tickets/add/3"
}
* Get the last inserted ID
*
* @param string $name The name of the sequence object from which the ID should be returned
* @return string The last ID inserted, if available
*/
public function lastInsertId($name = null)
{
return $this->connect()->lastInsertId($name);
}
/**
* Sets the given value to the given attribute for this connection
*
* @param long $attribute The attribute to set
* @param int $value The value to assign to the attribute
* @return PdoConnection
*/
public function setAttribute($attribute, $value)
{
$this->connect()->setAttribute($attribute, $value);
return $this;
}
/**
* Query the Database using the given prepared statement and argument list
*
* @param string $sql The SQL to execute
* @param string $... Bound parameters [$param1, $param2, ..., $paramN]
* @return PDOStatement The resulting PDOStatement from the execution of this query
*/
public function query($sql)
{
$params = func_get_args();
// Shift the SQL parameter off of the list
array_shift($params);
// If 2nd param is an array, use it as the series of params, rather than
// the rest of the param list
if (isset($params[0]) && is_array($params[0])) {
$params = $params[0];
}
$this->connect();
// Store this statement in our PDO object for easy use later
$this->statement = $this->prepare($sql, $this->fetchMode);
// Execute the query
$this->statement->execute($params);
// Return the statement
return $this->statement;
}
/**
* Prepares an SQL statement to be executed by the PDOStatement::execute() method.
* Useful when executing the same query with different bound parameters.
*
* @param string $sql The SQL statement to prepare
* @param int $fetchMode The PDO::FETCH_* constant
* @return PDOStatement The resulting PDOStatement from the preparation of this query
* @see PDOStatement::execute()
*/
public function prepare($sql, $fetchMode = null)
{
if ($fetchMode === null) {
$fetchMode = $this->fetchMode;
}
$this->statement = $this->connect()->prepare($sql);
// Set the default fetch mode for this query
$this->statement->setFetchMode($fetchMode);
return $this->statement;
}
/**
* Begin a transaction
*
* @return boolean True if the transaction was successfully opened, false otherwise
*/
public function begin()
{
return $this->connect()->beginTransaction();
}
/**
* Rolls back and closes the transaction
*
* @return boolean True if the transaction was successfully rolled back and closed, false otherwise
*/
public function rollBack()
{
return $this->connect()->rollBack();
}
/**