本文整理匯總了PHP中WikiFactory::getPublic方法的典型用法代碼示例。如果您正苦於以下問題:PHP WikiFactory::getPublic方法的具體用法?PHP WikiFactory::getPublic怎麽用?PHP WikiFactory::getPublic使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WikiFactory
的用法示例。
在下文中一共展示了WikiFactory::getPublic方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isPublic
/**
* @brief Returns true if wiki is public ("probably" its database exists)
*
* @desc Returns true if wiki is public which should mean its database exists.
* However we noticed one case when wiki was public and its database doesn't exist.
* If this case wasn't singular we'll be having to create maintance script which
* will check wikis' databases and set right value to city_public field in DB.
*
* @author Andrzej 'nAndy' Lukaszewski <nandy@wikia-inc.com>
* @access public
* @static
*
* @param integer $city_id wikia identifier in city_list
*
* @return boolean
*/
public static function isPublic($city_id)
{
if (WikiFactory::getPublic($city_id) === 1) {
return true;
}
return false;
}