The developer takes a few days off for Summer vacation...
...and will be back with charged battery!
From 1st August to 10th August, 2026 included
During this period, assistance from developer will not be provided.
NEWS: iCagenda 4.1.0-alpha1 will be available for testing for users with a PRO subscription
by the end of August!
Please Log in or Create an account to join the conversation.
protected function prepareTable( $table )
{
$date = JFactory::getDate();
$user = JFactory::getUser();
$table->name = htmlspecialchars_decode($table->name, ENT_QUOTES);
if (empty($table->id))
{
// Set the values
$table->created = $date->toSql();
// Set ordering to the last item if not set
if (empty($table->ordering))
{
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('MAX(ordering)')
->from($db->quoteName('#__icagenda_events'));
$db->setQuery($query);
$max = $db->loadResult();
$table->ordering = $max + 1;
}
}
else
{
// Set the values
$table->modified = $date->toSql();
$table->modified_by = $user->get('id');
}
}<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('modified'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('modified'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('modified_by'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('modified_by'); ?>
</div>
</div>
Please Log in or Create an account to join the conversation.

