| @@ 2621-2678 (lines=58) @@ | ||
| 2618 | } |
|
| 2619 | } |
|
| 2620 | } |
|
| 2621 | class SimplePie_Category |
|
| 2622 | { |
|
| 2623 | ||
| 2624 | var $term; |
|
| 2625 | ||
| 2626 | var $scheme; |
|
| 2627 | ||
| 2628 | var $label; |
|
| 2629 | ||
| 2630 | public function __construct($term = null, $scheme = null, $label = null) |
|
| 2631 | { |
|
| 2632 | $this->term = $term; |
|
| 2633 | $this->scheme = $scheme; |
|
| 2634 | $this->label = $label; |
|
| 2635 | } |
|
| 2636 | ||
| 2637 | public function __toString() |
|
| 2638 | { |
|
| 2639 | // There is no $this->data here |
|
| 2640 | return md5(serialize($this)); |
|
| 2641 | } |
|
| 2642 | ||
| 2643 | public function get_term() |
|
| 2644 | { |
|
| 2645 | if ($this->term !== null) |
|
| 2646 | { |
|
| 2647 | return $this->term; |
|
| 2648 | } |
|
| 2649 | else |
|
| 2650 | { |
|
| 2651 | return null; |
|
| 2652 | } |
|
| 2653 | } |
|
| 2654 | ||
| 2655 | public function get_scheme() |
|
| 2656 | { |
|
| 2657 | if ($this->scheme !== null) |
|
| 2658 | { |
|
| 2659 | return $this->scheme; |
|
| 2660 | } |
|
| 2661 | else |
|
| 2662 | { |
|
| 2663 | return null; |
|
| 2664 | } |
|
| 2665 | } |
|
| 2666 | ||
| 2667 | public function get_label() |
|
| 2668 | { |
|
| 2669 | if ($this->label !== null) |
|
| 2670 | { |
|
| 2671 | return $this->label; |
|
| 2672 | } |
|
| 2673 | else |
|
| 2674 | { |
|
| 2675 | return $this->get_term(); |
|
| 2676 | } |
|
| 2677 | } |
|
| 2678 | } |
|
| 2679 | class SimplePie_Content_Type_Sniffer |
|
| 2680 | { |
|
| 2681 | ||
| @@ 2956-3013 (lines=58) @@ | ||
| 2953 | class SimplePie_Core extends SimplePie |
|
| 2954 | { |
|
| 2955 | } |
|
| 2956 | class SimplePie_Credit |
|
| 2957 | { |
|
| 2958 | ||
| 2959 | var $role; |
|
| 2960 | ||
| 2961 | var $scheme; |
|
| 2962 | ||
| 2963 | var $name; |
|
| 2964 | ||
| 2965 | public function __construct($role = null, $scheme = null, $name = null) |
|
| 2966 | { |
|
| 2967 | $this->role = $role; |
|
| 2968 | $this->scheme = $scheme; |
|
| 2969 | $this->name = $name; |
|
| 2970 | } |
|
| 2971 | ||
| 2972 | public function __toString() |
|
| 2973 | { |
|
| 2974 | // There is no $this->data here |
|
| 2975 | return md5(serialize($this)); |
|
| 2976 | } |
|
| 2977 | ||
| 2978 | public function get_role() |
|
| 2979 | { |
|
| 2980 | if ($this->role !== null) |
|
| 2981 | { |
|
| 2982 | return $this->role; |
|
| 2983 | } |
|
| 2984 | else |
|
| 2985 | { |
|
| 2986 | return null; |
|
| 2987 | } |
|
| 2988 | } |
|
| 2989 | ||
| 2990 | public function get_scheme() |
|
| 2991 | { |
|
| 2992 | if ($this->scheme !== null) |
|
| 2993 | { |
|
| 2994 | return $this->scheme; |
|
| 2995 | } |
|
| 2996 | else |
|
| 2997 | { |
|
| 2998 | return null; |
|
| 2999 | } |
|
| 3000 | } |
|
| 3001 | ||
| 3002 | public function get_name() |
|
| 3003 | { |
|
| 3004 | if ($this->name !== null) |
|
| 3005 | { |
|
| 3006 | return $this->name; |
|
| 3007 | } |
|
| 3008 | else |
|
| 3009 | { |
|
| 3010 | return null; |
|
| 3011 | } |
|
| 3012 | } |
|
| 3013 | } |
|
| 3014 | class SimplePie_Decode_HTML_Entities |
|
| 3015 | { |
|
| 3016 | ||