File:  [Local Repository] / db / prgsrc / drupal / modules / chgk_db / classes / DbField / DbFieldSources.class.php
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Mar 20 17:23:42 2010 UTC (14 years, 2 months ago) by roma7
Branches: MAIN
CVS tags: HEAD
issue http://db.chgk.info/v2/node/10

<?php

class DbFieldSources extends DbField {
  public function getName() {
    return 'Источник(и)';
  }

  public function pack() {
      $this->value = preg_replace(
              '/\n\s+(\d+)/', ';  $1',
              $this->value
       );
      $this->value = preg_replace(
              '/^\s+/', '',     $this->value
       );
      $this->html=false;
      $this->getHtml();
  }
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>