Example #1
0
 public function __set($sName, $mValue)
 {
     switch ($sName) {
         case 'target':
             $aEmails = explode(',', $mValue);
             $aEmailsToSave = array();
             if (empty($aEmails) || !is_array($aEmails)) {
                 return;
             }
             foreach ($aEmails as $sEmail) {
                 $sEmail = filter_var(trim($sEmail), FILTER_VALIDATE_EMAIL);
                 if ($sEmail !== false) {
                     $aEmailsToSave[] = $sEmail;
                 }
             }
             if (sizeof($aEmailsToSave)) {
                 parent::__set($sName, $aEmailsToSave);
             }
             break;
         case 'ignored':
             $this->_aData['static']['ignored'] = $mValue;
             break;
         default:
             parent::__set($sName, $mValue);
             break;
     }
 }
Example #2
0
 public function __set($sName, $mValue)
 {
     switch ($sName) {
         default:
             parent::__set($sName, $mValue);
             break;
     }
 }
Example #3
0
 public function __set($sName, $mValue)
 {
     switch ($sName) {
         case 'content':
             parent::__set($sName, htmlspecialchars($mValue));
             break;
         default:
             parent::__set($sName, $mValue);
             break;
     }
 }
Example #4
0
 public function __set($sName, $mValue)
 {
     switch ($sName) {
         case 'content':
             parent::__set($sName, $this->_cleanContent($mValue));
             break;
         default:
             parent::__set($sName, $mValue);
             break;
     }
 }
Example #5
0
 public function __set($sName, $mValue)
 {
     switch ($sName) {
         case 'zoom':
             if (!is_numeric($mValue)) {
                 return;
             }
             $mValue = intval($mValue);
             if (0 > $mValue || $mValue > 21) {
                 return;
             }
             parent::__set('zoom', $mValue);
             break;
         case 'lat':
         case 'marker_lat':
             if (!is_numeric($mValue)) {
                 return;
             }
             $mValue = floatval($mValue);
             if (-90 > $mValue || $mValue > 90) {
                 return;
             }
             parent::__set($sName, $mValue);
             break;
         case 'lng':
         case 'marker_lng':
             if (!is_numeric($mValue)) {
                 return;
             }
             $mValue = floatval($mValue);
             if (-180 > $mValue || $mValue > 180) {
                 return;
             }
             parent::__set($sName, $mValue);
             break;
         default:
             parent::__set($sName, $mValue);
             break;
     }
 }