SYSPATH/classes/SimpleXMLExtended.php [ 9 ]
4 * Date: 2014.07.17.
5 * Time: 15:56
6 * Project: delina.hu
7 * Company: d2c
8 */
9 class SimpleXMLExtended extends SimpleXMLElement {
10
11 public function addCData($cdata_text) {
12 $node = dom_import_simplexml($this);
13 $no = $node->ownerDocument;
14 $node->appendChild($no->createCDATASection($cdata_text));
-
APPPATH/classes/Model/Feed.php [ 12 ] » Kohana_Corestaticauto_load()
7 * Company: d2c 8 */ 9 class Model_Feed extends Model 10 { 11 public static function create($slug) 12 { 13 if (empty($slug) || $slug == 'all') { 14 $articles = ORM::factory('articles') 15 ->where('ar_enabled', '=', 1) 16 ->where('ar_is_published', '=', 1) 17 ->where(DB::expr('FROM_UNIXTIME(ar_publish_date,"%Y%m%d%H%i")'), '<=', date('YmdHi'))
-
APPPATH/classes/Model/Feed.php [ 12 ] » spl_autoload_call()
7 * Company: d2c 8 */ 9 class Model_Feed extends Model 10 { 11 public static function create($slug) 12 { 13 if (empty($slug) || $slug == 'all') { 14 $articles = ORM::factory('articles') 15 ->where('ar_enabled', '=', 1) 16 ->where('ar_is_published', '=', 1) 17 ->where(DB::expr('FROM_UNIXTIME(ar_publish_date,"%Y%m%d%H%i")'), '<=', date('YmdHi'))
-
APPPATH/classes/Model/Feed.php [ 69 ] » Feedstaticcreate()
64 65 66 $items[] = $temp; 67 } 68 69 return Feed::create($info, $items); 70 } 71 72 private static function getFirstBlock($desc) 73 { 74 $parts = explode("</p>",$desc);
-
APPPATH/classes/Controller/Feed.php [ 15 ] » Model_Feedstaticcreate()
10 { 11 function action_index() 12 { 13 //$this->auto_render = false; 14 $this->response->headers('Content-Type', 'application/rss+xml'); 15 $this->context->rss = Model_Feed::create($this->request->param('slug')); 16 //echo $this->context->rss; 17 } 18 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Feeddynamicaction_index()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » Kohana_Controllerdynamicexecute()
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethoddynamicinvoke()
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internaldynamicexecute_request()
109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 994 ] » Kohana_Request_Clientdynamicexecute()
989 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 990 ':uri' => $this->_uri, 991 )); 992 } 993 994 return $this->_client->execute($this); 995 } 996 997 /** 998 * Returns whether this request is the initial request Kohana received. 999 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Requestdynamicexecute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }
-
DOCROOT/index.php [ 0 ] » {main}()
1 <?php 2 3 /** 4 * The directory in which your application specific resources are located. 5 * The application directory must contain the bootstrap.php file.