plugins:np_unsetitemobject:np_unsetitemobject_code

NP_UnsetItemObject.phpのソースコード

<?php 
class NP_UnsetItemObject extends NucleusPlugin { 
	function getName() { return 'NP_UnsetItemObject'; }
	function getMinNucleusVersion() { return 220; }
	function getAuthor()  { return 'Katsumi'; }
	function getVersion() { return '0.1.2'; }
	function getURL() {return 'http://japan.nucleuscms.org/wiki/plugins:unsetitemobject';}
	function getDescription() { return $this->getName().' plugin'; } 
	function supportsFeature($what) { return (int)($what=='SqlTablePrefix'); }
	function getEventList() { return array('PostItem'); }
	var $previtem;
	function event_PostItem(&$data){
		$this->previtem=false;
		$this->previtem=&$data['item'];
	}
}
?>
 
plugins/np_unsetitemobject/np_unsetitemobject_code.txt · 最終更新: 2011/03/23 21:28 (外部編集)