Get the model to access diagnostic storage through dataTable

@return DiagnosticDataTable
489155
protected function getDiagnosticDataTable()
    {
        if (! $this->dataTable) {
            $diagnosticDatatable = new DiagnosticDataTable();
            $diagnosticDatatable->setServiceLocator($this->getServiceLocator());
            $this->dataTable = $diagnosticDatatable;
        }
        return $this->dataTable;
    }
564605
protected function getDataTablesColumn(DataTablesProviderInterface $dtProvider, $data) {

        $this->getLogger()->debug(sprintf("DataTables controller search for a column with name \"%s\"", $data));

        $dtColumn = $this->getDataTablesWrapper($dtProvider)->getColumn($data);
        if (null === $dtColumn) {
            throw new BadDataTablesColumnException($data);
        }

        $this->getLogger()->debug(sprintf("DataTables controller found a column with name \"%s\"", $data));

        return $dtColumn;
    }
833977
protected function getDataTable()
	{
		$data = $this->getTableData();
		$header = $this->getTableHeader();

		$table = new Table();
		// set the configuration
		$table->setConfig(array(
			"table-hover"=>true, 
			"table-condensed"=>false, 
			"table-responsive" => true,
			"table-striped" => true,
			 ));
		// set header
		$table->setHeader( $header );
		// set data
		foreach($data as $val)
		{
			$table->addRows( get_object_vars($val) );
		}

		return $table->getHtml();
	}
1285901
protected function getModel()
    {
        $name           = $this->getNameInput();
        $rootNamespace  = $this->laravel->getNamespace();
        $model          = $this->option('model') || $this->option('model-namespace');
        $modelNamespace = $this->option('model-namespace') ? $this->option('model-namespace') : $this->laravel['config']->get('datatables-buttons.namespace.model');

        return $model
            ? $rootNamespace . '\\' . ($modelNamespace ? $modelNamespace . '\\' : '') .  str_singular($name)
            : $rootNamespace . '\\User';
    }
1109412
public function getDiagnostics($options = array())
    {
        return $this->paginate($this->getStorage(), $options, function($data) {
            foreach($data as $idx => $row) {
                $rowData = [
                    'id'          => $row[PaginatedSqlStorage::DIAGNOSTIC_ID],
                    'school_name' => $row[PaginatedSqlStorage::DIAGNOSTIC_SCHOOL_NAME],
                    'school_number' => $row[PaginatedSqlStorage::DIAGNOSTIC_SCHOOL_NUMBER],
                    'fingerprint' => [
                        'uuid'    => $row[PaginatedSqlStorage::DIAGNOSTIC_FINGERPRINT_UUID],
                        'value'   => $row[PaginatedSqlStorage::DIAGNOSTIC_FINGERPRINT_VALUE],
                        'details' => json_decode(html_entity_decode($row[PaginatedSqlStorage::DIAGNOSTIC_FINGERPRINT_DETAILS]), true),
                        'errors'  => $row[PaginatedSqlStorage::DIAGNOSTIC_FINGERPRINT_ERRORS],
                        'changed' => $row[PaginatedSqlStorage::DIAGNOSTIC_FINGERPRINT_CHANGED],
                    ],
                    'screen'      => [
                        'width'   => $row[PaginatedSqlStorage::DIAGNOSTIC_SCREEN_WIDTH],
                        'height'  => $row[PaginatedSqlStorage::DIAGNOSTIC_SCREEN_HEIGHT]
                    ],
                    'os'          => $row[PaginatedSqlStorage::DIAGNOSTIC_OS] . ' (' . $row[PaginatedSqlStorage::DIAGNOSTIC_OSVERSION] . ')',
                    'browser'     => $row[PaginatedSqlStorage::DIAGNOSTIC_BROWSER] . ' (' . $row[PaginatedSqlStorage::DIAGNOSTIC_BROWSERVERSION] . ')',
                    'performance' => $row[PaginatedSqlStorage::DIAGNOSTIC_PERFORMANCE_AVERAGE],
                    'bandwidth'   => $row[PaginatedSqlStorage::DIAGNOSTIC_BANDWIDTH_MAX],
                    'intensive_bandwidth' => $row[PaginatedSqlStorage::DIAGNOSTIC_INTENSIVE_BANDWIDTH_MAX],
                    'upload' => $row[PaginatedSqlStorage::DIAGNOSTIC_UPLOAD_MAX],
                ];

                if (isset($row[PaginatedSqlStorage::DIAGNOSTIC_WORKSTATION])) {
                    $rowData['workstation'] = $row[PaginatedSqlStorage::DIAGNOSTIC_WORKSTATION] . ' (' . $row[PaginatedSqlStorage::DIAGNOSTIC_IP] . ')';
                } else {
                    $rowData['workstation'] = '(' . $row[PaginatedSqlStorage::DIAGNOSTIC_IP] . ')';
                }

                if (isset($row[PaginatedSqlStorage::DIAGNOSTIC_CREATED_AT])) {
                    $dt = new DateTime($row[PaginatedSqlStorage::DIAGNOSTIC_CREATED_AT]);
                    $rowData['date'] = $dt->getTimestamp();
                }

                $data[$idx] = $rowData;
            }
            return $data;
        });
    }
113893
public function getIdentifyingData()
    {
        $keys = array_keys($this->getEntityDescription()->getIdentifyingProperties());

        $data = array();

        foreach ($keys as $key) {
            if ($this->_data->isMaterialized($key)) {
                $value = $this->get($key);

                if ($value) {
                    $data[$key] = $value;
                }
            }
        }

        return $data;
    }
1200903
protected function getExportModel()
    {
        $model = parent::getExportModel();
        $model->del('parents', 'formatFunction');
        $model->del('allowed', 'formatFunction');
        $model->del('inherited', 'formatFunction');

        return $model;
    }
994750
private function getActiveModel()
    {
        $input = $this->getEnvironment()->getInputProvider();
        if (false === $input->hasParameter('id')) {
            return null;
        }

        $modelId      = ModelId::fromSerialized($input->getParameter('id'));
        $dataProvider = $this->getEnvironment()->getDataProvider($modelId->getDataProviderName());

        $model = $dataProvider->fetch($dataProvider->getEmptyConfig()->setId($modelId->getId()));

        return $model;
    }
713225
protected function getDataTable() {
		if (! $this->_datatable) {
			if (in_array($this->params('table'), $this->getNameManager()->getTableNames())) {
				$DataTable = "\\{$this->getNameManager()->namespace_model}\\{$this->getNameManager()->modelName}";
				$this->_datatable = new $DataTable();
			}
		}
		return $this->_datatable;
	}
984381
public static function getUpdatableModelIds() {
        $model = ModelManager::getModel();
        if (!$model instanceof self) {
            throw new common_exception_Error(__FUNCTION__.' called on '.get_class($model).' model implementation');
        }
        return $model->getWritableModels();
    }
29886
public function getModel()
    {
        if (!isset($this->_pk))
            throw new InvalidCallException('Invalid usage. You must call this method only if load method succeeds');

        if (isset($this->_model))
            return $this->_model;

        $class = $this->modelClass;
        return $this->_model = $class::findOne($this->_pk);
    }
576508
public function getStorageModel()
    {
        if (!$this->storageModel) {
            $this->storageModel = $this->getServiceLocator()->get('HtProfileImage\StorageModel');
        }

        return $this->storageModel;
    }
661302
protected function getDataSessions() {
        if (!$this->_dataSessions) {
            $this->_dataSessions = new DataSessionList($this->version, $this->solution['sid']);
        }

        return $this->_dataSessions;
    }
862963
public function getEloquentDataMethod()
    {
        $map = Config::dataTypeMap();

        if (isset($map[$this->dataType])) {
            return $map[$this->dataType];
        }

        return 'string';
    }
898266
public function show()
    {
        $dataProvider = new ActiveDataProvider(['query' => static::find()]);
        $dataProvider->sort->defaultOrder = ['sort' => SORT_ASC, 'id' => SORT_ASC];
        return $dataProvider->getModels();
    }
356092
public function getModel()
    {
        $namePath = $this->getModelClass();
        $model = new $namePath();

        if (!($model instanceof EntityDataModel)) {
            throw new \Exception($this->valueClass.' is not an instance of EntityModel.');
        }

        return $model;
    }
1371754
public DiagnosticFileDumper getDiagnosticFileDumper() {

        if (diagnosticFileDumper != null) {
            return diagnosticFileDumper;
        }

        String dd = sdkProperties.getProperty(DIAGNOTISTIC_FILE_DIRECTORY);

        if (dd != null) {

            diagnosticFileDumper = DiagnosticFileDumper.configInstance(new File(dd));

        }

        return diagnosticFileDumper;
    }