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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/palandch/www/core/model/modx/modjsonrpcresource.class.php
<?php
/**
 * @package modx
 * @subpackage jsonrpc
 */
/**
 * Represents a MODX Resource that services JSON-RPC client requests.
 *
 * @package modx
 * @subpackage jsonrpc
 */
class modJSONRPCResource extends modResource {
	public $allowListingInClassKeyDropdown = false;
    /**
     * Overrides the modResource constructor to set the response class and class_key for this Resource type
     * @param xPDO $xpdo
     */
    function __construct(xPDO &$xpdo) {
        parent :: __construct($xpdo);
        $this->_fields['class_key']= 'modJSONRPCResource';
        $this->xpdo->setOption('modResponse.class','jsonrpc.modJSONRPCResponse');
        $this->showInContextMenu = false;
    }

    /**
     * Overrides modResource::process to provide a custom response
     *
     * @see modResource::process()
     * @return string The processed content
     */
    public function process() {
        $this->xpdo->getResponse('jsonrpc.modJSONRPCResponse');
        parent :: process();
        return $this->_content;
    }
}

Spamworldpro Mini