Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 9... Línea 9...
9
    private $input;
9
    private $input;
10
    private $output;
10
    private $output;
11
    private $errors;
11
    private $errors;
12
    private $staticContextParams = [];
12
    private $staticContextParams = [];
13
    private $contextParams;
13
    private $contextParams;
-
 
14
    private $operationContextParams = [];
Línea 14... Línea 15...
14
 
15
 
15
    public function __construct(array $definition, ShapeMap $shapeMap)
16
    public function __construct(array $definition, ShapeMap $shapeMap)
16
    {
17
    {
Línea 26... Línea 27...
26
 
27
 
27
        if (isset($definition['staticContextParams'])) {
28
        if (isset($definition['staticContextParams'])) {
28
            $this->staticContextParams = $definition['staticContextParams'];
29
            $this->staticContextParams = $definition['staticContextParams'];
Línea -... Línea 30...
-
 
30
        }
-
 
31
 
-
 
32
        if (isset($definition['operationContextParams'])) {
-
 
33
            $this->operationContextParams = $definition['operationContextParams'];
29
        }
34
        }
30
 
35
 
31
        parent::__construct($definition, $shapeMap);
36
        parent::__construct($definition, $shapeMap);
Línea 32... Línea 37...
32
        $this->contextParams = $this->setContextParams();
37
        $this->contextParams = $this->setContextParams();
Línea 122... Línea 127...
122
    public function getContextParams()
127
    public function getContextParams()
123
    {
128
    {
124
        return $this->contextParams;
129
        return $this->contextParams;
125
    }
130
    }
Línea -... Línea 131...
-
 
131
 
-
 
132
    /**
-
 
133
     * Gets definition of modeled dynamic values used
-
 
134
     * for endpoint resolution
-
 
135
     *
-
 
136
     * @return array
-
 
137
     */
-
 
138
    public function getOperationContextParams(): array
-
 
139
    {
-
 
140
        return $this->operationContextParams;
-
 
141
    }
126
 
142
 
127
    private function setContextParams()
143
    private function setContextParams()
128
    {
144
    {
129
        $members = $this->getInput()->getMembers();
145
        $members = $this->getInput()->getMembers();