[dev] [commit] r929 - phplib/models
automailer at dexonline.ro
automailer at dexonline.ro
Wed Aug 14 17:27:06 EEST 2013
Author: cata
Date: Wed Aug 14 17:27:06 2013
New Revision: 929
Log:
Use syntactic sugar function.
Modified:
phplib/models/LexemSource.php
Modified: phplib/models/LexemSource.php
==============================================================================
--- phplib/models/LexemSource.php Wed Aug 14 17:21:15 2013 (r928)
+++ phplib/models/LexemSource.php Wed Aug 14 17:27:06 2013 (r929)
@@ -5,12 +5,8 @@
/* Returns a list of sourceId's. */
public static function getForLexem($lexem) {
- $results = array();
$lexemSources = LexemSource::get_all_by_lexemId($lexem->id);
- foreach($lexemSources as $ls) {
- $results[] = $ls->sourceId;
- }
- return $results;
+ return util_objectProperty($lexemSources, 'sourceId');
}
public static function deleteByLexemId($lexemId) {
More information about the Dev
mailing list