------------------------------------------------------------
revno: 1213
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Thu 2012-07-05 23:56:09 +0200
message:
declare methods as statics to avoid strict-warning
modified:
libs/Controls.php
--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk
Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/Controls.php'
--- libs/Controls.php 2012-04-25 20:12:25 +0000
+++ libs/Controls.php 2012-07-05 21:56:09 +0000
@@ -324,7 +324,7 @@
*
*/
- function htmlAttributes( &$field, $moreAttributes ){
+ static function htmlAttributes( &$field, $moreAttributes ){
// this is the common attribute list supported by all inputs.
@@ -352,7 +352,7 @@
}
- function make_list(&$list){
+ static function make_list(&$list){
global $db;
if ( is_array($list) ) {
return $list;
@@ -381,7 +381,7 @@
*
*/
- function input_hidden($field){
+ static function input_hidden($field){
$name = $field['name'];
if (!$name) {
return "";
@@ -402,7 +402,7 @@
*
*/
- function escape_value($value){
+ static function escape_value($value){
return htmlentities($value, ENT_QUOTES);
}
@@ -415,7 +415,7 @@
*
*/
- function escape_textarea($value){
+ static function escape_textarea($value){
return strtr(
$value,
array("<textarea"=>"<text-area", "</textarea>"=>"</text-area>"));
@@ -430,13 +430,13 @@
*
*/
- function unescape_textarea($value){
+ static function unescape_textarea($value){
return strtr(
$value,
array("<text-area"=>"<textarea", "</text-area>"=>"</textarea>"));
}
- function additional( &$field) {
+ static function additional( &$field) {
$ret = "";
foreach ( array("additional","tooltip" ) as $more ){
if ($add = bydefault($field, $more , false) ){
@@ -452,7 +452,7 @@
*
*/
- function input ( $field, $form=NULL, $values=NULL ) {
+ static function input ( $field, $form=NULL, $values=NULL ) {
//HTML5 tag.
$defined = array (
@@ -584,7 +584,7 @@
* Return html code for a list of input
*
*/
- function inputs( &$inputs, $form, &$values){
+ static function inputs( &$inputs, $form, &$values){
$hidden = "";
$ret = "";
$fieldset = "";
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp