src/Base.php
function map($url,$class,$ttl=0,$kbps=0) {
		if (is_array($url)) {
			foreach ($url as $item)
				$this->map($item,$class,$ttl,$kbps);
			return;
		}
		foreach (explode('|',self::VERBS) as $method)
			$this->route($method.' '.$url,is_string($class)?
				$class.'->'.$this->hive['PREMAP'].strtolower($method):
				array($class,$this->hive['PREMAP'].strtolower($method)),
				$ttl,$kbps);
	}
function map($url,$class,$ttl=0,$kbps=0) {
		if (is_array($url)) {
			foreach ($url as $item)
				$this->map($item,$class,$ttl,$kbps);
			return;
		}
		foreach (explode('|',self::VERBS) as $method)
			$this->route($method.' '.$url,is_string($class)?
				$class.'->'.$this->hive['PREMAP'].strtolower($method):
				array($class,$this->hive['PREMAP'].strtolower($method)),
				$ttl,$kbps);
	}
function map ( $ url , $ class , $ ttl = 0 , $ kbps = 0 ) { if ( is_array ( $ url ) ) { foreach ( $ url as $ item ) $ this -> map ( $ item , $ class , $ ttl , $ kbps ) ; return ; } foreach ( explode ( '|' , self :: VERBS ) as $ method ) $ this -> route ( $ method . ' ' . $ url , is_string ( $ class ) ? $ class . '->' . $ this -> hive [ 'PREMAP' ] . strtolower ( $ method ) : array ( $ class , $ this -> hive [ 'PREMAP' ] . strtolower ( $ method ) ) , $ ttl , $ kbps ) ; }
Provide ReST interface by mapping HTTP verb to class method
@return NULL
@param $url string
@param $class string|object
@param $ttl int
@param $kbps int
Provide ReST interface by mapping HTTP verb to class method