PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
core
<?php abstract class QodeFrameworkRow implements QodeFrameworkTreeInterface, QodeFrameworkChildInterface { private $scope; private $type; private $name; private $layout; private $title; private $description; private $dependency; private $icon; private $children; function __construct( $params ) { $this->scope = isset( $params['scope'] ) ? $params['scope'] : ''; $this->type = isset( $params['type'] ) ? $params['type'] : ''; $this->name = isset( $params['name'] ) ? $params['name'] : ''; $this->layout = isset( $params['layout'] ) ? $params['layout'] : 'normal'; $this->title = isset( $params['title'] ) ? $params['title'] : ''; $this->description = isset( $params['description'] ) ? $params['description'] : ''; $this->dependency = isset( $params['dependency'] ) ? $params['dependency'] : array(); $this->icon = isset( $params['icon'] ) ? $params ['icon'] : ''; $this->children = isset( $params['children'] ) ? $params['children'] : array(); } public function get_scope() { return $this->scope; } public function get_name() { return $this->name; } public function get_children() { return $this->children; } public function get_title() { return $this->title; } public function get_description() { return $this->description; } public function has_children() { return count( $this->children ) > 0; } public function get_child( $key ) { return $this->children[ $key ]; } public function add_child( QodeFrameworkChildInterface $field ) { $key = $field->get_name(); $this->children[ $key ] = $field; } function add_repeater_element( $params ) { if ( isset( $params['name'] ) && ! empty( $params['name'] ) ) { $field = new QodeFrameworkFieldRepeater( $params ); $this->add_child( $field ); return $field; } return false; } function add_field_element( $params ) { if ( isset( $params['name'] ) && ! empty( $params['name'] ) ) { $field = new QodeFrameworkFieldMapper( $params ); $this->add_child( $field ); return $field; } return false; } function render() { $dependency_data = array(); $class = array(); $params['this_object'] = $this; $class[] = 'qodef-row-' . $this->layout; $class[] = 'qodef-row-name-' . $this->get_name(); if ( ! empty( $this->dependency ) ) { $class[] = 'qodef-dependency-holder'; $repeater = false; $show = array_key_exists( 'show', $this->dependency ) ? qode_framework_return_dependency_options_array( $this->scope, $this->type, $this->dependency['show'], true, $repeater ) : array(); $hide = array_key_exists( 'hide', $this->dependency ) ? qode_framework_return_dependency_options_array( $this->scope, $this->type, $this->dependency['hide'], false, $repeater ) : array(); $class[] = qode_framework_return_dependency_classes( $show, $hide ); $dependency_data = qode_framework_return_dependency_data( $show, $hide ); } $params['class'] = implode( ' ', $class ); $params['dependency_data'] = $dependency_data; qode_framework_template_part( QODE_FRAMEWORK_INC_PATH, 'common', 'templates/row', $this->layout, $params ); } }
[-] class-qodeframeworkrow.php
[edit]
[-] class-qodeframeworkoptions.php
[edit]
[-] class-qodeframeworksection.php
[edit]
[+]
..
[-] class-qodeframeworktab.php
[edit]
[-] class-qodeframeworkfieldrepeater.php
[edit]
[-] class-qodeframeworkfieldrepeaterinner.php
[edit]
[-] class-qodeframeworkpage.php
[edit]
[-] helper.php
[edit]
[-] class-qodeframeworkfieldmapper.php
[edit]