examples/phpcr/simple/server.php
public function getPropertyValue($sessionName, $path, $cb)
    {
        if (!array_key_exists($sessionName, $this->sessions)) {
            $cb(null, 'RepositoryException', 'Named session $sessionName not found');
        }

        $exception = null;
        $msg = null;
        $val = null;

        try {
            $val = $this->sessions[$sessionName]->getProperty($path)->getValue();
        } catch (\Exception $e){
            $exception = get_class($e);
            $msg = $e->getMessage();
        }

        $cb($val, $exception, $msg);
    }
public function getPropertyValue($sessionName, $path, $cb)
    {
        if (!array_key_exists($sessionName, $this->sessions)) {
            $cb(null, 'RepositoryException', 'Named session $sessionName not found');
        }

        $exception = null;
        $msg = null;
        $val = null;

        try {
            $val = $this->sessions[$sessionName]->getProperty($path)->getValue();
        } catch (\Exception $e){
            $exception = get_class($e);
            $msg = $e->getMessage();
        }

        $cb($val, $exception, $msg);
    }
/* Get value of the property at specified path