Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -167,6 +167,34 @@ class _Databases extends \IPS\Node\Model implements \IPS\Node\Permissions
|
||||
* @brief Page title
|
||||
*/
|
||||
protected $pageTitle = NULL;
|
||||
|
||||
/**
|
||||
* @breif Used by the dataLayer
|
||||
*/
|
||||
public static $contentArea = 'pages_database';
|
||||
|
||||
/**
|
||||
* @breif Used by the dataLayer
|
||||
*/
|
||||
public static $containerType = 'pages_database_category';
|
||||
|
||||
/**
|
||||
* Get the properties that can be added to the datalayer for this key
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getDataLayerProperties()
|
||||
{
|
||||
if ( empty( $this->_dataLayerProperties ) )
|
||||
{
|
||||
$properties = parent::getDataLayerProperties();
|
||||
$properties['content_area'] = $this->_title;
|
||||
$properties['container_type'] = "{$this->key}_database";
|
||||
$this->_dataLayerProperties = $properties;
|
||||
}
|
||||
|
||||
return $this->_dataLayerProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all databases
|
||||
@@ -1047,6 +1075,8 @@ class _Databases extends \IPS\Node\Model implements \IPS\Node\Permissions
|
||||
\IPS\Lang::deleteCustom( 'cms', "cms_create_menu_records_" . $this->id );
|
||||
\IPS\Lang::deleteCustom( 'cms', "cms_records" . $this->id . '_pl' );
|
||||
\IPS\Lang::deleteCustom( 'cms', "module__cms_records" . $this->id );
|
||||
\IPS\Lang::deleteCustom( 'cms', "digest_area_cms_records" . $this->id );
|
||||
\IPS\Lang::deleteCustom( 'cms', "digest_area_cms_categories" . $this->id );
|
||||
|
||||
/* Unclaim attachments */
|
||||
\IPS\File::unclaimAttachments( 'cms_Records', NULL, NULL, $this->id );
|
||||
|
||||
Reference in new issue
Block a user