Пример #1
0
 public static function printData(\JqGrider\Grid $grid)
 {
     $repository = $grid->getRespository();
     $conditions = new Conditions();
     $conditions->initConditions();
     // Call implementator to convert resource into setup data type
     $implementator = Factory::createResultImplementator($grid->getDataType());
     $implementator->printData(self::createResource($repository, $conditions, $grid));
 }
Пример #2
0
 /**
  * Constructor
  * 
  * @param string $dataType
  * @param array $options
  */
 public function __construct($dataType, $options = array())
 {
     $this->dataType = $dataType;
     $this->columnCollection = new ColumnCollection();
     $this->_dataTypeStrategy = Data\Type\Factory::createImplementator($this->dataType);
 }