gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

smarty_undefined_variable.php (642B)


      1 <?php
      2 
      3 /**
      4  * class for undefined variable object
      5  * This class defines an object for undefined variable handling
      6  *
      7  * @package    Smarty
      8  * @subpackage Template
      9  */
     10 class Smarty_Undefined_Variable
     11 {
     12     /**
     13      * Returns FALSE for 'nocache' and NULL otherwise.
     14      *
     15      * @param  string $name
     16      *
     17      * @return bool
     18      */
     19     public function __get($name)
     20     {
     21         if ($name == 'nocache') {
     22             return false;
     23         } else {
     24             return null;
     25         }
     26     }
     27 
     28     /**
     29      * Always returns an empty string.
     30      *
     31      * @return string
     32      */
     33     public function __toString()
     34     {
     35         return "";
     36     }
     37 }