Page MenuHomeGitPull.it

class-CategoryYearMonthDayType.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

class-CategoryYearMonthDayType.php

<?php
# it.wiki deletion bot in PHP
# Copyright (C) 2013 Mauro742, MauroBot
# https://it.wikipedia.org/wiki/Utente:Mauro742
# https://it.wikipedia.org/wiki/Utente:MauroBot
# Originally under Creative Commons BY SA 3.0 International
# Utente:MauroBot/BotCancellazioni/category.js
# https://creativecommons.org/licenses/by-sa/3.0/
# https://wikimediafoundation.org/wiki/Special:MyLanguage/Terms_of_Use/it
# Copyright (C) 2018 Valerio Bozzolan
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
namespace itwikidelbot;
/**
* Abstraction of a daily category with a specified PDC type
*/
abstract class CategoryYearMonthDayType extends CategoryYearMonthDay {
/**
* Template name of this category
*
* @override CategoryTemplated::TEMPLATE_NAME
*/
const TEMPLATE_NAME = 'CATEGORY_DAY_PDCTYPE';
/**
* PDC type e.g. 'consensuale'
*
* To be overrided
*/
const PDC_TYPE = 'EXAMPLE';
/**
* Get the PDC type
*
* @return string e.g. 'consensuale'
*/
public function getPDCType() {
return static::PDC_TYPE;
}
/**
* Get template arguments
*
* @override CategoryTemplated::getTemplateArguments()
*/
public function getTemplateArguments() {
$parent_arguments = parent::getTemplateArguments();
$parent_arguments[] = $this->getPDCType();
return $parent_arguments;
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 19, 07:15 (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265295
Default Alt Text
class-CategoryYearMonthDayType.php (1 KB)

Event Timeline