Ejemplo n.º 1
0
 /**
  * Evented wrapper for Gdn_Model::SetField
  *
  * @param integer $RowID
  * @param string $Property
  * @param mixed $Value
  */
 public function setField($RowID, $Property, $Value = false)
 {
     if (!is_array($Property)) {
         $Property = array($Property => $Value);
     }
     $this->EventArguments['DiscussionID'] = $RowID;
     if (!is_array($Property)) {
         $this->EventArguments['SetField'] = array($Property => $Value);
     } else {
         $this->EventArguments['SetField'] = $Property;
     }
     parent::SetField($RowID, $Property, $Value);
     $this->fireEvent('AfterSetField');
 }
Ejemplo n.º 2
0
 /**
  * Evented wrapper for Gdn_Model::SetField
  *
  * @param integer $RowID
  * @param string $Property
  * @param mixed $Value
  */
 public function SetField($RowID, $Property, $Value = FALSE)
 {
     $this->EventArguments['DiscussionID'] = $RowID;
     $this->EventArguments['SetField'] = array($Property => $Value);
     parent::SetField($RowID, $Property, $Value);
     $this->fireEvent('AfterSetField');
 }