Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : palandch ( 1163)
PHP Version : 7.1.33
Disable Function : NONE
Directory :  /home/palandch/www/core/model/modx/processors/workspace/providers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/palandch/www/core/model/modx/processors/workspace/providers/get.class.php
<?php
/**
 * Gets a provider
 *
 * @package modx
 * @subpackage processors.workspace.providers
 */
class modProviderGetProcessor extends modProcessor {
    /** @var modTransportProvider $provider */
    public $provider;

    public function checkPermissions() {
        return $this->modx->hasPermission('providers');
    }
    public function getLanguageTopics() {
        return array('workspace');
    }

    public function initialize() {
        $id = $this->getProperty('id',false);
        $name = $this->getProperty('name',false);

        $c = !empty($id) ? array('id' => $id) : array('name' => $name);
        if (empty($id) && empty($name)) return $this->modx->lexicon('provider_err_ns');
        $this->provider = $this->modx->getObject('transport.modTransportProvider',$c);
        if (empty($this->provider)) return $this->modx->lexicon('provider_err_nfs',$c);
        return true;
    }

    public function process() {
        return $this->success('',$this->provider);
    }
}
return 'modProviderGetProcessor';

Spamworldpro Mini