本文整理汇总了PHP中Kwc_Abstract::validateSettings方法的典型用法代码示例。如果您正苦于以下问题:PHP Kwc_Abstract::validateSettings方法的具体用法?PHP Kwc_Abstract::validateSettings怎么用?PHP Kwc_Abstract::validateSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kwc_Abstract
的用法示例。
在下文中一共展示了Kwc_Abstract::validateSettings方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: validateSettings
public static function validateSettings($settings, $componentClass)
{
parent::validateSettings($settings, $componentClass);
if (!isset($settings['flags']['chainedType']) || !is_string($settings['flags']['chainedType'])) {
throw new Kwf_Exception("Flag 'chainedType' not set for '{$componentClass}'.");
}
}
示例2: validateSettings
public static function validateSettings($settings, $componentClass)
{
parent::validateSettings($settings, $componentClass);
if (isset($settings['showInactiveSwitchLinks'])) {
throw new Kwf_Exception("'showInactiveSwitchLinks' setting got removed; style them using css");
}
}
示例3: validateSettings
public static function validateSettings($settings, $componentClass)
{
parent::validateSettings($settings, $componentClass);
if (isset($settings['dimensions'])) {
throw new Kwf_Exception("Don't set dimensions, use dimension for a single one");
}
}
示例4: validateSettings
public static function validateSettings($settings, $componentClass)
{
parent::validateSettings($settings, $componentClass);
$parentsWithHasHomeFlag = self::_getParentsWithHasHomeFlagComponentClasses($componentClass);
foreach ($parentsWithHasHomeFlag as $i) {
self::_validateHasNotChildWithStaticHome($i);
}
}