Go to the documentation of this file.00001 <?php
00002
00006 class oxListObject
00007 {
00008
00012 private $_sTableName = '';
00013
00019 public function __construct($sTableName)
00020 {
00021 $this->_sTableName = $sTableName;
00022 }
00023
00031 public function assign($aData)
00032 {
00033 if (!is_array($aData)) {
00034 return;
00035 }
00036 foreach ($aData as $sKey => $sValue) {
00037 $sFieldName = strtolower($this->_sTableName . '__' . $sKey);
00038 $this->$sFieldName = new oxField($sValue);
00039 }
00040 }
00041
00047 public function getId()
00048 {
00049 $sFieldName = strtolower($this->_sTableName . '__oxid');
00050 return $this->$sFieldName->value;
00051 }
00052 }