GIF89A;
Server : Microsoft-IIS/10.0 System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586 User : fatorc ( 0) PHP Version : 5.3.28 Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate Directory : e:/home/fatorc/Web/wp-content/plugins/types/application/models/field/group/ |
Upload File : |
<?php /** * User field group. * * @since 2.0 */ class Types_Field_Group_User extends Types_Field_Group { const POST_TYPE = 'wp-types-user-group'; /** * @param WP_Post $field_group_post Post object representing a user field group. * @throws InvalidArgumentException */ public function __construct( $field_group_post ) { parent::__construct( $field_group_post ); if( self::POST_TYPE != $field_group_post->post_type ) { throw new InvalidArgumentException( 'incorrect post type' ); } } /** * @return WPCF_Field_Definition_Factory Field definition factory of the correct type. */ protected function get_field_definition_factory() { return WPCF_Field_Definition_Factory_User::get_instance(); } }