--- db/prgsrc/drupal/modules/chgk_db/classes/DbField.class.php 2010/03/21 18:06:04 1.6
+++ db/prgsrc/drupal/modules/chgk_db/classes/DbField.class.php 2010/04/24 21:45:50 1.9
@@ -7,18 +7,27 @@ class DbField {
protected $value;
protected $number;
protected $html;
- public function __construct($field, $value, $number = false) {
+ protected $paragraphs;
+ protected $fb2;
+ protected $poems;
+ protected $codes;
+ protected $searchString;
+ protected $parent;
+
+ 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;
@@ -86,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: ([^\)]*)\)/','