This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" type="text/javascript"> | |
//Secure the user navigation on the page, in order preserve datas. | |
// COMMENT THIS FOLLOWING LINE | |
// var holdForm = true; | |
window.onbeforeunload = function closeIt(){ if (holdForm) return false;}; | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function populateObjects(&$items) | |
{ | |
// Load XRef Cities | |
$this->loadXref($items, 'cities', 'cities', 'country', 'id', array( | |
'travellers' // xref.cities.travellers | |
), 'object.default'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function populateObjects(&$items) | |
{ | |
// Load XRef Countries | |
$this->loadXref($items, 'countries', 'countries', 'continent', 'id', array( | |
'cities', // xref.countries.cities | |
'cities.travellers' // xref.countries.cities.travellers | |
), 'object.default'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function populateObjects(&$item) | |
{ | |
// Load XRef Countries | |
$this->loadXref($item, 'cities', 'cities', 'country', 'id', | |
// BEGIN | |
array( | |
'travellers' // xref.cities.travellers | |
) | |
// END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function populateObjects(&$item) | |
{ | |
// Load XRef Countries | |
$this->loadXref($item, 'countries', 'countries', 'continent', 'id', | |
// BEGIN | |
array( | |
'cities', // xref.countries.cities | |
'cities.travellers' // xref.countries.cities.travellers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function prepareQuery(&$query) | |
{ | |
... | |
switch($this->getState('context', 'all')) | |
{ | |
// BEGIN FORK | |
case 'object.default': | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function populateObjects(&$item) | |
{ | |
// Load XRef Country | |
$this->loadXref($item, 'countries', 'countries', 'continent', 'id', null, 'object.default'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset class="fieldsform form-horizontal"> | |
<?php | |
// BEGIN FORK | |
// Fill the list using dynamic | |
$fieldSet['jform_cities']->jdomOptions = array( | |
'list' => $this->lists['fk']['cities'] | |
); | |
//END FORK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function displayTraveller($tpl = null) | |
{ | |
... | |
// Initialiase variables. | |
$this->model = $model = $this->getModel(); | |
$this->state = $state = $this->get('State'); | |
$state->set('context', 'traveller.traveller'); | |
// BEGIN FORK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function displayContinent($tpl = null) | |
{ | |
... | |
// Initialiase variables. | |
$this->model = $model = $this->getModel(); | |
$this->state = $state = $this->get('State'); | |
$state->set('context', 'continent.continent'); |
NewerOlder