/** * simple accessor and toggle flag method which shows if WikiFactory is used * at all. set in WikiFactoryLoader constructor to true, default false. * * @access public * @static * @author Krzysztof Krzyżaniak <*****@*****.**> * * @param boolean $flag if value set flag to $flag * * @return boolean current value of self::$mIsUsed */ public static function isUsed($flag = false) { if ($flag) { self::$mIsUsed = (bool) $flag; } return self::$mIsUsed; }