gyro/core/controller/base/routes/parameterizedroutehandlers/int.handler.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Handle int (the "i" type) 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Controller 00007 */ 00008 class IntParameterizedRouteHandler implements IParameterizedRouteHandler { 00009 /** 00010 * Returns the key that is used to identify this handler in route declaration, e.g. "s" or "ui>" 00011 * 00012 * @return string 00013 */ 00014 public function get_type_key() { 00015 return "i"; 00016 } 00017 00018 /** 00019 * Return regex to validate path 00020 */ 00021 public function get_validate_regex($params) { 00022 return '[+-]?[0-9][0-9]*'; 00023 } 00024 00025 /** 00026 * Preprocess a value before URL is build 00027 */ 00028 public function preprocess_build_url($value) { 00029 return $value; 00030 } 00031 }