public function getEntityOAuth($code = false) { if (!$this->entityOAuth) { $this->entityOAuth = new CGooglePlusOAuthInterface(); } return parent::getEntityOAuth($code); }