Пример #1
0
 /**
  * Modifie un rang
  * 
  * @return mixed
  * @throws Error
  */
 public function update()
 {
     $aDatas = array('name' => $this->sName, 'default' => $this->bDefault ? '1' : '0');
     return parent::update('tks_ranks', $aDatas, $this->iId);
 }
Пример #2
0
 /**
  * Modifie un tracker
  * 
  * @return mixed
  * @throws Error
  */
 public function update()
 {
     $aDatas = array('name' => $this->sName, 'link' => $this->sLink, 'directlink' => $this->sDirectLink);
     return parent::update('tks_trackers', $aDatas, $this->iId);
 }
Пример #3
0
 /**
  * Modifie un flux RSS
  * @return type
  */
 public function update()
 {
     $aDatas = array('id_tracker' => $this->iTracker, 'url' => $this->sUrl, 'forcedate' => $this->bForcedate ? '1' : '0', 'mask' => $this->sMask, 'encoding' => $this->sEncoding);
     return parent::update('tks_rss', $aDatas, $this->iId);
 }
Пример #4
0
 /**
  * Modifie un utilisateur
  * 
  * @return mixed
  * @throws Error
  */
 public function update()
 {
     $aDatas = array('login' => $this->sLogin, 'mail' => $this->sMail, 'id_rank' => $this->iRankId);
     if ($this->sPassword != '') {
         $aDatas['pass'] = $this->sPassword;
     }
     return parent::update('tks_users', $aDatas, $this->iId);
 }
Пример #5
0
 /**
  * Modifie une clé API
  * @return lixed
  */
 public function update()
 {
     $aDatas = array('read' => $this->bRead ? '1' : '0', 'write' => $this->bWrite ? '1' : '0');
     return parent::update('tks_apikeys', $aDatas, $this->sKey, 'apikey');
 }
Пример #6
0
 /**
  * Modifie une release
  * 
  * @return mixed
  * @throws Error
  */
 public function update()
 {
     $aDatas = array('name' => $this->sName, 'pretime' => $this->sPreTime);
     return parent::update('tks_releases', $aDatas, $this->iId);
 }
Пример #7
0
 /**
  * Modifie un paramètre
  * 
  * @return mixed
  * @throws Error
  */
 public function update()
 {
     $aDatas = array('name' => $this->sName, 'regex' => $this->sRegex, 'id_categorie' => $this->iCategorieId);
     return parent::update('tks_regex', $aDatas, $this->iId);
 }
Пример #8
0
 /**
  * Essai de scrapper un sport
  * @return boolean Vrai si c'est un sport
  */
 private function trySport()
 {
     if ($this->checkTags(8)) {
         $this->iCategorieId = 8;
         $this->sFicheId = 'N/A';
         $aDatas = array('id_categorie' => $this->iCategorieId);
         parent::update('tks_releases', $aDatas, $this->iReleaseId);
         return true;
     } else {
         return false;
     }
 }