Exemplo n.º 1
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->filename = $meth->init_value_quote('filename', $data);
     $this->fileLength = $meth->init_value('fileLength', $data);
     $this->userCode = $meth->init_value('code', $data);
 }
Exemplo n.º 2
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->code = $meth->init_value_quote('code', $data);
     $this->page = $meth->init_value('page', $data);
     $this->number = $meth->init_value('number', $data);
     if ('' == $this->number) {
         $this->number = 10;
     }
 }
Exemplo n.º 3
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->fileName = $meth->init_value_quote('filename', $data);
     $this->userCode = $meth->init_value('code', $data);
     $this->contentLength = $meth->init_value('contentLength', $data);
     $this->contentType = $meth->init_value_quote('contentType', $data);
     $this->objectKey = $meth->init_value_quote('objectKey', $data);
     $this->Time = $meth->init_value_quote('time', $data);
     $this->audioTime = $meth->init_value_quote('audioTime', $data);
     $this->remark = $meth->init_value_quote('remark', $data);
 }
Exemplo n.º 4
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->name = $meth->init_value_quote('name', $data);
     $this->password = $meth->init_value_quote('password', $data);
 }
Exemplo n.º 5
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->topic_in = $meth->init_value_quote('str', $data);
 }
Exemplo n.º 6
0
 function __construct($data)
 {
     $meth = new Methods();
     $this->contentType = $meth->init_value_quote('contentType', $data);
     $this->objectKey = $meth->init_value_quote('object', $data);
 }
Exemplo n.º 7
0
 public static function GET($req)
 {
     $url = Common::URL($req);
     if (isset($url['path'])) {
         $path = explode('/', $url['path']);
         $len = count($path);
         if ($len == 2 && $path[1] == 'logs') {
             self::baseRequest();
         } else {
             if ($len == 4 && $path[2] == 'log') {
                 $sql['table'] = 'logs';
                 $log = $path[3];
                 $sql['where'][] = "`log`='{$log}'";
                 if (isset($url['query'])) {
                     $query = explode('=', $url['query']);
                     if ($query[0] == 'id') {
                         $range = explode('-', $query[1]);
                         if (count($range) == 2) {
                             if ($range[0] < $range[1]) {
                                 $sql['where'][] = "`id` BETWEEN {$range['0']} AND {$range['1']}";
                             } else {
                                 $sql['where'][] = "`id` BETWEEN {$range['1']} AND {$range['0']}";
                                 $sql['order'][] = "`id`";
                                 $sql['sort'] = "DESC";
                             }
                         }
                     }
                 }
                 if (isset($sql)) {
                     $data = SQL::select($sql);
                     print json_encode($data);
                 }
             } else {
                 Methods::GET($req);
             }
         }
     }
 }
Exemplo n.º 8
0
            
             echo "\n" . 'Slowa ' . $slowo . ' i ' . $slowoDrugie . ' nie sa anagramami.' . "\n";
            
        }
        
    } else {
        
        echo "\n" . 'Slowa ' . $slowo . ' i ' . $slowoDrugie . ' nie sa anagramami.' . "\n"; 
        
    }

}

}

$example = new Methods();

// Funkcja 1
$example->ileRazy('cokolwiek', 'o');
echo "\n";

// Funkcja 2
$example->sprawdzSlowo('cokolwiek');
echo "\n";

// Funkcja 3
$example->slowoWSlowie('Konstantynopolitanczykowianeczka', 'an');
echo "\n";

// Funkcja 4
$example->zamienWycinek('lalalol', 'la', 'heh');