function __construct($raw_path_or_class_name, $include_path = '') { $raw_path_or_class_name = $this->_parseConstants($raw_path_or_class_name); if ($include_path) { $this->include_path = $include_path; } elseif (WactTemplate::isFileReadable($raw_path_or_class_name . '.class.php')) { $this->include_path = $raw_path_or_class_name . '.class.php'; } $this->class_name = end(explode('/', $raw_path_or_class_name)); }
public function readTemplateFile($file_name) { if (WactTemplate::isFileReadable($file_name)) { return file_get_contents($file_name, 1); } }