1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Allow shortcodes and other areas to retrieve tablerender() custom content, style, uniqueId etc.

This commit is contained in:
Cameron 2018-01-10 14:17:39 -08:00
parent 99afe0a001
commit e92784eff2

View File

@ -973,7 +973,7 @@ if (!class_exists('e107table', false))
*/
public function setStyle($style)
{
$this->eSetStyle = $style;
$this->eSetStyle = (string) $style;
}
/**
@ -988,8 +988,8 @@ if (!class_exists('e107table', false))
/**
* Set Advanced Menu content (beyond just $caption and $text)
* @param string $type header|footer|text|title|image
* Set Advanced Page/Menu content (beyond just $caption and $text)
* @param string $type header|footer|text|title|image|list
* @param string $val
*/
public function setContent($type, $val)
@ -1003,6 +1003,43 @@ if (!class_exists('e107table', false))
}
/**
* Return the value of custom content
* @param string $type header|footer|text|title|image|list
* @return array
*/
public function getContent($type='')
{
if(empty($type))
{
return $this->content;
}
return $this->content[$type];
}
/**
* Return the current value of {SETSTYLE}
* @return mixed
*/
public function getStyle()
{
return $this->eSetStyle;
}
/**
* Return the currenty set uniqueId.
* @return mixed
*/
public function getUniqueId()
{
return $this->uniqueId;
}
/**
* @param $caption string caption text