Exemple #1
0
 public function testStaticSetGetFromZend()
 {
     Waf_Registry::set('foo', 'bat');
     $this->assertEquals('bat', Zend_Registry::get('Waf_foo'));
 }
 /**
  * Enters the object in the registry, using the name of the class as the index.
  */
 public function register()
 {
     Waf_Registry::set(get_class($this), $this);
 }
Exemple #3
0
 /**
  * Defined by Waf_Registry_RegisterableInterface
  */
 public function register()
 {
     Waf_Registry::set('Waf_Model', $this);
 }