diff --git a/src/CoreForms.php b/src/CoreForms.php index 7062013..0729e4d 100644 --- a/src/CoreForms.php +++ b/src/CoreForms.php @@ -1,6 +1,6 @@ '; @@ -36,7 +36,7 @@ class CoreForms { //Prepare a value for input text - static public TextFormSet($post, $value) + static public function TextFormSet($post, $value) { $value = Utils::replace_quote_text( $value ); @@ -46,7 +46,7 @@ class CoreForms { //Create a input password - static public PasswordForm($name="", $class='', $value='') + static public function PasswordForm($name="", $class='', $value='') { $value = Utils::replace_quote_text( $value ); @@ -57,7 +57,7 @@ class CoreForms { //Prepare a value for input password - static public PasswordFormSet($post, $value) + static public function PasswordFormSet($post, $value) { $value = ''; //Utils::replace_quote_text( $value ); @@ -68,7 +68,7 @@ class CoreForms { //Create a input file - static public FileForm($name="", $class='', $value='', $delete_inline=0, $path_file='') + static public function FileForm($name="", $class='', $value='', $delete_inline=0, $path_file='') { @@ -97,7 +97,7 @@ class CoreForms { //Prepare a value for input password - static public FileFormSet($post, $value) + static public function FileFormSet($post, $value) { $value = Utils::replace_quote_text( $value ); @@ -109,7 +109,7 @@ class CoreForms { //Create a special form for a image - static public ImageForm($name="", $class='', $value='', $delete_inline=0, $path_image='') + static public function ImageForm($name="", $class='', $value='', $delete_inline=0, $path_image='') { $image_url=$path_image.'/'.$value; @@ -136,7 +136,7 @@ class CoreForms { //Prepare a value for input password - static public ImageFormSet($post, $value) + static public function ImageFormSet($post, $value) { $value = Utils::replace_quote_text( $value ); @@ -147,7 +147,7 @@ class CoreForms { //Create a textarea - static public TextAreaForm($name="", $class='', $value='') + static public function TextAreaForm($name="", $class='', $value='') { return ''; @@ -156,7 +156,7 @@ class CoreForms { //Prepare the value for the textarea - static public TextAreaFormSet($post, $value) + static public function TextAreaFormSet($post, $value) { $value = Utils::replace_quote_text( $value ); @@ -167,7 +167,7 @@ class CoreForms { //Create a input hidden - static public HiddenForm($name="", $class='', $value='') + static public function HiddenForm($name="", $class='', $value='') { return ''; @@ -176,7 +176,7 @@ class CoreForms { //Prepare the value for a input hidden - static public HiddenFormSet($post, $value) + static public function HiddenFormSet($post, $value) { $value = Utils::replace_quote_text( $value ); @@ -187,7 +187,7 @@ class CoreForms { //Create a input checkbox - static public CheckBoxForm($name="", $class='', $value='') + static public function CheckBoxForm($name="", $class='', $value='') { $arr_checked[$value]=''; @@ -201,7 +201,7 @@ class CoreForms { //Prepare the value for the checkbox - static public CheckBoxFormSet($post, $value) + static public function CheckBoxFormSet($post, $value) { settype($value, 'integer'); @@ -212,7 +212,7 @@ class CoreForms { //Create a select - static public SelectForm($name="", $class='', $value='', $more_options='') + static public function SelectForm($name="", $class='', $value='', $more_options='') { $select=''."\n"; @@ -330,7 +330,7 @@ class CoreForms { //Prepare the value for the multiple select - static public SelectManyFormSet($post, $value) + static public function SelectManyFormSet($post, $value) { if(gettype($value)!='array') @@ -354,7 +354,7 @@ class CoreForms { //A special form for dates in format day/month/year - static public DateForm($field, $class='', $value='', $set_time=1, $see_title=1) + static public function DateForm($field, $class='', $value='', $set_time=1, $see_title=1) { if($value==0) @@ -422,7 +422,7 @@ class CoreForms { //Prepare value form dateform - static public DateFormSet($post, $value) + static public function DateFormSet($post, $value) { if(gettype($value)=='array') @@ -455,7 +455,7 @@ class CoreForms { } - static public RadioIntForm($name="", $class='', $value=array(), $more_options='') + static public function RadioIntForm($name="", $class='', $value=array(), $more_options='') { $select=''; @@ -486,7 +486,7 @@ class CoreForms { //Prepare the value for the select - static public RadioIntFormSet($post, $value) + static public function RadioIntFormSet($post, $value) { settype($value, 'integer');