Code Duplication    Length = 9-9 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

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