Skip to content

Instantly share code, notes, and snippets.

@vgrish
Forked from Fi1osof/gist:4583503
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrish/58f8033adcf26ae84679 to your computer and use it in GitHub Desktop.
Save vgrish/58f8033adcf26ae84679 to your computer and use it in GitHub Desktop.
<?php
class YleyCompaniesUsersGetListProcessor extends modProcessor{
public static function getInstance(modX &$modx,$className,$properties = array()) {
switch($properties['type']){
case 'company__':
$className = require_once dirname(__FILE__).'/users/getlist.class.php';
break;
default:
if($properties['id'] == 'root'){
$className = 'YleyCompaniesGetListProcessor';
}
}
return new $className($modx, $properties);
}
public function process() {
return $this->failure('Неверные данные');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment