getRecord() public method

public getRecord ( String $keyValue = null ) : Gpf_Data_Record
$keyValue String
return Gpf_Data_Record
 /**
  * @param string $name
  * @return Gpf_Data_Record
  */
 private function get($name)
 {
     if ($this->attributes == null) {
         throw new Gpf_Exception("Attributes not loaded");
     }
     return $this->attributes->getRecord($name);
 }
Esempio n. 2
0
 public function getField($name) {
    	try {
    	    $record = $this->fields->getRecord($name);
    	    return $record->get(self::FIELD_VALUE);
    	} catch(Exception $e) {
    	    return '';
    	}
 }
Esempio n. 3
0
 public function getValue($name)
 {
     try {
         return $this->response->getRecord($name)->get(self::VALUE);
     } catch (Gpf_Data_RecordSetNoRowException $e) {
     }
     return null;
 }
Esempio n. 4
0
 public function generateRightRefidIntoRecordSet(Gpf_Data_IndexedRecordSet $recordSet) {
     $usernameRecord = $recordSet->getRecord('username');
     $usernameRecord->get('value');
     $r1 = $recordSet->createRecord();
     $r1->set('name', 'refid');
     $r1->set('value', substr(md5($usernameRecord->get('value')), 0, Gpf_Settings::get(self::SETTING_REFID_MIN_LENGTH)));
     $recordSet->addRecord($r1);
 }
 /**
  * @return Gpf_Data_IndexedRecordSet
  */
 public function fillViewColumns(Gpf_Data_IndexedRecordSet $allColumns, $viewid)
 {
     $viewColumns = new Gpf_Data_RecordSet();
     $selectBuilder = new Gpf_SqlBuilder_SelectBuilder();
     $selectBuilder->select->add('name', 'name');
     $selectBuilder->select->add('sorted', 'sorted');
     $selectBuilder->select->add('width', 'width');
     $selectBuilder->from->add(self::getName());
     $selectBuilder->where->add('viewid', '=', $viewid);
     $selectBuilder->orderBy->add('rorder');
     $viewColumns->load($selectBuilder);
     foreach ($viewColumns as $viewColumn) {
         try {
             $column = $allColumns->getRecord($viewColumn->get('name'));
             $column->set('sorted', $viewColumn->get('sorted'));
             $column->set('width', $viewColumn->get('width'));
             $column->set('visible', Gpf::YES);
         } catch (Exception $e) {
         }
     }
     return $allColumns;
 }
Esempio n. 6
0
 public function getFieldError($name)
 {
     $record = $this->fields->getRecord($name);
     return $record->get(self::FIELD_ERROR);
 }