PEEL Shopping
Open source ecommerce : PEEL Shopping
smarty_config_source.php
Go to the documentation of this file.
1 <?php
23 
35  {
36  $this->handler = $handler; // Note: prone to circular references
37 
38  // Note: these may be ->config_compiler_class etc in the future
39  //$this->config_compiler_class = $handler->config_compiler_class;
40  //$this->config_lexer_class = $handler->config_lexer_class;
41  //$this->config_parser_class = $handler->config_parser_class;
42 
43  $this->smarty = $smarty;
44  $this->resource = $resource;
45  $this->type = $type;
46  $this->name = $name;
47  $this->unique_resource = $unique_resource;
48  }
49 
57  public function __set($property_name, $value)
58  {
59  switch ($property_name) {
60  case 'content':
61  case 'timestamp':
62  case 'exists':
63  $this->$property_name = $value;
64  break;
65 
66  default:
67  throw new SmartyException("invalid config property '$property_name'.");
68  }
69  }
70 
77  public function __get($property_name)
78  {
79  switch ($property_name) {
80  case 'timestamp':
81  case 'exists':
82  $this->handler->populateTimestamp($this);
83  return $this->$property_name;
84 
85  case 'content':
86  return $this->content = $this->handler->getContent($this);
87 
88  default:
89  throw new SmartyException("config property '$property_name' does not exist.");
90  }
91  }
92 
93 }
94 
95 ?>
__set($property_name, $value)
<> Generic setter.
__get($property_name)
<> Generic getter.
Smarty plugin to format text blocks.
__construct(Smarty_Resource $handler, Smarty $smarty, $resource, $type, $name, $unique_resource)
create Config Object container

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:16 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.