Example #1
0
 /**
  * Constructor have to only be called by View
  *
  * @param String $file
  */
 public function __construct($file, $type)
 {
     // Pass by a variable because assert will change the call events ^^
     $calling = Tools::getCallingClass();
     assert('$calling == "View"');
     $this->file = View::getFileName($file, $type);
     $this->type = $type;
 }