/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDB.php(144)
132 try 133 { 134 Yii::trace('Opening MongoDB connection', 'ext.MongoDb.EMongoDB'); 135 if(empty($this->connectionString)) 136 throw new EMongoException(Yii::t('yii', 'EMongoDB.connectionString cannot be empty.')); 137 138 if($this->persistentConnection !== false) 139 $this->_mongoConnection = new Mongo($this->connectionString, array( 140 'connect'=>$this->autoConnect, 141 'persist'=>$this->persistentConnection 142 )); 143 else 144 $this->_mongoConnection = new Mongo($this->connectionString, array( 145 'connect'=>$this->autoConnect, 146 )); 147 148 return $this->_mongoConnection; 149 } 150 catch(MongoConnectionException $e) 151 { 152 throw new EMongoException(Yii::t( 153 'yii', 154 'EMongoDB failed to open connection: {error}', 155 array('{error}'=>$e->getMessage()) 156 ), $e->getCode());
#0 |
+
–
/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDB.php(181): EMongoDB->getConnection() 176 * @since v1.0 177 */ 178 public function getDbInstance() 179 { 180 if($this->_mongoDb === null) 181 return $this->_mongoDb = $this->getConnection()->selectDB($this->dbName); 182 else 183 return $this->_mongoDb; 184 } 185 186 /** |
#1 |
+
–
/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(221): EMongoDB->getDbInstance() 216 * @return MongoDB 217 * @since v1.0 218 */ 219 public function getDb() 220 { 221 return $this->getMongoDBComponent()->getDbInstance(); 222 } 223 224 /** 225 * This method must return collection name for use with this model 226 * this must be implemented in child classes |
#2 |
+
–
/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(246): EMongoDocument->getDb() 241 * @since v1.0 242 */ 243 public function getCollection() 244 { 245 if(!isset(self::$_collections[$this->getCollectionName()])) 246 self::$_collections[$this->getCollectionName()] = $this->getDb()->selectCollection($this->getCollectionName()); 247 248 return self::$_collections[$this->getCollectionName()]; 249 } 250 251 /** |
#3 |
+
–
/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(442): EMongoDocument->getCollection() 437 { 438 parent::init(); 439 440 if($this->ensureIndexes && !isset(self::$_indexes[$this->getCollectionName()])) 441 { 442 $indexInfo = $this->getCollection()->getIndexInfo(); 443 array_shift($indexInfo); // strip out default _id index 444 445 $indexes = array(); 446 foreach($indexInfo as $index) 447 { |
#4 |
+
–
/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(152): EMongoDocument->init() 147 return; 148 149 $this->setScenario($scenario); 150 $this->setIsNewRecord(true); 151 152 $this->init(); 153 154 $this->attachBehaviors($this->behaviors()); 155 $this->afterConstruct(); 156 157 $this->initEmbeddedDocuments(); |
#5 |
+
–
/data/infoEzProduction/protected/controllers/PromoController.php(170): EMongoDocument->__construct() 165 /** 166 * Displays the contact page 167 */ 168 public function actionContact() 169 { 170 $model = new PromoContactInfo(); 171 if (isset($_POST['PromoContactInfo'])) { 172 $model->attributes = $_POST['PromoContactInfo']; 173 if ($model->save(true)) { 174 Yii::app()->user->setFlash('contact', 'Thank you for contacting us. We will respond to you as soon as possible.'); 175 $model->sendEmail(); |
#6 |
+
–
/data/infoEzProduction/framework/web/actions/CInlineAction.php(50): PromoController->actionContact() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#7 |
+
–
/data/infoEzProduction/framework/web/CController.php(309): CInlineAction->runWithParams(array()) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#8 |
+
–
/data/infoEzProduction/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/data/infoEzProduction/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#10 |
+
–
/data/infoEzProduction/framework/web/CWebApplication.php(283): CController->run("contact") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/data/infoEzProduction/framework/web/CWebApplication.php(142): CWebApplication->runController("promo/contact") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
–
/data/infoEzProduction/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#13 |
+
–
/data/infoEzProduction/index.php(36): CApplication->run() 31 print_r($env->configWeb); 32 die(); 33 */ 34 $app = Yii::createWebApplication($env->configWeb); 35 36 $app->run(); |