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


PHP tservices_helper::translit方法代碼示例

本文整理匯總了PHP中tservices_helper::translit方法的典型用法代碼示例。如果您正苦於以下問題:PHP tservices_helper::translit方法的具體用法?PHP tservices_helper::translit怎麽用?PHP tservices_helper::translit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在tservices_helper的用法示例。


在下文中一共展示了tservices_helper::translit方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getUrl

 public function getUrl()
 {
     return sprintf('/tu/%d/%s.html', $this->id, tservices_helper::translit($this->title));
 }
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:4,代碼來源:TServiceItem.php

示例2: foreach

    ?>
" 
       class="b-button b-button_flat b-button_flat_green b-button_margbot_30 b-button_margtop_30" 
       onClick="yaCounter6051055.reachGoal('add_new_tu');">
        Добавить услугу
    </a>
    <?php 
}
?>
    <div class="b-layout b-layout_padtop_20 b-layout__cf">
    <?php 
if (count($data)) {
    ?>
        <?php 
    foreach ($data as $el) {
        $url = sprintf('/tu/%d/%s.html', $el['id'], tservices_helper::translit($el['title']));
        $edit_url = sprintf('/users/%s/tu/edit/%d/', $user->login, $el['id']);
        $videos = !empty($el['videos']) ? mb_unserialize($el['videos']) : array();
        $video = count($videos) ? current($videos) : NULL;
        ?>
        <figure class="i-pic i-pic_port_z-index_inherit <?php 
        if ($user->is_pro == 'f') {
            ?>
i-pic_tu<?php 
        } else {
            ?>
i-pic_tu-col-4<?php 
        }
        ?>
">
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:30,代碼來源:tu_inner.php

示例3: tu_validation

        if ($action == 'save') {
            $errors = tu_validation($tservice);
            if (count($errors) == 0) {
                $id = $tservice->create();
                $sess = __paramInit('string', NULL, 'uploader_sess', NULL);
                if ($sess) {
                    $tservice->addAttachedFiles($sess, $id);
                }
                $sess_p = __paramInit('string', NULL, 'preview_sess', NULL);
                if ($sess_p) {
                    $tservice->addAttachedFiles($sess_p, $id);
                }
                //message ?
                $msg_type = $tservice->active === 't' ? 'new_saved_publish' : 'new_saved';
                tservices_helper::setFlashMessageFromConstWithTitle($msg_type, $tservice->title);
                $tu_card_uri = sprintf('/tu/%d/%s.html', $id, tservices_helper::translit($tservice->title));
                header("Location: {$tu_card_uri}");
                exit;
            }
        }
        //SEO
        $page_title = 'Добавление типовой услуги на FL.ru';
        //$page_descr = ''
        //$page_keyw = '';
}
//------------------------------------------------------------------------------
//Превью
$preview_field = array();
if (count($tservice->preview)) {
    foreach ($tservice->preview as $key => $image) {
        $preview_field = array('hash' => md5($solt . $image['id'] . $tuid . $uid), 'qquuid' => $image['id'], 'src' => WDCPREFIX . '/' . $image['path'] . $image['fname']);
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:manage.php


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