本文整理匯總了PHP中WireData::trackChange方法的典型用法代碼示例。如果您正苦於以下問題:PHP WireData::trackChange方法的具體用法?PHP WireData::trackChange怎麽用?PHP WireData::trackChange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WireData
的用法示例。
在下文中一共展示了WireData::trackChange方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: trackChange
/**
* Track the change, but only if it was to the 'value' attribute.
*
* We don't track changes to any other properties of Inputfields.
*
* @param string $key
* @return this
*
*/
public function trackChange($key)
{
if ($key != 'value') {
return $this;
}
return parent::trackChange($key);
}
示例2: trackChange
/**
* Track the change, but only if it was to the 'value' attribute.
*
* We don't track changes to any other properties of Inputfields.
*
* @param string $what Name of property that changed
* @param mixed $old Previous value before change
* @param mixed $new New value
* @return $this
*
*/
public function trackChange($what, $old = null, $new = null)
{
if ($what != 'value') {
return $this;
}
return parent::trackChange($what, $old, $new);
}