micro/orm/OrmUtils.php 1 location
|
@@ 41-48 (lines=8) @@
|
| 38 |
|
return false; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public static function getFieldName($class, $member) { |
| 42 |
|
$ret=self::getAnnotationInfo($class, "#fieldNames"); |
| 43 |
|
if ($ret === false) |
| 44 |
|
$ret=$member; |
| 45 |
|
else |
| 46 |
|
$ret=$ret[$member]; |
| 47 |
|
return $ret; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public static function getFieldNames($model){ |
| 51 |
|
$ret=\array_flip(self::getAnnotationInfo($model, "#fieldNames")); |
micro/orm/parser/Reflexion.php 1 location
|
@@ 144-151 (lines=8) @@
|
| 141 |
|
return true; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
public static function getFieldName($class, $member) { |
| 145 |
|
$ret=self::getAnnotationMember($class, $member, "@column"); |
| 146 |
|
if ($ret === false) |
| 147 |
|
$ret=$member; |
| 148 |
|
else |
| 149 |
|
$ret=$ret->name; |
| 150 |
|
return $ret; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
public static function getTableName($class) { |
| 154 |
|
$ret=Reflexion::getAnnotationClass($class, "@table"); |