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])
파일 보기 프로젝트 열기: ngnpope/twitter-text-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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