This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Count records for a given table | |
* | |
* @param string table name | |
* @param array WHERE conditions | |
* @return int | |
*/ | |
public function count_records($table = FALSE, $where = NULL) | |
{ | |
$this->_select = array(array('COUNT("*")', 'records_found')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modules/database/classes/database.php, Line 238 | |
if (FALSE !== $dotpos = strpos($value, '.')) | |
{ | |
if (substr($value, -1) == '*') | |
{ | |
return $this->_identifier.substr($value, 0, $dotpos).$this->_identifier.'.*'; | |
} | |
// Dots are used to separate schema, table, and column names | |
$value = str_replace('.', "{$this->_identifier}.{$this->_identifier}", $value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Kohana_Input { | |
protected static $user_agent = FALSE; | |
public static function get($key = NULL, $default = NULL) { | |
return self::find_key($_GET, $key, $default); | |
} |
NewerOlder