Yet Another Framework Yaf_Registry 클래스
(Yaf >=1.0.0)
소개
Yaf_Registry의 모든 메서드는 정적으로 선언되어 보편적으로 액세스할 수 있습니다. 이는 필요에 따라 코드에서 사용자 정의 데이터를 가져오거나 설정할 수 있는 기능을 제공합니다.
클래스 개요
class Yaf_Registry {
/* Properties */
static $_instance;
protected $_entries;
/* Methods */
private __construct()
public static del(string $name): void
public static get(string $name): mixed
public static has(string $name): bool
public static set(string $name, string $value): bool
}
Properties
- _instance
- _entries
목차
- Yaf_Registry::__construct — Yaf_Registry implements singleton
- Yaf_Registry::del — Remove an item from registry
- Yaf_Registry::get — Retrieve an item from registry
- Yaf_Registry::has — Check whether an item exists
- Yaf_Registry::set — Add an item into registry