PHP 에서도 anotation 드리븐을 구현 할 수 있을거 같내요 ㅎ;
http://code.google.com/p/addendum/
잘만 활용 하면, spring framework 장점만 경량화 하여
php 진영에서도 ... framework 도 나오지 않을가 하는
생각을 문득 해봤습니다.
------------------------------------------------------------------
/** @Table("people") */
class Person {
// some code
}
$reflection = new ReflectionAnnotatedClass('Person'); // by class name
$reflection->getAnnotation('Table')->value; // contains string "people"
----------------------------------------------------------------------
class RolesAllowed extends Annotation {}
/** @RolesAllowed({'admin', 'web-editor'}) */
class CMS {
// some code
}
$reflection = new ReflectionAnnotatedClass('CMS');
$annotation = $reflection->getAnnotation('RolesAllowed');
$annotation->value; // contains array('admin', 'web-editor'
-------------------------------------------------------------
/** @Mapping(inheritance = @SingleTableInheritance, columns = {@ColumnMapping('id'), @ColumnMapping('name')}) */
class Person {}
$reflection = new ReflectionAnnotatedClass('Person');
$annotation = $reflection->getAnnotation('Mapping');
$annotation->inheritance; // SingleTableInheritance annotation
$annotation->columns; // array of ColumnMapping annotations
$annotation->columns[0]->value; // 'id'
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2192 | |
| 829 |
|
19년 전 | 1935 | |
| 828 |
|
19년 전 | 1818 | |
| 827 |
|
19년 전 | 1657 | |
| 826 |
|
19년 전 | 1854 | |
| 825 |
|
19년 전 | 1903 | |
| 824 |
|
19년 전 | 1959 | |
| 823 |
|
19년 전 | 2695 | |
| 822 |
|
19년 전 | 5329 | |
| 821 |
|
19년 전 | 1728 | |
| 820 |
|
19년 전 | 1582 | |
| 819 |
|
19년 전 | 1446 | |
| 818 |
|
19년 전 | 1610 | |
| 817 |
|
19년 전 | 1531 | |
| 816 |
|
19년 전 | 1449 | |
| 815 |
|
19년 전 | 1464 | |
| 814 |
|
19년 전 | 1386 | |
| 813 |
|
19년 전 | 1452 | |
| 812 | 19년 전 | 2825 | ||
| 811 |
pearly
|
19년 전 | 3842 | |
| 810 |
pearly
|
19년 전 | 5222 | |
| 809 |
|
19년 전 | 1388 | |
| 808 |
pearly
|
19년 전 | 4545 | |
| 807 | 19년 전 | 2983 | ||
| 806 |
|
19년 전 | 1506 | |
| 805 |
|
19년 전 | 2698 | |
| 804 |
|
19년 전 | 3624 | |
| 803 |
|
19년 전 | 1816 | |
| 802 |
|
19년 전 | 3793 | |
| 801 |
|
19년 전 | 1885 | |
| 800 | 19년 전 | 3773 | ||
| 799 | 19년 전 | 3442 | ||
| 798 | 19년 전 | 4211 | ||
| 797 | 19년 전 | 4081 | ||
| 796 |
|
19년 전 | 1899 | |
| 795 |
|
19년 전 | 1860 | |
| 794 | 19년 전 | 4281 | ||
| 793 | 19년 전 | 2675 | ||
| 792 | 19년 전 | 2552 | ||
| 791 | 19년 전 | 2408 | ||
| 790 | 19년 전 | 1986 | ||
| 789 | 19년 전 | 2597 | ||
| 788 | 19년 전 | 2212 | ||
| 787 | 19년 전 | 1854 | ||
| 786 | 19년 전 | 1979 | ||
| 785 | 19년 전 | 1449 | ||
| 784 |
|
19년 전 | 1700 | |
| 783 | 19년 전 | 2844 | ||
| 782 |
|
19년 전 | 1970 | |
| 781 | 19년 전 | 3257 | ||
| 780 | 19년 전 | 3162 | ||
| 779 |
|
19년 전 | 2251 | |
| 778 |
|
19년 전 | 1806 | |
| 777 | 19년 전 | 2847 | ||
| 776 | 19년 전 | 2914 | ||
| 775 | 19년 전 | 4025 | ||
| 774 |
|
19년 전 | 1991 | |
| 773 | 19년 전 | 2627 | ||
| 772 | 19년 전 | 2346 | ||
| 771 | 19년 전 | 3474 | ||
| 770 |
|
19년 전 | 1444 | |
| 769 | 19년 전 | 1508 | ||
| 768 | 19년 전 | 1778 | ||
| 767 | 19년 전 | 2204 | ||
| 766 | 19년 전 | 1837 | ||
| 765 | 19년 전 | 1698 | ||
| 764 |
|
19년 전 | 2117 | |
| 763 |
|
19년 전 | 2230 | |
| 762 |
|
19년 전 | 4965 | |
| 761 | 19년 전 | 2334 | ||
| 760 |
|
19년 전 | 3198 | |
| 759 | 19년 전 | 2646 | ||
| 758 |
|
19년 전 | 2408 | |
| 757 | 19년 전 | 4705 | ||
| 756 | 19년 전 | 2574 | ||
| 755 |
|
19년 전 | 2420 | |
| 754 |
|
19년 전 | 1969 | |
| 753 |
|
19년 전 | 1746 | |
| 752 |
pearly
|
19년 전 | 3374 | |
| 751 | 19년 전 | 2353 | ||
| 750 |
|
19년 전 | 6168 | |
| 749 | 19년 전 | 2043 | ||
| 748 |
|
19년 전 | 1911 | |
| 747 |
|
19년 전 | 2711 | |
| 746 |
|
19년 전 | 1824 | |
| 745 | 19년 전 | 2288 | ||
| 744 | 19년 전 | 2118 | ||
| 743 |
|
19년 전 | 3576 | |
| 742 | 19년 전 | 2587 | ||
| 741 | 19년 전 | 2751 | ||
| 740 |
|
19년 전 | 4377 | |
| 739 | 19년 전 | 3554 | ||
| 738 |
|
19년 전 | 2311 | |
| 737 | 19년 전 | 4320 | ||
| 736 | 19년 전 | 3279 | ||
| 735 |
홀로남은자
|
19년 전 | 4148 | |
| 734 |
홀로남은자
|
19년 전 | 2030 | |
| 733 |
홀로남은자
|
19년 전 | 2236 | |
| 732 | 19년 전 | 2147 | ||
| 731 | 19년 전 | 3360 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기