Annotation of db/prgsrc/drupal/modules/chgk_db/classes/DbField/DbFieldSources.class.php, revision 1.2

1.1       roma7       1: <?php
                      2: 
                      3: class DbFieldSources extends DbField {
                      4:   public function getName() {
                      5:     return 'Источник(и)';
                      6:   }
1.2     ! roma7       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:   }
1.1       roma7      19: }

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