Exemplo n.º 1
0
 function __construct(array &$info, DBReader &$rdr, $flags = 0)
 {
     parent::__construct($info);
     if (preg_match("/^(.*)__BLOB__(.*)\$/", $this->gid, $m)) {
         $gid = $m[1];
         $blob_group = $m[2];
         $blob_opts = $rdr->GetGroupOption($this, "blob_groups");
         $blob_col = array("data" => false, "custom" => "/^(" . $blob_group . ")/");
         $col = $rdr->GetGroupOption($this, "columns");
         $this->options = array("data_extractors" => $blob_opts[$gid]["data_extractors"], "custom_data_filters" => $blob_opts[$gid]["custom_data_filters"], "columns" => array_replace($col, $blob_col));
     } else {
         $gid = $this->gid;
         $blob_group = false;
     }
     if (is_array($rdr->groups)) {
         foreach ($rdr->groups as $re => &$table) {
             if (preg_match($re, $this->gid)) {
                 $this->table = preg_replace($re, $table, $gid);
                 return;
             }
         }
     }
     $this->table = $this->gid;
 }