public function getName()
    {
        if ($this->name === null) {
            $class = get_called_class();
            if (preg_match('/_+(.+)_+/', $class, $matches) > 0) {
                $this->name = $matches[1];
            } else {
                $this->name = '';
            }
        }

        return $this->name;
    }
public function getName()
    {
        if ($this->name === null) {
            $class = get_called_class();
            if (preg_match('/_+(.+)_+/', $class, $matches) > 0) {
                $this->name = $matches[1];
            } else {
                $this->name = '';
            }
        }

        return $this->name;
    }
public function getName ( ) { if ( $ this -> name === null ) { $ class = get_called_class ( ) ; if ( preg_match ( '/_+(.+)_+/' , $ class , $ matches ) > 0 ) { $ this -> name = $ matches [ 1 ] ; } else { $ this -> name = '' ; } } return $ this -> name ; }
Returns the name of the service

This method is intend to return the name of the current
active service.

@author Benjamin Carl <opensource@clickalicious.de>
@return string The name of the service
@access public
Returns the name of the service