public function getSchema($class)
    {
        $serializer = $this->get($class);

        if (method_exists($serializer, 'getSchema')) {
            $url = $serializer->getSchema();
            $path = explode('/', $url);
            $absolutePath = $this->rootDir.'/vendor/claroline/distribution/'
            .$path[1].'/'.$path[2].'/Resources/schemas/'.$path[3];

            return $this->loadSchema($absolutePath);
        }
    }
public function getSchema($class)
    {
        $serializer = $this->get($class);

        if (method_exists($serializer, 'getSchema')) {
            $url = $serializer->getSchema();
            $path = explode('/', $url);
            $absolutePath = $this->rootDir.'/vendor/claroline/distribution/'
            .$path[1].'/'.$path[2].'/Resources/schemas/'.$path[3];

            return $this->loadSchema($absolutePath);
        }
    }
public function getSchema ( $ class ) { $ serializer = $ this -> get ( $ class ) ; if ( method_exists ( $ serializer , 'getSchema' ) ) { $ url = $ serializer -> getSchema ( ) ; $ path = explode ( '/' , $ url ) ; $ absolutePath = $ this -> rootDir . '/vendor/claroline/distribution/' . $ path [ 1 ] . '/' . $ path [ 2 ] . '/Resources/schemas/' . $ path [ 3 ] ; return $ this -> loadSchema ( $ absolutePath ) ; } }
Gets the json schema of a class.

@param string $class

@return \stdClass
Gets the json schema of a class .