本文整理匯總了PHP中TPL::manageLNK方法的典型用法代碼示例。如果您正苦於以下問題:PHP TPL::manageLNK方法的具體用法?PHP TPL::manageLNK怎麽用?PHP TPL::manageLNK使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TPL
的用法示例。
在下文中一共展示了TPL::manageLNK方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tieInWithFrontend
/**
* Will tie the current object with the frontend object;
*
* This method, given the Frontend object will tie the given object with it. It's a way we can make specific code execute
* upon instantiating those objects in the frontend of the webiste. Almost the same principle we apply on the backend, but
* with a minor twist in it (as we don't automatically do it for the front);
*
* @param $objFrontendObject The frontend object;
* @return mixed God knows what ...
*/
public function tieInWithFrontend(Frontend $objFrontendObject)
{
// Do a CALL to the parent;
parent::tieInWithFrontend($objFrontendObject);
// RSS ...
TPL::manageLNK(new S(ARTICLES_RSS_FEED), new S(Frontend::RSS_ALTERNATE), new S(Frontend::RSS_TYPE), URL::staticURL(new A(array(FRONTEND_SECTION_URL, FRONTEND_FEED_URL)), new A(array(FRONTEND_RSS_XML, __CLASS__))));
}