/membri/cmif/framework/db/ar/CActiveRecord.php(145)
133 */ 134 public function __get($name) 135 { 136 if(isset($this->_attributes[$name])) 137 return $this->_attributes[$name]; 138 elseif(isset($this->getMetaData()->columns[$name])) 139 return null; 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. 151 * @param string $name property name 152 * @param mixed $value property value 153 */ 154 public function __set($name,$value) 155 { 156 if($this->setAttribute($name,$value)===false) 157 {
#0 |
+
–
/membri/cmif/framework/db/ar/CActiveRecord.php(145): CComponent->__get("season") 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. |
#1 |
+
–
/membri/cmif/public/protected/models/ModelFiles/ReadingFiles.php(82): CActiveRecord->__get("season") 77 * Returns the season folder 78 * @return string the season folder 79 */ 80 public function getSeasonFolder() 81 { 82 return $this->_meeting->season; 83 } 84 } 85 |
#2 |
+
–
/membri/cmif/public/protected/models/ModelFiles/ModelFiles.php(309): ReadingFiles->getSeasonFolder() 304 * @return string the tail path of the files of type $type 305 */ 306 protected function getTailPath($type) 307 { 308 return Path::buildPath(array( 309 $this->getSeasonFolder(), 310 $this->getFileName($type) 311 )); 312 } 313 314 /** |
#3 |
+
–
/membri/cmif/public/protected/models/ModelFiles/ModelFiles.php(220): ModelFiles->getTailPath("text") 215 */ 216 public function getFilePath($type) 217 { 218 $result = Path::buildPath(array( 219 $this->getSectionPath($type), 220 $this->getTailPath($type) 221 )); 222 return $result; 223 } 224 225 /** |
#4 |
+
–
/membri/cmif/public/protected/models/ModelFiles/ModelFiles.php(473): ModelFiles->getFilePath("text") 468 /** 469 * @return string the file name, only if the file exists 470 */ 471 public function getFileFile($type) 472 { 473 $path = $this->getFilePath($type); 474 if(file_exists($path)) 475 $result = $path; 476 else $result = ''; 477 return $result; 478 } |
#5 |
+
–
/membri/cmif/public/protected/models/ModelFiles/ModelFilesManager.php(81): ModelFiles->getFileFile("text") 76 if($files !== null) 77 { 78 foreach($this->filesTypes() as $prop => $type) 79 { 80 if(property_exists($this->_model, $prop)) 81 $this->_model->$prop = $this->files()->getFileFile($type); 82 } 83 } 84 } 85 86 /** |
#6 |
+
–
/membri/cmif/framework/base/CComponent.php(561): ModelFilesManager->initFiles(CEvent) 556 // an array: 0 - object, 1 - method name 557 list($object,$method)=$handler; 558 if(is_string($object)) // static method call 559 call_user_func($handler,$event); 560 elseif(method_exists($object,$method)) 561 $object->$method($event); 562 else 563 throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".', 564 array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1]))); 565 } 566 else // PHP 5.3: anonymous function |
#7 |
+
–
/membri/cmif/framework/db/ar/CActiveRecord.php(896): CComponent->raiseEvent("onAfterFind", CEvent) 891 * This event is raised after the record is instantiated by a find method. 892 * @param CEvent $event the event parameter 893 */ 894 public function onAfterFind($event) 895 { 896 $this->raiseEvent('onAfterFind',$event); 897 } 898 899 /** 900 * Given 'with' options returns a new active finder instance. 901 * |
#8 |
+
–
/membri/cmif/framework/db/ar/CActiveRecord.php(1034): CActiveRecord->onAfterFind(CEvent) 1029 * Make sure you call the parent implementation so that the event is raised properly. 1030 */ 1031 protected function afterFind() 1032 { 1033 if($this->hasEventHandler('onAfterFind')) 1034 $this->onAfterFind(new CEvent($this)); 1035 } 1036 1037 /** 1038 * Calls {@link beforeFind}. 1039 * This method is internally used. |
#9 |
+
–
/membri/cmif/framework/db/ar/CActiveRecord.php(1052): CActiveRecord->afterFind() 1047 * Calls {@link afterFind}. 1048 * This method is internally used. 1049 */ 1050 public function afterFindInternal() 1051 { 1052 $this->afterFind(); 1053 } 1054 1055 /** 1056 * Inserts a row into the table based on this active record attributes. 1057 * If the table's primary key is auto-incremental and is null before insertion, |
#10 |
+
–
/membri/cmif/framework/db/ar/CActiveFinder.php(769): CActiveRecord->afterFindInternal() 764 * Calls {@link CActiveRecord::afterFind} of all the records. 765 */ 766 public function afterFind() 767 { 768 foreach($this->records as $record) 769 $record->afterFindInternal(); 770 foreach($this->children as $child) 771 $child->afterFind(); 772 773 $this->children = null; 774 } |
#11 |
+
–
/membri/cmif/framework/db/ar/CActiveFinder.php(69): CJoinElement->afterFind() 64 $this->_joinTree->tableAlias=$criteria->alias; 65 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($criteria->alias); 66 } 67 68 $this->_joinTree->find($criteria); 69 $this->_joinTree->afterFind(); 70 71 if($all) 72 { 73 $result = array_values($this->_joinTree->records); 74 if ($criteria->index!==null) |
#12 |
+
–
/membri/cmif/framework/db/ar/CActiveRecord.php(1356): CActiveFinder->query(CDbCriteria, true) 1351 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1352 } 1353 else 1354 { 1355 $finder=$this->getActiveFinder($criteria->with); 1356 return $finder->query($criteria,$all); 1357 } 1358 } 1359 1360 /** 1361 * Applies the query scopes to the given criteria. |
#13 |
+
–
/membri/cmif/framework/db/ar/CActiveRecord.php(1470): CActiveRecord->query(CDbCriteria, true) 1465 */ 1466 public function findAll($condition='',$params=array()) 1467 { 1468 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1469 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1470 return $this->query($criteria,true); 1471 } 1472 1473 /** 1474 * Finds a single active record with the specified primary key. 1475 * See {@link find()} for detailed explanation about $condition and $params. |
#14 |
+
–
/membri/cmif/framework/web/CActiveDataProvider.php(199): CActiveRecord->findAll(CDbCriteria) 194 $this->model->setDbCriteria($criteria); 195 $sort->applyOrder($criteria); 196 } 197 198 $this->model->setDbCriteria($baseCriteria!==null ? clone $baseCriteria : null); 199 $data=$this->model->findAll($criteria); 200 $this->model->setDbCriteria($baseCriteria); // restore original criteria 201 return $data; 202 } 203 204 /** |
#15 |
+
–
/membri/cmif/framework/web/CDataProvider.php(168): CActiveDataProvider->fetchData() 163 * @return array the list of data items currently available in this data provider. 164 */ 165 public function getData($refresh=false) 166 { 167 if($this->_data===null || $refresh) 168 $this->_data=$this->fetchData(); 169 return $this->_data; 170 } 171 172 /** 173 * Sets the data items for this provider. |
#16 |
+
–
/membri/cmif/framework/zii/widgets/CBaseListView.php(111): CDataProvider->getData() 106 public function init() 107 { 108 if($this->dataProvider===null) 109 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 110 111 $this->dataProvider->getData(); 112 113 if(isset($this->htmlOptions['id'])) 114 $this->id=$this->htmlOptions['id']; 115 else 116 $this->htmlOptions['id']=$this->id; |
#17 |
+
–
/membri/cmif/public/protected/extensions/zii/widgets/ButtonGrid.php(97): CBaseListView->init() 092 * Initializes the grid. 093 * This method will initialize required property values and instantiate {@link columns} objects. 094 */ 095 public function init() 096 { 097 parent::init(); 098 099 // The $columns property has to be set 100 if(empty($this->columns)) 101 throw new CException(Yii::t('ext','The "{property}" property cannot be empty!', array('{property}' => 'columns'))); 102 |
#18 |
+
–
/membri/cmif/framework/web/CBaseController.php(147): ButtonGrid->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#19 |
+
–
/membri/cmif/framework/web/CBaseController.php(172): CBaseController->createWidget("ext.zii.widgets.ButtonGrid", array("dataProvider" => CActiveDataProvider, "template" => "{items}", "buttonsOptions" => array("baseAccess" => "Reading", "baseUrl" => "/reading/admin/"), "columns" => array(array("name" => "meeting.date", "header" => "Incontro", "value" => "$model->getDateLinked(LinkType::LinkPage)", "htmlOptions" => array("style" => "width:80px")), array("name" => "title", "value" => "$model->title"), array("name" => "group", "value" => "$model->getGroupName(LinkType::LinkPage)", "htmlOptions" => array("style" => "width:1px;white-space:nowrap;"))), ...)) 167 $widget->run(); 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 |
#20 |
+
–
/membri/cmif/public/protected/views/contact/default/_readings.php(49): CBaseController->widget("ext.zii.widgets.ButtonGrid", array("dataProvider" => CActiveDataProvider, "template" => "{items}", "buttonsOptions" => array("baseAccess" => "Reading", "baseUrl" => "/reading/admin/"), "columns" => array(array("name" => "meeting.date", "header" => "Incontro", "value" => "$model->getDateLinked(LinkType::LinkPage)", "htmlOptions" => array("style" => "width:80px")), array("name" => "title", "value" => "$model->title"), array("name" => "group", "value" => "$model->getGroupName(LinkType::LinkPage)", "htmlOptions" => array("style" => "width:1px;white-space:nowrap;"))), ...)) 44 ), 45 'details' => array( 46 'view' => '_reading', 47 'data' => '$model', 48 ), 49 )); |
#21 |
+
–
/membri/cmif/framework/web/CBaseController.php(126): require("/membri/cmif/public/protected/views/contact/default/_readings.ph...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#22 |
+
–
/membri/cmif/framework/web/CBaseController.php(95): CBaseController->renderInternal("/membri/cmif/public/protected/views/contact/default/_readings.ph...", array("dataProvider" => CActiveDataProvider), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#23 |
+
–
/membri/cmif/framework/web/CController.php(869): CBaseController->renderFile("/membri/cmif/public/protected/views/contact/default/_readings.ph...", array("dataProvider" => CActiveDataProvider), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#24 |
+
–
/membri/cmif/public/protected/views/contact/default/details.php(61): CController->renderPartial("_readings", array("dataProvider" => CActiveDataProvider), true) 56 $dataProvider = $this->getReadingsData($this->_model->id); 57 $count = $dataProvider->totalItemCount; 58 if($count > 0) 59 { 60 $result = CHtml::tag('h2', array(), Yii::t('app', 'Reading|Readings', 2)) . 61 controller()->renderPartial('_readings', array('dataProvider' => $dataProvider), true); 62 } 63 return $result; 64 } 65 66 /** |
#25 |
+
–
/membri/cmif/public/protected/views/contact/default/details.php(47): ContactPortrait->getReadings() 42 { 43 $result = CHtml::tag('h2', array(), 'Profilo') . 44 CHtml::tag('p', array('class' => 'paranorm'), $result) . 45 CHtml::tag('div', array('style' => 'clear:both'), ''); 46 } 47 return $result . $this->getDetails() . $this->getReadings(); 48 } 49 50 /** 51 * @return 52 */ |
#26 |
+
–
/membri/cmif/public/protected/views/contact/default/details.php(13): ContactPortrait->getContent() 08 <h1><?php echo $model->name; ?></h1> 09 <?php echo $this->renderPartial('_stats', array('model' => $model)); ?> 10 11 <?php 12 $portrait = new ContactPortrait($model); 13 echo $portrait->getContent(); 14 ?> 15 16 <?php 17 /** 18 * This class helps to display the contact data |
#27 |
+
–
/membri/cmif/framework/web/CBaseController.php(126): require("/membri/cmif/public/protected/views/contact/default/details.php") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#28 |
+
–
/membri/cmif/framework/web/CBaseController.php(95): CBaseController->renderInternal("/membri/cmif/public/protected/views/contact/default/details.php", array("model" => Contact), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#29 |
+
–
/membri/cmif/framework/web/CController.php(869): CBaseController->renderFile("/membri/cmif/public/protected/views/contact/default/details.php", array("model" => Contact), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#30 |
+
–
/membri/cmif/framework/web/CController.php(782): CController->renderPartial("details", array("model" => Contact), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#31 |
+
–
/membri/cmif/public/protected/components/Controller.php(44): CController->render("details", array("model" => Contact), false) 39 /** 40 * Overrides the render function in order to set the $data and $return 41 * parameter optional 42 */ 43 public function render($view, $data = null, $return = false) { 44 return parent::render($view, $data, $return); 45 } 46 47 /** 48 * Registers meta tags, link tags, css files, scripts and what ever else 49 */ |
#32 |
+
–
/membri/cmif/public/protected/controllers/contact/DefaultController.php(26): Controller->render("details", array("model" => Contact)) 21 */ 22 public function actionDetails($id) 23 { 24 $this->render('details', array( 25 'model' => $this->loadModel($id), 26 )); 27 } 28 29 /** 30 * Responds to the ajax request in the list view for displaying ths site contacts 31 * and the groups contacts, ordered by the user choice. |
#33 |
unknown(0): DefaultController->actionDetails("111")
|
#34 |
+
–
/membri/cmif/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(DefaultController, array("111")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#35 |
+
–
/membri/cmif/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(DefaultController, ReflectionMethod, array("id" => "111")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#36 |
+
–
/membri/cmif/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "111")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#37 |
+
–
/membri/cmif/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#38 |
+
–
/membri/cmif/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#39 |
+
–
/membri/cmif/framework/web/CWebApplication.php(283): CController->run("details") 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))); |
#40 |
+
–
/membri/cmif/public/protected/extensions/web/WebApplication.php(26): CWebApplication->runController("contact/default/details/id/111") 21 public function runController($route) 22 { 23 // Denies access to old browsers 24 if(Browser::isIE() && Browser::isLtIE9()) 25 header("location: //cmif/public/index-ie8.php"); 26 else parent::runController($route); 27 } 28 } 29 ?> |
#41 |
+
–
/membri/cmif/framework/web/CWebApplication.php(142): WebApplication->runController("contact/default/details/id/111") 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 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. |
#42 |
+
–
/membri/cmif/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#43 |
+
–
/membri/cmif/public/index.php(17): CApplication->run() 12 13 require_once($yii); 14 require_once($app); 15 16 //Yii::createWebApplication($config)->run(); 17 Yii::createApplication('WebApplication',$config)->run(); 18 ?> |