Ejemplo n.º 1
0
 /**
  * Returns all xf_node fields, plus page-specific fields
  *
  * @see library/XenForo/DataWriter/XenForo_DataWriter_Node#_getFields()
  */
 protected function _getFields()
 {
     $fields = parent::_getFields() + array('xf_page' => array('node_id' => array('type' => self::TYPE_UINT, 'default' => array('xf_node', 'node_id'), 'required' => true), 'publish_date' => array('type' => self::TYPE_UINT, 'default' => XenForo_Application::$time), 'modified_date' => array('type' => self::TYPE_UINT, 'default' => XenForo_Application::$time), 'view_count' => array('type' => self::TYPE_UINT, 'default' => 0), 'log_visits' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'list_siblings' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'list_children' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'callback_class' => array('type' => self::TYPE_STRING, 'default' => ''), 'callback_method' => array('type' => self::TYPE_STRING, 'default' => '')));
     $fields['xf_node']['node_name']['required'] = true;
     $fields['xf_node']['node_name']['requiredError'] = 'please_enter_valid_url_portion';
     return $fields;
 }
Ejemplo n.º 2
0
 protected function _getFields()
 {
     $fields = parent::_getFields() + array('xf_widgetframework_widget_page' => array('node_id' => array('type' => self::TYPE_UINT, 'default' => array('xf_node', 'node_id'), 'required' => true), 'widgets' => array('type' => self::TYPE_SERIALIZED), 'options' => array('type' => self::TYPE_SERIALIZED)));
     $fields['xf_node']['node_name']['required'] = true;
     $fields['xf_node']['node_name']['requiredError'] = 'please_enter_valid_url_portion';
     return $fields;
 }
Ejemplo n.º 3
0
 /**
  * Returns all xf_node fields, plus link-specific fields
  */
 protected function _getFields()
 {
     return parent::_getFields() + array('xf_link_forum' => array('node_id' => array('type' => self::TYPE_UINT, 'default' => array('xf_node', 'node_id'), 'required' => true), 'link_url' => array('type' => self::TYPE_STRING, 'maxLength' => 150, 'required' => true, 'requiredError' => 'please_enter_valid_url'), 'redirect_count' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0)));
 }
Ejemplo n.º 4
0
 /**
  * Returns all xf_node fields, plus forum-specific fields
  */
 protected function _getFields()
 {
     return parent::_getFields() + array('xf_forum' => array('node_id' => array('type' => self::TYPE_UINT, 'default' => array('xf_node', 'node_id'), 'required' => true), 'discussion_count' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0), 'message_count' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0), 'last_post_id' => array('type' => self::TYPE_UINT, 'default' => 0), 'last_post_date' => array('type' => self::TYPE_UINT, 'default' => 0), 'last_post_user_id' => array('type' => self::TYPE_UINT, 'default' => 0), 'last_post_username' => array('type' => self::TYPE_STRING, 'maxLength' => 50, 'default' => ''), 'last_thread_title' => array('type' => self::TYPE_STRING, 'maxLength' => 150, 'default' => ''), 'moderate_threads' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'moderate_replies' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'allow_posting' => array('type' => self::TYPE_BOOLEAN, 'default' => 1), 'allow_poll' => array('type' => self::TYPE_BOOLEAN, 'default' => 1), 'count_messages' => array('type' => self::TYPE_BOOLEAN, 'default' => 1), 'find_new' => array('type' => self::TYPE_BOOLEAN, 'default' => 1), 'require_prefix' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'allowed_watch_notifications' => array('type' => self::TYPE_STRING, 'default' => 'all', 'allowedValues' => array('all', 'thread', 'none')), 'prefix_cache' => array('type' => self::TYPE_SERIALIZED, 'default' => ''), 'default_prefix_id' => array('type' => self::TYPE_UINT, 'default' => 0), 'default_sort_order' => array('type' => self::TYPE_STRING, 'default' => 'last_post_date', 'allowedValues' => array('title', 'post_date', 'reply_count', 'view_count', 'last_post_date')), 'default_sort_direction' => array('type' => self::TYPE_STRING, 'default' => 'desc', 'allowedValues' => array('asc', 'desc')), 'list_date_limit_days' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0, 'max' => 3650), 'min_tags' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0, 'max' => 100)));
 }
Ejemplo n.º 5
0
 /**
  * Returns all xf_node fields, plus forum-specific fields
  */
 protected function _getFields()
 {
     return parent::_getFields() + array('xf_forum' => array('node_id' => array('type' => self::TYPE_UINT, 'default' => array('xf_node', 'node_id'), 'required' => true), 'discussion_count' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0), 'message_count' => array('type' => self::TYPE_UINT_FORCED, 'default' => 0), 'last_post_id' => array('type' => self::TYPE_UINT, 'default' => 0), 'last_post_date' => array('type' => self::TYPE_UINT, 'default' => 0), 'last_post_user_id' => array('type' => self::TYPE_UINT, 'default' => 0), 'last_post_username' => array('type' => self::TYPE_STRING, 'maxLength' => 50, 'default' => ''), 'last_thread_title' => array('type' => self::TYPE_STRING, 'maxLength' => 150, 'default' => ''), 'moderate_messages' => array('type' => self::TYPE_BOOLEAN, 'default' => 0), 'allow_posting' => array('type' => self::TYPE_BOOLEAN, 'default' => 1)));
 }