Changeset 1482

Show
Ignore:
Timestamp:
10/29/2006 06:53:33 AM (2 years ago)
Author:
xue
Message:

merge from 3.0 branch till 1481.

Location:
trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r1467 r1482  
    1414CHG: All validators ClientSide.OnError becomes ClientSide.OnValidationError, and OnError event becomes OnValidationError. (Wei) 
    1515 
    16  
    17 Version 3.0.5 October 8, 2006 
    18 =============================== 
     16Version 3.0.6 December 4, 2006 
     17============================== 
     18CHG: constructUrl() now encodes & into & by default (Qiang) 
     19CHG: TRepeater does not render <span> anymore for empty item template (Qiang) 
     20 
     21Version 3.0.5 October 23, 2006 
     22============================== 
    1923BUG: Ticket#409 - Multiple page services will mess up page caching (Qiang) 
    2024BUG: Ticket#417 - SelectedIndex in template incorrect caused by bug in TList (Qiang) 
     
    2428ENH: Ticket#378 - PRADO applications can now run in command line (Qiang) 
    2529ENH: Ticket#379 - TAuthorizationRule performance enhancement (Qiang) 
     30ENH: Ticket#382 - Untranslated messages can be marked now (Wei) 
    2631ENH: Ticket#394 - Enhancing TDropDownListColumn to allow specifying both text and value (Qiang) 
    2732ENH: Easier to customize the TDatePicker using CssClass (Wei) 
  • trunk/UPGRADE

    r1467 r1482  
    2222- Validator OnError event becomes OnValidationError.  
    2323 
     24Upgrading from v3.0.5 
     25--------------------- 
     26- constructUrl() now encodes & into &amp; by default. 
     27- TRepeater does not render <span> anymore for empty item template. 
    2428 
    2529Upgrading from v3.0.4 
  • trunk/demos/quickstart/protected/pages/GettingStarted/CommandLine.page

    r1452 r1482  
    22<h1 id="501">Command Line Tool</h1> 
    33<p>The optional <tt>prado-cli.php</tt> PHP script file in the <tt>framework</tt> 
    4 directory provides command line tools to perform various tendious taks in Prado. 
     4directory provides command line tools to perform various tedious takes in Prado. 
    55The <tt>prado-cli.php</tt> can be used to create Prado project skeletons, create 
    66initial test fixtures, and access to an interactive PHP shell. 
     
    4545        <li>Change to the directory where you want to create the project skeleton.</li> 
    4646        <li>Type, <tt>php ../prado/framework/prado-cli.php -c helloworld</tt>, where 
    47         <tt>hellowworld</tt> is the directory name that you want to create the project skeleton files.</li> 
     47        <tt>helloworld</tt> is the directory name that you want to create the project skeleton files.</li> 
    4848        <li>Type, <tt>php ../prado/framework/prado-cli.php <b>-t</b> helloworld</tt> to create 
    4949        the test fixtures for the <tt>helloworld</tt> project.</li> 
     
    5252<h2 id="505">Interactive Shell</h2> 
    5353<p> 
    54 The interactive shell allows you to evaluate PHP statements from te command line. 
     54The interactive shell allows you to evaluate PHP statements from the command line. 
    5555The <tt>prado-cli.php</tt> script can be used to start the shell and load an existing 
    5656Prado project. For example, let us load the blog demo project. Assume that your 
     
    6464<com:TTextHighlighter Language="cli" CssClass="source"> 
    6565Command line tools for Prado 3.0.5. 
    66 ** Loaded Prado appplication in directory "demos\blog\protected". 
     66** Loaded Prado application in directory "demos\blog\protected". 
    6767PHP-Shell - Version 0.3.1 
    6868(c) 2006, Jan Kneschke <jan@kneschke.de> 
     
    7474Then we will get an instance of the Prado blog application, and from 
    7575that instance we want an instance of the <tt>'data'</tt> module. Notice that 
    76 a <b>semicolon</b> at the end of the line <b>supresses the output</b>. 
     76a <b>semicolon</b> at the end of the line <b>suppresses the output</b>. 
    7777 
    7878<com:TTextHighlighter Language="cli" CssClass="source"> 
     
    9898    [Content] => 'Congratulations! You have successfully installed Prado Blog -- 
    9999 a PRADO-driven weblog system. A default administrator account has been created. 
    100  Please login with <b>admin/prado</b> and update your password as soon as possib 
    101 le.' 
     100 Please login with <b>admin/prado</b> and update your password as soon as possible.' 
    102101    [Status] => 0 
    103102    [CommentCount] => 0 
  • trunk/framework/Web/Services/TPageService.php

    r1464 r1482  
    463463         * @param string page path 
    464464         * @param array list of GET parameters, null if no GET parameters required 
    465          * @param boolean whether to encode the ampersand in URL, defaults to false. 
     465         * @param boolean whether to encode the ampersand in URL, defaults to true. 
    466466         * @param boolean whether to encode the GET parameters (their names and values), defaults to true. 
    467467         * @return string URL for the page and GET parameters 
    468468         */ 
    469         public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=false,$encodeGetItems=true) 
     469        public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=true,$encodeGetItems=true) 
    470470        { 
    471471                return $this->getRequest()->constructUrl($this->getID(),$pagePath,$getParams,$encodeAmpersand,$encodeGetItems); 
  • trunk/framework/Web/THttpRequest.php

    r1452 r1482  
    483483         * @param string service parameter 
    484484         * @param array GET parameters, null if not needed 
    485          * @param boolean whether to encode the ampersand in URL, defaults to false. 
     485         * @param boolean whether to encode the ampersand in URL, defaults to true. 
    486486         * @param boolean whether to encode the GET parameters (their names and values), defaults to true. 
    487487         * @return string URL 
    488488         * @see parseUrl 
    489489         */ 
    490         public function constructUrl($serviceID,$serviceParam,$getItems=null,$encodeAmpersand=false,$encodeGetItems=true) 
     490        public function constructUrl($serviceID,$serviceParam,$getItems=null,$encodeAmpersand=true,$encodeGetItems=true) 
    491491        { 
    492492                $url=$serviceID.'='.$serviceParam; 
  • trunk/framework/Web/UI/WebControls/TRepeater.php

    r1398 r1482  
    365365        public function render($writer) 
    366366        { 
    367                 if($this->_items && $this->_items->getCount()) 
     367                if($this->_items && $this->_items->getCount() || $this->_emptyTemplate!==null) 
    368368                        $this->renderContents($writer); 
    369                 else if($this->_emptyTemplate!==null) 
    370                         parent::render($writer); 
    371369        } 
    372370 
  • trunk/index.html

    r1448 r1482  
    88<body> 
    99<h1>PRADO Framework for PHP 5 </h1> 
    10 <p>Version 3.0.5, October 8, 2006<br> 
     10<p>Version 3.0.5, October 23, 2006<br> 
    1111Copyright&copy; 2004-2006 by <a href="http://www.pradosoft.com/">PradoSoft</a><br> 
    1212All Rights Reserved. 
     
    7070<h2>Documentation</h2> 
    7171<ul> 
    72 <li><a href="docs/manual/index.html">API documentation</a></li> 
     72<li><a href="docs/prado3_manual.chm">Integrated manual (CHM)</a>, including quickstart, API, class docs and wiki</li> 
    7373<li><a href="docs/quickstart.pdf">Quickstart tutorial (PDF)</a></li> 
     74<li><a href="docs/manual/index.html">API documentation (HTML)</a></li> 
    7475</ul> 
    7576