PHP Snippets

Class Display for Domain/Server/Entity Content Manipulation


For all HK server content .com.hk/.com.cn/.com.au/.co.in/.co.jp:

Copy
Display::forHkServer()

For all UK server content .co.uk:

Copy
Display::forUkServer()

For all US server content .com/.ca:

Copy
Display::forUsServer()

For all US domain content:

Copy
Display::forUsDomain()

For all CA domain content:

Copy
Display::forCaDomain()

For all UK domain content:

Copy
Display::forUkDomain()

For all HK domain content:

Copy
Display::forHkDomain()

For all CN domain content:

Copy
Display::forCnDomain()

For all IN domain content:

Copy
Display::forInDomain()

For all AU domain content:

Copy
Display::forAuDomain()

For all JP domain content:

Copy
Display::forJpDomain()

For displaying on certain entities. This would show for LLC, CA and UK only:

Copy
Display::Content(array('llc', 'ca', 'uk'), $ib_entity)