PHP Class Twitter_Regex, twitter-text-php

Used by subclasses that need to parse tweets. Originally written by {@link http://github.com/mikenz Mike Cochrane}, this is based on code by {@link http://github.com/mzsanford Matt Sanford} and heavily modified by {@link http://github.com/ngnpope Nick Pope}.
Author: Mike Cochrane ([email protected])
Author: Nick Pope ([email protected])
Afficher le fichier Open project: ngnpope/twitter-text-php Class Usage Examples

Protected Properties

Свойство Type Description
$patterns Contains all generated regular expressions.
$tweet string The tweet to be used in parsing. This should be populated by the constructor of all subclasses.

Méthodes publiques

Méthode Description
__static ( ) Emulate a static initialiser while PHP doesn't have one.

Méthodes protégées

Méthode Description
__construct ( string $tweet ) This constructor is used to populate some variables.

Method Details

__construct() protected méthode

This constructor is used to populate some variables.
protected __construct ( string $tweet )
$tweet string The tweet to parse.

__static() public static méthode

Emulate a static initialiser while PHP doesn't have one.
public static __static ( )

Property Details

$patterns protected_oe static_oe property

Contains all generated regular expressions.
protected static $patterns

$tweet protected_oe property

The tweet to be used in parsing. This should be populated by the constructor of all subclasses.
protected string $tweet
Résultat string