Revision 2014
Added by darkviper almost 12 years ago
| WbLink.php | ||
|---|---|---|
| 52 | 52 |
// search `link` from posts table and create absolute URL |
| 53 | 53 |
$sql = 'SELECT `link` ' |
| 54 | 54 |
. 'FROM `'.$this->oDb->TablePrefix.'mod_news_posts` ' |
| 55 |
. 'WHERE `post_id`='.$aReplacement['Args']['item'];
|
|
| 55 |
. 'WHERE `post_id`='.$aReplacement['item']; |
|
| 56 | 56 |
if(($sLink = $this->oDb->get_one($sql))) |
| 57 | 57 |
{
|
| 58 | 58 |
$sLink = trim(str_replace('\\', '/', $sLink), '/');
|
| ... | ... | |
| 64 | 64 |
} |
| 65 | 65 |
return $sRetval; |
| 66 | 66 |
} |
| 67 |
|
|
| 68 |
// public function generateLinkList(Template $oTpl) |
|
| 69 |
// {
|
|
| 70 |
// ; |
|
| 71 |
// } |
|
| 67 |
/** |
|
| 68 |
* generateOptionsList |
|
| 69 |
* @param string $sObjectName name of the array to create (default: 'AddonItemsSelectBox') |
|
| 70 |
* @return &array complete definition of a SelectBox |
|
| 71 |
* @description Bild a mulitdimensional Array with complete Option definitions for use in a Select Box |
|
| 72 |
*/ |
|
| 73 |
public function &generateOptionsList() |
|
| 74 |
{
|
|
| 75 |
$aAddonItems =& $this->_executeListGeneration( |
|
| 76 |
'news', |
|
| 77 |
'mod_news_posts', |
|
| 78 |
'page_id', |
|
| 79 |
'section_id', |
|
| 80 |
'post_id', |
|
| 81 |
'created_when', |
|
| 82 |
'title', |
|
| 83 |
'active' |
|
| 84 |
); |
|
| 85 |
return $aAddonItems; |
|
| 86 |
} |
|
| 72 | 87 |
} // end of class m_news_WbLink |
Also available in: Unified diff
+ added new Interface usable to connect from WYSIWYG-Editor to all Modules with subitems like news or topics