Exemplo n.º 1
0
 /**
  * Create Column instance
  *
  * @param 
  * @return Hokuken\HaikMarkdown\GridSystem\ColumnInterface
  */
 protected function createColumn($text = '')
 {
     $hot = false;
     $text = preg_replace_callback('/\\.(hot|popular|tile-hot)\\b/', function ($matches) use(&$hot) {
         $hot = ' tile-hot';
         return '';
     }, $text);
     $column = parent::createColumn($text);
     $column->hot = $hot;
     return $column;
 }