예제 #1
0
파일: Imports.php 프로젝트: aklump/kit_php
 /**
 * Constructor
 *
 * @param type $source
 *   (Optional) Defaults to NULL. Can be a string, in which case you need to
     set $is_file to FALSE.  Otherwise the string should be a path to a file.
   @param bool $is_file
 */
 public function __construct($source = NULL, $is_file = TRUE)
 {
     $this->dirname = '';
     if ($source && $is_file) {
         $info = pathinfo($source);
         $this->dirname = $info['dirname'];
     }
     parent::__construct($source, $is_file);
     $this->imports = array();
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param type $source
  *   (Optional) Defaults to NULL.
  */
 public function __construct($source = NULL, $is_file = TRUE)
 {
     parent::__construct($source, $is_file);
     $this->variables = array();
     $this->declarations = array();
 }