Example #1
0
 /**
  * Create a new SelectableRoute object.
  *
  * @param boolean $fixed If the SelectableRoute is fixed.
  * @param boolean $required If the SelectableRoutei is required.
  * @param boolean $visible If the SelectableRoute is visible.
  * @param boolean $keepTogether If the SelectableRoute must be kept together.
  */
 public function __construct($fixed = false, $required = false, $visible = true, $keepTogether = true)
 {
     parent::__construct();
     $this->setFixed($fixed);
     $this->setRequired($required);
     $this->setVisible($visible);
     $this->setKeepTogether($keepTogether);
 }
Example #2
0
 /**
  * @param Route $route The unparsed route whose properties we are copying
  */
 public function __construct(Route $route)
 {
     parent::__construct($route->getMethods(), $route->getRawPath(), $route->getController());
     $this->setName($route->getName());
     $this->setRawHost($route->getRawHost());
     $this->addMiddleware($route->getMiddleware());
     $this->setSecure($route->isSecure());
     $this->setVarRegexes($route->varRegexes);
 }
Example #3
0
 /**
  * RouteLink constructor.
  *
  * @param $params
  * @param \HBM\DatagridBundle\Model\Route $route
  */
 public function __construct($params, Route $route)
 {
     parent::__construct();
     $this->params = $params;
     if ($route !== NULL) {
         $this->name = $route->getName();
         $this->defaults = $route->getDefaults();
     }
 }
Example #4
0
 /**
  * @param string $path
  * @param array $parameter
  */
 public function __construct($actionName, $path, $description = 'no description')
 {
     parent::__construct(self::TYPE_HEAD, $actionName, $path, $description);
 }
Example #5
0
 function __construct($pattern, $args = array())
 {
     parent::__construct($pattern, $args);
 }
Example #6
0
File: Get.php Project: neckro/Hooch
 public function __construct($app, $pattern, $callback, $name = null)
 {
     parent::__construct($app, 'GET', $pattern, $callback, $name);
 }
Example #7
0
 /**
  * @param string $method
  * @param string $route
  * @param callable $callback
  */
 public function __construct($method, $route, $callback)
 {
     parent::__construct($route, $callback);
     $this->method = strtoupper($method);
 }