| 1 | <?php |
||
| 24 | class Ubb |
||
| 25 | { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * 从UBB的URL格式中取得链接地址 |
||
| 29 | * |
||
| 30 | * @param string $url |
||
| 31 | * @access public |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | function Url2Link($url) |
||
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * 从UBB的URL格式中取得链接名称 |
||
| 54 | * |
||
| 55 | * @param string $url |
||
| 56 | * @access public |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | function Url2Name($url) |
||
| 68 | |||
| 69 | } // end of class Ubb |
||
| 70 | ?> |
||
| 71 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.