コード例 #1
0
ファイル: Database.php プロジェクト: bombayworks/currycms
 /**
  * Constructor.
  */
 public function __construct(\Curry\App $app)
 {
     parent::__construct($app);
     // Override and increase max execution time if set
     $timeLimit = ini_get('max_execution_time');
     if ($timeLimit && $timeLimit < 250) {
         @set_time_limit(250);
     }
     \Propel::disableInstancePooling();
     \Propel::setLogger(null);
     // make sure all classes are included
     foreach (Propel::getModels() as $classes) {
         foreach ($classes as $clazz) {
             class_exists($clazz . 'Peer', true);
         }
     }
 }
コード例 #2
0
ファイル: FileBrowser.php プロジェクト: bombayworks/currycms
 /**
  * Constructor
  */
 public function __construct(\Curry\App $app)
 {
     parent::__construct($app);
     $this->rootPath = $this->app['wwwPath'] . DIRECTORY_SEPARATOR;
 }