3
类
,当我开始变得奇怪的警告,延伸的延伸但另一 Event_Feed_Item > My_Feed_Item > SimplePie_Item
奇怪警告试图延长
- Cannot extend from interface
'SimplePie_Item'
- Implementors of methods in
'SimplePie_Item'
上运行时,它工作正常,一下课。此外SimplePie_Item不是一个接口,这是一个简单的类.. 只需要知道,如果我遇到麻烦,或者如果我可以忽略此警告
编辑我也是这个扩展this class
是我的班级骨架
class My_Feed_Item extends SimplePie_Item // error is triggered here
{
protected $_source_id = null;
public function set_source ($source_id)
{
}
public function get_image()
{
}
public function get_venue_id()
{
}
public function get_venue_nm()
{
}
public function cleanString($str)
{
}
}
class Event_Feed_Item extends My_Feed_Item
{
public function get_event_nm()
{
}
public function get_event_start_dt()
{
}
public function get_event_end_dt()
{
}
}
你能展示一些代码吗? – 2011-03-31 08:17:35
确保任何重写的方法使用相同的定义,并定义所有抽象/接口方法 – chriso 2011-03-31 08:25:11
更新后的代码 – Moak 2011-03-31 09:07:38