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'
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5730 | 13년 전 | 770 | ||
| 5729 | 13년 전 | 3587 | ||
| 5728 | 13년 전 | 1159 | ||
| 5727 |
freejazzme
|
13년 전 | 1112 | |
| 5726 | 13년 전 | 1448 | ||
| 5725 |
itlang
|
13년 전 | 432 | |
| 5724 | 13년 전 | 513 | ||
| 5723 |
crocojea
|
13년 전 | 1494 | |
| 5722 | 13년 전 | 1984 | ||
| 5721 | 13년 전 | 714 | ||
| 5720 |
쿠우우우우
|
13년 전 | 472 | |
| 5719 | 13년 전 | 614 | ||
| 5718 |
|
13년 전 | 592 | |
| 5717 | 13년 전 | 1451 | ||
| 5716 |
|
13년 전 | 1041 | |
| 5715 | 13년 전 | 468 | ||
| 5714 | 13년 전 | 472 | ||
| 5713 | 13년 전 | 537 | ||
| 5712 |
|
13년 전 | 775 | |
| 5711 | 13년 전 | 697 | ||
| 5710 |
minini
|
13년 전 | 490 | |
| 5709 |
|
13년 전 | 1332 | |
| 5708 | 13년 전 | 684 | ||
| 5707 | 13년 전 | 5859 | ||
| 5706 |
오니기리죠
|
13년 전 | 1026 | |
| 5705 |
HSEngine
|
13년 전 | 658 | |
| 5704 |
Giggle
|
13년 전 | 1699 | |
| 5703 | 13년 전 | 506 | ||
| 5702 |
AMDbest
|
13년 전 | 1422 | |
| 5701 |
|
13년 전 | 2890 | |
| 5700 | 13년 전 | 504 | ||
| 5699 |
미션임파썩을
|
13년 전 | 540 | |
| 5698 | 13년 전 | 625 | ||
| 5697 | 13년 전 | 539 | ||
| 5696 | 13년 전 | 445 | ||
| 5695 |
|
13년 전 | 703 | |
| 5694 | 13년 전 | 443 | ||
| 5693 | 13년 전 | 977 | ||
| 5692 | 13년 전 | 950 | ||
| 5691 |
쉽다zzz
|
13년 전 | 718 | |
| 5690 | 13년 전 | 474 | ||
| 5689 | 13년 전 | 634 | ||
| 5688 | 13년 전 | 1414 | ||
| 5687 | 13년 전 | 467 | ||
| 5686 | 13년 전 | 2452 | ||
| 5685 |
AMDbest
|
13년 전 | 2158 | |
| 5684 | 13년 전 | 2038 | ||
| 5683 | 13년 전 | 1357 | ||
| 5682 |
AMDbest
|
13년 전 | 683 | |
| 5681 | 13년 전 | 3805 | ||
| 5680 |
|
13년 전 | 1683 | |
| 5679 | 13년 전 | 2089 | ||
| 5678 |
|
13년 전 | 524 | |
| 5677 |
mobiler
|
13년 전 | 465 | |
| 5676 | 13년 전 | 1604 | ||
| 5675 | 13년 전 | 588 | ||
| 5674 |
PHPㅡASP프로그래머
|
13년 전 | 1820 | |
| 5673 |
PHPㅡASP프로그래머
|
13년 전 | 1491 | |
| 5672 |
PHPㅡASP프로그래머
|
13년 전 | 1280 | |
| 5671 |
PHPㅡASP프로그래머
|
13년 전 | 1212 | |
| 5670 |
PHPㅡASP프로그래머
|
13년 전 | 4610 | |
| 5669 | 13년 전 | 3050 | ||
| 5668 | 13년 전 | 1412 | ||
| 5667 | 13년 전 | 493 | ||
| 5666 | 13년 전 | 1142 | ||
| 5665 |
Darby
|
13년 전 | 1606 | |
| 5664 | 13년 전 | 1338 | ||
| 5663 | 13년 전 | 1123 | ||
| 5662 | 13년 전 | 788 | ||
| 5661 | 13년 전 | 450 | ||
| 5660 | 13년 전 | 841 | ||
| 5659 | 13년 전 | 710 | ||
| 5658 | 13년 전 | 531 | ||
| 5657 | 13년 전 | 536 | ||
| 5656 | 13년 전 | 991 | ||
| 5655 | 13년 전 | 437 | ||
| 5654 | 13년 전 | 390 | ||
| 5653 |
졸린다젠장
|
13년 전 | 477 | |
| 5652 |
|
13년 전 | 396 | |
| 5651 | 13년 전 | 1028 | ||
| 5650 | 13년 전 | 720 | ||
| 5649 | 13년 전 | 2232 | ||
| 5648 | 13년 전 | 479 | ||
| 5647 | 13년 전 | 757 | ||
| 5646 | 13년 전 | 1493 | ||
| 5645 | 13년 전 | 679 | ||
| 5644 | 13년 전 | 614 | ||
| 5643 |
|
13년 전 | 573 | |
| 5642 |
쿠마하우스
|
13년 전 | 685 | |
| 5641 |
goaway
|
13년 전 | 1084 | |
| 5640 |
쿠마하우스
|
13년 전 | 647 | |
| 5639 | 13년 전 | 674 | ||
| 5638 |
쿠마하우스
|
13년 전 | 989 | |
| 5637 | 13년 전 | 813 | ||
| 5636 | 13년 전 | 1415 | ||
| 5635 |
goaway
|
13년 전 | 910 | |
| 5634 |
lllolll
|
13년 전 | 418 | |
| 5633 | 13년 전 | 963 | ||
| 5632 | 13년 전 | 4272 | ||
| 5631 | 13년 전 | 568 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기