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'
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 426 | ||
| 7829 |
|
9년 전 | 620 | |
| 7828 | 9년 전 | 546 | ||
| 7827 | 9년 전 | 437 | ||
| 7826 | 9년 전 | 440 | ||
| 7825 | 10년 전 | 482 | ||
| 7824 | 10년 전 | 450 | ||
| 7823 | 10년 전 | 386 | ||
| 7822 | 10년 전 | 366 | ||
| 7821 | 10년 전 | 314 | ||
| 7820 | 10년 전 | 351 | ||
| 7819 |
|
10년 전 | 752 | |
| 7818 | 10년 전 | 396 | ||
| 7817 | 10년 전 | 524 | ||
| 7816 | 10년 전 | 413 | ||
| 7815 | 10년 전 | 611 | ||
| 7814 | 10년 전 | 440 | ||
| 7813 | 10년 전 | 380 | ||
| 7812 | 10년 전 | 405 | ||
| 7811 | 10년 전 | 395 | ||
| 7810 | 10년 전 | 571 | ||
| 7809 | 10년 전 | 505 | ||
| 7808 | 10년 전 | 380 | ||
| 7807 | 10년 전 | 409 | ||
| 7806 |
프로그래머7
|
10년 전 | 1337 | |
| 7805 | 10년 전 | 1281 | ||
| 7804 |
zahir1312
|
10년 전 | 782 | |
| 7803 |
|
10년 전 | 1378 | |
| 7802 | 10년 전 | 464 | ||
| 7801 | 10년 전 | 866 | ||
| 7800 | 10년 전 | 1087 | ||
| 7799 | 10년 전 | 561 | ||
| 7798 | 10년 전 | 518 | ||
| 7797 | 10년 전 | 518 | ||
| 7796 | 10년 전 | 358 | ||
| 7795 | 10년 전 | 509 | ||
| 7794 | 10년 전 | 563 | ||
| 7793 | 10년 전 | 1061 | ||
| 7792 | 10년 전 | 479 | ||
| 7791 | 10년 전 | 559 | ||
| 7790 | 10년 전 | 512 | ||
| 7789 |
fbastore
|
10년 전 | 1452 | |
| 7788 | 10년 전 | 551 | ||
| 7787 | 10년 전 | 405 | ||
| 7786 | 10년 전 | 599 | ||
| 7785 | 10년 전 | 589 | ||
| 7784 | 10년 전 | 649 | ||
| 7783 | 10년 전 | 455 | ||
| 7782 | 10년 전 | 496 | ||
| 7781 | 10년 전 | 903 | ||
| 7780 | 10년 전 | 823 | ||
| 7779 | 10년 전 | 777 | ||
| 7778 | 10년 전 | 365 | ||
| 7777 | 10년 전 | 465 | ||
| 7776 | 10년 전 | 463 | ||
| 7775 | 10년 전 | 412 | ||
| 7774 | 10년 전 | 636 | ||
| 7773 | 10년 전 | 387 | ||
| 7772 | 10년 전 | 740 | ||
| 7771 | 10년 전 | 394 | ||
| 7770 | 10년 전 | 650 | ||
| 7769 | 10년 전 | 393 | ||
| 7768 | 10년 전 | 615 | ||
| 7767 | 10년 전 | 1176 | ||
| 7766 | 10년 전 | 495 | ||
| 7765 | 10년 전 | 534 | ||
| 7764 |
잘살아보자
|
10년 전 | 395 | |
| 7763 |
|
10년 전 | 1465 | |
| 7762 |
Tosea
|
10년 전 | 1062 | |
| 7761 | 10년 전 | 652 | ||
| 7760 |
잘살아보자
|
10년 전 | 689 | |
| 7759 |
잘살아보자
|
10년 전 | 517 | |
| 7758 |
잘살아보자
|
10년 전 | 599 | |
| 7757 | 10년 전 | 1247 | ||
| 7756 |
ITBANK
|
10년 전 | 1259 | |
| 7755 | 10년 전 | 1931 | ||
| 7754 | 10년 전 | 1058 | ||
| 7753 | 10년 전 | 888 | ||
| 7752 | 10년 전 | 1400 | ||
| 7751 |
잘살아보자
|
10년 전 | 540 | |
| 7750 |
잘살아보자
|
10년 전 | 483 | |
| 7749 |
잘살아보자
|
10년 전 | 496 | |
| 7748 |
잘살아보자
|
10년 전 | 503 | |
| 7747 |
잘살아보자
|
10년 전 | 596 | |
| 7746 |
잘살아보자
|
10년 전 | 684 | |
| 7745 |
잘살아보자
|
10년 전 | 920 | |
| 7744 |
잘살아보자
|
10년 전 | 420 | |
| 7743 | 10년 전 | 951 | ||
| 7742 |
starbros
|
10년 전 | 844 | |
| 7741 |
잘살아보자
|
10년 전 | 679 | |
| 7740 |
잘살아보자
|
10년 전 | 552 | |
| 7739 |
잘살아보자
|
10년 전 | 468 | |
| 7738 |
잘살아보자
|
10년 전 | 539 | |
| 7737 |
잘살아보자
|
10년 전 | 507 | |
| 7736 |
잘살아보자
|
10년 전 | 529 | |
| 7735 |
잘살아보자
|
10년 전 | 854 | |
| 7734 |
잘살아보자
|
10년 전 | 434 | |
| 7733 |
잘살아보자
|
10년 전 | 546 | |
| 7732 |
잘살아보자
|
10년 전 | 704 | |
| 7731 |
잘살아보자
|
10년 전 | 627 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기