Changeset 312 for trunk/plugins

Show
Ignore:
Timestamp:
09/11/06 21:19:18 (2 years ago)
Author:
michiel
Message:

added vim folds in this acronyms plugin to make my life easier ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/acronyms.php

    r260 r312  
    1212 
    1313        /* methods */ 
     14        /* __construct {{{ */ 
    1415        public function __construct(&$mvblog) { 
    1516                $this->addHook("text_output", "acroreplace"); 
    1617                $this->_mvblog =& $mvblog; 
    1718        } 
    18  
     19        /* }}} */ 
     20        /* activate {{{ */ 
    1921        public function activate() { 
    2022                /* get all acronyms from database */ 
     
    2729                } 
    2830        } 
    29  
     31        /* }}} */ 
     32        /* deactivate {{{ */ 
    3033        public function deactivate() { 
    3134                unset($this->_acronyms); 
    3235        } 
    33  
     36        /* }}} */ 
     37        /* acroreplace {{{ */ 
    3438        public function acroreplace($text) { 
    3539                foreach ($this->_acronyms as $acro) { 
     
    4347                return trim($text); 
    4448        } 
    45  
     49        /* }}} */ 
     50        /* show_settings {{{ */ 
    4651        public function show_settings() { 
    4752 
     
    6469                } 
    6570        } 
    66  
     71        /* }}} */ 
     72        /* edit_setting {{{ */ 
    6773        public function edit_setting($requestdata) { 
    6874                $id = $requestdata["id"]; 
     
    101107                <?php 
    102108        } 
    103  
     109        /* }}} */ 
     110        /* save_setting {{{ */ 
    104111        public function save_setting($requestdata) { 
    105112                $acro = $requestdata["acro"]; 
     
    127134                $this->show_settings(); 
    128135        } 
     136        /* }}} */ 
    129137} 
    130138?>