/var/www/hosts/framework/web/helpers/CHtml.php(103)
091 */ 092 private static $_modelNameConverter; 093 094 /** 095 * Encodes special characters into HTML entities. 096 * The {@link CApplication::charset application charset} will be used for encoding. 097 * @param string $text data to be encoded 098 * @return string the encoded data 099 * @see http://www.php.net/manual/en/function.htmlspecialchars.php 100 */ 101 public static function encode($text) 102 { 103 return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset); 104 } 105 106 /** 107 * Decodes special HTML entities back to the corresponding characters. 108 * This is the opposite of {@link encode()}. 109 * @param string $text data to be decoded 110 * @return string the decoded data 111 * @see http://www.php.net/manual/en/function.htmlspecialchars-decode.php 112 * @since 1.1.8 113 */ 114 public static function decode($text) 115 {
| #0 |
+
–
/var/www/hosts/framework/web/helpers/CHtml.php(103): htmlspecialchars() 098 * @return string the encoded data 099 * @see http://www.php.net/manual/en/function.htmlspecialchars.php 100 */ 101 public static function encode($text) 102 { 103 return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset); 104 } 105 106 /** 107 * Decodes special HTML entities back to the corresponding characters. 108 * This is the opposite of {@link encode()}. |
| #1 |
+
–
/var/www/hosts/framework/web/helpers/CHtml.php(2610): CHtml::encode() 2605 if(self::$renderSpecialAttributesValue) 2606 $html .= '="' . $name . '"'; 2607 } 2608 } 2609 elseif($value!==null) 2610 $html .= ' ' . $name . '="' . ($raw ? $value : self::encode($value)) . '"'; 2611 } 2612 2613 return $html; 2614 } 2615 } |
| #2 |
+
–
/var/www/hosts/framework/web/helpers/CHtml.php(158): CHtml::renderAttributes() 153 * @param boolean $closeTag whether to generate the close tag. 154 * @return string the generated HTML element tag 155 */ 156 public static function tag($tag,$htmlOptions=array(),$content=false,$closeTag=true) 157 { 158 $html='<' . $tag . self::renderAttributes($htmlOptions); 159 if($content===false) 160 return $closeTag && self::$closeSingleTags ? $html.' />' : $html.'>'; 161 else 162 return $closeTag ? $html.'>'.$content.'</'.$tag.'>' : $html.'>'.$content; 163 } |
| #3 |
+
–
/var/www/hosts/framework/web/helpers/CHtml.php(442): CHtml::tag() 437 */ 438 public static function image($src,$alt='',$htmlOptions=array()) 439 { 440 $htmlOptions['src']=$src; 441 $htmlOptions['alt']=$alt; 442 return self::tag('img',$htmlOptions); 443 } 444 445 /** 446 * Generates a button. 447 * @param string $label the button label |
| #4 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/videoseminars/components/views/RandomLessonWidget.php(58): CHtml::image() 53 <div> 54 <?php foreach ($model as $videoseminar): ?> 55 <div class="row mrg-t-30"> 56 <div class="span5"> 57 <a href="<?= Yii::app()->createUrl($module_url . $videoseminar->id); ?>" class="mrg-r-10 show-block"> 58 <?php echo CHtml::image($videoseminar->thumbnails, array('width'=>'100%')) ?> 59 </a> 60 </div> 61 <div class="span7"> 62 <h5 class="mrg-0"><?php echo CHtml::link($videoseminar->title, Yii::app()->createUrl($module_url . $videoseminar->id)) ?></h5> 63 </div> |
| #5 |
+
–
/var/www/hosts/framework/web/CBaseController.php(130): require("/var/www/hosts/lk.usoft.ru/protected/modules/videoseminars/compo...") 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } 132 133 /** 134 * Creates a widget and initializes it. 135 * This method first creates the specified widget instance. |
| #6 |
+
–
/var/www/hosts/framework/web/CBaseController.php(95): CBaseController->renderInternal() 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); |
| #7 |
+
–
/var/www/hosts/framework/web/widgets/CWidget.php(244): CBaseController->renderFile() 239 * @see getViewFile 240 */ 241 public function render($view,$data=null,$return=false) 242 { 243 if(($viewFile=$this->getViewFile($view))!==false) 244 return $this->renderFile($viewFile,$data,$return); 245 else 246 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 247 array('{widget}'=>get_class($this), '{view}'=>$view))); 248 } 249 } |
| #8 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/videoseminars/components/InfoBlockWidget.php(72): CWidget->render() 67 } 68 $criteria->limit = $this->limit ? $this->limit : (int)Yii::app()->config->get('VideoSem.block.limit'); 69 $criteria->order = $this->order; 70 71 if (count($data = $model->actual()->findAll($criteria))) { 72 $this->render($this->viewFile, array('params' => $this->params, 'model' => $data)); 73 } 74 } 75 } 76 } |
| #9 |
+
–
/var/www/hosts/framework/web/CBaseController.php(173): InfoBlockWidget->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 178 /** |
| #10 |
+
–
/var/www/hosts/lk.usoft.ru/protected/views/frontend/education.php(38): CBaseController->widget() 33 </a> 34 </div> 35 <?php endif; ?> 36 37 38 <?php $this->widget('application.modules.videoseminars.components.InfoBlockWidget', array( 39 'order' =>' RAND() ', 40 'viewFile' =>'RandomLessonWidget', 41 'category'=>true, 42 'limit' => 3, 43 'category_id' =>0 |
| #11 |
+
–
/var/www/hosts/framework/web/CBaseController.php(126): require("/var/www/hosts/lk.usoft.ru/protected/views/frontend/education.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 } |
| #12 |
+
–
/var/www/hosts/framework/web/CBaseController.php(95): CBaseController->renderInternal() 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); |
| #13 |
+
–
/var/www/hosts/framework/web/CController.php(789): CBaseController->renderFile() 784 { 785 if($this->beforeRender($view)) 786 { 787 $output=$this->renderPartial($view,$data,true); 788 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 789 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 790 791 $this->afterRender($view,$output); 792 793 $output=$this->processOutput($output); 794 |
| #14 |
+
–
/var/www/hosts/lk.usoft.ru/protected/fcomponents/Controller.php(390): CController->render() 385 echo $this->externalTemplate($content); 386 return true; 387 } 388 } else { 389 390 return parent::render($view, $data, $return); // TODO: Change the autogenerated stub 391 } 392 } 393 394 } |
| #15 |
+
–
/var/www/hosts/lk.usoft.ru/protected/controllers/LessonsController.php(216): Controller->render() 211 { 212 $this->externalLayout = false; 213 $this->layout = '//frontend/education'; 214 $filter = Lessons::model()->with('date:actual:bydate'); // actual()->bydate(); 215 $models = $filter->findAll(); 216 $this->render('index', array( 217 'models' => $models, 218 )); 219 220 } 221 |
| #16 |
+
–
/var/www/hosts/framework/web/actions/CInlineAction.php(49): LessonsController->actionIndex() 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 } |
| #17 |
+
–
/var/www/hosts/framework/web/CController.php(312): CInlineAction->runWithParams() 307 $priorAction=$this->_action; 308 $this->_action=$action; 309 310 if ($this->beforeAction($action)) { 311 312 if ($action->runWithParams($this->getActionParams())===false) { 313 $this->invalidActionParams($action); 314 } else { 315 $this->afterAction($action); 316 } 317 } |
| #18 |
+
–
/var/www/hosts/framework/web/filters/CFilterChain.php(133): CController->runAction() 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
| #19 |
+
–
/var/www/hosts/framework/web/CController.php(294): CFilterChain->run() 289 if(empty($filters)) { 290 $this->runAction($action); 291 } else { 292 $priorAction=$this->_action; 293 $this->_action=$action; 294 CFilterChain::create($this,$action,$filters)->run(); 295 $this->_action=$priorAction; 296 } 297 } 298 299 /** |
| #20 |
+
–
/var/www/hosts/framework/web/CController.php(268): CController->runActionWithFilters() 263 if (($parent=$this->getModule())===null) { 264 $parent=Yii::app(); 265 } 266 267 if ($parent->beforeControllerAction($this,$action)) { 268 $this->runActionWithFilters($action,$this->filters()); 269 $parent->afterControllerAction($this,$action); 270 } 271 } else { 272 $this->missingAction($actionID); 273 } |
| #21 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(282): CController->run() 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}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #22 |
+
–
/var/www/hosts/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. |
| #23 |
+
–
/var/www/hosts/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 /** |
| #24 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(68): CApplication->run() 63 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 64 Yii::setPathOfAlias('core', INDEX_DIR . DIRECTORY_SEPARATOR . 'core'); 65 require_once(__DIR__ . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'vendors' . DIRECTORY_SEPARATOR . 'Loader.php'); 66 Yii::registerAutoloader(array('Loader', 'systemMainAutoload')); 67 68 Yii::createWebApplication($config_yii_path)->run(); |