}
if (!ClassUtil::isInstanceOf($this->className, 'wcf\system\worker\IWorker')) {
- throw new SystemException("class '".$this->className."' should implement the interface 'wcf\system\worker\IWorker'");
+ throw new SystemException("'".$this->className."' does not implement 'wcf\system\worker\IWorker'");
}
}
protected function invoke() {
// check for interface and inheritance of SingletonFactory
if (!ClassUtil::isInstanceOf($this->className, 'wcf\system\IAJAXInvokeAction')) {
- throw new SystemException("'".$this->className."' should implement 'wcf\system\IAJAXInvokeAction'");
+ throw new SystemException("'".$this->className."' does not implement 'wcf\system\IAJAXInvokeAction'");
}
else if (!ClassUtil::isInstanceOf($this->className, 'wcf\system\SingletonFactory')) {
- throw new SystemException("'".$this->className."' should extend 'wcf\system\SingletonFactory'");
+ throw new SystemException("'".$this->className."' does not extend 'wcf\system\SingletonFactory'");
}
$this->actionObject = call_user_func(array($this->className, 'getInstance'));
*/
protected function invoke() {
if (!ClassUtil::isInstanceOf($this->className, 'wcf\data\IDatabaseObjectAction')) {
- throw new SystemException("'".$this->className."' should implement 'wcf\data\IDatabaseObjectAction'");
+ throw new SystemException("'".$this->className."' does not implement 'wcf\data\IDatabaseObjectAction'");
}
if (!empty($this->interfaceName)) {
if (!ClassUtil::isInstanceOf($this->className, $this->interfaceName)) {
- throw new SystemException("'".$this->className."' should implement '".$this->interfaceName."'");
+ throw new SystemException("'".$this->className."' does not implement '".$this->interfaceName."'");
}
}
throw new SystemException("Unable to find class '".$this->className."'");
}
if (!ClassUtil::isInstanceOf($this->className, static::$processorInterface)) {
- throw new SystemException("'".$this->className."' should implement ".static::$processorInterface);
+ throw new SystemException("'".$this->className."' does not implement '".static::$processorInterface."'");
}
if (ClassUtil::isInstanceOf($this->className, 'wcf\system\SingletonFactory')) {
}
else {
if (!ClassUtil::isInstanceOf($this->className, 'wcf\data\IDatabaseObjectProcessor')) {
- throw new SystemException("'".$this->className."' should implement wcf\data\IDatabaseObjectProcessor");
+ throw new SystemException("'".$this->className."' does not implement 'wcf\data\IDatabaseObjectProcessor'");
}
$this->processor = new $this->className($this);
objects itself - instead it provides methods to receive the required objects.
if (!ClassUtil::isInstanceOf($this->className, 'wcf\data\IDatabaseObjectProcessor')) {
- throw new SystemException("'".$this->className."' should implement wcf\data\IDatabaseObjectProcessor");
+ throw new SystemException("'".$this->className."' does not implement 'wcf\data\IDatabaseObjectProcessor'");
}
*/
if (($definitionInterface = ObjectTypeCache::getInstance()->getDefinition($this->definitionID)->interfaceName) && !ClassUtil::isInstanceOf($this->className, $definitionInterface)) {
- throw new SystemException("'".$this->className."' should implement ".$definitionInterface);
+ throw new SystemException("'".$this->className."' does not implement '".$definitionInterface."'");
}
if (ClassUtil::isInstanceOf($this->className, 'wcf\system\SingletonFactory')) {
}
if (!ClassUtil::isInstanceOf($this->className, 'wcf\system\sitemap\ISitemapProvider')) {
- throw new SystemException("Class '".$this->className."' does not implement the interface 'wcf\system\sitemap\ISitemapProvider'");
+ throw new SystemException("'".$this->className."' does not implement 'wcf\system\sitemap\ISitemapProvider'");
}
$this->sitemapObj = new $this->className();
// validate interface
if (!ClassUtil::isInstanceOf($this->outputClass, 'wcf\system\option\user\IUserOptionOutput')) {
- throw new SystemException("'".$this->outputClass."' should implement wcf\system\option\user\IUserOptionOutput");
+ throw new SystemException("'".$this->outputClass."' does not implement 'wcf\system\option\user\IUserOptionOutput'");
}
self::$outputObjects[$this->outputClass] = new $this->outputClass();
}
if (!ClassUtil::isInstanceOf($this->objectListClassName, 'wcf\data\DatabaseObjectList')) {
- throw new SystemException("Class '".$this->objectListClassName."' does not extend 'wcf\data\DatabaseObjectList'");
+ throw new SystemException("'".$this->objectListClassName."' does not extend 'wcf\data\DatabaseObjectList'");
}
$this->objectList = new $this->objectListClassName();
throw new SystemException("unable to find class '".$className."'");
}
if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\user\group\IUserGroupOptionType')) {
- throw new SystemException("'".$className."' should implement wcf\system\option\user\group\IUserGroupOptionType");
+ throw new SystemException("'".$className."' does not implement 'wcf\system\option\user\group\IUserGroupOptionType'");
}
// create instance
// validate interface
if (!(ClassUtil::isInstanceOf($adapterData['className'], 'wcf\system\cleanup\ICleanupAdapter'))) {
- throw new SystemException("class '".$adapterData['className']."' does not implement the interface 'wcf\system\cleanup\ICleanupAdapter'");
+ throw new SystemException("'".$adapterData['className']."' does not implement 'wcf\system\cleanup\ICleanupAdapter'");
}
$adapter = new $adapterData['className']();
if (!isset($actions[$actionClassName])) {
// validate class
if (!ClassUtil::isInstanceOf($actionClassName, 'wcf\system\clipboard\action\IClipboardAction')) {
- throw new SystemException("class '".$actionClassName."' does not implement the interface 'wcf\system\clipboard\action\IClipboardAction'.");
+ throw new SystemException("'".$actionClassName."' does not implement 'wcf\system\clipboard\action\IClipboardAction'");
}
$actions[$actionClassName] = array(
// verify class signature
if (!(ClassUtil::isInstanceOf($className, 'wcf\system\cronjob\ICronjob'))) {
- throw new SystemException("class '".$className."' does not implement the interface 'wcf\system\cronjob\ICronjob'");
+ throw new SystemException("'".$className."' does not implement 'wcf\system\cronjob\ICronjob'");
}
// execute cronjob
throw new SystemException("Unable to find class '".$action['listenerClassName']."'");
}
if (!ClassUtil::isInstanceOf($action['listenerClassName'], 'wcf\system\event\IEventListener')) {
- throw new SystemException("'".$action['listenerClassName']."' should implement interface wcf\system\event\IEventListener");
+ throw new SystemException("'".$action['listenerClassName']."' does not implement 'wcf\system\event\IEventListener'");
}
$object = new $action['listenerClassName'];
throw new SystemException("Unable to find class '".$action['listenerClassName']."'");
}
if (!ClassUtil::isInstanceOf($action['listenerClassName'], 'wcf\system\event\IEventListener')) {
- throw new SystemException("'".$action['listenerClassName']."' should implement interface wcf\system\event\IEventListener");
+ throw new SystemException("'".$action['listenerClassName']."' does not implement 'wcf\system\event\IEventListener'");
}
$object = new $action['listenerClassName'];
return null;
}
if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\IOptionType')) {
- throw new SystemException("'".$className."' should implement wcf\system\option\IOptionType");
+ throw new SystemException("'".$className."' does not implement 'wcf\system\option\IOptionType'");
}
return $className;
return null;
}
if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\user\group\IUserGroupOptionType')) {
- throw new SystemException("'".$className."' should implement 'wcf\system\option\user\group\IUserGroupOptionType'");
+ throw new SystemException("'".$className."' does not implement 'wcf\system\option\user\group\IUserGroupOptionType'");
}
return $className;
$plugin = new $className($this, $nodeData);
if (!($plugin instanceof \wcf\system\package\plugin\IPackageInstallationPlugin)) {
- throw new SystemException("class '".$className."' does not implement the interface 'wcf\system\package\plugin\IPackageInstallationPlugin'");
+ throw new SystemException("'".$className."' does not implement 'wcf\system\package\plugin\IPackageInstallationPlugin'");
}
// execute PIP
foreach ($this->cache as $acpSearchProvider) {
$className = $acpSearchProvider->className;
if (!ClassUtil::isInstanceOf($className, 'wcf\system\search\acp\IACPSearchResultProvider')) {
- throw new SystemException("Class '".$className."' does not implement the interface 'wcf\system\search\acp\IACPSearchResultProvider'");
+ throw new SystemException("'".$className."' does not implement 'wcf\system\search\acp\IACPSearchResultProvider'");
}
$provider = new $className();