Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 30

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 22.11.2005, 09:50   #1 (permalink)
Baby Mamber
 
Join Date: Oct 2005
Posts: 24
row1 is on a distinguished road
Default Getting and Setting XML parameters

Hi,
Im wondering about the parameters (param tag) in components xmls files.
My understanding is that these are provided for the user to set global options.
I am having trouble understanding these.
The following code renders the xml file fine, but doesn't change the parameter. I thought it would change the value in the xml file but it doesnt.
If someone could explain how to use the xml parameters I would be forever in debt
PHP Code:
global $mainframe,$database$Itemid;

$option 'com_simple_review';

// get params definitions
    
$menu =& new mosMenu$database );
    
$menu->load$Itemid );
$params =& new mosParameters$menu->params,
  
$mainframe->getPath'com_xml'$option ), 'component' );

    echo 
$params->render();
    
$params->set('sr_dateFormat'"hio"); 
PHP Code:
 <params>
 <
param name="sr_allowAnonymousComments" type="radio" default="1" label="Allow Anonymouse Comments" description="Do you want anonymouse users to place comments?">
  <
option value="0">Hide</option>
  <
option value="1">Show</option>
  </
param>
 <
param name="sr_maxRating" type="list" default="5" label="Max Rating" description="The maximum rating a review can receive">
  <
option value="5">5</option>
  <
option value="10">10</option>
  <
option value="100">100</option>
  <
option value="100">100</option>
  </
param>
 <
param name="sr_dateFormat" type="text" size="25" default="%a %e %b %y" label="Date Format" description="Specify the date format, see http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html" />
 </
params
__________________
http://row1.info
row1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 02:16.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.