• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I updated the upload.php library with a new method

#1
[eluser]Unknown[/eluser]
Hi guys, i'm here to make a contribution to the CI libraries. I updated my upload.php library adding a new method that i needed, and maybe someone could need to.

Well, with this method you send a string as a parameter and it checks if that error was throwed by the do_upload() method. The code added is below:

/**
* Get the error status
*
* @param string
* @return bool
*/
public function get_error_status($msg = '')
{
$status = FALSE;
foreach ($this->error_msg as $val)
{
if($val == $msg){
$status = TRUE;
}
}

return $status;
}


I have made some other changes to another controllers and models but now i don't remember where. If i found them, i will post other contributions for the CI and the community.

#2
[eluser]InsiteFX[/eluser]
I hope you extended the library and did not just modify it.

#3
[eluser]Unknown[/eluser]
Hi friend, i did so. I extended the library


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.