--- db/prgsrc/drupal/modules/chgk_db/classes/DbField.class.php 2010/04/24 18:04:15 1.8
+++ db/prgsrc/drupal/modules/chgk_db/classes/DbField.class.php 2010/04/24 21:45:50 1.9
@@ -11,19 +11,23 @@ class DbField {
protected $fb2;
protected $poems;
protected $codes;
+ protected $searchString;
+ protected $parent;
- public function __construct($field, $value, $number = false) {
+ public function __construct($field, $value, $number = false, $parent = null) {
$this->field = $field;
$this->value = $value;
$this->number = $number;
- $this->getHtml();
+ $this->parent = $parent;
}
public function getHtml() {
+
if ($this->html) {
return $this->html;
- }
+ }
+
$this->html = $this->value;
$this->formatHtml();
return $this->html;
@@ -91,7 +95,7 @@ class DbField {
}
$this->fb2 = $result;
- $this->fb2 = preg_replace('/ -+(\s+)/',' —$1', $this->fb2);
+// $this->fb2 = preg_replace('/ -+(\s+)/',' —$1', $this->fb2);
$this->fb2 = preg_replace('/\(pic: ([^\)]*)\)/','