Added PHP (script - before publish) & PHP (script - after publish)

with some fixes to the compiler
This commit is contained in:
2016-09-07 23:20:58 +02:00
parent f8d5145af9
commit b8311078ac
368 changed files with 3397 additions and 2947 deletions

View File

@ -267,6 +267,26 @@ class ###Component###Model###View### extends JModelAdmin
return true;
}
/**
* Method to change the published state of one or more records.
*
* @param array &$pks A list of the primary keys to change.
* @param integer $value The value of the published state.
*
* @return boolean True on success.
*
* @since 12.2
*/
public function publish(&$pks, $value = 1)
{###JMODELADMIN_BEFORE_PUBLISH###
if (!parent::publish($pks, $value))
{
return false;
}###JMODELADMIN_AFTER_PUBLISH###
return true;
}
/**
* Method to perform batch operations on an item or a set of items.