Example #1
0
 public function __construct($cssFile = 'Index')
 {
     $this->cssFile = func_num_args() > 0 ? func_get_arg(0) : WebUtils::baseURI();
     if (trim($this->cssFile) == false) {
         $this->cssFile = 'Index';
     }
     parent::__construct(['kind' => 'link', 'attr' => ['rel' => 'stylesheet', 'type' => 'text/css', 'href' => &$this->path, 'media' => 'all']]);
 }
Example #2
0
 /**
  * Generates web page title.
  * @param  string $filename [description]
  * @param  [type] $flag     [description]
  * @return [type]           [description]
  */
 private static function getTitle($flag)
 {
     $filename = WebUtils::baseURI();
     return self::formatTitle($filename, $flag);
 }