本文整理汇总了PHP中AbstractForm::setData方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractForm::setData方法的具体用法?PHP AbstractForm::setData怎么用?PHP AbstractForm::setData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractForm
的用法示例。
在下文中一共展示了AbstractForm::setData方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setData
/** {@inheritdoc} */
public function setData($data)
{
if (empty($data['OriginalId'])) {
throw new \LogicException('OriginalId not set or empty');
}
return parent::setData($data);
}
示例2: setData
/** {@inheritdoc} */
public function setData($data)
{
$data['Preferences']['lockValidity'] = $this->localize($data['Preferences']['lockValidity'], 'integer');
$data['Preferences']['sessionValidity'] = $this->localize($data['Preferences']['sessionValidity'], 'integer');
$data['Preferences']['sessionCleanupInterval'] = $this->localize($data['Preferences']['sessionCleanupInterval'], 'integer');
return parent::setData($data);
}
示例3: setData
/** {@inheritdoc} */
public function setData($data)
{
$data['Preferences']['scannersPerSubnet'] = $this->localize($data['Preferences']['scannersPerSubnet'], 'integer');
$data['Preferences']['scannerMinDays'] = $this->localize($data['Preferences']['scannerMinDays'], 'integer');
$data['Preferences']['scannerMaxDays'] = $this->localize($data['Preferences']['scannerMaxDays'], 'integer');
$data['Preferences']['scanArpDelay'] = $this->localize($data['Preferences']['scanArpDelay'], 'integer');
return parent::setData($data);
}
示例4: setData
public function setData($data)
{
$this->data = $data;
if (isset($data['options'])) {
if (!isset($data['product_id']) || !isset($data['parent_product_id'])) {
throw new \RuntimeExecption('didnt get product id or parent');
}
$this->addOptions($data['options']);
}
parent::setData($this->data);
}
示例5: setData
/** {@inheritdoc} */
public function setData($data)
{
$data['Preferences']['contactInterval'] = $this->localize($data['Preferences']['contactInterval'], 'integer');
$data['Preferences']['inventoryInterval'] = $this->localize($data['Preferences']['inventoryInterval'], 'integer');
return parent::setData($data);
}
示例6: setData
/** {@inheritdoc} */
public function setData($data)
{
$this->getInputFilter()->get('Preferences')->get('saveDir')->setRequired($data['Preferences']['saveRawData']);
return parent::setData($data);
}