浏览代码

Internal: PHPDoc on some DBObjectSet methods.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4868 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 7 年之前
父节点
当前提交
0b626ad977
共有 1 个文件被更改,包括 15 次插入2 次删除
  1. 15 2
      core/dbobjectset.class.php

+ 15 - 2
core/dbobjectset.class.php

@@ -309,8 +309,14 @@ class DBObjectSet implements iDBObjectSetIterator
 		}
 
 		return self::FromArray($sTargetClass, $aTargets);
-	} 
+	}
 
+    /**
+     * Note: After calling this method, the set cursor will be at the end of the set. You might to rewind it.
+     *
+     * @param bool $bWithId
+     * @return array
+     */
 	public function ToArray($bWithId = true)
 	{
 		$aRet = array();
@@ -377,8 +383,15 @@ class DBObjectSet implements iDBObjectSetIterator
 			$iRow++;
 		}
 		return $aRet;
-	} 
+	}
 
+    /**
+     * Note: After calling this method, the set cursor will be at the end of the set. You might to rewind it.
+     *
+     * @param string $sAttCode
+     * @param bool $bWithId
+     * @return array
+     */
 	public function GetColumnAsArray($sAttCode, $bWithId = true)
 	{
 		$aRet = array();