Ejemplo n.º 1
0
 public function __construct($tableName, $key = null, $value = null)
 {
     $this->tableName = $tableName;
     if (!Tools::isNull($key, $value)) {
         $this->where($key, $value);
     }
 }
Ejemplo n.º 2
0
 function __construct()
 {
     $http_get = new HttpGet();
     $this->raw = preg_replace('/(\\.(html|php)$)|(\\/$)/', '', $http_get->getOrElse("route", self::DEFAULT_ROUTE));
     $route_array = explode("/", $this->raw);
     error_log(sprintf("::: %s :::", $this->raw));
     end($route_array);
     $key = key($route_array);
     $route_array[$key] = "Do" . ucfirst($route_array[$key]);
     reset($route_array);
     $this->route = Tools::turnSlashes(FIXED_ROUTES_PATH . implode('/', $route_array));
     $this->default_handler = Option::None();
 }
Ejemplo n.º 3
0
 public static function class_init()
 {
     self::$session_id = Tools::generateRandomKey(5);
 }