当前位置: 首页>>代码示例>>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;未经允许,请勿转载。