@@ 559-571 (lines=13) @@ | ||
556 | * |
|
557 | * @return array |
|
558 | */ |
|
559 | final public function getExpected($method) { |
|
560 | ||
561 | $method = strtoupper($method); |
|
562 | ||
563 | return array( |
|
564 | ||
565 | ( sizeof($this->expected_attributes[$method]) == 0 AND sizeof($this->expected_attributes["ANY"]) != 0 ) ? $this->expected_attributes["ANY"] : $this->expected_attributes[$method], |
|
566 | ||
567 | ( sizeof($this->expected_parameters[$method]) == 0 AND sizeof($this->expected_parameters["ANY"]) != 0 ) ? $this->expected_parameters["ANY"] : $this->expected_parameters[$method] |
|
568 | ||
569 | ); |
|
570 | ||
571 | } |
|
572 | ||
573 | /** |
|
574 | * Get attributes and parameters that service likes |
|
@@ 578-590 (lines=13) @@ | ||
575 | * |
|
576 | * @return array |
|
577 | */ |
|
578 | final public function getLiked($method) { |
|
579 | ||
580 | $method = strtoupper($method); |
|
581 | ||
582 | return array( |
|
583 | ||
584 | ( sizeof($this->liked_attributes[$method]) == 0 AND sizeof($this->liked_attributes["ANY"]) != 0 ) ? $this->liked_attributes["ANY"] : $this->liked_attributes[$method], |
|
585 | ||
586 | ( sizeof($this->liked_parameters[$method]) == 0 AND sizeof($this->liked_parameters["ANY"]) != 0 ) ? $this->liked_parameters["ANY"] : $this->liked_parameters[$method] |
|
587 | ||
588 | ); |
|
589 | ||
590 | } |
|
591 | ||
592 | /** |
|
593 | * Set request attributes (used by dispatcher) |