public function __construct( $name ) { parent::__construct( WOM_TYPE_TEMPLATE ); $this->m_name = $name; $this->m_title = Title::newFromText( $this->m_name ); if ( $this->m_title->getNamespace() == NS_MAIN ) { // http://www.mediawiki.org/wiki/Help:Transclusion // If the source is in the Main article namespace (e.g., "Cat"), // you must put a colon (:) in front of the name, thus: {{:Cat}} // If the source is in the Template namespace (e.g., "Template:Villagepumppages"), // just use the name itself, alone, thus: {{Villagepumppages}} if ( $this->m_name { 0 } != ':' ) { $this->m_title = Title::makeTitleSafe( NS_TEMPLATE, $this->m_name ); } } }
public function __construct( $property ) { parent::__construct( WOM_TYPE_NESTPROPERTY ); if ( !defined( 'SMW_VERSION' ) ) { // MW hook will catch this exception throw new MWException( __METHOD__ . ": Property model is invalid. Please install 'SemanticMediaWiki extension' first." ); } $user_property = SMWPropertyValue::makeUserProperty( $property ); if ( count ( $user_property->getErrors() ) > 0 ) { $user_property = SMWPropertyValue::makeUserProperty( '///NA///' ); } else { $property = ''; } $this->m_user_property = $user_property; $this->m_property = $property; }
public function __construct( $header ) { parent::__construct( WOM_TYPE_LISTITEM ); $this->m_header = $header; }
public function __construct( $key = '' ) { parent::__construct( WOM_TYPE_PARAMETER ); $this->m_key = $key; }
public function __construct() { parent::__construct( WOM_TYPE_QUERYSTRING ); }
public function __construct( $name, $attrs = array() ) { parent::__construct( WOM_TYPE_HTMLTAG ); $this->m_name = $name; $this->m_attrs = $attrs; }
public function __construct( $name, $level ) { parent::__construct( WOM_TYPE_SECTION ); $this->m_name = $name; $this->m_level = $level; }
public function __construct() { parent::__construct( WOM_TYPE_SENTENCE ); }
public function __construct() { parent::__construct( WOM_TYPE_PARAGRAPH ); }
public function __construct( $function_key ) { parent::__construct( WOM_TYPE_PARSERFUNCTION ); $this->m_function_key = $function_key; }
public function __construct() { parent::__construct( WOM_TYPE_PAGE ); }
public function __construct() { parent::__construct( WOM_TYPE_NESTPROPERTYVAL ); }
public function __construct( $key ) { parent::__construct( WOM_TYPE_TMPL_FIELD_HOLDER ); $this->m_key = $key; }
public function __construct( $style ) { parent::__construct( WOM_TYPE_TABLE ); $this->m_style = $style; }
public function __construct() { parent::__construct( 'q_result' ); }
public function __construct() { parent::__construct( WOM_TYPE_PARAM_VALUE ); }
public function __construct( $prefix ) { parent::__construct( WOM_TYPE_TBL_CELL ); $this->m_prefix = $prefix; }