當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UniteFunctionsRev::normalizeTextareaContent方法代碼示例

本文整理匯總了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;
 }
開發者ID:TeamCodeStudio,項目名稱:fpmoz,代碼行數:24,代碼來源:revslider_slide.class.php

示例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;
 }
開發者ID:ranrolls,項目名稱:ras-full-portal,代碼行數:16,代碼來源:revslider_slide.class.php

示例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;
 }
開發者ID:nimishavyas,項目名稱:proiti,代碼行數:17,代碼來源:revslider_slide.class.php


注:本文中的UniteFunctionsRev::normalizeTextareaContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。