src/Ubiquity/controllers/crud/CRUDController.php
public function showDetail($ids) {
		if (URequest::isAjax ()) {
			$instance = $this->getModelInstance ( $ids );
			$viewer = $this->_getModelViewer ();
			$hasElements = false;
			$model = $this->model;
			$fkInstances = CRUDHelper::getFKIntances ( $instance, $model );
			$semantic = $this->jquery->semantic ();
			$grid = $semantic->htmlGrid ( "detail" );
			if (sizeof ( $fkInstances ) > 0) {
				$wide = intval ( 16 / sizeof ( $fkInstances ) );
				if ($wide < 4)
					$wide = 4;
				foreach ( $fkInstances as $member => $fkInstanceArray ) {
					$element = $viewer->getFkMemberElementDetails ( $member, $fkInstanceArray ["objectFK"], $fkInstanceArray ["fkClass"], $fkInstanceArray ["fkTable"] );
					if (isset ( $element )) {
						$grid->addCol ( $wide )->setContent ( $element );
						$hasElements = true;
					}
				}
				if ($hasElements) {
					echo $grid;
					$url = $this->_getFiles ()->getDetailClickURL ( $this->model );
					if (UString::isNotNull ( $url )) {
						$this->detailClick ( $url );
					}
				}
				echo $this->jquery->compile ( $this->view );
			}
		} else {
			$this->jquery->execAtLast ( "$('tr[data-ajax={$ids}]').trigger('click');" );
			$this->index ();
		}
	}
public function showDetail($ids) {
		if (URequest::isAjax ()) {
			$instance = $this->getModelInstance ( $ids );
			$viewer = $this->_getModelViewer ();
			$hasElements = false;
			$model = $this->model;
			$fkInstances = CRUDHelper::getFKIntances ( $instance, $model );
			$semantic = $this->jquery->semantic ();
			$grid = $semantic->htmlGrid ( "detail" );
			if (sizeof ( $fkInstances ) > 0) {
				$wide = intval ( 16 / sizeof ( $fkInstances ) );
				if ($wide < 4)
					$wide = 4;
				foreach ( $fkInstances as $member => $fkInstanceArray ) {
					$element = $viewer->getFkMemberElementDetails ( $member, $fkInstanceArray ["objectFK"], $fkInstanceArray ["fkClass"], $fkInstanceArray ["fkTable"] );
					if (isset ( $element )) {
						$grid->addCol ( $wide )->setContent ( $element );
						$hasElements = true;
					}
				}
				if ($hasElements) {
					echo $grid;
					$url = $this->_getFiles ()->getDetailClickURL ( $this->model );
					if (UString::isNotNull ( $url )) {
						$this->detailClick ( $url );
					}
				}
				echo $this->jquery->compile ( $this->view );
			}
		} else {
			$this->jquery->execAtLast ( "$('tr[data-ajax={$ids}]').trigger('click');" );
			$this->index ();
		}
	}
public function showDetail ( $ ids ) { if ( URequest :: isAjax ( ) ) { $ instance = $ this -> getModelInstance ( $ ids ) ; $ viewer = $ this -> _getModelViewer ( ) ; $ hasElements = false ; $ model = $ this -> model ; $ fkInstances = CRUDHelper :: getFKIntances ( $ instance , $ model ) ; $ semantic = $ this -> jquery -> semantic ( ) ; $ grid = $ semantic -> htmlGrid ( "detail" ) ; if ( sizeof ( $ fkInstances ) > 0 ) { $ wide = intval ( 16 / sizeof ( $ fkInstances ) ) ; if ( $ wide < 4 ) $ wide = 4 ; foreach ( $ fkInstances as $ member => $ fkInstanceArray ) { $ element = $ viewer -> getFkMemberElementDetails ( $ member , $ fkInstanceArray [ "objectFK" ] , $ fkInstanceArray [ "fkClass" ] , $ fkInstanceArray [ "fkTable" ] ) ; if ( isset ( $ element ) ) { $ grid -> addCol ( $ wide ) -> setContent ( $ element ) ; $ hasElements = true ; } } if ( $ hasElements ) { echo $ grid ; $ url = $ this -> _getFiles ( ) -> getDetailClickURL ( $ this -> model ) ; if ( UString :: isNotNull ( $ url ) ) { $ this -> detailClick ( $ url ) ; } } echo $ this -> jquery -> compile ( $ this -> view ) ; } } else { $ this -> jquery -> execAtLast ( "$('tr[data-ajax={$ids}]').trigger('click');" ) ; $ this -> index ( ) ; } }
Shows associated members with foreign keys

@param mixed $ids
Shows associated members with foreign keys