Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function __set($variable, $value)
- {
- if($variable != 'erreurs' && $variable != 'isNew')
- {
- if($variable == 'description')
- {
- $this->$variable = str_tools::bbcode($value);
- }
- else
- {
- $this->$variable = $value;
- if($variable == 'email')
- {
- if(!empty($this->email))
- {
- if((filter_var($this->email,FILTER_VALIDATE_EMAIL)))
- {
- return true;
- }
- else
- $this->erreurs[] = EMAIL_INVALIDE;
- return false;
- }
- else
- $this->erreurs[] = EMAIL_VIDE;
- return false;
- }
- if($variable == 'pseudo')
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement