Lines Matching refs:id

17      * Accepts message id followed by optional arguments.
243 private $id;
249 public function __construct($id) {
250 $this->id = $id;
258 return $this->id;
265 $text = rawWiki($this->id);
281 'id' => $this->id,
369 $text = rawWiki($this->id);
380 saveWikiText($this->id, $text, $summary, $minorEdit);
381 unlock($this->id);
387 $error = new BatcheditMatchApplyException($this->id . $error->getArguments()[1]);
400 return serialize(array($this->id, $this->matches));
407 list($this->id, $this->matches) = unserialize($data);
421 if (auth_quickaclcheck($this->id) < AUTH_EDIT) {
422 throw new BatcheditAccessControlException($this->id);
425 $lockedBy = checklock($this->id);
428 throw new BatcheditPageLockedException($this->id, $lockedBy);
431 lock($this->id);
478 public function save($id, $name, $data) {
479 file_put_contents(self::getFileName($id, $name), serialize($data));
485 public function load($id, $name) {
486 return @unserialize(file_get_contents(self::getFileName($id, $name)));
492 public function isValid($id) {
495 $propsTime = @filemtime(self::getFileName($id, 'props'));
496 $matchesTime = @filemtime(self::getFileName($id, 'matches'));
520 public function expire($id) {
521 @unlink(self::getFileName($id, 'props'));
522 @unlink(self::getFileName($id, 'matches'));
523 @unlink(self::getFileName($id, 'progress'));
524 @unlink(self::getFileName($id, 'cancel'));
548 foreach ($expired as $id => $dummy) {
549 $this->expire($id);
558 private $id;
575 $this->id = $this->generateId();
587 public function setId($id) {
588 $this->id = $id;
590 @unlink(BatcheditSessionCache::getFileName($id, 'cancel'));
597 return $this->id;
606 if (!$this->cache->isValid($this->id)) {
643 $this->cache->expire($this->id);
657 * Accepts BatcheditException instance or message id followed by optional arguments.
698 if (!$this->cache->isValid($this->id)) {
770 $this->cache->save($this->id, $name, $array);
777 return $this->cache->load($this->id, $name);