updateRow() public method

Update entity table row
public updateRow ( integer $guid, stdClas\stdClass $row ) : integer | false
$guid integer Entity guid
$row stdClas\stdClass Updated data
return integer | false
コード例 #1
0
ファイル: EntityTable.php プロジェクト: elgg/elgg
 /**
  * {@inheritdoc}
  */
 public function updateRow($guid, stdClass $row)
 {
     $attributes = array_merge((array) $this->rows[$guid], (array) $row);
     // Rebuild query specs for the udpated row
     $this->addQuerySpecs((object) $attributes);
     return parent::updateRow($guid, $row);
 }