public function doc($className=""){

        if($className != ""){
            if(!class_exists($className,false)){
                throw new jException('jelix~errors.ad.controller.class.unknown', array('WSDL generation', $className, $this->_ctrlpath));
            }
            $classObject = new IPReflectionClass($className);
        }else{
            $classObject = new IPReflectionClass($this->controllerClassName);
        }

        $documentation = Array();
        $documentation['menu'] = Array();

        if($classObject){
            $classObject->properties = $classObject->getProperties(false, false, false);
            $classObject->methods = $classObject->getMethods(false, false, false);
            foreach((array)$classObject->methods as $method) {
                $method->params = $method->getParameters();
            }

            $documentation['class'] = $classObject;
            $documentation['service'] = $this->module.'~'.$this->controller;
        }
        return $documentation;
    }
public function doc($className=""){

        if($className != ""){
            if(!class_exists($className,false)){
                throw new jException('jelix~errors.ad.controller.class.unknown', array('WSDL generation', $className, $this->_ctrlpath));
            }
            $classObject = new IPReflectionClass($className);
        }else{
            $classObject = new IPReflectionClass($this->controllerClassName);
        }

        $documentation = Array();
        $documentation['menu'] = Array();

        if($classObject){
            $classObject->properties = $classObject->getProperties(false, false, false);
            $classObject->methods = $classObject->getMethods(false, false, false);
            foreach((array)$classObject->methods as $method) {
                $method->params = $method->getParameters();
            }

            $documentation['class'] = $classObject;
            $documentation['service'] = $this->module.'~'.$this->controller;
        }
        return $documentation;
    }
public function doc ( $ className = "" ) { if ( $ className != "" ) { if ( ! class_exists ( $ className , false ) ) { throw new jException ( 'jelix~errors.ad.controller.class.unknown' , array ( 'WSDL generation' , $ className , $ this -> _ctrlpath ) ) ; } $ classObject = new IPReflectionClass ( $ className ) ; } else { $ classObject = new IPReflectionClass ( $ this -> controllerClassName ) ; } $ documentation = Array ( ) ; $ documentation [ 'menu' ] = Array ( ) ; if ( $ classObject ) { $ classObject -> properties = $ classObject -> getProperties ( false , false , false ) ; $ classObject -> methods = $ classObject -> getMethods ( false , false , false ) ; foreach ( ( array ) $ classObject -> methods as $ method ) { $ method -> params = $ method -> getParameters ( ) ; } $ documentation [ 'class' ] = $ classObject ; $ documentation [ 'service' ] = $ this -> module . '~' . $ this -> controller ; } return $ documentation ; }
Load the class or service definition for doc purpose
@param string $classname Name of the class for witch we want the doc, default doc is the service one (controller)
Load the class or service definition for doc purpose