Subversion Repositories Applications.papyrus

Rev

Rev 391 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 391 Rev 533
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: Syndication.php,v 1.2 2005-06-03 16:10:41 jpm Exp $
2
// $Id: Syndication.php,v 1.3 2005-10-13 16:37:54 florian Exp $
Line 3... Line 3...
3
 
3
 
4
 
4
 
5
/**
5
/**
Line 13... Line 13...
13
* @package Text_Wiki
13
* @package Text_Wiki
14
*
14
*
15
*/
15
*/
16
class Text_Wiki_Parse_Syndication extends Text_Wiki_Parse {
16
class Text_Wiki_Parse_Syndication extends Text_Wiki_Parse {
Line 17... Line 17...
17
    
17
    
Line 18... Line 18...
18
    var $regex = '/\{\{Syndication url="(.+?)"\}\}/';
18
    var $regex = '/\{\{Syndication titre="(.+?)" url="(.+?)" nb=(.+?)\}\}/';
19
    
19
    
20
    /**
20
    /**
21
    * 
21
    * 
Line 33... Line 33...
33
    *
33
    *
34
    */
34
    */
35
    function process(&$matches)
35
    function process(&$matches)
36
    {
36
    {
37
        $options = array(
37
        $options = array(
38
            'url' => $matches[1]
38
            'titre' => $matches[1], 'url' => $matches[2], 'nb' => $matches[3],
39
        );
39
        );
40
        
-
 
41
        return $this->wiki->addToken($this->rule, $options);
40
        return $this->wiki->addToken($this->rule, $options);
42
    }
41
    }
Line 43... Line 42...
43
    
42
    
44
}
43
}
45
?>
44
?>