/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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'); }
/** * 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); }
/** * 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); }
/** * 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; } }