Exemple #1
0
 /**
  * @param  string $property_name valid: timestamp, exists, content
  * @return mixed
  * @throws SmartyException if $property_name is not valid
  */
 public function __get($property_name)
 {
     switch ($property_name) {
         case 'timestamp':
         case 'exists':
             $this->handler->populateTimestamp($this);
             return $this->exists;
         default:
             throw new SmartyException("source property '{$property_name}' does not exist.");
     }
 }