OWeb/defaults/controllers/OWeb/widgets/jquery/CodeGenerator.php
public function prepareDisplay(){
		if($this->id == null && $this->class == null){
			$this->id = (String)(new \OWeb\utils\IdGenerator ());
			$displayId = 'id="'.$this->id.'"';
			$jid = "#".$this->id;
		}else if($this->id == null){
			$displayId = 'class="'.$this->class.'"';
			$jid = ".".$this->class;
		}else{
			$displayId = 'id="'.$this->id.'"';
			$jid = "#".$this->id;
		}
		
		if($this->function == null){
			$ex = new \OWeb\Exception("When creating a Jquery Code Generator you need to call setCallFunction to set up the function that needs to be called");
			$ex = new \OWeb\types\UserException($this->l("Function unset Error Title"), 0, $ex);
			$ex->setUserDescription($this->l("Function unset Error Desc"));
			throw $ex;
		}
		$this->view->id = $displayId;
		
		return $jid;
	}
public function prepareDisplay(){
		if($this->id == null && $this->class == null){
			$this->id = (String)(new \OWeb\utils\IdGenerator ());
			$displayId = 'id="'.$this->id.'"';
			$jid = "#".$this->id;
		}else if($this->id == null){
			$displayId = 'class="'.$this->class.'"';
			$jid = ".".$this->class;
		}else{
			$displayId = 'id="'.$this->id.'"';
			$jid = "#".$this->id;
		}
		
		if($this->function == null){
			$ex = new \OWeb\Exception("When creating a Jquery Code Generator you need to call setCallFunction to set up the function that needs to be called");
			$ex = new \OWeb\types\UserException($this->l("Function unset Error Title"), 0, $ex);
			$ex->setUserDescription($this->l("Function unset Error Desc"));
			throw $ex;
		}
		$this->view->id = $displayId;
		
		return $jid;
	}
public function prepareDisplay ( ) { if ( $ this -> id == null && $ this -> class == null ) { $ this -> id = ( String ) ( new \ OWeb \ utils \ IdGenerator ( ) ) ; $ displayId = 'id="' . $ this -> id . '"' ; $ jid = "#" . $ this -> id ; } else if ( $ this -> id == null ) { $ displayId = 'class="' . $ this -> class . '"' ; $ jid = "." . $ this -> class ; } else { $ displayId = 'id="' . $ this -> id . '"' ; $ jid = "#" . $ this -> id ; } if ( $ this -> function == null ) { $ ex = new \ OWeb \ Exception ( "When creating a Jquery Code Generator you need to call setCallFunction to set up the function that needs to be called" ) ; $ ex = new \ OWeb \ types \ UserException ( $ this -> l ( "Function unset Error Title" ) , 0 , $ ex ) ; $ ex -> setUserDescription ( $ this -> l ( "Function unset Error Desc" ) ) ; throw $ ex ; } $ this -> view -> id = $ displayId ; return $ jid ; }
Makes the necessary verifications to see if the Controller can be displayed.
Will also generate the selector for the jquery call as well as the code needed
for it in the html code

@return string The Jquery selector
@throws \Controller\OWeb\widgets\jquery\OWeb\Exception If the function hasn't been set up
Makes the necessary verifications to see if the Controller can be displayed . Will also generate the selector for the jquery call as well as the code needed for it in the html code