Rev 37 | Rev 41 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 37 | Rev 38 | ||
---|---|---|---|
Line 188... | Line 188... | ||
188 | (stripos($value, 'FIXME') !== false) || |
188 | (stripos($value, 'FIXME') !== false) || |
189 | (stripos($value, 'XXX') !== false)); |
189 | (stripos($value, 'XXX') !== false)); |
190 | } |
190 | } |
191 | 191 | ||
192 | function _iconCodeToIndex(/* FastPHPIcon */ $icon) { |
192 | function _iconCodeToIndex(/* FastPHPIcon */ $icon) { |
193 | if (($icon->getType() == ICON_TYPE_CLASS) && (!$icon->isAbstract())) return 0; |
193 | if (($icon->getType() == ICON_TYPE_CLASS) && (!$icon->isAbstract())) return 0; // class |
194 | else if (($icon->getType() == ICON_TYPE_CLASS) && ( $icon->isAbstract())) return 1; |
194 | else if (($icon->getType() == ICON_TYPE_CLASS) && ( $icon->isAbstract())) return 1; // abstract class |
195 | else if (($icon->getType() == ICON_TYPE_INTERFACE) ) return 1; |
195 | else if (($icon->getType() == ICON_TYPE_INTERFACE) ) return 2; // interface |
196 | else if (($icon->getType() == ICON_TYPE_TRAIT) ) return 2; |
196 | else if (($icon->getType() == ICON_TYPE_TRAIT) ) return 3; // trait |
197 | else if (($icon->getType() == ICON_TYPE_CONST) && ($icon->isPrivate()) ) return 3; |
197 | else if (($icon->getType() == ICON_TYPE_CONST) && ($icon->isPrivate()) ) return 4; // private const |
198 | else if (($icon->getType() == ICON_TYPE_VAR) && ($icon->isPrivate()) ) return 4; |
198 | else if (($icon->getType() == ICON_TYPE_VAR) && ($icon->isPrivate()) ) return 5; // private var |
199 | else if (($icon->isMethod()) && ($icon->isPrivate()) && (!$icon->isAbstract())) return 5; |
199 | else if (($icon->isMethod()) && ($icon->isPrivate()) && (!$icon->isAbstract())) return 6; // private function |
200 | else if (($icon->isMethod()) && ($icon->isPrivate()) && ( $icon->isAbstract())) return 6; |
200 | else if (($icon->isMethod()) && ($icon->isPrivate()) && ( $icon->isAbstract())) return 7; // private abstract function |
201 | else if (($icon->getType() == ICON_TYPE_CONST) && ($icon->isProtected()) ) return 7; |
201 | else if (($icon->getType() == ICON_TYPE_CONST) && ($icon->isProtected()) ) return 8; // protected const |
202 | else if (($icon->getType() == ICON_TYPE_VAR) && ($icon->isProtected()) ) return 8; |
202 | else if (($icon->getType() == ICON_TYPE_VAR) && ($icon->isProtected()) ) return 9; // protected var |
203 | else if (($icon->isMethod()) && ($icon->isProtected()) && (!$icon->isAbstract())) return 9; |
203 | else if (($icon->isMethod()) && ($icon->isProtected()) && (!$icon->isAbstract())) return 10; // protected function |
204 | else if (($icon->isMethod()) && ($icon->isProtected()) && ( $icon->isAbstract())) return 10; |
204 | else if (($icon->isMethod()) && ($icon->isProtected()) && ( $icon->isAbstract())) return 11; // protected abstract function |
205 | else if (($icon->getType() == ICON_TYPE_CONST) && ($icon->isPublic()) ) return 11; |
205 | else if (($icon->getType() == ICON_TYPE_CONST) && ($icon->isPublic()) ) return 12; // public const |
206 | else if (($icon->getType() == ICON_TYPE_VAR) && ($icon->isPublic()) ) return 12; |
206 | else if (($icon->getType() == ICON_TYPE_VAR) && ($icon->isPublic()) ) return 13; // public var |
207 | else if (($icon->isMethod()) && ($icon->isPublic()) && (!$icon->isAbstract())) return 13; |
207 | else if (($icon->isMethod()) && ($icon->isPublic()) && (!$icon->isAbstract())) return 14; // public function |
208 | else if (($icon->isMethod()) && ($icon->isPublic()) && ( $icon->isAbstract())) return 14; |
208 | else if (($icon->isMethod()) && ($icon->isPublic()) && ( $icon->isAbstract())) return 15; // public abstract function |
209 | else if (($icon->getType() == ICON_TYPE_TODO) ) return 15; |
209 | else if (($icon->getType() == ICON_TYPE_TODO) ) return 16; // ToDo comment |
210 | else return -1; |
210 | else return -1; |
211 | } |
211 | } |
212 | 212 | ||
213 | class FastPHPIcon { |
213 | class FastPHPIcon { |
214 | private $type; // ICON_TYPE_* |
214 | private $type; // ICON_TYPE_* |