本文整理汇总了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;
}