Source for file pnadminapi.php
Documentation is available at pnadminapi.php
* Zikula Application Framework
* @copyright (c) 2002, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pnadminapi.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Value_Addons
* @param $args['feedname'] name of the item
* @param $args['number'] number of the item
* @return mixed RSS item ID on success, false on failure
if (!isset ($args['name']) ||
// check for maximum length to avoid cutting off URLs
if (strlen($args['url'] > 255)) {
// Check for a protocol Magpie RSS (more exactly Snoopy) can handle.
if (!isset ($url_parts['scheme']) || ($url_parts['scheme'] != 'http' && $url_parts['scheme'] != 'https')) {
// define the permalink title if not present
if (!isset ($args['urltitle']) || empty($args['urltitle'])) {
// Let any hooks know that we have created a new item.
pnModCallHooks('item', 'create', $args['fid'], array('module' => 'Feeds'));
// Return the id of the newly created item to the calling process
* @param $args['fid'] ID of the item
* @return bool true on success, false on failure
if (!isset ($args['fid']) || !is_numeric($args['fid'])) {
$item = pnModAPIFunc('Feeds', 'user', 'get', array('fid' => $args['fid']));
// Let any hooks know that we have deleted an item
pnModCallHooks('item', 'delete', $args['fid'], array('module' => 'Feeds'));
// Let the calling process know that we have finished successfully
* @param $args['fid'] the ID of the item
* @param $args['feedname'] the new name of the item
* @param $args['number'] the new number of the item
if (!isset ($args['fid']) ||
$item = pnModAPIFunc('Feeds', 'user', 'get', array('fid' => $args['fid']));
// check for maximum length to avoid cutting off URLs
if (strlen($args['url'] > 200)) {
// Check for a protocol Magpie RSS (more exactly Snoopy) can handle.
if ($url_parts['scheme'] != 'http' && $url_parts['scheme'] != 'https') {
// define the permalink title if not present
if (!isset ($args['urltitle']) || empty($args['urltitle'])) {
// Let any hooks know that we have updated an item.
pnModCallHooks('item', 'update', $args['fid'], array('module' => 'Feeds'));
// Let the calling process know that we have finished successfully
* get available admin panel links
* @return array array of admin links
|