/var/www/clients/client12/web26/web/yii/framework/db/ar/CActiveRecord.php(2310)
2298 private $_model; 2299 2300 /** 2301 * Constructor. 2302 * @param CActiveRecord $model the model instance 2303 */ 2304 public function __construct($model) 2305 { 2306 $this->_model=$model; 2307 2308 $tableName=$model->tableName(); 2309 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2310 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2311 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2312 if($table->primaryKey===null) 2313 { 2314 $table->primaryKey=$model->primaryKey(); 2315 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2316 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2317 elseif(is_array($table->primaryKey)) 2318 { 2319 foreach($table->primaryKey as $name) 2320 { 2321 if(isset($table->columns[$name])) 2322 $table->columns[$name]->isPrimaryKey=true;
#0 |
+
–
/var/www/clients/client12/web26/web/yii/framework/db/ar/CActiveRecord.php(387): CActiveRecordMetaData->__construct(Title) 382 if(isset(self::$_models[$className])) 383 return self::$_models[$className]; 384 else 385 { 386 $model=self::$_models[$className]=new $className(null); 387 $model->_md=new CActiveRecordMetaData($model); 388 $model->attachBehaviors($model->behaviors()); 389 return $model; 390 } 391 } 392 |
#1 |
+
–
/var/www/clients/client12/web26/web/protected/models/Title.php(19): CActiveRecord::model("Title") 14 * Returns the static model of the specified AR class. 15 * @return CActiveRecord the static model class 16 */ 17 public static function model($className=__CLASS__) 18 { 19 return parent::model($className); 20 } 21 22 /** 23 * @return string the associated database table name 24 */ |
#2 |
+
–
/var/www/clients/client12/web26/web/protected/components/Controller.php(39): Title::model() 34 yii::app()->request->cookies['currentTheme'] = $cookie; 35 } 36 37 public function getCurrentTitle() { 38 if (yii::app()->request->cookies['currentTitleID'] == null || yii::app()->request->cookies['currentTheme'] == null) { 39 $title = Title::model()->findByAttributes(array("firm_id" => Yii::app()->params['firmID'])); 40 if ($title == null) { 41 throw new Exception("Kiosk nieaktywny. Brak tytułów"); 42 } 43 $this->setCurrentTitle($title->id); 44 } |
#3 |
+
–
/var/www/clients/client12/web26/web/protected/components/Controller.php(12): Controller->getCurrentTitle() 07 08 //@todo: dodać odpytaywanie o katalog 09 public function init() { 10 parent::init(); 11 12 $titleData = $this->getCurrentTitle(); 13 14 yii::app()->params['currentTitleID'] = $titleData["titleID"]; 15 yii::app()->theme = $titleData["theme"]; 16 17 $this->getAutoIDs(); |
#4 |
+
–
/var/www/clients/client12/web26/web/protected/controllers/PaperController.php(7): Controller->init() 02 03 class PaperController extends Controller 04 { 05 public function init() 06 { 07 parent::init(); 08 09 $this->defaultAction = "issue"; 10 } 11 12 /** |
#5 |
+
–
/var/www/clients/client12/web26/web/yii/framework/web/CWebApplication.php(281): PaperController->init() 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#6 |
+
–
/var/www/clients/client12/web26/web/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#7 |
+
–
/var/www/clients/client12/web26/web/yii/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#8 |
+
–
/var/www/clients/client12/web26/web/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 10 11 require_once($yii); 12 13 $app = Yii::createWebApplication($config)->run(); 14 15 //print "test"; 16 17 ?> |