Code Duplication    Length = 9-9 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

@@ 821-829 (lines=9) @@
818
		return $this->store->AR_implements($type, $implements);
819
	}
820
821
	public function getlocks() {
822
		global $AR;
823
		if ($this->store->mod_lock) {
824
			$result=$this->store->mod_lock->getlocks($AR->user->data->login);
825
		} else {
826
			$result="";
827
		}
828
		return $result;
829
	}
830
831
	public function lock($mode="O", $time=0) {
832
	global $AR;
@@ 831-839 (lines=9) @@
828
		return $result;
829
	}
830
831
	public function lock($mode="O", $time=0) {
832
	global $AR;
833
		if ($this->store->mod_lock) {
834
			$result=$this->store->mod_lock->lock($AR->user->data->login,$this->path,$mode,$time);
835
		} else {
836
			$result=true; // no lock module, so lock is 'set'
837
		}
838
		return $result;
839
	}
840
841
	public function unlock() {
842
	global $AR;
@@ 841-849 (lines=9) @@
838
		return $result;
839
	}
840
841
	public function unlock() {
842
	global $AR;
843
		if ($this->store->mod_lock) {
844
			$result=$this->store->mod_lock->unlock($AR->user->data->login,$this->path);
845
		} else {
846
			$result=true;
847
		}
848
		return $result;
849
	}
850
851
	public function touch($id=0, $timestamp=-1) {
852
		if (!$id) {