コード例 #1
0
ファイル: userimport.php プロジェクト: jabouzi/projet
 private function checkitem($userdata, $param, $key)
 {
     if (item($userdata, $param) && !isempty($userdata[$param])) {
         return 0;
     }
     $this->set_message(sptrinf(lang('account.param.empty'), $param) . '<br />');
     return 1;
 }
コード例 #2
0
ファイル: wprp.hm.backup.php プロジェクト: phpwomen/combell
 /**
  * Set the directory backups are saved to
  *
  * @param string $path
  * @throws Exception
  */
 public function set_path($path)
 {
     if (empty($path) || !is_string($path)) {
         throw new Exception(sptrinf(__('Invalid backup path %s must be a non empty (string)', wpremote), '<code>' . $path . '</code>'));
     }
     $this->path = self::conform_dir($path);
 }