예제 #1
0
 /**
  *@desc Constructor
  *@param Context $context XMLNuke context object
  *@param array $fields Fields will be processed
  *@param string $header Simple string header
  *@param string $module Module will be process this request-> Usually is the same module instantiate the XmlnukeCrudDB
  *@param array $buttons Custom buttons in View/Select mode
  *@param string $table Table in database-> This table must contains all fields defined in "fields" parameter
  *@param string $connection Database connections
  */
 public function __construct($context, $fields, $header, $module, $buttons, $table, $connection)
 {
     parent::__construct($context, $fields, $header, $module, $buttons);
     $this->_conn = $connection;
     $this->_table = $table;
     $this->_dbData = new DBDataset($this->_conn);
 }
예제 #2
0
 /**
  *@desc Constructor
  *@param Context $context XMLNuke context object
  *@param array fields Fields will be processed
  *@param string header Simple $header
  *@param string module Module will be process this request. Usually is the same $module instantiate the XmlnukeCrudDB
  *@param array $buttons Custom buttons in View/Select mode
  *@param AnydatasetBaseFilenameProcessor $anydata Database connections.
  *@param IteratorFilter iteratorFilter
  */
 public function __construct($context, $fields, $header, $module, $buttons, $anydata, $iteratorFilter = null)
 {
     parent::__construct($context, $fields, $header, $module, $buttons);
     $this->_anydata = $anydata;
     $this->_itf = $iteratorFilter;
 }