__construct() public method

public __construct ( $objParentObject, $strControlId = null )
 /**
  * QDataGrid::__construct()
  *
  * @param mixed  $objParentObject The Datagrid's parent
  * @param string $strControlId    Control ID
  *
  * @throws QCallerException
  * @return \QDataGrid
  */
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->CssClass = 'datagrid';
 }
Ejemplo n.º 2
0
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // For example... let's default the CssClass to datagrid
     $this->strCssClass = 'datagrid';
 }
Ejemplo n.º 3
0
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // For example... Let's ensure that any LINKED header is still Black
     $this->objHeaderLinkStyle->ForeColor = "black";
 }
Ejemplo n.º 4
0
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // For example... Let's ensure that any LINKED header is still Black
     $this->objHeaderLinkStyle->ForeColor = "black";
     // This has to be created here in order to include the javascripts
     // This is not ideal, because it is creating the control every time it loads, regardless of whether blnShowColumnToggle = true
     // cannot check blnShowColumnToggle because it is set after the datagrid is created
     // This is a big hurdle in order to get this included in the Qcodo core
     $this->objColumnToggle = new QDataGridColumnToggle($this);
 }