PHP 클래스 QueryPath\Entities

파일 보기 프로젝트 열기: microweber/microweber 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$regex protected static $regex = '/&([\w]+);|&#([\d]+);|&([\w]*[\s$]+)/m';

공개 메소드들

메소드 설명
replaceAllEntities ( string $string ) : string Replace all entities.
replaceEntity ( string $entity ) : integer Lookup an entity string's numeric equivalent.

보호된 메소드들

메소드 설명
doReplacement ( array $matches ) Callback for processing replacements.

메소드 상세

doReplacement() 보호된 정적인 메소드

Callback for processing replacements.
protected static doReplacement ( array $matches )
$matches array The regular expression replacement array.

replaceAllEntities() 공개 정적인 메소드

This will scan a string and will attempt to replace all entities with their numeric equivalent. This will not work with specialized entities.
public static replaceAllEntities ( string $string ) : string
$string string The string to perform replacements on.
리턴 string Returns a string that is similar to the original one, but with all entity replacements made.

replaceEntity() 공개 정적인 메소드

Lookup an entity string's numeric equivalent.
저자: Matt Butcher
저자: Ryan Mahoney
public static replaceEntity ( string $entity ) : integer
$entity string The entity whose numeric value is needed.
리턴 integer The integer value corresponding to the entity.

프로퍼티 상세

$regex 보호되어 있는 정적으로 프로퍼티

protected static $regex = '/&([\w]+);|&#([\d]+);|&([\w]*[\s$]+)/m';
protected static $regex