Recently see Typecho_widget Source code, this all the widgets of the parent class, there are several methods are not very clear, ask you.
/**
function on ($condition)
{
if ($condition) { return $this; } else { return new Typecho_Widget_Helper_Empty(); }
}
This is said to be a post trigger, then exactly how to trigger out, do not see the relevant call place, the function probably means that if the condition is satisfied, return the current widget. Hope everyone enlighten, thank you!!!
Reply content:
Recently see Typecho_widget Source code, this all the widgets of the parent class, there are several methods are not very clear, ask you.
/**
function on ($condition)
{
if ($condition) { return $this; } else { return new Typecho_Widget_Helper_Empty(); }
}
This is said to be a post trigger, then exactly how to trigger out, do not see the relevant call place, the function probably means that if the condition is satisfied, return the current widget. Hope everyone enlighten, thank you!!!
Somebody help me answer that.