Пример #1
0
 function __construct()
 {
     $this->config = ['url' => 'https://themes.svn.wordpress.org/', 'package-types' => ['wordpress-theme' => 'wordpress-theme'], 'package-filter' => [$this, 'filterPackage'], 'search-handler' => [$this, 'search'], 'cache-handler' => [$this, 'cache'], 'cache-ttl' => 'config', 'trust-cert' => true];
     parent::__construct();
 }
Пример #2
0
 function __construct()
 {
     $this->config = ['url' => 'https://wpcom-themes.svn.automattic.com/', 'provider-paths' => ['/'], 'package-paths' => [''], 'package-types' => ['wordpress-theme' => 'wordpress-com'], 'name-filter' => [$this, 'filterProvider'], 'version-filter' => [$this, 'filterVersion'], 'package-filter' => [$this, 'filterPackage'], 'search-handler' => [$this, 'search'], 'cache-handler' => [$this, 'cache'], 'cache-ttl' => 604800, 'trust-cert' => true];
     parent::__construct();
 }
Пример #3
0
 function __construct()
 {
     // set here so that we have a reference to $this
     $this->config = ['url' => 'https://plugins.svn.wordpress.org/', 'package-paths' => ['/tags/', '/trunk'], 'package-types' => ['wordpress-plugin' => 'wordpress-plugin', 'wordpress-muplugin' => 'wordpress-muplugin'], 'package-filter' => [$this, 'filterPackage'], 'search-handler' => [$this, 'search'], 'cache-handler' => [$this, 'cache'], 'cache-ttl' => 'config', 'trust-cert' => true];
     parent::__construct();
 }