Completed
Push — ss24 ( 3185a2...d45ead )
by Damian
02:11
created
code/forms/QueuedJobListField.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -4,6 +4,12 @@
 block discarded – undo
4 4
  * @license BSD http://silverstripe.org/bsd-license/
5 5
  */
6 6
 class QueuedJobListField extends TableListField {
7
+
8
+	/**
9
+	 * @param string $name
10
+	 * @param string $sourceClass
11
+	 * @param string $sourceSort
12
+	 */
7 13
 	function __construct($name, $sourceClass, $fieldList = null, $sourceFilter = null,
8 14
 		$sourceSort = null, $sourceJoin = null) {
9 15
 		parent::__construct($name, $sourceClass, $fieldList, $sourceFilter, $sourceSort, $sourceJoin);
Please login to merge, or discard this patch.
code/jobs/ScheduledExecutionJob.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
  */
11 11
 class ScheduledExecutionJob extends AbstractQueuedJob {
12 12
 	
13
+	/**
14
+	 * @param DataObject $dataObject
15
+	 */
13 16
 	public function __construct($dataObject = null, $timesExecuted = 0) {
14 17
 		if ($dataObject) {
15 18
 			$this->objectID = $dataObject->ID;
Please login to merge, or discard this patch.
code/QJUtils.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 	 *
19 19
 	 *
20 20
 	 * @param unknown_type $filter
21
-	 * @return unknown_type
21
+	 * @return string
22 22
 	 */
23 23
 	function dbQuote($filter = array(), $join = " AND ") {
24 24
 		$QUOTE_CHAR = defined('DB::USE_ANSI_SQL') ? '"' : '';
Please login to merge, or discard this patch.
code/services/QueuedJobService.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * Copies data from a job into a descriptor for persisting
116 116
 	 *
117 117
 	 * @param QueuedJob $job
118
-	 * @param JobDescriptor $jobDescriptor
118
+	 * @param DataObject $jobDescriptor
119 119
 	 */
120 120
 	protected function copyJobToDescriptor($job, $jobDescriptor) {
121 121
 		$data = $job->getJobData();
@@ -493,6 +493,9 @@  discard block
 block discarded – undo
493 493
 		}
494 494
 	}
495 495
 
496
+	/**
497
+	 * @param integer $size
498
+	 */
496 499
 	protected function humanReadable($size) {
497 500
 		$filesizename = array(" Bytes", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB");
498 501
 		return $size ? round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . $filesizename[$i] : '0 Bytes';
Please login to merge, or discard this patch.