/var/www/protected/modules/picture/worklets/WPictureMore.php(18)
06 public $more; 07 08 09 10 public function taskConfig() 11 { 12 13 function fileExists($path){ 14 return (@fopen($path,"r")==true); 15 } 16 $imageNumber = $this->post->imageNumber; 17 $after_effect = $this->post->after_effect;$after_effect_array = json_decode($after_effect, true); 18 $format_type = $after_effect_array["menu_image_type"];$image_type=$format_type["choice"];if($image_type==1 OR $image_type ==""){$format_type="jpg";}if($image_type==2){$format_type="png";} 19 20 /* 21 if(!fileExists("http://91.250.83.244/product/$imageNumber.jpg")){ 22 $filling_image_name = "1-nologo-".md5("1nologo".$imageNumber); 23 if(!fileExists("http://91.250.83.244/final/$filling_image_name.$format")){ 24 $new_file2 = file_get_contents('http://www.inspir.ly/image/download/postId/'.$this->post->id.'/size/1/session/0/logo/0/admin/1'); 25 } 26 $new_file = file_get_contents('http://91.250.83.244/image/create_product.php?imageNumber='.$imageNumber.'&format='.$format_type); 27 } 28 */ 29 30 $this->more .= "<a class='uModal' href='/image/product_menu/postId/".$this->post->id."/format/".$format_type."/imageNumber/".$imageNumber."'><img style='padding:5px; margin-left:-15px' src='http://91.250.83.244/product/$imageNumber.jpg'></a>";
#0 |
unknown(0): WPictureMore->taskConfig()
|
#1 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WPictureMore, "taskconfig"), array()) 89 if(method_exists($this,'before'.$name)) 90 if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null) 91 return $before; 92 // worklet task 93 $result = method_exists($this,'task'.$name) 94 ? call_user_func_array(array($this,'task'.$name),$parameters) 95 : parent::__call('task'.$name,$parameters); 96 // worklet after 97 $parameters['result'] = $result; 98 if(method_exists($this,'after'.$name)) 99 if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null) |
#2 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): UWorklet->__call("config", array()) 153 /** 154 * Worklet builder. 155 */ 156 public function taskBuild() 157 { 158 $this->config(); 159 } 160 161 /** 162 * Configures worklet. 163 */ |
#3 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): WPictureMore->config() 153 /** 154 * Worklet builder. 155 */ 156 public function taskBuild() 157 { 158 $this->config(); 159 } 160 161 /** 162 * Configures worklet. 163 */ |
#4 |
unknown(0): UWidgetWorklet->taskBuild()
|
#5 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WPictureMore, "taskbuild"), array()) 89 if(method_exists($this,'before'.$name)) 90 if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null) 91 return $before; 92 // worklet task 93 $result = method_exists($this,'task'.$name) 94 ? call_user_func_array(array($this,'task'.$name),$parameters) 95 : parent::__call('task'.$name,$parameters); 96 // worklet after 97 $parameters['result'] = $result; 98 if(method_exists($this,'after'.$name)) 99 if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null) |
#6 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(54): UWorklet->__call("build", array()) 49 * Initializes worklet. 50 * By default it only executes {@link taskBuild} task. 51 */ 52 public function init() 53 { 54 $this->build(); 55 } 56 57 /** 58 * Renders worklet output. 59 * @param boolean return output or print it out. |
#7 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(54): WPictureMore->build() 49 * Initializes worklet. 50 * By default it only executes {@link taskBuild} task. 51 */ 52 public function init() 53 { 54 $this->build(); 55 } 56 57 /** 58 * Renders worklet output. 59 * @param boolean return output or print it out. |
#8 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorkletManager.php(128): UWidgetWorklet->init() 123 124 if($worklet instanceOf UWorklet) 125 { 126 if($worklet->access()) 127 { 128 $worklet->init(); 129 $id = $id===null?$worklet->getId():$id; 130 $this->_worklets->add($id,$worklet); 131 return $worklet; 132 } 133 } |
#9 |
+
–
/var/www/protected/modules/picture/worklets/WPictureView.php(64): UWorkletManager->add("picture.more", null, array("post" => MPicturePost)) 59 //wm()->add('picture.share.menu', null, array('post' => $this->post)); 60 61 parent::taskConfig(); 62 63 wm()->add('board.side', null, array('board' => MBoard::model()->findByPk($this->post->boardId))); 64 wm()->add('picture.more', null, array('post' => $this->post)); 65 } 66 67 public function taskRenderOutput() { 68 //Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/bootstrap_custom.min.css'); 69 |
#10 |
unknown(0): WPictureView->taskConfig()
|
#11 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WPictureView, "taskconfig"), array()) 89 if(method_exists($this,'before'.$name)) 90 if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null) 91 return $before; 92 // worklet task 93 $result = method_exists($this,'task'.$name) 94 ? call_user_func_array(array($this,'task'.$name),$parameters) 95 : parent::__call('task'.$name,$parameters); 96 // worklet after 97 $parameters['result'] = $result; 98 if(method_exists($this,'after'.$name)) 99 if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null) |
#12 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): UWorklet->__call("config", array()) 153 /** 154 * Worklet builder. 155 */ 156 public function taskBuild() 157 { 158 $this->config(); 159 } 160 161 /** 162 * Configures worklet. 163 */ |
#13 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): WPictureView->config() 153 /** 154 * Worklet builder. 155 */ 156 public function taskBuild() 157 { 158 $this->config(); 159 } 160 161 /** 162 * Configures worklet. 163 */ |
#14 |
unknown(0): UWidgetWorklet->taskBuild()
|
#15 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WPictureView, "taskbuild"), array()) 89 if(method_exists($this,'before'.$name)) 90 if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null) 91 return $before; 92 // worklet task 93 $result = method_exists($this,'task'.$name) 94 ? call_user_func_array(array($this,'task'.$name),$parameters) 95 : parent::__call('task'.$name,$parameters); 96 // worklet after 97 $parameters['result'] = $result; 98 if(method_exists($this,'after'.$name)) 99 if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null) |
#16 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(54): UWorklet->__call("build", array()) 49 * Initializes worklet. 50 * By default it only executes {@link taskBuild} task. 51 */ 52 public function init() 53 { 54 $this->build(); 55 } 56 57 /** 58 * Renders worklet output. 59 * @param boolean return output or print it out. |
#17 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(54): WPictureView->build() 49 * Initializes worklet. 50 * By default it only executes {@link taskBuild} task. 51 */ 52 public function init() 53 { 54 $this->build(); 55 } 56 57 /** 58 * Renders worklet output. 59 * @param boolean return output or print it out. |
#18 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorkletManager.php(128): UWidgetWorklet->init() 123 124 if($worklet instanceOf UWorklet) 125 { 126 if($worklet->access()) 127 { 128 $worklet->init(); 129 $id = $id===null?$worklet->getId():$id; 130 $this->_worklets->add($id,$worklet); 131 return $worklet; 132 } 133 } |
#19 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorkletManager.php(99): UWorkletManager->add(WPictureView, null, array()) 094 */ 095 public function addCurrent($worklet,$id=null,$config=array()) 096 { 097 $worklet = $worklet instanceOf UWorklet ? $worklet : wm()->get($worklet,$config); 098 $previous = $this->_currentWorklet?$this->_currentWorklet->id:null; 099 if($worklet = $this->add($worklet,$id,$config)) 100 { 101 $current = $this->_currentWorklet?$this->_currentWorklet->id:null; 102 if($current == $previous) 103 $this->_currentWorklet = $worklet; 104 return $worklet; |
#20 |
+
–
/var/www/protected/modules/base/worklets/WBaseInit.php(84): UWorkletManager->addCurrent(WPictureView) 79 public function taskWorklet() 80 { 81 $route = app()->getController()->getRouteEased(); 82 $worklet = wm()->get(str_replace("/", ".", $route)); 83 if($worklet) 84 wm()->addCurrent($worklet); 85 else 86 app()->controller->missingAction(app()->controller->action->id); 87 } 88 89 /** |
#21 |
unknown(0): WBaseInit->taskWorklet()
|
#22 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WBaseInit, "taskworklet"), array()) 89 if(method_exists($this,'before'.$name)) 90 if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null) 91 return $before; 92 // worklet task 93 $result = method_exists($this,'task'.$name) 94 ? call_user_func_array(array($this,'task'.$name),$parameters) 95 : parent::__call('task'.$name,$parameters); 96 // worklet after 97 $parameters['result'] = $result; 98 if(method_exists($this,'after'.$name)) 99 if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null) |
#23 |
+
–
/var/www/protected/modules/base/worklets/WBaseInit.php(41): UWorklet->__call("worklet", array()) 36 } 37 38 public function taskBuild() 39 { 40 $this->config(); 41 $this->worklet(); 42 $this->renderPage(); 43 } 44 45 /** 46 * Initialization: verify current language, set render type to "ajax" |
#24 |
+
–
/var/www/protected/modules/base/worklets/WBaseInit.php(41): WBaseInit->worklet() 36 } 37 38 public function taskBuild() 39 { 40 $this->config(); 41 $this->worklet(); 42 $this->renderPage(); 43 } 44 45 /** 46 * Initialization: verify current language, set render type to "ajax" |
#25 |
unknown(0): WBaseInit->taskBuild()
|
#26 |
+
–
/var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WBaseInit, "taskbuild"), array()) 89 if(method_exists($this,'before'.$name)) 90 if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null) 91 return $before; 92 // worklet task 93 $result = method_exists($this,'task'.$name) 94 ? call_user_func_array(array($this,'task'.$name),$parameters) 95 : parent::__call('task'.$name,$parameters); 96 // worklet after 97 $parameters['result'] = $result; 98 if(method_exists($this,'after'.$name)) 99 if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null) |
#27 |
+
–
/var/www/framework/uniprogy/framework/yii/web/actions/UAction.php(28): UWorklet->__call("build", array()) 23 /** 24 * UAction does only one thing - it launches an initial worklet. 25 */ 26 public function run() 27 { 28 wm()->get(wm()->getInitialWorklet())->build(); 29 } 30 } |
#28 |
+
–
/var/www/framework/uniprogy/framework/yii/web/actions/UAction.php(28): WBaseInit->build() 23 /** 24 * UAction does only one thing - it launches an initial worklet. 25 */ 26 public function run() 27 { 28 wm()->get(wm()->getInitialWorklet())->build(); 29 } 30 } |
#29 |
+
–
/var/www/framework/yii/framework/web/actions/CAction.php(72): UAction->run() 67 { 68 $method=new ReflectionMethod($this, 'run'); 69 if($method->getNumberOfParameters()>0) 70 return $this->runWithParamsInternal($this, $method, $params); 71 else 72 return $this->run(); 73 } 74 75 /** 76 * Executes a method of an object with the supplied named parameters. 77 * This method is internally used. |
#30 |
+
–
/var/www/framework/yii/framework/web/CController.php(300): CAction->runWithParams(array("language" => "en", "id" => "235250", "facebook" => "")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#31 |
+
–
/var/www/framework/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(UAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#32 |
+
–
/var/www/framework/yii/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#33 |
+
–
/var/www/framework/yii/framework/web/filters/CFilterChain.php(131): CFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#34 |
+
–
/var/www/framework/yii/framework/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#35 |
+
–
/var/www/framework/yii/framework/web/CController.php(257): CController->runActionWithFilters(UAction, array(array("UAccessFilter"))) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#36 |
+
–
/var/www/framework/yii/framework/web/CWebApplication.php(277): CController->run("view") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#37 |
+
–
/var/www/framework/yii/framework/web/CWebApplication.php(136): CWebApplication->runController("picture/view") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#38 |
+
–
/var/www/framework/yii/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#39 |
+
–
/var/www/index.php(15): CApplication->run() 10 // ini_set('display_errors', 'Off'); 11 12 require_once($yii); 13 require_once(dirname(__FILE__).'/protected/components/UApp.php'); 14 15 Yii::createApplication('UApp',$config)->run(); |