/** * Method to get user's profile * * @param $id The user id. leave empty for current user. * @return object */ public static function getProfile($id = null) { if (!class_exists('KomentoProfile')) { require_once KOMENTO_CLASSES . DIRECTORY_SEPARATOR . 'profile.php'; } return KomentoProfile::getUser($id); }