public function &getMODX($profile)
    {
        if (!$this->modx instanceof \modX) {
            $results = $this->request->getResults();
            $this->modx = Teleport::instance()->getMODX($profile, $this->request->args(), $results);
        }
        return $this->modx;
    }
public function &getMODX($profile)
    {
        if (!$this->modx instanceof \modX) {
            $results = $this->request->getResults();
            $this->modx = Teleport::instance()->getMODX($profile, $this->request->args(), $results);
        }
        return $this->modx;
    }
public function & getMODX ( $ profile ) { if ( ! $ this -> modx instanceof \ modX ) { $ results = $ this -> request -> getResults ( ) ; $ this -> modx = Teleport :: instance ( ) -> getMODX ( $ profile , $ this -> request -> args ( ) , $ results ) ; } return $ this -> modx ; }
Get a MODX reference to operate on.

@param \stdClass $profile An object describing properties of a MODX
instance.

@return \modX A reference to a MODX instance.
Get a MODX reference to operate on .