TAILIEUCHUNG - Expert PHP 5 Tools phần 3

Bình luận: Đây là một từ khóa cực kỳ hữu ích cho bất kỳ nhà phát triển đã lợi dụng các phương pháp ma thuật của PHP. Kể từ khi thậm chí còn phản ánh không thể biết về các phương pháp phát triển tạo ra bằng cách sử dụng phương pháp ma thuật __call (), | Chapter 2 @method Name File Class Method Property @method return_type method_name type arg1 vall type arg2 val2 . description x Example s method array mix Array arrayl array Array array2 array joins and randomizes two arrays Comments This is an extremely useful tag for any developer who takes advantage of PHP s magic methods. Since even reflection cannot know about methods the developer creates using thecall magic method one can use the @method tag to document any magic methods provided by the class. Any method documented this way will be listed on the class-level documentation. @name Name File Class Method Property name var_name x Example s name colors global array HTML_COLORS array ffffff ff0000 000000 white red black Comments Creates an alias for a global variable for documentation purposes also see global tag . 77 Download from Wow eBook Documentation with phpDocumentor @package Name File Class Method Property package package_name x x Example s File-level package tag package Authentication_API Class-level package tag needed because it is not inherited package Authentication_API class ResultSet Comments This tag defines a logical grouping of elements within the documentation. A file-level package tag will apply to all elements within that file however package membership of classes will be default unless explicitly set for the class itself. This is true even if the file-level package tag has been set The only exception is that sub-classes inherit their parent class s package membership. @property Name File Class Method Property property data_type var_name description x property-read datatype varname description x property-write datatype varname description x Example s property string greeting greeting to user upon login class Login private greeting Hello Stranger public function _get property if property greeting return this- greeting 78 Download from Wow eBook Chapter 2 Comments The property tag documents magic properties

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.