本文整理汇总了PHP中_deprecated_constructor函数的典型用法代码示例。如果您正苦于以下问题:PHP _deprecated_constructor函数的具体用法?PHP _deprecated_constructor怎么用?PHP _deprecated_constructor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_deprecated_constructor函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: WP_Widget_Factory
/**
* PHP4 constructor.
*/
public function WP_Widget_Factory()
{
_deprecated_constructor('WP_Widget_Factory', '4.2.0');
self::__construct();
}
示例2: WP_Widget
/**
* PHP4 constructor.
*
* @since 2.8.0
* @access public
*
* @see __construct()
*
* @param string $id_base Optional Base ID for the widget, lowercase and unique. If left empty,
* a portion of the widget's class name will be used Has to be unique.
* @param string $name Name for the widget displayed on the configuration page.
* @param array $widget_options Optional. Widget options. See wp_register_sidebar_widget() for information
* on accepted arguments. Default empty array.
* @param array $control_options Optional. Widget control options. See wp_register_widget_control() for
* information on accepted arguments. Default empty array.
*/
public function WP_Widget($id_base, $name, $widget_options = array(), $control_options = array())
{
_deprecated_constructor('WP_Widget', '4.3.0', get_class($this));
WP_Widget::__construct($id_base, $name, $widget_options, $control_options);
}
示例3: send_email
/**
* Send an email to the site admin
*
* @deprecated 3.0.7
*/
public function send_email()
{
_deprecated_constructor('WPSEO_OnPage_Email_Presenter', 'WPSEO 3.0.7');
}
示例4: __construct
/**
* @deprecated 3.0 Removed, use javascript instead.
*
* @param string $strEncoding Optional character encoding.
*/
public function __construct($strEncoding = '')
{
_deprecated_constructor('Yoast_TextStatistics', 'WPSEO 3.0');
}
示例5: __construct
/**
* Generates the html for the snippet preview containing dynamically generated text components.
* Those components are included as properties which are set in the constructor.
*
* @param WP_Post $post Post instance.
* @param string $title Title string.
* @param string $description Description string.
*
* @deprecated 3.0 Removed, use javascript instead.
*/
public function __construct($post, $title, $description)
{
_deprecated_constructor('WPSEO_Snippet_Preview', 'WPSEO 3.0');
}
示例6: AddTextdomain
/**
* PHP4 constructor.
*/
public function AddTextdomain()
{
_deprecated_constructor('AddTextdomain', '4.3');
}