コード例 #1
0
 /**
  * @param array $path
  * @param array $options
  * @param string $basePath
  */
 public function __construct($path, $options = [], $basePath = WEBROOT_DIR)
 {
     $this->path = $path;
     if ($this->_isAbsoluteUrl($path)) {
         $this->absolute = true;
     } else {
         $this->basePath = $basePath;
     }
     parent::__construct($options);
 }
コード例 #2
0
 /**
  * @param $type
  * @param $url
  * @param array $options
  */
 public function __construct($type, $url, $options = [])
 {
     $this->build($type, $url, $options);
     parent::__construct();
 }
コード例 #3
0
 /**
  * @param string $name
  * @param mixed $value
  * @param array $options
  */
 public function __construct($name, $value = null, $options = [])
 {
     $this->name = $name;
     $this->value = $value;
     parent::__construct($options);
 }
コード例 #4
0
 /**
  * @param $name
  * @param null $value
  */
 public function __construct($name, $value = NULL)
 {
     $this->name = $name;
     $this->value = $value;
     parent::__construct();
 }