PHP Класс 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}.
Автор: Mike Cochrane ([email protected])
Автор: Nick Pope ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__static ( ) Emulate a static initialiser while PHP doesn't have one.

Защищенные методы

Метод Описание
__construct ( string $tweet ) This constructor is used to populate some variables.

Описание методов

__construct() защищенный Метод

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

__static() публичный статический Метод

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

Описание свойств

$patterns защищенное статическое свойство

Contains all generated regular expressions.
protected static $patterns

$tweet защищенное свойство

The tweet to be used in parsing. This should be populated by the constructor of all subclasses.
protected string $tweet
Результат string