Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Realised I was missing some static before some of the functions, lol

  • Loading branch information...
commit 3c5a45cbec8d6207701fcb3aa3865e45c62ffe3d 1 parent 70bbe15
@CraigChilds94 authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 form.php
View
10 form.php
@@ -94,7 +94,7 @@ public static function set($type, $key, $value){
return array('Error' => 'You are trying to set nothing.');
}
- public function getInputType($name){
+ public static function getInputType($name){
if(!empty(self::$forms)){
foreach(self::$forms as $form){
if(!empty($form[$name])){
@@ -120,7 +120,7 @@ public static function listforms(){
}
}
- public function upload($name = 'upload', $where, $allows, $action = ''){
+ public static function upload($name = 'upload', $where, $allows, $action = ''){
// Display the form
self::start(array('name' => $name, 'method' => 'POST', 'enctype' => "multipart/form-data", "action" => $action));
self::input(array('type' => 'file', 'name' => 'file'));
@@ -157,17 +157,17 @@ public static function receiveFile(){
}
}
- private function _isAllowed($allows){
+ private static function _isAllowed($allows){
// Return true if file type is in the array.
return in_array(self::$files['type'], $allows);
}
- private function _moveFile($where){
+ private static function _moveFile($where){
// Move our file
return move_uploaded_file(self::$files["tmp_name"], (empty($where) ? '' : $where) . self::$files["name"]);
}
- private function _generateTag($tag, $options, $content = ''){
+ private static function _generateTag($tag, $options, $content = ''){
// Store the different tag syntax elements
$varied = array('button', 'textarea');
Please sign in to comment.
Something went wrong with that request. Please try again.