Exemplo n.º 1
0
 public function WebPage($dbObj = null, $tableName = 'webpage')
 {
     self::$dbObj = $dbObj;
     self::$tableName = $tableName;
     /** Class autoload method 
      * @param string $className Name of the class or filename
      */
     function autoLoadClasses($className)
     {
         $path = CLASSES_PATH;
         $fullpath = $path . sprintf("%s", $className . ".php");
         if (file_exists($fullpath)) {
             return include $fullpath;
         } else {
             echo $fullpath;
         }
     }
     spl_autoload_register('autoLoadClasses');
 }