Ajax/semantic/widgets/datatable/DataTable.php
public function setUrls($urls) {
		if(\is_array($urls)){
			$this->_urls["refresh"]=JArray::getValue($urls, "refresh",0);
			$this->_urls["edit"]=JArray::getValue($urls, "edit",1);
			$this->_urls["delete"]=JArray::getValue($urls, "delete",2);
			$this->_urls["display"]=JArray::getValue($urls, "display",3);
		}else{
			$this->_urls=["refresh"=>$urls,"edit"=>$urls,"delete"=>$urls,"display"=>$urls];
		}
		return $this;
	}
public function setUrls($urls) {
		if(\is_array($urls)){
			$this->_urls["refresh"]=JArray::getValue($urls, "refresh",0);
			$this->_urls["edit"]=JArray::getValue($urls, "edit",1);
			$this->_urls["delete"]=JArray::getValue($urls, "delete",2);
			$this->_urls["display"]=JArray::getValue($urls, "display",3);
		}else{
			$this->_urls=["refresh"=>$urls,"edit"=>$urls,"delete"=>$urls,"display"=>$urls];
		}
		return $this;
	}
public function setUrls ( $ urls ) { if ( \ is_array ( $ urls ) ) { $ this -> _urls [ "refresh" ] = JArray :: getValue ( $ urls , "refresh" , 0 ) ; $ this -> _urls [ "edit" ] = JArray :: getValue ( $ urls , "edit" , 1 ) ; $ this -> _urls [ "delete" ] = JArray :: getValue ( $ urls , "delete" , 2 ) ; $ this -> _urls [ "display" ] = JArray :: getValue ( $ urls , "display" , 3 ) ; } else { $ this -> _urls = [ "refresh" => $ urls , "edit" => $ urls , "delete" => $ urls , "display" => $ urls ] ; } return $ this ; }
Sets the associative array of urls for refreshing, updating or deleting
think of defining the update zone with the setTargetSelector method
@param string|array $urls associative array with keys refresh: for refreshing with search field or pagination, edit : for updating a row, delete: for deleting a row
@return DataTable
Sets the associative array of urls for refreshing updating or deleting think of defining the update zone with the setTargetSelector method