diff --git a/classes/Helper.php b/classes/Helper.php
index 13d5088eb..f54a53b8b 100755
--- a/classes/Helper.php
+++ b/classes/Helper.php
@@ -27,6 +27,7 @@
/*
* TODO : move HTML code in template files
+ * TODO : phpDoc on two last methods: includeDatepicker() & bindDatepicker()
*/
class HelperCore
@@ -200,18 +201,18 @@ class HelperCore
return rtrim($html, ' ');
}
- function bindDatepicker($id, $time)
+ public function bindDatepicker($id, $time = false)
{
if ($time)
- echo '
- var dateObj = new Date();
- var hours = dateObj.getHours();
- var mins = dateObj.getMinutes();
- var secs = dateObj.getSeconds();
- if (hours < 10) { hours = "0" + hours; }
- if (mins < 10) { mins = "0" + mins; }
- if (secs < 10) { secs = "0" + secs; }
- var time = " "+hours+":"+mins+":"+secs;';
+ echo '
+ var dateObj = new Date();
+ var hours = dateObj.getHours();
+ var mins = dateObj.getMinutes();
+ var secs = dateObj.getSeconds();
+ if (hours < 10) { hours = "0" + hours; }
+ if (mins < 10) { mins = "0" + mins; }
+ if (secs < 10) { secs = "0" + secs; }
+ var time = " "+hours+":"+mins+":"+secs;';
echo '
$(function() {
@@ -223,18 +224,23 @@ class HelperCore
}
// id can be a identifier or an array of identifiers
- function includeDatepicker($id, $time = false)
+ public function includeDatepicker($id, $time = false)
{
- echo '';
$iso = Db::getInstance()->getValue('SELECT iso_code FROM '._DB_PREFIX_.'lang WHERE `id_lang` = '.(int)Context::getContext()->language->id);
- if ($iso != 'en')
- echo '';
- echo '
+
+ ';
}
}
diff --git a/classes/HelperList.php b/classes/HelperList.php
index 51eda3585..dae1477e2 100644
--- a/classes/HelperList.php
+++ b/classes/HelperList.php
@@ -1,4 +1,30 @@
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
class HelperListCore extends Helper
{
/** @var array Cache for query results */
@@ -35,7 +61,6 @@ class HelperListCore extends Helper
public $token;
-
protected $is_cms = false;
protected $is_dnd_identifier = false;