本文整理汇总了PHP中SibdietHelper::correctPersianAlphabet方法的典型用法代码示例。如果您正苦于以下问题:PHP SibdietHelper::correctPersianAlphabet方法的具体用法?PHP SibdietHelper::correctPersianAlphabet怎么用?PHP SibdietHelper::correctPersianAlphabet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SibdietHelper
的用法示例。
在下文中一共展示了SibdietHelper::correctPersianAlphabet方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prepareTable
/**
* Prepare and sanitise the table prior to saving.
*/
protected function prepareTable($table)
{
require_once JPATH_COMPONENT . '/helpers/sibdiet.php';
$table->title = SibdietHelper::correctPersianAlphabet(htmlspecialchars_decode($table->title, ENT_QUOTES));
}
示例2: prepareTable
/**
* Prepare and sanitise the table prior to saving.
*/
protected function prepareTable($table)
{
$table->title = SibdietHelper::correctPersianAlphabet(htmlspecialchars_decode($table->title, ENT_QUOTES));
}
示例3: prepareTable
/**
* Prepare and sanitise the table prior to saving.
*
* @since 1.6
*/
protected function prepareTable($table)
{
$table->fname = SibdietHelper::correctPersianAlphabet(htmlspecialchars_decode($table->fname, ENT_QUOTES));
$table->lname = SibdietHelper::correctPersianAlphabet(htmlspecialchars_decode($table->lname, ENT_QUOTES));
$table->job = SibdietHelper::correctPersianAlphabet(htmlspecialchars_decode($table->job, ENT_QUOTES));
$table->city = SibdietHelper::correctPersianAlphabet(htmlspecialchars_decode($table->city, ENT_QUOTES));
}