Code Duplication    Length = 9-9 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

@@ 838-846 (lines=9) @@
835
		return $this->store->AR_implements($type, $implements);
836
	}
837
838
	public function getlocks() {
839
		global $AR;
840
		if ($this->store->mod_lock) {
841
			$result=$this->store->mod_lock->getlocks($AR->user->data->login);
842
		} else {
843
			$result="";
844
		}
845
		return $result;
846
	}
847
848
	public function lock($mode="O", $time=0) {
849
	global $AR;
@@ 848-856 (lines=9) @@
845
		return $result;
846
	}
847
848
	public function lock($mode="O", $time=0) {
849
	global $AR;
850
		if ($this->store->mod_lock) {
851
			$result=$this->store->mod_lock->lock($AR->user->data->login,$this->path,$mode,$time);
852
		} else {
853
			$result=true; // no lock module, so lock is 'set'
854
		}
855
		return $result;
856
	}
857
858
	public function unlock() {
859
	global $AR;
@@ 858-866 (lines=9) @@
855
		return $result;
856
	}
857
858
	public function unlock() {
859
	global $AR;
860
		if ($this->store->mod_lock) {
861
			$result=$this->store->mod_lock->unlock($AR->user->data->login,$this->path);
862
		} else {
863
			$result=true;
864
		}
865
		return $result;
866
	}
867
868
	public function touch($id=0, $timestamp=-1) {
869
		if (!$id) {