本文整理匯總了PHP中UniteFunctionsRev::normalizeTextareaContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP UniteFunctionsRev::normalizeTextareaContent方法的具體用法?PHP UniteFunctionsRev::normalizeTextareaContent怎麽用?PHP UniteFunctionsRev::normalizeTextareaContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UniteFunctionsRev
的用法示例。
在下文中一共展示了UniteFunctionsRev::normalizeTextareaContent方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: normalizeParams
/**
*
* normalize params
*/
private function normalizeParams($params)
{
$urlImage = UniteFunctionsRev::getVal($params, "image_url");
$urlThumb = UniteFunctionsRev::getVal($params, "slide_thumb");
//init the id if absent
$params["image_id"] = UniteFunctionsRev::getVal($params, "image_id");
if (!empty($urlImage)) {
$urlImage = UniteFunctionJoomlaRev::urlToRelative($urlImage);
}
if (!empty($urlThumb)) {
$urlThumb = UniteFunctionJoomlaRev::urlToRelative($urlThumb);
}
$params["image"] = $urlImage;
$params["slide_thumb"] = $urlThumb;
unset($params["image_url"]);
if (isset($params["video_description"])) {
$params["video_description"] = UniteFunctionsRev::normalizeTextareaContent($params["video_description"]);
}
return $params;
}
示例2: normalizeParams
/**
*
* normalize params
*/
private function normalizeParams($params)
{
$urlImage = UniteFunctionsRev::getVal($params, "image_url");
//init the id if absent
$params["image_id"] = UniteFunctionsRev::getVal($params, "image_id");
$params["image"] = $urlImage;
unset($params["image_url"]);
if (isset($params["video_description"])) {
$params["video_description"] = UniteFunctionsRev::normalizeTextareaContent($params["video_description"]);
}
return $params;
}
示例3: normalizeParams
/**
*
* normalize params
*/
private function normalizeParams($params)
{
$urlImage = $params["image_url"];
if (empty($urlImage)) {
UniteFunctionsRev::throwError("the image could not be empty in params");
}
$params["image"] = $urlImage;
unset($params["image_url"]);
if (isset($params["video_description"])) {
$params["video_description"] = UniteFunctionsRev::normalizeTextareaContent($params["video_description"]);
}
return $params;
}