Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -77,7 +77,7 @@ abstract class _PromoteAbstract extends \IPS\Patterns\ActiveRecord
|
||||
public static function constructFromData( $data, $updateMultitonStoreIfExists = TRUE )
|
||||
{
|
||||
/* Initiate an object */
|
||||
$classname = '\\IPS\Content\\Promote\\' . \ucfirst( $data['sharer_key'] );
|
||||
$classname = '\\IPS\Content\\Promote\\' . mb_ucfirst( $data['sharer_key'] );
|
||||
|
||||
if ( !class_exists( $classname ) )
|
||||
{
|
||||
@@ -162,9 +162,10 @@ abstract class _PromoteAbstract extends \IPS\Patterns\ActiveRecord
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @param string|NULL $serviceId Specific page/group ID
|
||||
* @return string
|
||||
*/
|
||||
abstract public function getName();
|
||||
abstract public function getName( $serviceId=NULL );
|
||||
|
||||
/**
|
||||
* Return the published URL
|
||||
@@ -174,7 +175,18 @@ abstract class _PromoteAbstract extends \IPS\Patterns\ActiveRecord
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
abstract function getUrl( $data );
|
||||
|
||||
|
||||
/**
|
||||
* Allow for any extra processing
|
||||
*
|
||||
* @param array $values Values from the form isn't it though
|
||||
* @return mixed
|
||||
*/
|
||||
public function processPromoteForm( $values )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bulk save settings
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user