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'
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2295 | ||
| 7129 | 11년 전 | 699 | ||
| 7128 |
senseme
|
11년 전 | 1269 | |
| 7127 | 11년 전 | 1144 | ||
| 7126 | 11년 전 | 796 | ||
| 7125 | 11년 전 | 2936 | ||
| 7124 | 11년 전 | 1411 | ||
| 7123 |
잘살아보자
|
11년 전 | 1270 | |
| 7122 |
잘살아보자
|
11년 전 | 666 | |
| 7121 |
잘살아보자
|
11년 전 | 2998 | |
| 7120 |
잘살아보자
|
11년 전 | 2891 | |
| 7119 |
잘살아보자
|
11년 전 | 716 | |
| 7118 |
잘살아보자
|
11년 전 | 3419 | |
| 7117 |
잘살아보자
|
11년 전 | 838 | |
| 7116 | 11년 전 | 724 | ||
| 7115 | 11년 전 | 1011 | ||
| 7114 | 11년 전 | 819 | ||
| 7113 | 11년 전 | 636 | ||
| 7112 | 11년 전 | 1059 | ||
| 7111 | 11년 전 | 1778 | ||
| 7110 | 11년 전 | 1016 | ||
| 7109 |
버섯먹은나
|
11년 전 | 776 | |
| 7108 | 11년 전 | 613 | ||
| 7107 | 11년 전 | 2387 | ||
| 7106 | 11년 전 | 1940 | ||
| 7105 | 11년 전 | 2474 | ||
| 7104 | 11년 전 | 1403 | ||
| 7103 |
|
11년 전 | 2679 | |
| 7102 | 11년 전 | 3101 | ||
| 7101 | 11년 전 | 4427 | ||
| 7100 | 11년 전 | 5779 | ||
| 7099 | 11년 전 | 2122 | ||
| 7098 | 11년 전 | 1701 | ||
| 7097 | 11년 전 | 1437 | ||
| 7096 | 11년 전 | 1109 | ||
| 7095 |
잘살아보자
|
11년 전 | 848 | |
| 7094 |
잘살아보자
|
11년 전 | 1036 | |
| 7093 |
잘살아보자
|
11년 전 | 913 | |
| 7092 |
잘살아보자
|
11년 전 | 1397 | |
| 7091 |
잘살아보자
|
11년 전 | 2194 | |
| 7090 |
잘살아보자
|
11년 전 | 866 | |
| 7089 | 11년 전 | 1045 | ||
| 7088 | 11년 전 | 1700 | ||
| 7087 | 11년 전 | 1394 | ||
| 7086 | 11년 전 | 1281 | ||
| 7085 |
|
11년 전 | 1213 | |
| 7084 | 11년 전 | 1131 | ||
| 7083 | 11년 전 | 3481 | ||
| 7082 | 11년 전 | 1125 | ||
| 7081 | 11년 전 | 1726 | ||
| 7080 | 11년 전 | 2003 | ||
| 7079 | 11년 전 | 1304 | ||
| 7078 | 11년 전 | 1286 | ||
| 7077 | 11년 전 | 1279 | ||
| 7076 | 11년 전 | 744 | ||
| 7075 | 11년 전 | 1143 | ||
| 7074 |
네이비칼라
|
11년 전 | 1489 | |
| 7073 | 11년 전 | 1457 | ||
| 7072 |
|
11년 전 | 822 | |
| 7071 | 11년 전 | 1172 | ||
| 7070 | 11년 전 | 926 | ||
| 7069 | 11년 전 | 1681 | ||
| 7068 | 11년 전 | 1328 | ||
| 7067 |
TPSint
|
11년 전 | 706 | |
| 7066 | 11년 전 | 2139 | ||
| 7065 | 11년 전 | 6622 | ||
| 7064 | 11년 전 | 1280 | ||
| 7063 | 11년 전 | 1125 | ||
| 7062 | 11년 전 | 1059 | ||
| 7061 | 11년 전 | 899 | ||
| 7060 | 11년 전 | 1435 | ||
| 7059 | 11년 전 | 835 | ||
| 7058 |
EngineMan
|
11년 전 | 3386 | |
| 7057 | 11년 전 | 1234 | ||
| 7056 | 11년 전 | 1628 | ||
| 7055 | 11년 전 | 998 | ||
| 7054 | 11년 전 | 2638 | ||
| 7053 |
네이비칼라
|
11년 전 | 1273 | |
| 7052 | 11년 전 | 2559 | ||
| 7051 | 11년 전 | 1923 | ||
| 7050 | 11년 전 | 2442 | ||
| 7049 | 11년 전 | 1382 | ||
| 7048 | 11년 전 | 2514 | ||
| 7047 | 11년 전 | 1331 | ||
| 7046 | 11년 전 | 1015 | ||
| 7045 | 11년 전 | 1039 | ||
| 7044 | 11년 전 | 5427 | ||
| 7043 | 11년 전 | 1213 | ||
| 7042 | 11년 전 | 771 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 746 | |
| 7040 | 11년 전 | 1096 | ||
| 7039 | 11년 전 | 1444 | ||
| 7038 | 11년 전 | 1858 | ||
| 7037 | 11년 전 | 2164 | ||
| 7036 | 11년 전 | 1079 | ||
| 7035 | 11년 전 | 1397 | ||
| 7034 | 11년 전 | 1336 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 986 | |
| 7032 | 11년 전 | 747 | ||
| 7031 | 11년 전 | 2171 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기