Code Duplication    Length = 9-9 lines in 3 locations

lib/objects/ariadne_object.php 3 locations

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