示例#1
0
 function filter_pre()
 {
     parent::filter_pre();
     $this->set_value($this->get_number_dashed());
 }
示例#2
0
 function __construct($value = null)
 {
     $this->letters = range('A', 'Z');
     $this->digits = range(1, 9);
     parent::__construct($value);
 }
示例#3
0
    $news = ORM::factory('News')->where('visible', '=', 1)->where(DB::expr('YEAR(_datetime)'), '=', $currentYear)->where(DB::expr('MONTH(_datetime)'), '=', $currentMonth)->order_by('_datetime', 'desc')->order_by('caption')->find_all();
    if ($news->count() > 0) {
        ?>
        <br>
        <div class="list-group">
            <?php 
        foreach ($news as $new) {
            ?>

                <a href="<?php 
            echo $new->getHREF();
            ?>
" class="list-group-item">
                    <p class="list-group-item-text">
                        <?php 
            echo FieldString::getFullRuDateFromMysqlDate($new->_datetime);
            ?>
                    </p>
                    <h4 class="list-group-item-heading">
                        <?php 
            echo $new->caption;
            ?>
                    </h4>
                    <p class="list-group-item-text">
                        <?php 
            echo \Zver\StringHelper::load($new->_text)->removeTags()->getFirst(250) . '...';
            ?>
                    </p>
                </a>

                <?php 
示例#4
0
文件: url.inc.php 项目: tv13/bambitav
 function __construct($value = null)
 {
     $this->auto_protocol = true;
     parent::__construct($value);
 }