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, 3 months ago) by roma7
Branches: MAIN
CVS tags: HEAD
issue http://db.chgk.info/v2/node/10

    1: <?php
    2: 
    3: class DbFieldSources extends DbField {
    4:   public function getName() {
    5:     return 'Источник(и)';
    6:   }
    7: 
    8:   public function pack() {
    9:       $this->value = preg_replace(
   10:               '/\n\s+(\d+)/', ';  $1',
   11:               $this->value
   12:        );
   13:       $this->value = preg_replace(
   14:               '/^\s+/', '',     $this->value
   15:        );
   16:       $this->html=false;
   17:       $this->getHtml();
   18:   }
   19: }

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