/** * Get cover in highres * * @param string $p_env * * @return string */ public function getHighResUrl($p_env = DBCST::ENV_DEV) { $url = DBCST::getDBookSecurityBaseUrl($p_env); $url .= '/covers/high/' . $this->getImage(); return $url; }
/** * Set audience * * @param string $p_audience * * @return \DBookSecurityClient\Models\Product */ public function setAudience($p_audience) { $this->audience = DBCST::AUDIENCE_ALL; if (in_array($p_audience, DBCST::getAudiences())) { $this->audience = $p_audience; } return $this; }
/** * Set preferred language * * @param string $p_lang * * @return \DBookSecurityClient\Models\User */ public function setPreferredLanguage($p_lang) { $this->preferred_language = DBCST::LANGUAGE_UNKNOWN; if (in_array($p_lang, DBCST::getLanguages())) { $this->preferred_language = $p_lang; } return $this; }