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'
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4102 | ||
| 429 | 19년 전 | 3304 | ||
| 428 | 19년 전 | 4132 | ||
| 427 | 19년 전 | 3474 | ||
| 426 | 19년 전 | 3106 | ||
| 425 | 19년 전 | 3408 | ||
| 424 | 19년 전 | 2438 | ||
| 423 | 19년 전 | 2864 | ||
| 422 | 19년 전 | 2353 | ||
| 421 | 19년 전 | 3708 | ||
| 420 | 19년 전 | 4743 | ||
| 419 | 19년 전 | 3802 | ||
| 418 |
|
19년 전 | 1750 | |
| 417 | 19년 전 | 2749 | ||
| 416 | 19년 전 | 2392 | ||
| 415 | 19년 전 | 2607 | ||
| 414 | 19년 전 | 4411 | ||
| 413 |
|
19년 전 | 2601 | |
| 412 | 19년 전 | 3047 | ||
| 411 |
|
19년 전 | 2996 | |
| 410 |
|
19년 전 | 3687 | |
| 409 |
|
19년 전 | 3635 | |
| 408 |
|
19년 전 | 1860 | |
| 407 | 19년 전 | 2230 | ||
| 406 | 19년 전 | 2782 | ||
| 405 | 19년 전 | 2452 | ||
| 404 | 19년 전 | 4304 | ||
| 403 | 19년 전 | 3305 | ||
| 402 |
NeoGenesis
|
19년 전 | 4091 | |
| 401 | 19년 전 | 2610 | ||
| 400 |
|
19년 전 | 2499 | |
| 399 | 19년 전 | 2957 | ||
| 398 | 19년 전 | 2488 | ||
| 397 | 19년 전 | 2780 | ||
| 396 | 19년 전 | 2479 | ||
| 395 | 19년 전 | 3186 | ||
| 394 | 19년 전 | 1722 | ||
| 393 | 19년 전 | 2994 | ||
| 392 | 19년 전 | 2256 | ||
| 391 | 19년 전 | 2177 | ||
| 390 | 19년 전 | 2287 | ||
| 389 | 19년 전 | 2646 | ||
| 388 | 19년 전 | 2180 | ||
| 387 | 19년 전 | 4485 | ||
| 386 |
|
19년 전 | 2693 | |
| 385 |
|
19년 전 | 2482 | |
| 384 | 19년 전 | 3019 | ||
| 383 | 19년 전 | 3056 | ||
| 382 | 19년 전 | 3109 | ||
| 381 |
|
19년 전 | 2631 | |
| 380 |
|
19년 전 | 3020 | |
| 379 | 19년 전 | 2550 | ||
| 378 | 19년 전 | 2208 | ||
| 377 | 19년 전 | 2779 | ||
| 376 | 19년 전 | 2470 | ||
| 375 |
|
19년 전 | 2564 | |
| 374 | 19년 전 | 3821 | ||
| 373 | 19년 전 | 3270 | ||
| 372 | 19년 전 | 4989 | ||
| 371 |
세은아빠2
|
19년 전 | 2415 | |
| 370 | 19년 전 | 4501 | ||
| 369 | 19년 전 | 3109 | ||
| 368 | 19년 전 | 2907 | ||
| 367 | 19년 전 | 3726 | ||
| 366 | 19년 전 | 2656 | ||
| 365 | 19년 전 | 3737 | ||
| 364 | 19년 전 | 4013 | ||
| 363 | 19년 전 | 3442 | ||
| 362 | 19년 전 | 3483 | ||
| 361 | 19년 전 | 4108 | ||
| 360 |
hwatta
|
19년 전 | 2364 | |
| 359 | 19년 전 | 5108 | ||
| 358 | 19년 전 | 3656 | ||
| 357 | 19년 전 | 2601 | ||
| 356 |
sdesign1s
|
19년 전 | 2279 | |
| 355 | 20년 전 | 2757 | ||
| 354 | 20년 전 | 3030 | ||
| 353 | 20년 전 | 2794 | ||
| 352 |
|
20년 전 | 5776 | |
| 351 |
|
20년 전 | 2704 | |
| 350 |
|
20년 전 | 4293 | |
| 349 |
hwatta
|
20년 전 | 2182 | |
| 348 | 20년 전 | 7307 | ||
| 347 | 20년 전 | 2413 | ||
| 346 | 20년 전 | 3505 | ||
| 345 | 20년 전 | 4311 | ||
| 344 | 20년 전 | 2651 | ||
| 343 | 20년 전 | 3922 | ||
| 342 | 20년 전 | 3069 | ||
| 341 | 20년 전 | 4093 | ||
| 340 |
|
20년 전 | 5143 | |
| 339 |
|
20년 전 | 4236 | |
| 338 | 20년 전 | 5869 | ||
| 337 | 20년 전 | 2045 | ||
| 336 |
|
20년 전 | 3324 | |
| 335 |
|
20년 전 | 3539 | |
| 334 |
|
20년 전 | 2930 | |
| 333 |
hwatta
|
20년 전 | 2436 | |
| 332 | 20년 전 | 4656 | ||
| 331 | 20년 전 | 2274 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기