function filter_pre() { parent::filter_pre(); $this->set_value($this->get_number_dashed()); }
function __construct($value = null) { $this->letters = range('A', 'Z'); $this->digits = range(1, 9); parent::__construct($value); }
$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
function __construct($value = null) { $this->auto_protocol = true; parent::__construct($value); }