Example #1
0
 /**
  * It creates a new Item object class ir if it has been created
  * before, it return the previous object
  *
  * @access public
  * @since unknown
  * @return Item
  */
 public static function newInstance()
 {
     if( !self::$instance instanceof self ) {
         self::$instance = new self;
     }
     return self::$instance;
 }