[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] CVS: smdoc/lib smdoc.class.text.textile.php,NONE,1.1
From:       Erin Schnabel <ebullient () users ! sourceforge ! net>
Date:       2003-12-31 9:02:57
Message-ID: E1AbcFl-0002m7-00 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/squirrelmail/smdoc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv10297/lib

Added Files:
	smdoc.class.text.textile.php 
Log Message:
Creating text_plain and Textile docs.
Textile is HTML shorthand that can have regular HTML mixed in. I like it.
Saves work, and is natural.



--- NEW FILE ---
<?php
/*
 * Copyright (c) 1999-2003 The SquirrelMail Project Team
 * Licensed under the GNU GPL. For full terms see the file COPYING.
 *
 * This file is an addition/modification to the 
 * Framework for Object Orientated Web Development (Foowd).
 * */

/**
 * Class for HTML and Textile formatted documents.
 *
 * $Id: smdoc.class.text.textile.php,v 1.1 2003/12/31 09:02:55 ebullient Exp $
 * 
 * @package smdoc
 * @subpackage text
 */

/** Class Descriptor/Meta information */
setClassMeta('smdoc_text_textile', 'HTML + Textile Formatting');

/**
 * HTML and Textile text object class.
 *
 * This class defines a HTML/Textile text area and 
 * methods to view and edit that area.
 *
 * @package smdoc
 * @subpackage text
 * @author Erin Schnabel
 * @author Brad Choate
 */
class smdoc_text_textile extends foowd_text_plain
{
  /**
   * Process text content. Processes content to turn the textile style code 
   * into HTML.
   *
   * @param string text The text to process.
   * @return string The processed content.
   */
  function processContent($text)
  {
    /*
     * Import David Allen's Textile formatter
     * -- ONE MODIFICATION is made to the formatter, these two lines:
     *     if (get_magic_quotes_gpc()==1)
     *       $text = stripslashes($text);
     * are removed because the input library already takes care
     * of removing slashes if magic_quotes is enabled.
     */
    require_once(SM_DIR.'textism.textile.php');

    return textile($text);
  }

}



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic