query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Normalizes the role list
private function normalizeRoleList (array $roles) { $normalized = []; foreach ($roles as $role) { $roleKey = (is_object($role) && ($role instanceof RoleInterface)) ? $role->getRole() : (string) $role; if (isset($this->roleCollection[$roleKey])) { $normalized[] = $this->roleCollection[$roleKey]; } } return $normalized; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function populate_roles_270()\n {\n }", "function populate_roles()\n {\n }", "function populate_roles_210()\n {\n }", "public function prepare_roles () {\n $roles = [];\n // Get non-empty user roles.\n $available_roles = count_users();\n // Get role titles.\n $wp_roles = wp_roles();\n // Creates an array with each role's data\n foreach ($wp_roles->role_names as $role_name => $role_title) {\n if ( array_key_exists( $role_name, $available_roles['avail_roles'] ) && (int)$available_roles['avail_roles'][ $role_name ] ) {\n\n $roles[ $role_name ] = [\n 'name' => $role_name,\n 'title' => translate_user_role( $role_title ),\n 'count' => (int)$available_roles['avail_roles'][ $role_name ]\n ];\n }\n }\n $this->roles = $roles;\n }", "function populate_roles_160()\n {\n }", "function populate_roles_280()\n {\n }", "function populate_roles_260()\n {\n }", "function get_user_roles()\n{\n $roles = get_acl()->getRoles();\n foreach ($roles as $key => $val) {\n $roles[$val] = __(Inflector::humanize($val));\n unset($roles[$key]);\n }\n return $roles;\n}", "function populate_roles_230()\n {\n }", "function populate_roles_250()\n {\n }", "function reset_role( $role ) {\n $default_roles = array(\n 'administrator' => array(\n 'switch_themes' => 1,\n 'edit_themes' => 1,\n 'activate_plugins' => 1,\n 'edit_plugins' => 1,\n 'edit_users' => 1,\n 'edit_files' => 1,\n 'manage_options' => 1,\n 'moderate_comments' => 1,\n 'manage_categories' => 1,\n 'manage_links' => 1,\n 'upload_files' => 1,\n 'import' => 1,\n 'unfiltered_html' => 1,\n 'edit_posts' => 1,\n 'edit_others_posts' => 1,\n 'edit_published_posts' => 1,\n 'publish_posts' => 1,\n 'edit_pages' => 1,\n 'read' => 1,\n 'level_10' => 1,\n 'level_9' => 1,\n 'level_8' => 1,\n 'level_7' => 1,\n 'level_6' => 1,\n 'level_5' => 1,\n 'level_4' => 1,\n 'level_3' => 1,\n 'level_2' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'edit_others_pages' => 1,\n 'edit_published_pages' => 1,\n 'publish_pages' => 1,\n 'delete_pages' => 1,\n 'delete_others_pages' => 1,\n 'delete_published_pages' => 1,\n 'delete_posts' => 1,\n 'delete_others_posts' => 1,\n 'delete_published_posts' => 1,\n 'delete_private_posts' => 1,\n 'edit_private_posts' => 1,\n 'read_private_posts' => 1,\n 'delete_private_pages' => 1,\n 'edit_private_pages' => 1,\n 'read_private_pages' => 1,\n 'delete_users' => 1,\n 'create_users' => 1,\n 'unfiltered_upload' => 1,\n 'edit_dashboard' => 1,\n 'update_plugins' => 1,\n 'delete_plugins' => 1,\n 'install_plugins' => 1,\n 'update_themes' => 1,\n 'install_themes' => 1,\n 'update_core' => 1,\n 'list_users' => 1,\n 'remove_users' => 1,\n 'add_users' => 1,\n 'promote_users' => 1,\n 'edit_theme_options' => 1,\n 'delete_themes' => 1,\n 'export' => 1,\n ),\n \n 'editor' => array(\n 'moderate_comments' => 1,\n 'manage_categories' => 1,\n 'manage_links' => 1,\n 'upload_files' => 1,\n 'unfiltered_html' => 1,\n 'edit_posts' => 1,\n 'edit_others_posts' => 1,\n 'edit_published_posts' => 1,\n 'publish_posts' => 1,\n 'edit_pages' => 1,\n 'read' => 1,\n 'level_7' => 1,\n 'level_6' => 1,\n 'level_5' => 1,\n 'level_4' => 1,\n 'level_3' => 1,\n 'level_2' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'edit_others_pages' => 1,\n 'edit_published_pages' => 1,\n 'publish_pages' => 1,\n 'delete_pages' => 1,\n 'delete_others_pages' => 1,\n 'delete_published_pages' => 1,\n 'delete_posts' => 1,\n 'delete_others_posts' => 1,\n 'delete_published_posts' => 1,\n 'delete_private_posts' => 1,\n 'edit_private_posts' => 1,\n 'read_private_posts' => 1,\n 'delete_private_pages' => 1,\n 'edit_private_pages' => 1,\n 'read_private_pages' => 1,\n ),\n \n 'author' => array(\n 'upload_files' => 1,\n 'edit_posts' => 1,\n 'edit_published_posts' => 1,\n 'publish_posts' => 1,\n 'read' => 1,\n 'level_2' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'delete_posts' => 1,\n 'delete_published_posts' => 1,\n ),\n \n 'contributor' => array(\n 'edit_posts' => 1,\n 'read' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'delete_posts' => 1,\n ),\n \n 'subscriber' => array(\n 'read' => 1,\n 'level_0' => 1,\n ),\n \n 'display_name' => array(\n 'administrator' => 'Administrator',\n 'editor'\t=> 'Editor',\n 'author'\t=> 'Author',\n 'contributor' => 'Contributor',\n 'subscriber'\t=> 'Subscriber',\n ),\n \n );\n \n $role = strtolower( $role );\n \n remove_role( $role );\n \n return add_role( $role, $default_roles['display_name'][$role], $default_roles[$role] );\n}", "public static function manageRole(){\n $rolelist = [];\n $db = Db::getInstance(); \t \n $req = $db->query('SELECT * FROM hp_role'); \n foreach($req->fetchAll() as $row) {\n $rolelist[] = $row;\n }\n return $rolelist;\n \n }", "public function roleListAll() {\n $this->_adminUserDao = new AdminUserDao();\n\n $ret = array();\n $roles = $this->_adminroledao->getAll();\n foreach ($roles as $role) {\n $user = $this->_adminUserDao->getRow(array(array('username', '=', $role->owner)));\n if($user){\n $ret[$role->owner]['role'][] = $role;\n $ret[$role->owner]['user'] = $user;\n }else{\n if($role->owner == config('admin.user.super_user.username')){\n $ret[$role->owner]['role'][] = $role;\n// $ret[$role->owner]['user'] = (new AdminUserDao())->fill(config('admin.user.super_user'));\n// $ret[$role->owner]['user'] = $this->_adminUserDao->getRow(array(array('id', '=', config('admin.user\n $ret[$role->owner]['user']['username'] = $role->owner;\n }\n }\n }\n return $ret;\n }", "function populate_roles_300()\n {\n }", "public function getRoleListAttribute()\n {\n return array_column( $this->roles()->get( [ 'slug' ] )->toArray(), 'slug' );\n }", "function wp_roles()\n {\n }", "abstract protected function getRoles();", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "function erp_get_editable_roles (){\n if(! function_exists('get_editable_roles')){\n require_once(ABSPATH . 'wp-admin/includes/user.php');\n }\n $wp_roles = get_editable_roles();\n\n if( !current_user_can( 'administrator' ) ){\n unset( $wp_roles['administrator'] );\n }\n\n $roles = apply_filters( 'erp_editable_roles', $wp_roles );\n\n return $roles;\n}", "public function toArray()\n {\n $rolesCollection = $this->getAdminRolesCollection();\n $rolesArray = array();\n\n foreach ($rolesCollection as $role) {\n /** @var Mage_Admin_Model_Role $role */\n $rolesArray[] = array(\n $role->getRoleName() => $role->getRoleName(),\n );\n }\n\n return $rolesArray;\n }", "function hook_roles() {\n\t\treturn null;\n\t}", "public function setRoles()\n {\n if (!array_key_exists(User::ROLE_ADMINISTRATOR, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $array = Yii::$app->authManager->getRoles();\n unset($array[self::ADMINISTRATOR]);\n } else {\n $array = Yii::$app->authManager->getRoles();\n }\n\n $roles = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'name');\n\n $now = Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId());\n\n //unset($roles[array_search('super_administrator', $roles)]);\n unset($roles[array_search('user', $roles)]);\n\n foreach ($roles as $key => $role) {\n $roles[$key] = Yii::t('backend', $role);\n }\n\n if (array_key_exists(User::ROLE_CUSTOMER, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $key = array_search(User::ROLE_CUSTOMER, $roles);\n $roles = array_intersect_key($roles, [$key => $roles[$key]]);\n }\n\n return $roles;\n }", "public function getTransformer()\n {\n return new RoleListTransformer();\n }", "protected function initRoles()\n {\n $this->roles = new ArrayCollection();\n }", "function update_role_permision() {\n\t\t$user_role = $this->get_role_permission($_POST['role_id']);\n\t\tforeach ($user_role->result() as $role) {\n\t\t\t\n\t\t\t$this->db->where('entry_id', $role->entry_id);\n\t\t\t$list = $_POST['role_permission'];\n\t\t\t$allow = isset($list[$role->entry_id]) ? 1 : 0;\n\t\t\t$this->db->update('system_security.security_role_permission', array('allow_deny' => $allow));\n\t\t}\n\t}", "public function list_roles(){\n $roles=$this->roles->pluck('name')->toArray();\n //el primer parametro es el separador, y el segundo para es el arreglo a seprar\n // es lo opuesto al explode que retorna una arreglo\n $string=implode(', ',$roles);\n return $string;\n\n }", "private function get_old_roles(){\n\t\t$old_roles = get_option( 'war_old_user_roles', array() );\n\t\treturn ( empty( $old_roles ) ) ? $old_roles : json_decode( $old_roles );\n\t}", "public function getRoles(){\n\n $roles = $this->visiteur_roles->map(function($role){\n return $role->getTitle();\n })->ToArray();\n\n $roles[]= 'ROLE_USER';\n \n return $roles;\n }", "function editable_roles( $roles ){\n if( isset( $roles['administrator'] ) && !current_user_can('administrator') ){\n unset( $roles['administrator']);\n }\n return $roles;\n }", "function um_roles_init( $wp_roles = null ) {\r\n\r\n\t\t\t//Add UM role data to WP Roles\r\n\t\t\tforeach ( $wp_roles->roles as $roleID => $role_data ) {\r\n\t\t\t\t$role_meta = get_option( \"um_role_{$roleID}_meta\" );\r\n\r\n\t\t\t\tif ( ! empty( $role_meta ) )\r\n\t\t\t\t\t$wp_roles->roles[$roleID] = array_merge( $role_data, $role_meta );\r\n\t\t\t}\r\n\r\n\r\n\t\t\t//Add custom UM roles\r\n\t\t\t$roles = array();\r\n\r\n\t\t\t$role_keys = get_option( 'um_roles' );\r\n\r\n\t\t\tif ( $role_keys ) {\r\n\r\n\t\t\t\tforeach ( $role_keys as $role_key ) {\r\n\t\t\t\t\t$role_meta = get_option( \"um_role_{$role_key}_meta\" );\r\n\t\t\t\t\tif ( $role_meta ) {\r\n\t\t\t\t\t\t//$role_meta['name'] = 'UM ' . $role_meta['name'];\r\n\t\t\t\t\t\t$roles['um_' . $role_key] = $role_meta;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tforeach ( $roles as $role_id => $details ) {\r\n\t\t\t\t\t$capabilities = ! empty( $details['wp_capabilities'] ) ? array_keys( $details['wp_capabilities'] ) : array();\r\n\t\t\t\t\t$details['capabilities'] = array_fill_keys( array_values( $capabilities ), true );\r\n\t\t\t\t\tunset( $details['wp_capabilities'] );\r\n\t\t\t\t\t$wp_roles->roles[$role_id] = $details;\r\n\t\t\t\t\t$wp_roles->role_objects[$role_id] = new \\WP_Role( $role_id, $details['capabilities'] );\r\n\t\t\t\t\t$wp_roles->role_names[$role_id] = $details['name'];\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Return the modified $wp_roles array\r\n\t\t\treturn $wp_roles;\r\n\t\t}", "private function process_roles( $roles = array() ){\n\t\tif( empty( $roles ) ) throw new \\Exception( 'No Roles provided to Process' );\n\t\t$processed_roles = array();\n\t\t$role_size = sizeof($roles);\n\t\t// Capabilities cascade from Left To Right\n\t\tfor( $i=0; $i<$role_size; $i++ ){\n\t\t\t$role = $roles[$i];\n\t\t\t$rs = array_slice( $roles, 0, ($i+1) );\n\t\t\t$name = ucfirst($role);\n\t\t\t$caps = $this->format_caps( $role, $rs );\n\t\t\t$processed_roles[$role] = (object) ['name' => $name, 'capabilities' => $caps];\n\t\t}\n\n\t\treturn $processed_roles;\n\n\t}", "public function getRoles()\n {\n $roles = $this->roles;\n if ($roles != NULL) {\n\n return explode(\" \", $roles);\n } else {\n return $this->roles;\n }\n // return ['ROLE_USER'];\n }", "function egsr_change_roles_names() {\n global $wp_roles;\n \n if ( ! isset( $wp_roles ) )\n $wp_roles = new WP_Roles();\n \n $wp_site_roles = egsr_default_wp_site_roles();\n foreach ($wp_site_roles as $key => $value) {\n // Change role name\n $wp_roles->roles[$key]['name'] = $wp_roles->roles[$key]['name'] .' (Deprecated)';\n $wp_roles->role_names['contributor'] = $wp_roles->role_names[$key] .'$wp_roles->roles[$key]'; \n }\n}", "function pilau_editable_roles( $roles ) {\n\n\t// Only admins should be able to update_core, and only admins can edit admins\n\tif ( ! current_user_can( 'update_core' ) && array_key_exists( 'administrator', $roles ) ) {\n\t\tunset( $roles['administrator'] );\n\t}\n\n\treturn $roles;\n}", "public function checkRoles() {\n global $wp_roles;\n $settings = $this->getSettings();\n $rolesNew = explode(',', $settings->rolesAllowed);\n foreach ($wp_roles->roles as $key => $role) {\n if (strtolower($role['name']) != 'administrator') {\n $name = strtolower($role['name']);\n $name = str_replace(\" \", \"_\", $name);\n if (in_array($key, $rolesNew) || $role['name'] == \"Chat Operator\") {\n $wp_roles->add_cap($key, 'visual_chat');\n } else {\n $wp_roles->remove_cap($key, 'visual_chat');\n }\n }\n }\n }", "public function roleList()\n {\n $roleList = '<ul>';\n foreach ($this->roles as $role) {\n $roleList .= '<li>'.$role->name.'</li>';\n }\n $roleList .= '</ul>';\n\n return $roleList;\n }", "public function rolesForUser();", "function get_editable_roles()\n {\n }", "public function surrogateRoles()\n {\n return array();\n }", "public function getRoles()\n {\n return explode(\" \", $this->role);\n }", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public function getDirectRoles() {\n return $this->roles;\n }", "private function save_new_roles(){\n\t\tupdate_option( 'war_old_user_roles', json_encode( $this->new_roles ), false );\n\t}", "public function & GetRoles ();", "public function roles()\n {\n\n $roles = get_editable_roles();\n $output = array();\n foreach ($roles as $key => $val) {\n $output[$key] = $val['name'];\n }\n return $output;\n }", "public function getRoles()\n {\n\n $rolesReturn = [];\n $roles = $this->roles()->with(['role'])->get();\n\n $rolesReturn = $roles->pluck('role.name');\n\n // Add Standard role to the user roles\n\n if($rolesReturn->contains(config('user.standardRole')) === false)\n {\n $rolesReturn->push(config('user.standardRole'));\n }\n\n return $rolesReturn;\n\n }", "public function roles(): MorphToMany;", "public function getRoles()\n {\n $roles = explode(\",\", $this->roles);\n array_push($roles, 'ROLE_USER');\n return array_unique(array_filter($roles));\n }", "public static function getListRole(){\n return SentinelRole::where('company_id_fk',Sentinel::getUser()->company_id_fk)->orWhere('company_id_fk')->lists('name','id')->all();\n }", "protected function get_roles_data()\n {\n }", "public function init_roles()\n {\n }", "private function setRoles() {\r\n\t\t$all_roles = array(); $role = Model_Role::retrieve(); \r\n\t\tforeach ($role->fetchEntries(array(\r\n \t\t'NAME', 'PARENT' => new Data_Column('PARENT_ROLE_ID', null, $role, 'NAME'))) as $rel)\r\n\t\t{\t\r\n \t\t$all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t}\r\n\t\t\r\n\t\t// get users with role reslationship \r\n\t\t$userRole = Model_User_Role::retrieve(); \r\n\t\tforeach ($userRole->fetchEntries(array(\r\n \t\t'NAME' => new Data_Column('USER_ID', null, $userRole, 'LOGIN'),\r\n \t\t'PARENT' => new Data_Column('ROLE_ID', null, $userRole, 'NAME')), null, true) as $rel)\r\n\t\t{\t\t\t\r\n\t\t // one user can belong to more than one role\r\n\t\t\tif (array_key_exists($rel['NAME'], $all_roles))\r\n\t\t array_push($all_roles[$rel['NAME']], $rel['PARENT']);\r\n\t\t else\r\n\t\t $all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t// now register all roles and users from database as application roles\r\n\t\tforeach ($all_roles as $name => $roles) {\r\n\t\t $this->_registerRole($name, $all_roles);\r\n\t\t}\r\n\t\t\r\n\t\t//$this->_registerRole('Guest', array());\r\n\t}", "static public function get_all_roles() {\n\t\tif ( ! function_exists( 'get_editable_roles' ) ) {\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/user.php' );\n\t\t}\n\n\t\t$editable_roles = get_editable_roles();\n\t\t$roles = array();\n\t\t$caps = apply_filters( 'fl_builder_user_access_capabilities', array( 'edit_posts' ) );\n\n\t\tforeach ( $editable_roles as $role => $data ) {\n\t\t\tforeach ( $caps as $cap ) {\n\t\t\t\tif ( isset( $data['capabilities'][ $cap ] ) && 1 == $data['capabilities'][ $cap ] ) {\n\t\t\t\t\t$roles[ $role ] = $data['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $roles;\n\t}", "public function getRoles()\n {\n return array('1');\n }", "public function parseRolesToArray($roles)\n {\n return $roles->pluck('slug')->toArray();\n }", "protected function getMappedRoles()\n {\n $user = $this->user;\n $roles = $this->getGate()->getDefaultRoles();\n\n if ($user instanceof User) {\n $userRoles = $user->roles;\n if ($userRoles) {\n $userRoles = $userRoles->lists('key')->toArray();\n } else {\n $userRoles = [];\n }\n $roles = array_merge($roles, $userRoles);\n }\n\n array_walk($roles, function (&$item) {\n $mapping = [\n 'admin' => 'administrator',\n 'user' => 'member',\n ];\n\n if (array_key_exists($item, $mapping)) {\n $item = $mapping[$item];\n }\n });\n\n return implode(',', $roles);\n }", "function get_roles( ) {\n\n\n global $wp_roles;\n $default_roles = array();\n //$default_roles = array('administrator','editor', 'author', 'contributor', 'subscriber', 'pending');\n\n\n $roles = $wp_roles->get_names();\n // dump($roles);\n\n $roless['Bez ograniczeń'] = '';\nforeach($roles as $role => $name){\n if(!in_array( $role, $default_roles)){\n $roless[$name] = $role;\n }\n}\n\n //dump($roless);\nreturn $roless;\n /*\n $categories = get_categories( $args );\n $cat[__('Wybierz kategorię')] = '';\n foreach( $categories as $category ) {\n\t$cat[$category->name] = $category->term_id;\n }\n return $cat;\n */\n}", "public function getRoles()\n {\n if (!is_array($this->role)) {\n return array($this->role);\n }\n return $this->role;\n }", "public function getRoles(): array;", "public function getProductionRoles();", "function _muckypup_database_get_roles () {\n\n\t$roles = array ();\n\t$user_roles = user_roles();\n\t\n\tunset ($user_roles[1]); // Deleting anonymous role. By default at index 1.\n\tunset ($user_roles[2]); // Deleting authenticated role. By default at index 2.\n\t\n\tforeach ($user_roles as $rid=>$user_role) {\n\t\t$roles[$rid] = $user_role;\n\t}\n\n\treturn $roles;\n}", "public function setRoles($roles = [])\n {\n\n $rolesPermissionsToUpdate = Role::whereIn('name',$roles);\n $rolesPermissionsToDelete = $this->roles()->whereNotIn('role_id',$rolesPermissionsToUpdate->pluck('id')->toArray())->where('user_id',$this->id);\n\n UserRole::whereIn('role_id',$rolesPermissionsToDelete->pluck('id')->toArray())->where('user_id',$this->id)->delete();\n\n $diff = array_intersect($rolesPermissionsToUpdate->pluck('name')->toArray(),$roles);\n\n if (sizeOf($diff) > 0)\n {\n collect($diff)->each(function($roleName) use ($rolesPermissionsToUpdate){\n\n $role = Role::where('name',$roleName)->first();\n\n UserRole::create([\n 'user_id' => $this->id,\n 'role_id' => $role->id\n ]);\n\n });\n }\n\n }", "protected abstract function getAllowedRoles();", "protected function normalize() {}", "public function rebuildAuthorizations()\n {\n $roleRepository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Role');\n\n // Clear\n $this->entityManager->createQuery('DELETE Edweld\\AclBundle\\Entity\\Authorization')->execute();\n $this->entityManager->clear('Edweld\\AclBundle\\Entity\\Authorization');\n\n // Regenerate\n foreach ($roleRepository->findAll() as $role) {\n /** @var Role $role */\n $role->createAuthorizations($this);\n }\n $this->entityManager->flush();\n $this->entityManager->clear();\n }", "public function getExplicitRoles()\n {\n $manager = \\FelixOnline\\Core\\BaseManager::build('FelixOnline\\Core\\UserRole', 'user_roles', 'id');\n $manager->filter('user = \"%s\"', array($this->getUser()));\n\n $values = $manager->values();\n if (!$values) {\n return null;\n }\n\n $roles = array();\n foreach ($values as $value) {\n $roles[] = $value->getRole();\n }\n\n return $roles;\n }", "public function getRoles()\n\t{\n\t\t$roles = array_map(function($value)\n\t\t{\n\t\t\treturn Html::a($value, $value->links['self']);\n\t\t}, $this->entity->roles);\n\n\t\treturn join('<br>', $roles);\n\t}", "private function remove_old_roles(){\n\t\t// If empty return true\n\t\tif( empty( $this->old_roles ) ) return true;\n\t\t/**\n\t\t * Loop through and remove the old roles\n\t\t * We are dropping them all, even if they are in the New Roles list\n\t\t * So that we can keep our capabilities up to date\n\t\t **/\n\t\tarray_walk( $this->old_roles, function( $role ){\n\t\t\tif( $role !== 'administrator' ) $this->wp_roles->remove_role( $role );\n\t\t});\n\t}", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function loadRole(){\n global $db;\n $sql = \"SELECT * FROM {$this->role2acc_table} WHERE role_admin_id = '{$this->admin_id}'\";\n $role2acc = $db->query($sql,2);\n $_SESSION[\"roles\"] = array();\n foreach($role2acc as $x){\n $role = $x->role_id;\n \n if(!in_array($role,$_SESSION[\"roles\"])&& isset($role)){\n $_SESSION[\"roles\"][] = $role;\n }\n } \n /*\n * LOAD smaller roles\n */\n $udahdi = array();\n $sem = (sizeof($_SESSION['roles'])? $_SESSION[\"roles\"] : array());\n while(sizeof($sem)>0){\n $r = array_pop($sem);\n if(!in_array($r,$udahdi)){\n $sql = \"SELECT * FROM {$this->role2role_table} WHERE role_big = '$r'\";\n $role2role = $db->query($sql,2);\n foreach($role2role as $ri){\n if(!in_array($ri->role_small,$_SESSION[\"roles\"]) && $ri->role_small!=\"\"){\n $_SESSION[\"roles\"][] = $ri->role_small;\n $sem[] = $ri->role_small;\n }\n }\n $udahdi[]=$r;\n }\n }\n $this->roles = $_SESSION['roles'];\n }", "public function setRole() {\n\n $res= $_POST['link']->query(\"SELECT t2.perm_name FROM role_perm as t1\n JOIN permissions as t2 ON t1.perm_id = t2.perm_id\n WHERE t1.role_id = $this->rol_id\");\n\n\n foreach($res as $item)\n $this->role_perm[]= $item['perm_name'];\n }", "public function ObtenerRolesSupeAdmin()\r\n {\r\n return Rol::all();\r\n }", "function mrpu_add_roles_column( $columns ) {\n\t$old_posts = isset( $columns['posts'] ) ? $columns['posts'] : false;\n\tunset( $columns['role'], $columns['posts'] );\n\t$columns['mrpu_roles'] = __( 'Roles', 'multiple-roles-per-user' );\n\tif ( $old_posts ) {\n\t\t$columns['posts'] = $old_posts;\n\t}\n\treturn $columns;\n}", "protected function auth0_update_roles($user_info, $user, &$edit)\n {\n \t\\Drupal::logger('auth0')->notice(\"Mapping Roles\");\n $config = \\Drupal::service('config.factory')->get('auth0.settings');\n $auth0_claim_to_use_for_role = $config->get('auth0_claim_to_use_for_role');\n if (isset($auth0_claim_to_use_for_role) && !empty($auth0_claim_to_use_for_role)) {\n $claim_value = isset($user_info[$auth0_claim_to_use_for_role]) ? $user_info[$auth0_claim_to_use_for_role] : '';\n \\Drupal::logger('auth0')->notice('claim_value '.$claim_value);\n\n $claim_values = array();\n if (is_array($claim_value)) {\n $claim_values = $claim_value;\n } else {\n $claim_values[] = $claim_value;\n }\n\n $auth0_role_mapping = $config->get('auth0_role_mapping');\n $mappings = $this->auth0_pipeListToArray($auth0_role_mapping);\n\n $roles_granted = array();\n $roles_managed_by_mapping = array();\n foreach ($mappings as $mapping) {\n \\Drupal::logger('auth0')->notice('mapping '.$mapping);\n $roles_managed_by_mapping[] = $mapping[1];\n\n if (in_array($mapping[0], $claim_values)) {\n $roles_granted[] = $mapping[1];\n }\n }\n $roles_granted = array_unique($roles_granted);\n $roles_managed_by_mapping = array_unique($roles_managed_by_mapping);\n\n $not_granted = array_diff($roles_managed_by_mapping, $roles_granted);\n\n $user_roles = $user->getRoles();\n\n $new_user_roles = array_merge(array_diff($user_roles, $not_granted), $roles_granted);\n\n $tmp = array_diff($new_user_roles, $user_roles);\n if (empty($tmp)) {\n \\Drupal::logger('auth0')->notice('no changes to roles detected');\n } else {\n \\Drupal::logger('auth0')->notice('changes to roles detected');\n $edit['roles'] = $new_user_roles;\n foreach (array_diff($new_user_roles, $user_roles) as $new_role) {\n $user->addRole($new_role);\n }\n foreach (array_diff($user_roles, $new_user_roles) as $remove_role) {\n $user->removeRole($remove_role);\n }\n }\n }\n }", "public function remove_caps_from_roles(): void {\n\t\t$all_capabilities_raw = $this->get_all_capabilities();\n\t\t$all_capabilities = array_values( $all_capabilities_raw );\n\t\t$all_capabilities = array_filter(\n\t\t\t$all_capabilities,\n\t\t\tstatic fn( $value ) => 'read' !== $value\n\t\t);\n\t\t$all_roles = wp_roles();\n\t\t$roles = array_values( (array) $all_roles->role_objects );\n\t\tforeach ( $roles as $role ) {\n\t\t\tif ( $role instanceof WP_Role ) {\n\t\t\t\tforeach ( $all_capabilities as $cap ) {\n\t\t\t\t\t$role->remove_cap( $cap );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Fires when removing the custom capabilities from existing roles.\n\t\t *\n\t\t * Can be used to remove the capabilities from other, custom roles.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param array $all_capabilities List of all post type capabilities, for reference.\n\t\t */\n\t\tdo_action( 'web_stories_remove_capabilities', $all_capabilities );\n\t}", "private function get_all_roles(){\n return Role::all();\n }", "function rets_bsf_loadroles () {\n\n $role = array();\n $ary = user_roles();\n foreach ($ary as $key => $value) {\n\tswitch ($value) {\n\t case ('basic membership') :\n $role[$key] = 'Basic';\n\t break;\n\t case ('gold membership') :\n\t $role[$key] = 'Gold';\n\t break;\n case ('platinum membership') :\n $role[$key] = 'Platinum';\n\t break;\n case ('team membership') :\n $role[$key] = 'Team';\n\t break;\n\t\tcase ('Agent') :\t\t\t\t\t\t// agent sites only have \"agents\"\n \t$role[$key] = 'Agent';\n\t break;\n\t}\n }\n return $role;\n}", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "static function user_roles_to_posts(string $uid): array {\r\n \r\n $role_to_posts = [];\r\n foreach(self::role_to_db_key as $role => $db_key) {\r\n $role_to_posts[$role] = self::user_role_posts($uid, $db_key);\r\n }\r\n \r\n return $role_to_posts;\r\n }", "public function getRoles() {\n $string = null;\n\n $last = end($this->roles);\n\n foreach ($this->roles as $role) {\n if ($role->role != end($last)->role) {\n $string .= $role->role . ', ';\n } else {\n $string .= $role->role;\n }\n }\n\n return $string;\n }", "function owa_translate_role($roles) {\r\n\t\r\n\tif (!empty($roles)) {\r\n\t\r\n\t\tif (in_array('administrator', $roles)) {\r\n\t\t\t$owa_role = 'admin';\r\n\t\t} elseif (in_array('editor', $roles)) {\r\n\t\t\t$owa_role = 'viewer';\r\n\t\t} elseif (in_array('author', $roles)) {\r\n\t\t\t$owa_role = 'viewer';\r\n\t\t} elseif (in_array('contributor', $roles)) {\r\n\t\t\t$owa_role = 'viewer';\r\n\t\t} elseif (in_array('subscriber', $roles)) {\r\n\t\t\t$owa_role = 'everyone';\r\n\t\t} else {\r\n\t\t\t$owa_role = 'everyone';\r\n\t\t}\r\n\t\t\r\n\t} else {\r\n\t\t$owa_role = 'everyone';\r\n\t}\r\n\t\r\n\treturn $owa_role;\r\n}", "function egsr_remove_wp_roles(){\n $wp_roles = new WP_Roles();\n // $wp_site_roles = egsr_custom_site_roles();\n $wp_site_roles = egsr_default_wp_site_roles();\n foreach ($wp_site_roles as $key => $value) {\n $role = get_role($key);\n if(isset($role->name) == $key){ // Check if Role exists already\n $wp_roles->remove_role($key); // Remove role + capabilities\n }\n }\n}", "public function run()\n {\n $roles=[\n [ ///1\n 'id' => '1',\n 'name' => 'الحسابات',\n 'url' => '#',\n 'icon' => 'fas fa-users',\n 'order_id' => '5',\n 'parent_id' => null\n ],\n [ ///2\n 'id' => '2',\n 'name' => 'المستخدمين',\n 'url' => '/admin/users',\n 'icon' => '',\n 'order_id' => '10',\n 'parent_id' => '1'\n ],\n [ ///3\n 'id' => '3',\n 'name' => 'المكاتب',\n 'url' => '/admin/offices',\n 'icon' => '',\n 'order_id' => '15',\n 'parent_id' => '1'\n ],\n [ ///4\n 'id' => '4',\n 'name' => 'تنشيط الحسابات',\n 'url' => '#',\n 'icon' => 'fas fa-user-check',\n 'order_id' => '20',\n 'parent_id' => null\n ],\n [ ///5\n 'id' => '5',\n 'name' => 'تنشيط حسابات المستخدمين',\n 'url' => '/admin/users/active',\n 'icon' => '',\n 'order_id' => '25',\n 'parent_id' => '4'\n ],\n [ ///6\n 'id' => '6',\n 'name' => 'تنشيط حسابات المكاتب',\n 'url' => '/admin/offices/active',\n 'icon' => '',\n 'order_id' => '30',\n 'parent_id' => '4'\n ],\n [ ///7\n 'id' => '7',\n 'name' => 'محفظة أرباح إرسال الأموال',\n 'url' => '/admin/fee/balance',\n 'icon' => 'fas fa-wallet',\n 'order_id' => '35',\n 'parent_id' => null\n ],\n [ ///8\n 'id' => '8',\n 'name' => 'أسعار العملات',\n 'url' => '/admin/currency',\n 'icon' => 'fas fa-coins',\n 'order_id' => '40',\n 'parent_id' => null\n ],\n [ ///9\n 'id' => '9',\n 'name' => 'عمولة الموقع',\n 'url' => '/admin/fee',\n 'icon' => 'fas fa-money-bill-wave-alt',\n 'order_id' => '45',\n 'parent_id' => null\n ],\n [ ///10\n 'id' => '10',\n 'name' => 'سجل العمليات',\n 'url' => '#',\n 'icon' => 'fas fa-history',\n 'order_id' => '50',\n 'parent_id' => null\n ],\n [ ///11\n 'id' => '11',\n 'name' => 'سجل إرسال الأموال',\n 'url' => '/admin/logs',\n 'icon' => '',\n 'order_id' => '55',\n 'parent_id' => '10'\n ],\n [ ///12\n 'id' => '12',\n 'name' => 'سجل تبديل العملات',\n 'url' => '/admin/exchangelogs',\n 'icon' => '',\n 'order_id' => '60',\n 'parent_id' => '10'\n ],\n [ ///13\n 'id' => '13',\n 'name' => 'سجل المكاتب',\n 'url' => '/admin/officelogs',\n 'icon' => '',\n 'order_id' => '65',\n 'parent_id' => '10'\n ],\n [ ///14\n 'id' => '14',\n 'name' => 'الدعم الفني',\n 'url' => '/admin/support',\n 'icon' => 'fa fa-phone-square',\n 'order_id' => '70',\n 'parent_id' => null\n ]\n \n ];\n foreach ($roles as $key=>$value){\n Page::create($value);\n }\n }", "public function getAllRoles(): array;", "public function editable_roles( $all_roles ) {\n\n\t\tif ( ! current_user_can( 'administrator' ) ) {\n\t\t\tunset( $all_roles['administrator'] );\n\t\t\tunset( $all_roles['wso_admin'] );\n\t\t}\n\n\t\t// Restrict what user roles the Logistics Admin can assign.\n\t\tif ( current_user_can( 'chief_of_staff' ) ) {\n\t\t\tunset( $all_roles['chief_of_staff'] );\n\t\t}\n\n\t\t// Restrict what roles the base Logistics user can assign.\n\t\tif ( current_user_can( 'receptionist' ) ) {\n\t\t\tunset( $all_roles['chief_of_staff'] );\n\t\t\tunset( $all_roles['business'] );\n\t\t}\n\n\t\t// Remove default WordPress user role assignment since this application doesn't use it.\n\t\tunset( $all_roles['editor'] );\n\t\tunset( $all_roles['author'] );\n\t\tunset( $all_roles['contributor'] );\n\n\t\treturn $all_roles;\n\n\t}", "private function approvedByRole()\n {\n $pending = \\ApprovalSequence\\Models\\Entity::Where('entity_id', $this[$this->primaryKey])->get();\n $approvers = $pending->map(function ($item) {\n return $item->approver->role_id;\n });\n //to avoid duplication\n return $approvers->unique();\n }", "public static function getRoles($roles) {\r\n if(empty($roles)) {\r\n return null;\r\n }\r\n $normalized_roles = array();\r\n if(!is_array($roles)) {\r\n $roles = array($roles);\r\n }\r\n foreach($roles as $role) { \r\n if(self::$_acl->hasRole($role)) {\r\n $normalized_roles[] = self::$_acl->getRole($role);\r\n }\r\n else {\r\n $normalized_roles[] = $role; \r\n }\r\n } \r\n return $normalized_roles;\r\n }", "public function get_allowed_update_roles() {\n $is_admin = Auth::user()->roles->whereIn('level', 11)->first();\n $is_youth_chairman = Auth::user()->roles->whereIn('level', [21])->first();\n $is_headtrainer = Auth::user()->roles->whereIn('level', [31])->first();\n $allowed_update_roles = null;\n\n //if authenticated user is admin (main chairman), show all user roles\n if($is_admin) {\n $allowed_update_roles = Role::all();\n }\n elseif($is_youth_chairman || $is_headtrainer) {\n $allowed_update_roles = Role::orderBy('level');\n if($is_youth_chairman) {\n $allowed_update_roles = $allowed_update_roles->orWhereIn('level', [20, 21, 22, 23, 24, 25]);\n }\n if($is_headtrainer) {\n $allowed_update_roles = $allowed_update_roles->orWhereIn('level', [30, 31, 32, 33, 34, 35, 36]);\n }\n $allowed_update_roles = $allowed_update_roles->get();\n }\n return $allowed_update_roles;\n \n }", "function eman_roles( $type='turner' )\n{\n\tswitch ( $type )\n\t{\n\t\tcase 'owner' :\n\t\t\treturn array('owner','owners_rep','consultant');\n\t\t\tbreak;\n\t\tcase 'sub' :\n\t\t\treturn array('subcontractor');\n\t\t\tbreak;\n\t\tcase 'pending' :\n\t\t\treturn array('subscriber');\n\t\t\tbreak;\n\t\tcase 'turner' :\n\t\t\treturn array('administrator','editor');\n\t\t\tbreak;\n\t}\n}", "function yith_ywraq_get_roles(){\n global $wp_roles;\n return array_merge( array( 'all' => __( 'All', 'yith-woocommerce-request-a-quote' ) ), $wp_roles->get_names() );\n }", "public function removeRoles() {\n $this->roles()->detach();\n }", "public function getRoles()\n {\n return $this->userRoles->toArray();\n /*$roles = array();\n foreach ($this->userRoles as $role) {\n $roles[] = $role->getRole();\n }\n\n return $roles;*/\n }", "function give_bc_1817_cleanup_user_roles( $caps ) {\n\n\tif (\n\t\t! give_has_upgrade_completed( 'v1817_cleanup_user_roles' ) &&\n\t\t! isset( $caps['view_give_payments'] )\n\t) {\n\t\tgive_v1817_process_cleanup_user_roles();\n\t}\n\n\treturn $caps;\n}", "public function format_roles ( $role_array ) {\n if ( ! $role_array || ! is_array( $role_array ) ) {\n return NULL;\n }\n $array = [];\n foreach ($role_array as $role_name) {\n $array[] = $this->roles[ $role_name ]['title'];\n }\n if ( $array ) {\n return join( ', ', $array );\n } else {\n return NULL;\n }\n }", "public function getRoles()\n {\n return [$this->role];\n }" ]
[ "0.61795944", "0.61391497", "0.610891", "0.60941327", "0.6039179", "0.6030669", "0.59872323", "0.59641176", "0.59399", "0.58876026", "0.5828247", "0.58167976", "0.5771049", "0.57649183", "0.5696386", "0.5653783", "0.5646263", "0.56377107", "0.56377107", "0.56377107", "0.56377107", "0.56144905", "0.559257", "0.55676484", "0.5554973", "0.55415577", "0.5523093", "0.5520148", "0.5515197", "0.5507671", "0.5506453", "0.5504688", "0.5504342", "0.5498338", "0.5477072", "0.546554", "0.544056", "0.5437932", "0.5435382", "0.5434714", "0.5433316", "0.54205126", "0.54198277", "0.54025215", "0.5397801", "0.5382919", "0.53682023", "0.5341655", "0.53400886", "0.534005", "0.5337642", "0.53351456", "0.5334364", "0.5324155", "0.53208005", "0.5311699", "0.52777386", "0.5276195", "0.52754664", "0.5266049", "0.5259483", "0.524998", "0.5249642", "0.52411705", "0.5237437", "0.5234914", "0.5232115", "0.5231214", "0.5227494", "0.52229583", "0.52185667", "0.5216731", "0.52150977", "0.52095604", "0.52068955", "0.5202549", "0.52000856", "0.51965857", "0.5184643", "0.5183759", "0.5182937", "0.5182937", "0.5182937", "0.5182203", "0.5154567", "0.5152486", "0.51522326", "0.5149949", "0.5145587", "0.5141252", "0.5138617", "0.5137239", "0.5128869", "0.51244456", "0.5123573", "0.51160645", "0.5115419", "0.5114235", "0.5110158", "0.5109795" ]
0.6587475
0
Returns a list of all roles
public function getAllAvailableRoles () { return array_filter( $this->roleCollection, function (BaseRole $role) { if ($role instanceof Role) { return !$role->isHidden(); } //remove all BaseRoles return false; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_all_roles(){\n\t\treturn ORM::factory('role')->find_all()->as_array();\n\t}", "public function get_all_roles()\n {\n return App\\Role::all();\n }", "private function get_all_roles(){\n return Role::all();\n }", "public function getAllRoles()\n {\n return $this->roles;\n }", "public function getAllRoles()\n {\n return \\EntityManager::getRepository('stoykov\\Ohrana\\Models\\Doctrine\\Role')->findAll();\n }", "function getAllRoles(){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllRoles();\r\n }", "function get_all_roles() {\n return get_records('role', '', '', 'sortorder ASC');\n}", "public function getAllRoles(): array;", "public function getRoles(): iterable\n {\n return [];\n }", "public function getAllRoles()\n {\n return $this->repository->getAllRoles();\n }", "public function retrieveAllRoles()\n {\n return $this->invoker->getAllRoles($this->factory->createNewRolesObject());\n\n }", "public function getRoles()\n {\n $roles = Role::lists('name','id');\n\n return $roles;\n }", "public function getRolesList()\n\t{\n\t\t$roles = Role::select('name as text', 'id')->get();\n\t\treturn $roles;\n\t}", "public function listAll()\n {\n $roles = $this->model->lists('name', 'id');\n\n return $roles;\n }", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function roles()\n {\n\n return Role::all();\n }", "public function getAll()\n {\n try{\n return $this->roles;\n }\n catch (\\Exception $exception)\n {\n return null;\n }\n }", "public function getAll()\n {\n return $this->roles->whereStatus(1)->orderBy('id', 'desc')->get();\n }", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function getRoles()\n\t{\n\t\treturn $this->roles->toArray();\n\t}", "public function getAllRoles()\n {\n $id = $this->get(TableFactory::getUserModel()\n ->getPrimaryKey());\n\n return Cache::remember(sprintf(Constants::CACHE_ROLES, $id), function() use ($id) {\n return TableFactory::getRoleModel()\n ->find()\n ->matching('Users', function(Query $query) use ($id) {\n return $query->where(['Users.id' => $id]);\n })\n ->toArray();\n });\n }", "public function getRoles(): array;", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public function get_roles() {\n return DB::query(Database::SELECT, 'SELECT * FROM roles WHERE id > 1')\n ->as_object()\n ->execute($this->db);\n }", "public function getRoles()\n {\n return $this->roles->toArray();\n }", "public function getRoles()\n {\n return $this->roles->toArray();\n }", "public function getRoles(): array {\n\t\t$sql = 'SELECT id, name FROM roles';\n\t\treturn $this->queryRows($sql);\n\t}", "public static function GetAllRoles()\n {\n global $wp_roles;\n\n $rls = [];\n foreach ($wp_roles->roles as $key => $rl){\n array_push($rls,[\n 'slug' => $key,\n 'name' => $rl['name'],\n ]);\n }\n\n return $rls;\n }", "public function getRoles()\n {\n return $this->userRoles->toArray();\n /*$roles = array();\n foreach ($this->userRoles as $role) {\n $roles[] = $role->getRole();\n }\n\n return $roles;*/\n }", "public function get_roles()\n {\n $users_roles = user_role_active_record::search()->where('uid', $this->uid)->exec();\n $roles = array();\n foreach ($users_roles as $users_role) {\n $roles[] = role_active_record::search()->where('rid', $users_role->rid)->execOne();\n }\n return $roles;\n }", "public function all()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('r')\n ->from(Role::class, 'r');\n\n return $qb->getQuery()->getResult();\n }", "public static function listarRoles(): array {\n $consulta = \"SELECT * FROM rol ORDER BY nombre\";\n return Conexion::getInstancia()->seleccionar($consulta);\n }", "public function getRoles()\n {\n return $this->getMemberRoles()->toArray();\n }", "public function roleListAll() {\n $this->_adminUserDao = new AdminUserDao();\n\n $ret = array();\n $roles = $this->_adminroledao->getAll();\n foreach ($roles as $role) {\n $user = $this->_adminUserDao->getRow(array(array('username', '=', $role->owner)));\n if($user){\n $ret[$role->owner]['role'][] = $role;\n $ret[$role->owner]['user'] = $user;\n }else{\n if($role->owner == config('admin.user.super_user.username')){\n $ret[$role->owner]['role'][] = $role;\n// $ret[$role->owner]['user'] = (new AdminUserDao())->fill(config('admin.user.super_user'));\n// $ret[$role->owner]['user'] = $this->_adminUserDao->getRow(array(array('id', '=', config('admin.user\n $ret[$role->owner]['user']['username'] = $role->owner;\n }\n }\n }\n return $ret;\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\r\n {\r\n return $this->roles;\r\n }", "public function getRoles() {\n return $this->getRelation(\"roles\");\n }", "public function roles()\n {\n\n $roles = get_editable_roles();\n $output = array();\n foreach ($roles as $key => $val) {\n $output[$key] = $val['name'];\n }\n return $output;\n }", "public function getRoles(): array\n {\n return $this->roles;\n }", "public function getRoles(): array\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function getRoles(){\n $sql = \"SELECT * FROM rol\";\n\n foreach ($this->bd->query($sql) as $res) {\n $this->rol[] = $res;\n }\n return $this->rol;\n }", "public function getRoles()\n {\n $roleList = Security::getRoleList();\n foreach ($roleList as &$role) {\n $role = $role->toArray();\n }\n\n return $roleList;\n }", "public function getRoles()\n {\n return array($this->role);\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function roleList()\n {\n $roleList = '<ul>';\n foreach ($this->roles as $role) {\n $roleList .= '<li>'.$role->name.'</li>';\n }\n $roleList .= '</ul>';\n\n return $roleList;\n }", "public function getRoles()\n {\n\n $rolesReturn = [];\n $roles = $this->roles()->with(['role'])->get();\n\n $rolesReturn = $roles->pluck('role.name');\n\n // Add Standard role to the user roles\n\n if($rolesReturn->contains(config('user.standardRole')) === false)\n {\n $rolesReturn->push(config('user.standardRole'));\n }\n\n return $rolesReturn;\n\n }", "public function getRoles() {\n return \\array_filter(Role::getMap(), [ $this, 'hasRole' ], \\ARRAY_FILTER_USE_KEY);\n }", "public static function getAll()\n {\n return Role::with(['permissions'])->get();\n }", "public function getRoles() \n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->getRelation('roles');\n }", "public function index()\n {\n return Roles::all();\n }", "function get_all_roles()\n {\n $this->db->order_by('role', 'asc');\n return $this->db->get('tbl_roles')->result_array();\n }", "public function all()\n {\n $roles = collect($this->table()->where('user_id', $this->user->id())->get());\n\n if ($roles->isEmpty()) {\n return collect();\n }\n\n return $roles; // todo: groups\n }", "public function getRoles()\n {\n $id = Auth::id();\n $roles = \\App\\Models\\User::find($id)->roles;\n\n return $roles;\n }", "abstract protected function getRoles();", "public function getRoles(): array\n\t{\n\t\treturn $this->roles;\n\t}", "protected function getRoles(): array\n {\n $output = [];\n $options = [];\n $options['unlimited'] = true;\n $options['where'] = [\n 'userrole_priority' => '< 10000',\n ];\n $options['sortOrders'] = [['sort' => 'userrole_priority', 'order' => 'ASC']];\n $UserRolesDb = new \\Rdb\\Modules\\RdbAdmin\\Models\\UserRolesDb($this->Container);\n $output['listRoles'] = $UserRolesDb->listItems($options);\n\n unset($options, $UserRolesDb);\n return $output;\n }", "public function getRoles()\n {\n return array('1');\n }", "public function getAvailableRoles() ;", "public function getRoles(): array\n {\n return [$this->role];\n }", "public function getRoles(){\n\n $roles = $this->visiteur_roles->map(function($role){\n return $role->getTitle();\n })->ToArray();\n\n $roles[]= 'ROLE_USER';\n \n return $roles;\n }", "public function getRoles()\n {\n $roles = $this->roles;\n\n return array_unique($roles);\n }", "public function & GetRoles ();", "public function getRoles(): array\n {\n return array_values($this->roles);\n }", "public function findRoles() {\n\t\t\n\t}", "public function getRoles(){\n\n return $this->_arrRoles;\n \n }", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function getRoleList(): array\n\t{\n\t\tif (!empty(static::$roles))\n\t\t{\n\t\t\treturn static::$roles;\n\t\t}\n\t\t\n\t\t$roles = [];\n\t\t$roleListResult = CCrmRole::GetList(\n\t\t\t['ID' => 'ASC', ],\n\t\t\t['=GROUP_CODE' => self::ROLE_GROUP_CODE,]\n\t\t);\n\t\t\n\t\twhile ($role = $roleListResult->Fetch())\n\t\t{\n\t\t\t$roles[] = $role;\n\t\t}\n\t\tstatic::$roles = $roles;\n\t\t\n\t\treturn $roles;\n\t}", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function getRoles() {\n return DB::table('dx_users_roles as ur')\n ->join('dx_roles as r', 'r.id', '=', 'ur.role_id')\n ->select('r.id', 'r.title', DB::raw('COUNT(*) as total_users'))\n ->where('r.is_system', '=', '0')\n ->groupBy('r.id')\n ->orderBy('r.title')\n ->get();\n }", "static public function get_all_roles() {\n\t\tif ( ! function_exists( 'get_editable_roles' ) ) {\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/user.php' );\n\t\t}\n\n\t\t$editable_roles = get_editable_roles();\n\t\t$roles = array();\n\t\t$caps = apply_filters( 'fl_builder_user_access_capabilities', array( 'edit_posts' ) );\n\n\t\tforeach ( $editable_roles as $role => $data ) {\n\t\t\tforeach ( $caps as $cap ) {\n\t\t\t\tif ( isset( $data['capabilities'][ $cap ] ) && 1 == $data['capabilities'][ $cap ] ) {\n\t\t\t\t\t$roles[ $role ] = $data['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $roles;\n\t}", "public function index()\n {\n return Role::all();\n }", "public function index()\n {\n return Role::all();\n }", "public function roles()\n {\n return response()->json(['roles' => UserRole::getRoleList()]);\n }", "public function getRoles()\n {\n $roles = [];\n foreach ($this->roles as $role) {\n $roles[$role->role] = true;\n }\n return $roles;\n }", "function getRoles()\n {\n $roles = array();\n\n foreach ($this->grupos as $grupo) {\n $roles[] = $grupo->getRole();\n }\n return $roles;\n }", "public function findAll() {\n\n // Récupération des différents type d'utilisateur\n $result = $this->getDb()->fetchAll(\"select * from roles order by nom asc\");\n \n $roles = array();\n foreach ($result as $row) {\n $roles[$row['id']] = $this->buildDomainObject($row);\n }\n return $roles;\n }", "private function load_roles() {\n $query = $this->PDO->prepare(\"SELECT * FROM rol\");\n $query->execute();\n return $query->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getRoles(){\n $db = new MainModel();\n $query = \"SELECT r.id as idRol, r.name as nameRol from roles as r\";\n return $response = $db->consultQueryAll($query);\n }", "function getAll()\n\t{\n\t\t$this->db->order_by(\"roleName\",\"ASC\");\n\t\t$query = $this->db->get('roles');\n\t\treturn $query;\n\t}", "public function getRoleList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('tbl_role');\n\t\t$this->db->where('role_status', '1');\n\t\t$this->db->where('role_id !=', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "public static function getRoles()\n {\n return self::$roles;\n }", "public function getRoles()\n {\n $roles = Role::all();\n\n return Datatables::of($roles)\n ->editColumn('routes', function ($role) {\n return htmlentities(strlen($role->getOriginal('routes')) > 50 ? substr($role->getOriginal('routes'), 0, 50) : $role->getOriginal('routes'));\n })\n ->addColumn('actions', function ($role) {\n $editBtn = '<a style=\"margin-right: 0.2em;\" href=\"' . url('admin/roles/' . $role->id . '/edit/') . '\" title=\"Edit\"><i class=\"fa fa-2 fa-pencil\"></i></a>';\n $deleteBtn = '';\n if ($role->name != 'Admin') {\n $deleteBtn = '&nbsp;<a href=\"' . url('admin/roles/' . $role->id) . '\" class=\"message_box text-danger\" data-box=\"#message-box-delete\" data-action=\"DELETE\" title=\"Permanent Delete\"><i class=\"fa fa-2 fa-remove\"></i></i></a>';\n }\n return $editBtn . $deleteBtn;\n })->make(true);\n }", "public function ObtenerRolesSupeAdmin()\r\n {\r\n return Rol::all();\r\n }", "public function getRoles(): array\n {\n $roles = $this->userRoles->map(function($role){\n return $role->getTitle();\n })->toArray();\n\n $roles[] = 'ROLE_USER';\n // guarantee every user at least has ROLE_USER\n //$roles[] = 'ROLE_USER';\n\n return $roles;\n }", "public function getRoles()\n\t{\n\t\t$roles = [];\n\n\t\tif (!$this->roles)\n\t\t\treturn $roles;\n\n\t\tforeach ($this->roles as $role)\n\t\t{\n\t\t\t$roles[$role->role] = $role->name;\n\t\t}\n\n\t\treturn $roles;\n\t}", "private function getRoles()\n\t{\n\t\tif (!isset($this->roles)) {\n\t\t\t$this->roles = $this->roles()\n\t\t\t\t->with('permissions')\n\t\t\t\t->withCount('users')\n\t\t\t\t->get();\n\t\t}\n\t\treturn $this->roles;\n\t}", "public function getRolesNames ();", "public function getRoles()\n {\n\n $roles = $this->roles;\n // guarantee every user at least has ROLE_USER\n $roles[] = 'ROLE_USER';\n return array_unique($roles);\n\n //throw new \\Exception('Method getRoles() is not implemented.');\n }" ]
[ "0.8862779", "0.88542664", "0.8799073", "0.86297303", "0.86249703", "0.8615258", "0.85742646", "0.85511726", "0.84760344", "0.84730774", "0.84488595", "0.8322416", "0.8316846", "0.82824665", "0.8276489", "0.8275627", "0.82558817", "0.8251103", "0.82449734", "0.8126972", "0.8118559", "0.81074524", "0.81043667", "0.8066544", "0.806533", "0.806533", "0.80564564", "0.80484545", "0.80453664", "0.8009396", "0.79820293", "0.79467577", "0.79357", "0.7923942", "0.7923109", "0.7923109", "0.7923109", "0.7906889", "0.79042", "0.79017216", "0.7901238", "0.7901238", "0.78951925", "0.78951925", "0.78884596", "0.78757894", "0.7872472", "0.78715634", "0.78715634", "0.78715634", "0.78715634", "0.78715634", "0.78715634", "0.7866838", "0.78390694", "0.7835963", "0.7835914", "0.78248066", "0.78197515", "0.78111815", "0.78100437", "0.7806046", "0.7797575", "0.7791593", "0.77852327", "0.7765413", "0.7756521", "0.7756438", "0.77468157", "0.77467704", "0.77449554", "0.77439386", "0.7737755", "0.7735971", "0.7733198", "0.772593", "0.772593", "0.772593", "0.772593", "0.7710821", "0.76987803", "0.7698765", "0.76935834", "0.7686073", "0.7686073", "0.76820546", "0.7682026", "0.76756895", "0.7658429", "0.7657172", "0.76466984", "0.7646243", "0.764532", "0.7636999", "0.76336396", "0.76307195", "0.76297826", "0.76247764", "0.7620141", "0.7619754", "0.76169735" ]
0.0
-1
Returns a Role by key
public function getRoleByKey ($roleKey) { return array_key_exists($roleKey, $this->roleCollection) ? $this->roleCollection[$roleKey] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveSpecificRole($key)\n {\n return $this->invoker->getSpecificRole($this->factory->createNewRolesObject(), $key);\n }", "public function __get($key)\n\t{\n\t\tif ($key === 'roles')\n\t\t\treturn $this->roles;\n\n\t\treturn parent::__get($key);\n\t}", "public function getBykey($key)\n {\n return $this->where(['llave' => strtoupper($key)]);\n }", "public function getRole();", "public function getRole();", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RoleactionPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function getByKey($key);", "public function getRole() {}", "function get_role($role_id) {\n\t\treturn $this->db->get_where('system_security.security_role', array('role_id' => $role_id));\n\t\t\n\t}", "public function getByName($roleName);", "function getRole($roleId) {\n $statement = 'SELECT role FROM ROLE_LOV where id = (?)';\n $query = $this->prepare($statement);\n $query->execute([$roleId]);\n return $query->fetch();\n }", "public function getROLE()\n {\n return $this->hasOne(Role::className(), ['id' => 'ROLE']);\n }", "public function getRole()\n {\n return $this->hasOne(Role::className(), ['id' => 'role_id']);\n }", "public function getRole() : string;", "public function find(int $roleId);", "public function get_role($role)\n {\n }", "public function getPermissionRoleByRoleID($id);", "static public function getRole() {\n\t\tif(!Yii::$app->user->isGuest) {\n\t\t\tif($role = AuthAssignment::findOne(['user_id' => Yii::$app->user->identity->id]))\n\t\t\t\tif($key = array_search($role->item_name, Yii::$app->params['league_roles']))\n\t\t\t\t\treturn $key;\n\t\t\treturn self::DEFAULT_ROLE;\n\t\t}\n\t\treturn null;\n\t}", "public function getRole()\n {\n return $this->getPredisClient()->role();\n }", "protected function getRole($role)\n\t{\n\t\treturn Role::where('type', $role)->get()->first();\n\t}", "function getRole($index){\r\n //as we won't be using classes yet this is our (messy) work-around\r\n $ROLES = array('Student' => STUDENT,\r\n 'Lector' => LECTURER,\r\n 'Studieadviseur' => ADVISOR,\r\n 'Administrator' => ADMIN);\r\n foreach($ROLES as $role => $roleIndex){\r\n if($index == $roleIndex){\r\n return $role;\r\n }\r\n }\r\n}", "function get_role($roleId)\n {\n return $this->db->get_where('tbl_roles',array('roleId'=>$roleId))->row_array();\n }", "function get_role($roles_id)\n {\n return $this->db->get_where('roles',array('roles_id'=>$roles_id))->row_array();\n }", "public function getRoleById($id_role)\n\t{\n\t\t$role = $this->getRoleModel()->getRoleById($id_role);\n\t\t\n\t\treturn $role;\n\t}", "public static function getRole($role_name)\r\n\t{\r\n\t\t$roleModel = new self();\r\n\t\t$select = $roleModel->select();\r\n\t\t$select->from('role',array('role_id'));\r\n\t\t$select->where('role_name = \"' . $role_name .'\"');\t\t\r\n\t\treturn $roleModel->fetchAll($select);\t\t\r\n\t}", "public function load($key)\n {\n return $this->dba->get($key);\n }", "public function getAccount($key = null);", "public function get_role()\n {\n }", "public function getRoleById($id){\n\t\t$sql = \"SELECT name FROM role WHERE id = ?\";\n\t\t$req = $GLOBALS[\"conn\"]->prepare($sql);\n\t\t$req->execute([$id]);\n\n\t\t$result = $req->fetch();\n\t\treturn $result[\"name\"];\n\t}", "public function retrieve(string $key): ?Token;", "public function getRole()\n {\n $res = $this->getEntity()->getRole();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getRole();\n\t\t}\n return $res;\n }", "public function find($key)\n\t{\n\t\t$user = model('user')->find_user($key);\n\n\t\treturn $user ? UserModel::newWithAttributes(Arr::toArray($user)) : null;\n\t}", "public function userFromKey($key){\r\n $query = $this->conn->prepare('SELECT `user_id` FROM `user` WHERE confirmationKey = :key'); // Création de la requête + utilisation order by pour ne pas utiliser sort\r\n $query->execute([':key' => $key ]); // Exécution de la requête\r\n return $query->fetch(\\PDO::FETCH_ASSOC);\r\n\r\n }", "public function getAuthenticatedRole();", "public function getRoleId()\n {\n if (array_key_exists(\"roleId\", $this->_propDict)) {\n return $this->_propDict[\"roleId\"];\n } else {\n return null;\n }\n }", "public function getRole($queryReturn = true){\n $data = $this->belongsTo(Role::class,'role_id');\n return $queryReturn ? $data : $data->first();\n }", "public function get($key)\n {\n return $this->find($key);\n }", "function IdRole($name)\n {\n $role = Catalogo::select('id')->table('ROLES')->where('codigo',$name)->first();\n return $role->id;\n }", "public function getRole() {\n\n return session('role');\n\n }", "public function findCollectionByKey($key);", "public static function getRolesLabel($key)\n {\n return array_key_exists($key, self::$roles) ? self::$roles[$key] : '';\n }", "public function role()\n {\n return $this->hasOne('Role', 'id', 'role_id');\n }", "function get_role($role_name){\n\t\tglobal $database;\n\t\t$getrolequery = \"SELECT id FROM roles WHERE role = :roleName\";\n\n\t\t$stmt = $database->prepare($getrolequery);\n\n\t\t$stmt->bindParam(':roleName', $role_name);\n\n\t\t$stmt->execute();\n\n\t\treturn $stmt->fetch();\n\t}", "public function getSingleRole() {\n return $this->roles[0];\n }", "private function _getRole()\n {\n //return role\n if(false/*logged_in*/){\n\n }else{\n $this->load->Model('user_roles/Mdl_roles');\n return $this->Mdl_roles->getRolesName();\n }\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('Role');\n }", "public static function resourceForKey($key)\n {\n return collect(static::$resources)->first(function ($value) use ($key) {\n return $value::uriKey() === $key;\n });\n }", "public function getItem($key);", "public function getItem($key);", "public function getItem($key);", "public function getItem($key);", "public function getDetail($id)\n {\n $role = $this->roles->find($id);\n return $role;\n }", "public function read(string $key);", "public static function retrieve( $key )\n {\n return self::get( $key, $valid = false );\n }", "public function retrieve($key) {\n return $this->connection->get($this->key($key));\n }", "abstract protected function retrieve($key);", "public function read($key)\n {\n return $this->findOrDelete($key, false);\n }", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function getRoleById($id) {\r\n $sql = $this->db->query(\"SELECT * FROM ms_role WHERE roleid = '$id'\");\r\n if ($sql->num_rows() > 0) {\r\n return $sql->row_array();\r\n }\r\n return null;\r\n }", "public function show($id)\n {\n return Role::findOrFail($id);\n }", "public function getRoleByName(string $name): Role\n {\n return Role::where('name', $name)->first();\n }", "public static function fetch($key) {\n\t\t\t$klass = self::getInstance();\n\t\t\treturn $klass->cache[crc32($key)];\n\t\t}", "public function read($key) {}", "public function role()\n {\n return $this->hasOne('App\\Roles','id','role');\n }", "public function getRoleId()\n {\n return $this->role_id;\n }", "public function getRoleId()\n {\n return $this->role_id;\n }", "protected function findPkSimple($key, ConnectionInterface $con)\n {\n $sql = 'SELECT id, permission, role_id, can FROM candle_role_permission WHERE id = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(\\PDO::FETCH_NUM)) {\n /** @var ChildCandleRolePermission $obj */\n $obj = new ChildCandleRolePermission();\n $obj->hydrate($row);\n CandleRolePermissionTableMap::addInstanceToPool($obj, null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function role()\n {\n return $this->hasOne('App\\Models\\Role');\n }", "public function getRole($id) \n\t{\n\t\t$db = $this->getDbTable()->getAdapter();\n\t\t$select = $db->select()\n\t\t\t->from(array('r' => 'roles'))\n\t\t\t->joinLeft(array('rr' => 'roles_rights'), 'r.role_id = rr.role_id')\n\t\t\t->where('r.editable = 1 AND r.role_id = ' . $id);\n\t\t$data = $db->fetchAll($select);\t\t\n\n\t\t$model = new $this->_rowClass;\n\t\tif (!empty($data))\n\t\t{\n\t\t\t$model->populate($data[0]);\n\t\t\t\n\t\t\t$resourses = array();\n\t\t\tforeach ($data as $reses)\n\t\t\t{\n\t\t\t\t$resourses['actions'][$reses['resourse_id']]\n\t\t\t\t\t[$reses['right_id']] = $reses['right_id'];\t\t\n\t\t\t\t\t\n\t\t\t\t$resourses['resourses'][$reses['resourse_id']] \n\t\t\t\t\t= $reses['resourse_id'];\n\t\t\t\t\t\n\t\t\t\t$resourses['default_module'] = $reses['default_module'];\n\t\t\t}\n\t\t\t$model->setRules($resourses);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$model->setError(Errors::getError(302));\t\n\t\t}\n\t\treturn $model;\t\n\t}", "public function getRoleId()\n {\n return $this->__get(\"role_id\");\n }", "public function getRole(){\n return $this->role; \n }", "public function getRoleId() {\n return $this->roleId;\n }", "public function role() //<- role + _id == role_id\n {\n return $this->belongsTo(Role::class);\n }", "public static function role(): Role\n {\n return new Role;\n }", "public function get($which,$key)\n\t{\n // iterate over the data until we find the one we want\n foreach ($this->all() as $record){\n if ($record->menu_id == $which && $record->inventory_id == $key){\n return $record;\n }\n }\n return null;\n\t}", "static function getRole(&$rsData)\n {\n return $rsData['role'];\n }", "public function edit($id)\n {\n $role = Role::where('id', $id)->first();\n return $role;\n }", "public function role()\n {\n return $this->hasOne('App\\Models\\Role', 'id', 'role_id');\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "function getRole()\n {\n return $this->role;\n }", "public function retrieve($key) {\n return apc_fetch($key);\n }", "public function find($key)\n {\n $keyword = $key['key'];\n $class = $this->db->like('cn_class',$keyword)\n ->or_like('theme',$keyword)\n ->or_like('society',$keyword)\n ->get(T_CLASSES)\n ->result();\n return $class;\n }", "public function get( $key );", "public function get($strKey);" ]
[ "0.8129352", "0.66862464", "0.6565411", "0.62779325", "0.62779325", "0.6246346", "0.6134575", "0.6080797", "0.6059996", "0.6058645", "0.59451777", "0.58104426", "0.5736731", "0.57255596", "0.5673199", "0.56723773", "0.5662716", "0.56555176", "0.5645237", "0.5618815", "0.56161886", "0.5582698", "0.5541804", "0.5504453", "0.5491271", "0.54826176", "0.5481045", "0.54798466", "0.54747343", "0.54471415", "0.54405504", "0.54282546", "0.5407001", "0.5405153", "0.53988725", "0.5363361", "0.5360259", "0.5349646", "0.5343649", "0.5330008", "0.5315778", "0.5312632", "0.53095907", "0.5306869", "0.5303374", "0.52998394", "0.52904063", "0.528263", "0.528263", "0.528263", "0.528263", "0.5276188", "0.5271411", "0.5262941", "0.52620685", "0.525459", "0.5253004", "0.5253003", "0.5253003", "0.5253003", "0.5253003", "0.5253003", "0.5253003", "0.5253003", "0.5253003", "0.5251825", "0.5249614", "0.5246147", "0.5245711", "0.5244439", "0.5241654", "0.52393216", "0.52393216", "0.5236601", "0.5235897", "0.5235722", "0.5230193", "0.52257794", "0.5223032", "0.522036", "0.5215069", "0.52111816", "0.5209794", "0.5205362", "0.52049255", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.52048546", "0.51960516", "0.519209", "0.5188656", "0.51868415", "0.5186754" ]
0.7007834
1
Change Method. More information on this method is available here:
public function change() { $this->table('rents') ->addColumn('url', 'string', [ 'default' => null, 'limit' => 500, 'null' => false, ]) ->addColumn('price', 'string', [ 'default' => null, 'limit' => 10, 'null' => false, ]) ->addColumn('kanri_charge', 'string', [ 'default' => null, 'limit' => 10, 'null' => true, ]) ->addColumn('sikikin', 'string', [ 'default' => null, 'limit' => 10, 'null' => true, ]) ->addColumn('reikin', 'string', [ 'default' => null, 'limit' => 10, 'null' => true, ]) ->addColumn('place', 'string', [ 'default' => null, 'limit' => 45, 'null' => true, ]) ->addColumn('access', 'string', [ 'default' => null, 'limit' => 45, 'null' => true, ]) ->addColumn('width', 'string', [ 'default' => null, 'limit' => 45, 'null' => true, ]) ->addColumn('room_type', 'string', [ 'default' => null, 'limit' => 45, 'null' => true, ]) ->addColumn('build_date', 'string', [ 'default' => null, 'limit' => 45, 'null' => true, ]) ->addColumn('floor', 'string', [ 'default' => null, 'limit' => 45, 'null' => true, ]) ->addColumn('etc', 'string', [ 'default' => null, 'limit' => 300, 'null' => true, ]) ->addColumn('created', 'date', [ 'default' => null, 'limit' => null, 'null' => false, ]) ->create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function change();", "function change()\n {\n }", "public function change($changes);", "public function change()\n {\n echo '客户要求改变一个需求' . PHP_EOL;\n }", "public function change($options)\n\t{\n\n\t}", "public function setChanged()\n {\n\n $this->_changed = true;\n\n }", "public function changeFunc() {}", "public function change()\n {\n $this->table('change_history')\n ->setComment('数据修改记录')\n ->setEngine('InnoDB')\n ->addColumn('model_type','string', ['comment' => '数据模型类名'])\n ->addColumn('model_id', 'integer', ['comment' => '数据ID'])\n ->addColumn('before', 'text', ['comment' => '修改前内容'])\n ->addColumn('after', 'text', ['comment' => '修改后内容'])\n ->addColumn('method', 'string', ['comment' => '请求方式'])\n ->addColumn('url', 'text', ['comment' => '请求url'])\n ->addColumn('param', 'text', ['comment' => '请求参数'])\n ->addFingerPrint()\n ->create();\n }", "public function change()\n {\n // a:6:{i:0;s:9:\"wechat_id\";i:1;s:8:\"nickname\";i:2;s:6:\"isbind\";i:3;s:9:\"firstbind\";i:4;s:7:\"liushui\";i:5;s:11:\"og_username\";}\n $table = $this->table('k_user');\n $table->addColumn('wechat_id', 'string', ['null' => true, 'limit' => 64,])\n ->addColumn('nickname', 'string', ['null' => true, 'limit' => 64,])\n ->addColumn('isbind', 'integer', ['null' => true, 'default'=>0,'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,])\n ->addColumn('firstbind', 'integer', ['null' => true, 'default'=>0,'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,])\n ->addColumn('liushui', 'decimal', ['null' => true, 'precision'=>18,'scale'=>2,'default'=>0.00,])\n ->addColumn('og_username', 'string', ['null' => true, 'limit' => 32,])\n ->update(); \n }", "public function changeStatus()\n {\n }", "public function change()\n {\n $this->adapter->beginTransaction();\n $this->execute(\"UPDATE lightning_node_field_data, lightning_node__field_published_date SET published_at = UNIX_TIMESTAMP(STR_TO_DATE(lightning_node__field_published_date.field_published_date_value, '%Y-%m-%d %h:%i%p')) WHERE nid = lightning_node__field_published_date.entity_id AND vid = revision_id;\");\n $this->execute(\"UPDATE lightning_node_field_revision, lightning_node__field_published_date SET published_at = UNIX_TIMESTAMP(STR_TO_DATE(lightning_node__field_published_date.field_published_date_value, '%Y-%m-%d %h:%i%p')) WHERE nid = lightning_node__field_published_date.entity_id;\");\n $this->execute(\"UPDATE lightning_node_field_data SET published_at = created WHERE published_at IS NULL;\");\n $this->execute(\"UPDATE lightning_node_field_revision SET published_at = created WHERE published_at IS NULL;\");\n $this->adapter->commitTransaction();\n }", "public function change()\n {\n $config = $this->table('config');\n $config\n ->addColumn('name', 'string', ['limit' => 255])\n ->addColumn('value', 'string', ['limit' => 255])\n ->addIndex(['name'], ['unique' => true])\n ->create();\n\n $configRows = [\n ['id' => 1, 'name' => 'active_theme_id', 'value' => '1'],\n ['id' => 2, 'name' => 'active_menu_id', 'value' => '0'],\n ['id' => 3, 'name' => 'active_footer_menu_id', 'value' => '0'],\n ['id' => 4, 'name' => 'siteurl', 'value' => ''],\n ['id' => 5, 'name' => 'sitetitle', 'value' => ''],\n ['id' => 6, 'name' => 'sitedescription', 'value' => ''],\n ['id' => 7, 'name' => 'sitesubtitle', 'value' => ''],\n ['id' => 8, 'name' => 'home_page_id', 'value' => '1']\n ];\n\n $this->insert('config', $configRows);\n }", "function changeValue (&$valueToChange, $value) {\n $valueToChange = $value;\n }", "public function change()\n {\n \n $this->execute('DELETE FROM cotz_cotizaciones_catalogo WHERE id = 12');\n \n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Abierta', etiqueta='abierta' WHERE id = '7'\");\n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Ganada', etiqueta='ganada' WHERE id = '9'\");\n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Perdida', etiqueta='perdida' WHERE id = '10'\");\n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Anulada', etiqueta='anulada' WHERE id = '11'\");\n \n $this->execute(\"UPDATE cotz_cotizaciones SET estado='abierta' WHERE estado = 'aprobado'\");\n $this->execute(\"UPDATE cotz_cotizaciones SET estado='ganada' WHERE estado = 'ganado'\");\n $this->execute(\"UPDATE cotz_cotizaciones SET estado='perdida' WHERE estado = 'perdido'\");\n $this->execute(\"UPDATE cotz_cotizaciones SET estado='anulada' WHERE estado = 'anulado'\");\n }", "public function change()\n {\n\t /**\n\t * status 0=unpaid, 1=paid, 2=fulfilled\n\t */\n\t $table = $this->table('accounts_crypto_payments');\n\t $table\n\t\t ->addColumn('source_type', 'string',['limit' => 20, 'null' => true])\n\t\t ->addColumn('aup_transaction_id', 'integer',['null' => true])\n\t\t ->addColumn('accountUrlPrefix', 'string',['limit' => 17, 'null' => false])\n\t\t ->addColumn('username', 'string',['limit' => 30, 'null' => true])\n\t\t ->addColumn('invoice_id', 'integer',['null' => true])\n\t\t ->addColumn('destination_currency', 'string',['limit' => 3, 'null' => false])\n\t\t ->addColumn('currency_amount', 'string',['limit' => '23','null' => true, 'default' => '0.00000000'])\n\t\t ->addColumn('status', 'integer',['null' => 'false', 'default' => 0])\n\t\t ->addColumn('created', 'datetime',['default' => 'CURRENT_TIMESTAMP'])\n\t\t ->addColumn('updated', 'datetime',['default' => 'CURRENT_TIMESTAMP'])\n\n\t\t ->addIndex(['source_type', 'aup_transaction_id', 'accountUrlPrefix', 'username', 'invoice_id', 'destination_currency', 'status', 'created', 'updated'], ['unique' => false])\n\t\t ->addIndex(['aup_transaction_id', 'accountUrlPrefix', 'invoice_id'], ['unique' => false])\n\t\t ->create();\n\t $table = $this->table('accounts_crypto_payments');\n\t $table\n\t\t ->addForeignKey('accountUrlPrefix', 'accounts', 'accountUrlPrefix',['delete'=>'CASCADE', 'update'=>'CASCADE'])\n\t\t ->addForeignKey('aup_transaction_id', 'accounts_users_propay_transactions', 'id',['delete'=>'CASCADE', 'update'=>'CASCADE'])\n\t\t ->update();\n }", "public function setChanged($changed = true) { $this->changed = $changed; }", "public function change()\n {\n $changedId = \\Input::get('chgid');\n\n if ( count(explode(',', $changedId)) > 1 ) {\n if(Gate::allows('view', Resource::get('affiliate-id-*'))){\n Session::put('affiliate_id', '*');\n }\n } else {\n $affiliate = AffiliateService::find(AffiliateService::getHashKeyName(), $changedId);\n $affiliate = current($affiliate);\n $affiliateId = $affiliate['id'];\n if(Gate::allows('view', Resource::get('affiliate-id-' . $affiliateId))){\n Session::put('affiliate_id', $affiliateId);\n }\n }\n }", "public function getChange();", "private function changed()\n {\n $this->isDirty = true;\n }", "public function modify();", "public function change()\n {\n $this->query(\"update `UserRole` set `description`='Administrator of system' where `role_id`=2\");\n $this->query(\"update `UserRole` set `description`='Owner of site' where `role_id`=1\");\n $this->query(\"update `Site` set `site_name`='teamlab-srv.oft-e.com' where `id`=1\");\n $this->query(\"update `Site` set `site_name`='smartbiz24.ru' where `id`=2\");\n $this->query(\"update `Site` set `site_name`='yandex.ru' where `id`=3\");\n $this->query(\"update `Site` set `site_name`='google.com' where `id`=4\");\n $this->query(\"update `User` set `first_name`='Witaliy' where `id`=1\");\n $this->query(\"update `User` set `first_name`='Victor' where `id`=2\");\n $this->query(\"update `User` set `first_name`='Peter' where `id`=3\");\n $this->query(\"update `User` set `first_name`='Sergey' where `id`=4\");\n $this->query(\"update `User` set `first_name`='Igor' where `id`=5\");\n }", "public function update() {\n $this->connection->update(\n \"ren_change_money\", array(\n \"`change`\" => $this->observer->change,\n \"`year`\" => $this->observer->year,\n \"`idmoney`\" => $this->observer->money->idmoney\n ), array(\"idchangemoney\" => $this->observer->idchangemoney), $this->user->iduser\n );\n }", "public function change(): void\n {\n $foreign_keys = [\n 'session_expiration' => ['column' => 'session_id', 'table' => 'session'],\n ];\n foreach ($foreign_keys as $table => $key) {\n $this->table($table)\n ->dropForeignKey($key['column'])\n ->save();\n }\n // update all the primary key id columns\n $primary_keys = [\n 'cron', 'datastore', 'defex', 'email', 'email_unsubscribe',\n 'filestore', 'locking', 'page', 'page_link', 'page_slug',\n 'rich_media', 'search_index', 'session', 'session_expiration',\n 'user', 'user_group', 'user_group_membership', 'user_source'\n ];\n foreach ($primary_keys as $table) {\n $this->table($table)\n ->changeColumn('id', 'integer', ['signed' => false, 'null' => false, 'identity' => true])\n ->changePrimaryKey('id')\n ->save();\n }\n // re-add all the foreign keys that reference primary key id columns\n foreach ($foreign_keys as $table => $key) {\n $this->table($table)\n ->changeColumn($key['column'], 'integer', ['null' => false, 'signed' => false])\n ->addForeignKey($key['column'], $key['table'])\n ->save();\n }\n }", "public function change()\n {\n $AdminTable = TableRegistry::get('Bakkerij/CakeAdmin.Administrators');\n $user = $AdminTable->newEntity([\n 'name' => 'admin',\n 'email' => 'admin@test.com',\n 'password' => 'test',\n 'active' => 1\n ]);\n $AdminTable->save($user);\n }", "public function change()\n {\n $table = $this->table('languages');\n $table->addColumn('is_rtl', 'boolean', [\n 'default' => false,\n 'null' => false,\n ]);\n $table->addColumn('trashed', 'datetime', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->changeColumn('is_active', 'boolean', [\n 'default' => true,\n 'null' => false,\n ]);\n $table->renameColumn('short_code', 'code');\n $table->removeColumn('description');\n $table->update();\n }", "public function update()\r\n {\r\n \r\n }", "public function update()\n\t{\n\n\t}", "public function change()\n {\n $statistics = $this->table('vrchat');\n $statistics->addColumn('auth', 'string', ['limit' => 100])\n ->addColumn('apiKey', 'string', ['limit' => 100])\n ->addColumn('login', 'string', ['limit' => 100])\n ->addColumn('password', 'string', ['limit' => 100])\n ->create();\n\n // inserting only one row\n $singleRow = [\n 'id' => 1,\n 'auth' => '',\n 'apiKey' => 'JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26',\n 'login' => 'Loli E1ON',\n 'password' => ''\n ];\n\n $table = $this->table('vrchat');\n $table->insert($singleRow);\n $table->saveData();\n\n }", "public function change()\n {\n $table = $this->table('companies');\n $table->addColumn('name', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('fantasy', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('address', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('city', 'string', [\n 'limit' => 45\n ]);\n\n $table->addColumn('state', 'string', [\n 'limit' => 45\n ]);\n\n $table->addColumn('zipcode', 'string', [\n 'limit' => 8\n ]);\n\n $table->addColumn('cnpj', 'string', [\n 'limit' => 14\n ]);\n\n $table->addColumn('cpf', 'string', [\n 'limit' => 11\n ]);\n\n $table->addColumn('state_registration', 'string', [\n 'limit' => 12\n ]);\n\n $table->addColumn('logo', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('status', 'integer', [\n 'default' => 1\n ]);\n\n $table->addColumn('email', 'string', [\n 'limit' => 80\n ]);\n\n $table->addColumn('people_id', 'integer');\n $table->addForeignKey('people_id', 'peoples','id');\n\n $table->addColumn('created', 'datetime');\n $table->addColumn('modified', 'datetime');\n $table->create();\n }", "public function update() {\r\n\r\n\t}", "public function update()\r\n {\r\n //\r\n }", "public function change(): void\n {\n $leads = $this->table('leads');\n $leads->addColumn('id_proyecto', 'integer')\n ->addColumn('status', 'integer')\n ->addColumn('comentarios', 'text')\n ->addColumn('created_at', 'timestamp')\n ->addColumn('updated_at', 'timestamp')\n ->addForeignKey('id_proyecto', 'proyectos', 'id', ['delete' => 'NO_ACTION', 'update' => 'NO_ACTION'])\n ->create();\n\n $datos = $this->table('datos');\n $datos->addColumn('id_lead', 'integer')\n ->addColumn('campo', 'string', ['limit' => 250])\n ->addColumn('valor', 'string', ['limit' => 250])\n ->addColumn('created_at', 'timestamp')\n ->addColumn('updated_at', 'timestamp')\n ->addForeignKey('id_lead', 'leads', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])\n ->create();\n }", "public function change()\n {\n $table = $this->table('summary');\n $table->addColumn('batch_id', 'biginteger', [\n 'limit' => 14,\n 'null' => false,\n 'default' => 0\n ]);\n $table->update();\n }", "public function update()\n {\n }", "public function change()\n {\n $table = $this->table('orders');\n $table->addColumn('payment_method', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n 'after' => 'invoice_file'\n ]);\n $table->addColumn('transaction_status', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'payment_method'\n ]);\n $table->addColumn('transactionId', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'transaction_status'\n ]);\n $table->addColumn('signature', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'transactionId'\n ]);\n $table->addColumn('transaction_responce', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'signature'\n ]);\n $table->update();\n }", "public function change()\n {\n //角色信息\n $table = $this->table('admin_role');\n $table->addColumn('rolename','string',['limit'=>20,'comment'=>'角色名'])\n ->addColumn('status','integer',['default'=>0,'comment'=>'状态'])\n ->addColumn('remark','string',['limit'=>30,'comment'=>'备注'])\n ->addColumn('create_by','integer',['comment'=>'创建者'])\n ->addTimestamps()\n ->addIndex('rolename',['unique'=>true])\n ->create();\n \n //管理员用户和角色对应表\n $table = $this->table('admin_user_role')\n ->addColumn('adminuser_id','integer',['comment'=>'管理员用户ID'])\n ->addColumn('role_id','integer',['comment'=>'角色id'])\n ->addTimestamps()\n ->create();\n }", "public function update()\n {\n\n }", "public function update()\n {\n\n }", "public function update()\n {\n \n }", "public function update()\n {\n \n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n //\n }", "public function update()\n {\n //\n }", "public function update() {\r\n }", "public function updating()\n {\n # code...\n }", "public function change()\n {\n $table = $this->table('notifications');\n $table->addColumn('destination', 'enum', [\n 'values' => [\n 'Global',\n 'Role',\n 'User'\n ]\n ]);\n $table->addColumn('role_id', 'string', [\n 'default' => '',\n 'limit' => 32\n ]);\n $table->changeColumn('user_id', 'string', [\n 'default' => '',\n 'limit' => 36\n ]);\n $table->removeColumn('seen');\n $table->removeColumn('deleted');\n $table->update();\n\n $tableLogs = $this->table('admin_l_t_e_notification_logs');\n $tableLogs->addColumn('notification_id', 'integer');\n $tableLogs->addColumn('user_id', 'string', [\n 'default' => null,\n 'limit' => 36,\n 'null' => false\n ]);\n $tableLogs->addColumn('created', 'datetime');\n $tableLogs->create();\n }", "static function alter() {\n }", "public function update () {\n\n }", "public function change()\n {\n $wallet = $this->table('wallet');\n $wallet->addColumn('description', 'string', ['limit' => 100])\n ->addColumn('primary', 'enum', ['values' => ['y', 'n']])\n ->addColumn('user_id', 'integer')\n ->addColumn('total_avg', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('total_balance', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('total_stock', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('total_fund', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('profit', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('variation', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('variation_money', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('created_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('updated_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addForeignKey('user_id', 'user', ['id'], ['constraint' => 'fk_wallet_user_id'])\n ->create();\n }", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "public function change()\n {\n $table = $this->table('information');\n $table->addColumn('reserved_at', 'timestamp', [\n 'null' => true,\n 'after' => 'information_category_id',\n 'comment' => '公開予約日',\n ]);\n $table->update();\n }", "public function change()\n {\n // Migration for table entry\n $table = $this->table('entry');\n $table\n ->addColumn('domain', 'string', array('limit' => 25))\n ->addColumn('url', 'string', array('limit' => 255))\n ->addColumn('title', 'string', array('limit' => 255))\n ->addColumn('code', 'string', array('limit' => 64))\n ->addColumn('Countdown', 'integer', array('limit' => 11))\n ->addColumn('ExpireDate', 'datetime', array('null' => true))\n ->addColumn('ExpiryAction', 'enum', array('values' => array('stop','free')))\n ->addColumn('created', 'datetime')\n ->addColumn('deleted', 'boolean', array('limit' => 1))\n ->addColumn('used', 'integer', array('default' => '0', 'signed' => false))\n ->create();\n\n\n // Migration for table users\n $table = $this->table('user');\n $table\n ->addColumn('settings', 'text', array('null' => true))\n ->addColumn('email', 'string', array('limit' => 128))\n ->addColumn('firstname', 'string', array('null' => true, 'limit' => 32))\n ->addColumn('lastname', 'string', array('null' => true, 'limit' => 32))\n ->addColumn('password', 'string', array('limit' => 40))\n ->addColumn('login', 'string', array('limit' => 32))\n ->addColumn('DatCreate', 'datetime', array())\n ->addColumn('DatSave', 'datetime', array('null' => true))\n ->addColumn('last_modifier_id', 'integer', array('null' => true, 'signed' => false))\n ->create();\n }", "public function change()\r\n {\r\n $table = $this->table('financialv2');\r\n $table->addColumn('output_template', 'string', ['after'=>'csvbody'])\r\n ->addColumn('graph1', 'string', ['after'=>'output_template'])\r\n ->addColumn('graph2', 'string', ['after'=>'graph1'])\r\n ->addColumn('graph1_data', 'text', ['after'=>'graph2','limit'=>MysqlAdapter::TEXT_LONG,'null'=>true])\r\n ->addColumn('graph2_data', 'text', ['after'=>'graph1_data','limit'=>MysqlAdapter::TEXT_LONG,'null'=>true])\r\n ->addColumn('table1', 'string', ['after'=>'graph2'])\r\n ->addColumn('table2', 'string', ['after'=>'table1'])\r\n ->update();\r\n }", "public function edit()\n\t{\n\t\t//\n\t}", "public function edit() {\n\t\t\t\n\t\t}", "public function setChangeInternalName($value)\n {\n \t$this->_change_internal_name = $value;\n }", "public function update() {\n \n }", "public function change()\n {\n $table = $this->table('entrant_to_ticket');\n\n if (!$table->exists()) {\n $table\n ->addColumn('id_entrant', 'integer')\n ->addColumn('id_ticket', 'integer')\n ->addColumn('is_done', 'boolean', [\n 'default' => 0\n ])\n ->addColumn('rating', 'integer')\n ->addForeignKey('id_entrant', 'entrants')\n ->addForeignKey('id_ticket', 'tickets')\n\n ->addTimestamps('created', 'modified')\n ->save();\n }\n }", "public function Edit()\n\t{\n\t\t\n\t}", "public function edit()\n\t{\n\t\t\n\t}", "public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n }", "function after_change()\n\t{\n\t\treturn true;\n\t}", "public function Do_update_Example1(){\n\n\t}", "function __set($attributeToChange, $newValueToAssign) {\n //check that name is valid class attribute\n switch($attributeToChange) {\n case \"name\":\n $this->name = $newValueToAssign;\n break;\n case \"favoriteFood\":\n $this->favoriteFood = $newValueToAssign;\n break;\n case \"sound\":\n $this->sound = $newValueToAssign;\n break;\n default:\n echo $attributeToChange . \" was not found <br>\";\n }\n echo \"Set \" . $attributeToChange . \" to \" . $newValueToAssign . \"<br>\";\n }", "public function edit()\n {\n \n }", "function change() {\n\t\t$mainframe = JFactory::getApplication();\n\t\t// Check for request forgeries\n\t\tdefined('_JEXEC') or die('Invalid Token');\n\t\t$option = clm_core::$load->request_string('option', '');\n\t\t$section = clm_core::$load->request_string('section', '');\n\t\t$db = JFactory::getDBO();\n\t\t$table = JTable::getInstance('saisons', 'TableCLM');\n\t\t$table->load(1);\n\t\t$pub_1 = $table->archiv;\n\t\tif ($pub_1 == \"1\") {\n\t\t\t$table->archiv = 0;\n\t\t} else {\n\t\t\t$table->archiv = 1;\n\t\t}\n\t\t$table->store();\n\t\t$table->load(2);\n\t\t$pub_2 = $table->published;\n\t\tif ($pub_2 == \"1\") {\n\t\t\t$table->published = 0;\n\t\t} else {\n\t\t\t$table->published = 1;\n\t\t}\n\t\t$table->store();\n\t\t$msg = JText::_('SAISON_MSG_STATUS');\n\t\t$this->setMessage($msg);\n\t\t$this->setRedirect('index.php?option=' . $option . '&section=' . $section);\n\t}", "public function setChanged($changed) {\n $this->changed = $changed;\n }", "public function change(): void\n {\n $table = $this->table(\n EmployeeValues::TABLE_NAME, ['id' => false, 'primary_key' => ['id']]\n );\n\n $table->addColumn('id', Column::BINARYUUID, ['null' => false])\n ->addColumn('employer_id', Column::BINARYUUID, ['null' => true])\n ->addColumn('position_id', Column::BINARYUUID, ['null' => true])\n ->addColumn('status_id', Column::BINARYUUID, ['null' => true])\n ->addColumn(\n 'name', Column::STRING, ['null' => true, 'limit' => 100]\n )\n ->addColumn(\n 'initial', Column::STRING, ['null' => true, 'limit' => 5]\n )\n ->addColumn(\n 'email', Column::STRING, ['null' => true, 'limit' => 100]\n )\n ->addColumn('birthday', Column::DATETIME, ['null' => true])\n ->addColumn('created_at', Column::TIMESTAMP, ['null' => true])\n ->addColumn('updated_at', Column::TIMESTAMP, ['null' => true])\n ->addColumn('deleted_at', Column::TIMESTAMP, ['null' => true])\n ->addIndex(['employer_id'])\n ->addIndex(['status_id'])\n ->addIndex(['position_id'])\n ->addIndex(['email'])\n ->create()\n ;\n }", "protected function _update()\n\t{\n\t}", "function change()\n\t{\n\t\tglobal $errors, $db;\n\t\t\n\t\t$menuid = ( isset( $_GET[ 'menuid' ] ) ) ? intval( $_GET[ 'menuid' ] ) : 0;\n\t\t$title = $_POST[ 'newmenutitle' ];\n\t\t\n\t\t$sql = \"UPDATE \" . MORECONTENT_MENU_TABLE . \" SET menu_title='$title' WHERE menu_id='$menuid' LIMIT 1\";\n\t\tif ( !$db->sql_query( $sql ) )\n\t\t{\n\t\t\t$errors->report_error( 'Couldn\\'t modify', CRITICAL_ERROR );\n\t\t}\n\t\t\n\t\t$errors->report_error( $this->lang[ 'Menu_changed' ], MESSAGE );\n\t}", "public function testUpdate(): void { }", "public function setModified($value) {}", "public function __construct($changed) {\n $this->changed = $changed;\n }", "public function update()\n {\n # code...\n }", "public function change()\n {\n $tableAdmin=$this-> table('wtv_user',['id' => false, 'primary_key' => ['user_id']]);\n $tableAdmin\n ->addColumn('user_id','integer')\n ->addColumn('user_code','string',['limit'=>100,'null' => false])\n ->addColumn('user_first_name','string',['limit'=>100,'null' => false])\n ->addColumn('user_last_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_full_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_login_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_login_pass','string',['limit'=>300,'null' => false])\n ->addColumn('user_email','string',['limit'=>300,'null' => false])\n ->addColumn('user_phone','string',['limit'=>300,'null' => false])\n ->addColumn('user_city','string',['limit'=>300,'null' => false])\n ->addColumn('user_district','string',['limit'=>300,'null' => false])\n ->addColumn('user_address','string',['limit'=>300,'null' => false])\n ->addColumn('user_birthday','date',['null' => false])\n ->addColumn('user_url_image_alias','string',['limit'=>300,'null' => false])\n ->addColumn('user_url_background','string',['limit'=>300,'null' => false])\n ->addColumn('user_jog_present','string',['limit'=>300,'null' => false])\n ->addColumn('user_type_account','integer',['default'=>0,'null' => false])\n ->addColumn('created','date')\n ->save();\n }", "protected function update() {}", "public function edit()\n {\n \n }", "public function edit()\n {\n \n }", "public function edit()\n {\n \n }", "public function setToUpdate()\n\t{\n\t\t$this->todo = 2 ;\n\t}", "public function change()\n {\n $table = $this->table('site_instances');\n $table->addColumn('adapter', 'string')\n ->addColumn('endpoint', 'string')\n ->addColumn('last_retrieved', 'datetime', array('null' => true))\n ->addColumn('update_interval', 'integer', ['default' => 168])\n ->save();\n\n $table = $this->table('data');\n $table->addColumn('site_instance_id', 'integer')\n ->addColumn('key', 'string')\n ->addColumn('value', 'string')\n ->addColumn('timestamp', 'datetime')\n ->save();\n }", "public function edit( )\r\n {\r\n //\r\n }", "public function edit()\n {\n \n \n }", "public function change()\n {\n $table = $this->table('clients');\n $table->addColumn('cpf','string', ['null' => false, 'limit' => 11,'type' => 'unique'])\n ->addColumn('rg','string', ['null' => false,'limit' => 10,'type' => 'unique'])\n ->addColumn('nome','string', ['null' => false,'type' => 'unique'])\n ->addColumn('endereco','string', ['null' => false,])\n ->addColumn('dt_nasc','date', ['null' => false,])\n ->addColumn('email','string', ['null' => true,'type' => 'unique'])\n ->addColumn('telefone1','string', ['null' => false,'limit' => 9,])\n ->addColumn('telefone2','string', ['null' => true,'limit' => 9,])\n ->addColumn('created','datetime',[ 'null' => false,])\n ->addColumn('modified','datetime', ['null' => false,])\n ->create();\n\n\n }", "abstract protected function alter_set($name,$value);", "public function mutate();", "public function mutate();", "public function change()\n {\n\t\t$table=$this->table('comp_front_sources')\n\t\t\t\t\t->addColumn('main_title','string',array('null'=>true,'default'=>'标题','comment'=>'主标题'))\n\t\t\t\t\t->addColumn('sub_title','string',array('null'=>true,'comment'=>'副标题'))\n\t\t\t\t\t->addColumn('main_pic','string',array('null'=>true,'comment'=>'主要图片'))\n\t\t\t\t\t->addColumn('secondary_pic','string',array('null'=>true,'comment'=>'次要图片'))\n\t\t\t\t\t->addColumn('main_content','string',array('null'=>true,'default'=>'暂时没有内容','comment'=>'主要内容'))\n\t\t\t\t\t->addColumn('secondary_content','string',array('null'=>true,'comment'=>'次要内容'))\n\t\t\t\t\t->addColumn('main_figure','string',array('null'=>true,'comment'=>'主要数值'))\n\t\t\t\t\t->addColumn('secondary_figure','string',array('null'=>true,'comment'=>'次要数值'))\n\t\t\t\t\t->addColumn('parameter','string',array('null'=>true,'comment'=>'参数'))\n\t\t\t\t\t->addColumn('category','string',array('null'=>true,'default'=>'未分类','comment'=>'分类'))\n\t\t\t\t\t->addColumn('description','string',array('null'=>true,'comment'=>'备注'))\n\t\t\t\t\t->addColumn('created_at','integer', array('null'=>true))\n\t\t\t\t\t->save();\n\t}", "public function update(): void\n {\n }" ]
[ "0.84220856", "0.77724797", "0.7684455", "0.7491761", "0.7246021", "0.70399326", "0.6985738", "0.6881999", "0.6863309", "0.68304694", "0.6827935", "0.6820901", "0.68060434", "0.6794485", "0.6762704", "0.67552185", "0.6567749", "0.65439695", "0.6536283", "0.65323406", "0.6500581", "0.64875126", "0.64836705", "0.6463825", "0.64599097", "0.6454287", "0.64397967", "0.6436073", "0.6388684", "0.6387178", "0.6378512", "0.6374509", "0.63545483", "0.6325729", "0.63237506", "0.6292194", "0.62903583", "0.62903583", "0.62845147", "0.62845147", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.627775", "0.62690073", "0.62690073", "0.6266921", "0.62571406", "0.6249772", "0.62429607", "0.6222276", "0.6219861", "0.6210609", "0.6210609", "0.6187349", "0.61863095", "0.6168054", "0.61673886", "0.6144122", "0.61396366", "0.61310333", "0.6130848", "0.61294574", "0.61259276", "0.61224973", "0.611276", "0.61045134", "0.6098624", "0.60920453", "0.6084232", "0.60839224", "0.6054581", "0.6040344", "0.6039129", "0.603869", "0.60245705", "0.602105", "0.60182065", "0.60171354", "0.6014557", "0.6011264", "0.6011264", "0.6011264", "0.6008964", "0.59854466", "0.59834844", "0.5969936", "0.5962016", "0.59613883", "0.594385", "0.594385", "0.5942108", "0.59392357" ]
0.0
-1
PDO Constructor is not serializable, must override the construct method in order to use for mocking
public function __construct() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $pdoDouble = \\Mockery::mock('PDO');\n parent::__construct($pdoDouble);\n }", "public function __construct()\n {\n $this->pdo = $this->getPDO();\n }", "private function __construct() {\n try {\n $this->_pdo = new PDO(Config::get('mysql/dsn'), Config::get('mysql/user'), Config::get('mysql/pass'), Config::get('mysql/opt')); \n } catch(PODExeception $e) {\n die($e->getMessage());\n }\n }", "private function __construct()\n\t{\n\t\t$options = [\n\t\t PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,\n\t\t PDO::ATTR_EMULATE_PREPARES => false,\n\t\t];\n\t\tself::$instance = new PDO('mysql:host='.DBHOST.';dbname='.DBName, DBUsername, DBPassword, $options);\n\t}", "private function __construct()\r\n {\r\n $this->conn = new PDO(\r\n \"mysql:host={$this->host};\r\n dbname={$this->name}\",\r\n $this->user,\r\n $this->pass,\r\n array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES 'utf8'\")\r\n );\r\n $this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\r\n $this->conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\r\n $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n }", "function __construct()\n {\n $ATTR = array(\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n );\n\n // New PDO instance\n try{\n $this->_connect = new PDO($this->HOST, $this->USER, $this->PASS, $ATTR);\n } catch (PDOException $e) {\n $this->_error = $e->getMessage();\n }\n }", "public function __construct(PDO $pdo) {\n $this->pdo = $pdo;\n }", "public function __construct()\n {\n // Set the options parameter for the PDO connection.\n $options = array(\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING\n );\n\n // Generate a database connection using the PDO connector\n parent::__construct(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=utf8', DB_USER, DB_PASS, $options);\n }", "public function __construct(){\n \n $this->_db = new \\PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . '; charset=utf8', DB_USERNAME , DB_PASSWORD , array(\\PDO::ATTR_ERRMODE=>\\PDO::ERRMODE_WARNING,\\PDO::ATTR_DEFAULT_FETCH_MODE=>\\PDO::FETCH_OBJ));\n }", "public function __construct(protected PDO $connection)\n {\n }", "function __construct()\n {\n $this->db = new PDO ($this->dbSettings, $this->dbUsername, $this->dbPassword, $this->dbAttr);\n // TODO: Implement __construct() method.\n }", "private function __construct() {\n // PDO connection variables\n $host = DBHOST;\n $db = DBDATABASE;\n $user = DBUSER;\n $pass = DBPASS;\n $charset = \"utf8\";\n\n $dsn = \"mysql:host=$host;dbname=$db;charset=$charset\";\n // PDO options for error mode, default fetch mode and prepare statement eumulation\n $opt = [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n PDO:: ATTR_EMULATE_PREPARES => false,\n ];\n\n // try - catch block for error handling\n try {\n // new PDO connection with set parameters\n $this -> pdo = new PDO($dsn, $user, $pass, $opt);\n } catch(PDOException $e) {\n die($e -> getMessage());\n }\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct(PDO $db) {\n\n $this->conn = $db;\n }", "public function __construct() {\n $this->adapter = new PDOAdapter();\n }", "public function __construct()\n\t{\n\t\tglobal $conn;\n\t\t$this->pdo = $conn;\n\t}", "function __construct()\n {\n //$this->log->debug(\"Core: Loading...\");\n $this->dsn = \"mysql:host=\".getenv('dbHost').\";dbname=\".getenv('dbDatabase').\";charset=utf8\";\n $opt = [\n \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION,\n \\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_ASSOC,\n \\PDO::ATTR_EMULATE_PREPARES => false,\n ];\n $this->pdo = new \\PDO($this->dsn, getenv('dbUser'), getenv('dbPass'), $opt);\n var_dump($this->pdo->exec(\"SELECT VERSION();\"));\n }", "public function __construct($pdo)\n {\n $this->pdo = $pdo;\n }", "public function __construct($pdo)\n {\n $this->pdo = $pdo;\n }", "public function __construct()\n {\n $dsn = 'mysql:host='.$this->host.';port='.$this->porta.';dbname='.$this->banco;\n $opcoes = [\n //armazena em cache a conexao para ser reutilizada \n PDO::ATTR_PERSISTENT => TRUE,\n //lanca uma pdo exception se ocorrer um erro \n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n ];\n\n try {\n // cria a instancia do PDO \n $this->dbh = new PDO($dsn,$this->usuario,$this->senha,$opcoes);\n\n \n } catch (PDOException $e) {\n print \"Error!: \" . $e->getMessage() . \"<br/>\";\n die();\n }\n\n }", "private function __construct()\n {\n $dataSourceName = \"mysql:host=\" . DBHOST . \";dbname=\" . DBNAME . \";charset=utf8\";\n // on appelle le constructeur de la classe PDO\n $this->PDOInstance = new PDO($dataSourceName, DBUSER, DBPASSWD, array(\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));\n }", "public function __construct(){\n $conStr=sprintF(\"mysql:host=%s;dbname=%s\", \n self::DB_HOST, self::DB_NAME);\n try{\n $this->pdo = new PDO($conStr, self::DB_USER, self::DB_PASSWORD);\n\n }catch(PDOException $pe){\n\n die($pe->getMessage());\n\n }\n \n }", "public function __construct(PDO $service) {\n $this->_service = $service;\n }", "private function __construct() {\n\t\ttry \n\t\t{\n\t\t\t$this->pdo = new PDO($this->source, $this->user, $this->pass);\n\t\t} \n\t\tcatch (PDOException $e) \n\t\t{\n\t\t\tdie( $e->getMessage() );\n\t\t}\n\t}", "public function __construct(PdoAdapter $pdo) {\n parent::__construct($pdo);\n }", "function __construct()\n {\n $dsn = 'mysql:host='.$this->host.';dbname='.$this->db;\n try {\n $this->pdo = new PDO($dsn, $this->username, $this->pass);\n $this->pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE,PDO::FETCH_ASSOC);\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n } catch (PDOException $e) {\n print \"Error!: \" . $e->getMessage() . \"<br>\";\n die();\n }\n }", "function __construct(){\n $this->PDO = new \\PDO('mysql:host=localhost;dbname=u871927708_bsidb', 'u871927708_bsius', '@Admn642531'); //Conexão\n $this->PDO->setAttribute( \\PDO::ATTR_ERRMODE,\\PDO::ERRMODE_EXCEPTION ); //habilitando erros do PDO\n }", "public function __construct() {\n $obj = new DB();\n $this->db = $obj->pdo;\n \n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n }", "private function __construct()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// syntax différente de tableau :\n\t\t\t// $option = array(); = $option = [];\n\t\t\t$option =\n\t\t\t[\n\t\t\t\tPDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\",\n\t\t\t\tPDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // Signalisation des erreurs\n\t\t\t\tPDO::ATTR_EMULATE_PREPARES => false /* Vrai requêtes préparées */\n\t\t\t];\n\n\t\t\t$this->_PDOInstance = new PDO('mysql:host='.BDD_HOST.'; dbname='.BDD_DATABASE, BDD_USER, BDD_PASSWORD, $option);\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\texit(\"Connexion à MySQL impossible : \" . $e->getMessage());\n\t\t}\n\t}", "private function __construct()\n {\n try {\n $dsn = \"{$this->dbtype}:host={$this->dbhost};dbname={$this->dbname};charset=utf8\";\n $options = array(\n PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',\n );\n $this->dbConn = new PDO($dsn, $this->dbuser, $this->dbpass, $options);\n } catch (PDOException $e) {\n print 'Error!: ' . $e->getMessage();\n die();\n }\n }", "public function __construct(){\n //Conexão ao banco\n //Também poderia passar os dados como parâmetros no método construtor (bom para mais servidores, bancos ou usuários)\n $this -> connect = new PDO (\"mysql:host=localhost;dbname=dnphp7\", \"root\", \"\");\n }", "public function __construct()\n {\n // Connexion à la Base de Données\n $this->conn = new PDO(DATABASE, LOGIN, PASSWORD);\n \n }", "function __construct() {\n\t\t$this->dsn = \"mysql:host=\". DB_SERVER . \";dbname=\" . DB_NAME . \";charset=\" . DB_CHAR;\n\t\n\t $this->opt = [\n\t PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n\t PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n\t PDO::ATTR_EMULATE_PREPARES => false,\n\t ];\n\t\t$this->openConnection();\n\t}", "public function __construct()\n {\n $this->pdo = Db::getConnection();\n }", "public function __construct(){\n global $dbconnection;\n $this->pdo = $dbconnection->open(); \n }", "public function __construct() {\n $dsn = \"mysql:host=$this->host;dbname=$this->database;charset=$this->charset\";\n\n try {\n $this->pdo = new PDO($dsn, $this->username, $this->password);\n } catch (\\PDOException $e) {\n throw new \\PDOException($e->getMessage(), (int)$e->getCode());\n }\n }", "public function __construct(\\PDO $conn)\n {\n $this->conn = $conn;\n }", "function __construct()\r\n {\r\n try {\r\n $this->_dbh = new PDO(DB_DSN, DB_USERNAME, DB_PASSWORD);\r\n return _dbh;\r\n } catch (PDOException $e) {\r\n echo $e->getMessage();\r\n }\r\n }", "public function __construct(\\PDO $pdo)\n\t{\n\t // Set prepared statement emulation depending on server version\n\t $version = $pdo->getAttribute(\\PDO::ATTR_SERVER_VERSION);\n\n\t $pdo->setAttribute(\n\t \t\\PDO::ATTR_EMULATE_PREPARES,\n\t \tversion_compare($version, '5.1.17', '<')\n\t );\n\n\t\t$this->c = $pdo;\n\t\t$this->driver = $pdo->getAttribute(\\PDO::ATTR_DRIVER_NAME);\n\n\t\tswitch($this->driver)\n\t\t{\n\t\t\tcase 'pgsql':\n\t\t\tcase 'sqlsrv':\n\t\t\tcase 'dblib':\n\t\t\tcase 'mssql':\n\t\t\tcase 'sybase':\n\t\t\t\t$this->i = '\"';\n\t\t\t\tbreak;\n\t\t\tcase 'mysql':\n\t\t\tcase 'sqlite':\n\t\t\tcase 'sqlite2':\n\t\t\tdefault:\n\t\t\t\t$this->i = '`';\n\t\t}\n\t}", "function __construct () {\r\n // PARAM : DB_HOST, DB_CHARSET, DB_NAME, DB_USER, DB_PASSWORD\r\n \r\n try {\r\n $this->pdo = new PDO(\r\n \"mysql:host=\" . DB_HOST . \";dbname=\" . DB_NAME . \";charset=\" . DB_CHARSET, DB_USER, DB_PASSWORD, [\r\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\r\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\r\n PDO::ATTR_EMULATE_PREPARES => false\r\n ]\r\n );\r\n return true;\r\n } catch (Exception $ex) {\r\n $this->CB->verbose(0, \"DB\", $ex->getMessage(), \"\", 1);\r\n }\r\n }", "public function __construct() {\n // Handle Exceptions\n try {\n // Setup PDO attributes\n $options = [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,\n ];\n \n // Create a PDO Object\n $this->db = new PDO(self::DSN, self::UN, self::PW, $options);\n \n } catch (PDOException $e) {\n // Output Connection Errors\n echo $e->getMessage();\n // End the script's execution\n exit();\n }\n }", "private function __construct(PDO &$pdo) {\n $this->_pdo =& $pdo;\n }", "public function __construct($pdo) {\n $this->pdo = $pdo;\n //I am not sure if you have everything set up correctly in DB\n $this->createTableWithData();\n }", "public function static_construct()\n {\n if (!self::$pdo instanceof PDO) {\n self::$pdo = new PDO(DB_CONNECTION_STRING, DB_USERNAME, DB_PASSWORD);\n }\n }", "public function __construct()\n {\n $bool = ENV == 'dev';\n try {\n $this->dbo = parent::__construct(\"pgsql:host=\" . DBHOST . \"; port=\" . $this->bdd_port . \"; dbname=\" . DBNAME, DBUSER, DBPASSWD,\n array(PDO::ATTR_PERSISTENT => true, PDO::ATTR_ERRMODE => $bool, PDO::ERRMODE_EXCEPTION => $bool));\n $this->query(\"set names 'utf8';\");\n } catch (PDOException $e) {\n echo 'Echec lors de la connexion à la base de données : ' . $e->getMessage();\n }\n }", "public function __construct() {\n $conStr = sprintf(\"mysql:host=%s;dbname=%s;charset=utf8\", self::DB_HOST, self::DB_NAME);\n\n try {\n $this->pdo = new PDO($conStr, self::DB_USER, self::DB_PASSWORD);\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n }", "protected function __construct(){\n if (!is_object(self::$connector)) {\n \n if(isset(self::$config['socket']) && !empty(self::$config['socket'])){\n $connectionString = self::$config['socket'].\";dbname=\".self::$config['base'];\n }else{\n $connectionString = self::$config['type'].\":host=\".self::$config['host'].\";dbname=\".self::$config['base'];\n }\n \n $username = self::$config['log'];\n $password = self::$config['pass'];\n \n try{\n $connector = new PDO($connectionString, $username, $password);\n $connector->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $connector->query(\"SET NAMES utf8\");\n $this->setConnector($connector);\n }catch(Exception $e){\n //if the ORM is used with the Jet framework, use the Log class\n if(class_exists('Log')){\n Log::fatal($e);\n }else{\n trigger_error($e->getMessage(), E_USER_ERROR);\n }\n }\n }\n }", "public function __CONSTRUCT(){\n try {\n $this->pdo=DataBase::openDB();\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "public function __construct(){\n // algo que fará toda vez que a classe é 'instanciada'\n $this->conn = new PDO(\"mysql:host=localhost;dbname=dbphp7\",\"root\",\"\"); // parametros de conexão\n }", "public function __construct($pdo = null){\r\n\t\tself::$_pdo = $pdo;\r\n\t}", "public function __construct(){\n\t\t$dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->dbname;\n\t\t\n\t\t//Set options\n\t\t$options = array(\n\t\t\tPDO::ATTR_PERSISTENT => true,\n\t\t\tPDO::ATTR_ERRMODE\t => PDO::ERRMODE_EXCEPTION\n\t\t);\n\t\t\n\t\t//Create a new PDO instance\n\t\ttry {\n\t\t\t$this->dbh = new PDO($dsn, $this->user, $this->pass, $options);\n\t\t}\n\t\t//Catch any errors\n\t\tcatch(\\PDOException $e){\n\t\t\t$this->error = $e->getMessage();\n\t\t}\n\t\t\n\t}", "public function __construct(){\n \n try { \n $this->con = new PDO(\"mysql:host=$this->host;dbname=$this->db\", $this->user, $this->pwd); \n $this->con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); \n $this->con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n } \n catch(PDOException $e) { \n echo $e->getMessage();\n }\n \n }", "public function getPdo(): \\PDO;", "public function __construct(ZingPDO $pdo, $params = array()) {\n\t\tparent::__construct($pdo);\n\t\t$created = new TDateTime();\n\t\t$expires = new TDateTime(-1);\n\t\t$this->created = $created->__toString();\n\t\t$this->expires = $expires->__toString();\n\t\t$this->processParams($params);\n\t\t$this->setDirty(false);\n\t}", "public function __construct()\n {\n\n try {\n $this->pdo = new PDO($this->dsn, self::USERNAME, self::PASSWORD, $this->options);\n } catch (Exception $e) {\n error_log($e->getMessage());\n exit('Connection Failed');\n }\n\n }", "private function __construct()\n { \n $host = getenv('DB_HOST');\n $port = getenv('DB_PORT');\n $db = getenv('DB_DATABASE');\n $user = getenv('DB_USERNAME');\n $pass = getenv('DB_PASSWORD');\n\n try {\n $this->_pdo = new \\PDO(\n \"mysql:host=$host;port=$port;charset=utf8mb4;dbname=$db\",\n $user,\n $pass\n );\n // $this->_pdo->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n // $this->_pdo->setAttribute(\\PDO::ATTR_EMULATE_PREPARES, false);\n } catch (\\PDOException $e) {\n exit($e->getMessage());\n die();\n\n }\n\n\n }", "public function getPDO(): PDO;", "public function testCreation(){\n $cleanPDO = new cleanPDO($this->goodConfig);\n $this->assertInstanceOf(\"EmitterDatabaseHandler\\Utils\\cleanPDO\", $cleanPDO);\n }", "public function __construct()\n {\n global $database;\n $db = new PDO($database['connstring'],$database['username'],$database['password']) or die(\"Database Problemo\");\n $this->_db = $db;\n return true;\n }", "public function __construct()\n {\n $dsn = 'mysql:host=' . Config::DB_HOST . ';dbname=' . Config::DB_NAME . ';port=' . Config::DB_PORT;\n try {\n $this->connection = new \\PDO($dsn, Config::DB_USER, Config::DB_PASS);\n } catch (\\PDOException $e) {\n throw new \\PDOException($e->getMessage());\n }\n }", "public function __construct()\n {\n $con = new PDO('mysql:host=localhost;dbname=inventorymanagement', 'root', '');\n $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n $con->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n $this->setDbConx($con);\n }", "public function __construct() {\n\n //connecting to the databse using php data objects \n\t$this -> conn = new PDO(\"mysql:host=\".$this -> host.\";dbname=\".$this -> db, $this -> user, $this -> pass);\n\n}", "public function __construct(PDO $db)\n {\n $this->db = $db;\n }", "public function __construct(\\PDO $db)\n {\n $this->_db = $db;\n }", "public static function getPDO() : PDO;", "public function __construct()\n {\n $database = new Database();\n $dbConnection = $database->dbConnection();\n $this->pdo = $dbConnection;\n }", "private function __construct()\n {\n $this->conn = new PDO(\"mysql:host={$this->host};\n dbname={$this->name}\", $this->user,$this->pass, $this->opt);\n }", "private function __construct(){\n try {\n $this->dbh = Conexion::singleton_conexion();\n } catch (PDOException $e) {\n print \"Error!: \" . $e->getMessage();\n die();\n }\n }", "function __construct(PDO &$p_connection, array $param = array())\n {\n $this->connection = $p_connection;\n if (!is_array($this->paramori)) {\n $this->paramori = $param;\n }\n if (!is_array($this->param)) {\n $this->param = $param;\n }\n /*\n * configuration de la connexion\n */\n $this->typeDatabase = $this->connection->getAttribute($p_connection::ATTR_DRIVER_NAME);\n\n $this->connection->setAttribute($p_connection::ATTR_DEFAULT_FETCH_MODE, $p_connection::FETCH_ASSOC);\n /*\n * Preparation des tableaux intermediaires a partir du tableau $colonnes\n */\n if (is_array($this->colonnes)) {\n $this->keys = array();\n $nbcle = 0;\n foreach ($this->colonnes as $key => $value) {\n /*\n * Preparation du tableau des cles\n */\n if ($value[\"key\"] == 1 || $value[\"cle\"] == 1) {\n $this->keys[] = $key;\n $nbcle++;\n $this->cle = $key;\n }\n /*\n * Affectation de l'attribut parent\n */\n if (strlen($value[\"parentAttrib\"]) > 0) {\n $this->parentAttrib = $key;\n }\n }\n\n /*\n * Analyse de la cle\n */\n if ($nbcle < 2) {\n $this->cleMultiple = 0;\n } else {\n $this->cleMultiple = 1;\n $this->cle = \"\";\n }\n }\n /*\n * Integration des parametres utilisateur\n */\n $this->setParam($param);\n /*\n * Integration du codage UTF8\n */\n\n if ($this->UTF8) {\n if ($this->typeDatabase == \"mysql\") {\n $this->connection->exec(\"set names 'utf8'\");\n } else {\n $this->connection->exec(\"SET CLIENT_ENCODING TO UTF8\");\n }\n }\n /*\n * Definition du mode de gestion des erreurs\n */\n if ($this->debug_mode > 0) {\n $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } else {\n $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);\n }\n /*\n * Ajout du identifier quote character\n */\n if ($this->typeDatabase == 'pgsql') {\n $this->quoteIdentifier = '\"';\n } elseif ($this->typeDatabase == 'mysql') {\n $this->quoteIdentifier = '`';\n }\n }", "public function __construct(\\PDO $db)\n {\n $this->db = $db;\n }", "public function __construct() {\n\t\ttry {\n\t\t\t$this->conn = new \\PDO(DRIVER . ':dbname=' . DBNAME . ';host=' . HOST, USERNAME, PASSWORD);\n\t\t\t$this->conn->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\t\t} catch (PDOException $e) {\n\t\t\techo $e->getMessage();\n\t\t\tdie();\n\t\t}\n\t}", "public function __construct()\n {\n $this->m_DataAccess = new PDOMySQLActorrDataModel();\n }", "function __construct(){\n try{\n $this->dbConnection = new PDO('mysql:host='.Config::get('db/host').';dbname='.Config::get('db/database'),Config::get('db/username'),Config::get('db/password'));\n $this->dbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(Exception $e){\n die($e->getMessage());\n }\n \n }", "public function __construct()\r\n {\r\n try {\r\n $this->conn = new PDO(\"mysql:host=$this->host;dbname=$this->dbname;charset=utf8\", $this->user, $this->pass);\r\n } catch (PDOException $e) {\r\n echo 'Connection failed: ' . $e->getMessage();\r\n }\r\n }", "function __constructor($conn){\n $this->db = $conn;\n }", "public function __construct($PDO, $PDOStatement) {\r\n\t\t$this->PDO = $PDO;\r\n\t\t$this->PDOStatement = $PDOStatement;\r\n\t}", "private function __construct()\n {\n $dsn = 'mysql:host=' . Config::read('db.host') .\n ';dbname=' . Config::read('db.basename') .\n ';charset=utf8';\n\n $user \t\t= Config::read('db.user');\n $password \t= Config::read('db.password');\n\n $this->dbh \t= new PDO($dsn, $user, $password);\n }", "public function __construct(){\n\n $this->conn = new PDO(\"mysql:host=\".$this->host.\";dbname=\".$this->db,$this->user,$this->pass);\n }", "public function __construct(){\n\t\t//connect to PDO here.\n\t\t$this->db = new \\helpers\\database();\n\n\t}", "public function __construct()\n {\n // open database connection\n $conStr = sprintf(\"mysql:host=%s;dbname=%s\", self::DB_HOST, self::DB_NAME);\n try {\n $this->pdo = new PDO($conStr, self::DB_USER, self::DB_PASSWORD);\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n }", "public function __construct()\n\t{\n\t\t$this->conn = new PDO(\"mysql:host=localhost;dbname=dbphp7\", \"root\", \"\");\n\t}", "public function __construct()\n {\n $dbclass = new DB();\n $this->_db = $dbclass->pdo;\n }", "private function __construct()\n {\n try {\n $this->_pdo = new PDO(\"mysql:host=\" . HOST . \";dbname=\" . DB, USER, PASS);\n $this->_pdo->exec(\"set names \" . CHARSET);\n } catch(PDOException $e) {\n die($e->getMessage());\n }\n }", "public function __construct () \n\t{\n\t\trequire_once(\"./inc/connect_pdo.php\");\n\t\t$this->dbo = $dbo;\n\t\t\n\t}", "public function __construct() {\n // Set DSN\n $dsn = 'mysql:host='.$this->host.';dbname='.$this->dbName;\n $options = array(\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n );\n \n // Create PDO Instance.\n try {\n $this->dbh = new PDO($dsn, $this->user, $this->pass, $options);\n } catch(PDOException $e) {\n $this->error = $e->getMessage();\n echo $this->error;\n }\n }", "private function __construct() {\n\t\tself::$conexao = new PDO(\"mysql:dbname=\" . BD . \";host=\" . HOST, USUARIO, SENHA, array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\t\tself::$conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\tself::$conexao->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n\t}", "private function __construct(){\n try{\n $this->_pdo=new PDO(\"mysql:host=\".config::get(\"mysql/host\").\";dbname=\".config::get(\"mysql/db\"),config::get(\"mysql/username\"),config::get(\"mysql/password\"));\n\n\n\n } catch(PDOException $e){\n echo $e->getMessage();\n die();\n }\n\n\n }", "public function __construct()\n\t\t{\n\t\t\tbaseDao::__construct();\n\t\t}", "public function __construct($config, $pdo=null) {\n\t\t\n if($pdo instanceof \\PDO)\n {\n $this->pdo = $pdo;\n }\n else\n {\n // clean config for PDO\n $config = array_intersect_key($config, array(\n 'dsn' => true,\n 'user' => true,\n 'password' => true,\n ));\n \n $this->pdo = new \\PDO($config['dsn'], $config['user'], $config['password']);\n }\n\t}", "protected function __construct()\n {\n //\\App\\showMessage::showM(' - db construct - ');\n //die();\n echo (' - Db constr');\n $this->dbh = new \\PDO('mysql:host=127.0.0.1;dbname=test', 'root', '');\n\n //var_dump($this->dbh);\n \n }", "public function __construct(\\PDO $pdo, array $config)\n\t{\n\t\t$this->pdo = $pdo;\n\t\t$this->config = $config;\n\t\t$this->driver = $pdo->getAttribute(\\PDO::ATTR_DRIVER_NAME);\n\t}" ]
[ "0.742327", "0.71451443", "0.7118545", "0.71006024", "0.70451593", "0.70132923", "0.70102", "0.699694", "0.6970447", "0.69565636", "0.69480515", "0.6888187", "0.6863733", "0.6863733", "0.6863733", "0.6863733", "0.6854249", "0.68516815", "0.68472075", "0.6842344", "0.6822993", "0.6822993", "0.68101126", "0.68022734", "0.67996544", "0.6784632", "0.6778812", "0.6776808", "0.6769293", "0.676195", "0.67430514", "0.67413205", "0.67413205", "0.67413205", "0.67413205", "0.67413205", "0.67413205", "0.67413205", "0.6722835", "0.67167443", "0.67139065", "0.6705542", "0.6703626", "0.6698945", "0.66986626", "0.6688184", "0.66809493", "0.6665289", "0.66619414", "0.66598046", "0.6657707", "0.665725", "0.6656936", "0.6647754", "0.66394955", "0.6632527", "0.6624446", "0.6620199", "0.6619639", "0.6616069", "0.66138357", "0.6610905", "0.65973616", "0.659155", "0.6583983", "0.6578087", "0.6576377", "0.65708244", "0.65658456", "0.6562271", "0.6561932", "0.6561758", "0.65589017", "0.6554986", "0.65441716", "0.65420246", "0.6539752", "0.65359086", "0.65288424", "0.65270925", "0.65180534", "0.6516656", "0.6516307", "0.6513885", "0.6513517", "0.6512787", "0.6505075", "0.64944714", "0.64861095", "0.64810044", "0.6480442", "0.64765", "0.64742184", "0.6473541", "0.6459752", "0.64501566", "0.6441095", "0.6439864", "0.6435158", "0.6427569", "0.6423546" ]
0.0
-1
Throttle rules [ '1:60', // one hit per minute '3:300', // 3 hits per 5 minutes ]
abstract public function rules();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function http_throttle($sec = null, $bytes = null) {}", "public function hit()\n {\n app(RateLimiter::class)->hit($this->rateLimiterKey, $this->decayTime);\n }", "function ratelimit(array $data);", "public static function getThrottleDelay() {}", "protected function messageThrottle()\n {\n if ($this->isThrottled($this->conn, 'onMessage')) {\n echo \"Message throttled: {$this->conn->resourceId} \\n\";\n\n $this->log->info(\"Message throttled: {$this->conn->resourceId} \");\n\n $this->conn->close();\n }\n }", "function rate_limit($key, $interval, $max, $error = 'Slow down a bit, yo.')\n{\n $unit = round(time() / $interval);\n $key .= '-'.$unit;\n $count = 0;\n\n if (apcu_exists($key)) {\n $count = apcu_fetch($key);\n if ($count >= $max) {\n throw new Exception($error);\n }\n }\n\n $count++;\n apcu_store($key, $count, $interval);\n\n return $count;\n}", "function rate_limit($key, $interval, $max, $error = 'Slow down a bit, yo.')\n{\n $unit = round(time() / $interval);\n $key .= '-'.$unit;\n $count = 0;\n\n if (apcu_exists($key)) {\n $count = apcu_fetch($key);\n if ($count >= $max) {\n throw new Exception($error);\n }\n }\n\n $count++;\n apcu_store($key, $count, $interval);\n\n return $count;\n}", "function ratelimit($userid,$conn){\n $sql=\"SELECT COUNT(userId) AS total FROM message AS m WHERE m.userId = $userid AND m.timePlaced >= now() - interval 5 minute\";\n\n $result = $conn->query($sql);\n\n $total=$result->fetch_assoc()['total'];\n if ($total<=5){\n return true;\n }else{\n return false;\n }\n}", "private function checkApiRequestsLimit()\n {\n $tempTime = time() - $this->startTime;\n if($this->apiRequestsCount >= $this->apiRequestsLimit && $tempTime < $this->apiTimeLimit) {\n usleep(($this->apiTimeLimit - $tempTime)*1000000);\n $this->apiRequestsCount = 1;\n $this->startTime = time();\n } else {\n $this->apiRequestsCount++;\n }\n }", "public static function setThrottleDelay($seconds) {}", "function monitor_slow_urls()\n{\n if (isset($_SERVER['REQUEST_TIME_FLOAT'])) {\n $time = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];\n $slow = ($time > floatval(get_value('monitor_slow_urls')));\n } else {\n $time = time() - $_SERVER['REQUEST_TIME'];\n $slow = ($time > intval(get_value('monitor_slow_urls')));\n }\n if ($slow) {\n require_code('urls');\n if (php_function_allowed('error_log')) {\n error_log('Over time limit @ ' . get_self_url_easy(true) . \"\\t\" . strval($time) . ' secs' . \"\\t\" . date('Y-m-d H:i:s', time()), 0);\n }\n }\n}", "protected function configureRateLimiting()\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60);\n });\n }", "#[@test, @limit(time= 0.010)]\n public function timeouts() {\n $start= gettimeofday();\n $end= (1000000 * $start['sec']) + $start['usec'] + 1000 * 50; // 0.05 seconds\n do {\n $now= gettimeofday();\n } while ((1000000 * $now['sec']) + $now['usec'] < $end);\n }", "protected function sleep(){\n flush();\n $s = ($this->throttleTime == 1) ? '' : 's';\n $this->log(\"Request was throttled, Sleeping for \".$this->throttleTime.\" second$s\",'Throttle');\n sleep($this->throttleTime);\n }", "function bump_request_timeout() {\n\t\treturn 60;\n\t}", "protected function configureRateLimiting(): void\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());\n });\n }", "protected function configureRateLimiting(): void\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());\n });\n }", "function wp_change_request_timeout($time) {\n return 10; //new number of seconds\n}", "private function limitCalls()\n {\n if ($this->lastCallTimestamp > 0) {\n $callsLimit = $this->shopifyClient->callLimit();\n $callsMade = $this->shopifyClient->callsMade();\n $callsLeft = $this->shopifyClient->callsLeft();\n\n Log::debug(\"ShopifyApi.limitCalls: callsLimit=$callsLimit, callsMade=$callsMade, callsLeft=$callsLeft\");\n $currentTimestamp = microtime(true);\n $deltaTimestamp = ($this->lastCallTimestamp > 0) ? $currentTimestamp - $this->lastCallTimestamp : 0;\n Log::debug(\"ShopifyApi.limitCalls: deltaTimestamp=$deltaTimestamp\");\n\n if ($callsLeft < 10) {\n Log::debug(\"ShopifyApi.limitCalls: DELTA < 10: wait 0.5 seconds\");\n usleep(500000);\n }\n } else {\n Log::debug(\"ShopifyApi.limitCalls: first call\");\n }\n $this->lastCallTimestamp = microtime(true);\n }", "protected function limitCallRate()\n {\n if (!$this->callRateLimit) {\n return;\n }\n $now = microtime(true);\n $callIntervalActual = $now - $this->callTimeLast;\n $callIntervalNeeded = 1 / $this->callRateLimit;\n $callDelayNeeded = $callIntervalNeeded - $callIntervalActual;\n if ($callDelayNeeded > 0) {\n usleep($callDelayNeeded * 1000000); // Seconds to microseconds\n }\n $this->callTimeLast = $now;\n }", "public function testRateLimit()\n {\n $this->markTestIncomplete('Not yet implemented.');\n }", "public function testIsThrottled()\n {\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $repo = m::mock('Zizaco\\Confide\\RepositoryInterface');\n $passService = m::mock('Zizaco\\Confide\\PasswordServiceInterface');\n $loginThrottler = m::mock('Zizaco\\Confide\\LoginThrottleServiceInterface');\n\n $confide = m::mock(\n 'Zizaco\\Confide\\Confide[isThrottled]',\n [$repo, $passService, $loginThrottler, $app]\n );\n\n $userEmail = 'someone@somewhere.com';\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n $confide->shouldReceive('isThrottled')\n ->passthru();\n\n $loginThrottler->shouldReceive('isThrottled')\n ->once()->with($userEmail)\n ->andReturn(true);\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n $this->assertTrue($confide->isThrottled($userEmail));\n }", "public function throttleKey()\n {\n return \\Str::lower(request('email')) . '|' . request()->ip();\n }", "function PageSpeedGetRuleDoc($rule)\n{\n $rules = array(\n 'AvoidBadRequests' => 'rtt.html#AvoidBadRequests',\n 'AvoidCssImport' => 'rtt.html#AvoidCssImport',\n 'AvoidDocumentWrite' => 'rtt.html#AvoidDocumentWrite',\n 'CombineExternalCss' => 'rtt.html#CombineExternalCSS',\n 'CombineExternalJavaScript' => 'rtt.html#CombineExternalJS',\n 'EnableGzipCompression' => 'payload.html#GzipCompression',\n 'EnableKeepAlive' => 'rtt.html#EnableKeepAlive',\n 'InlineSmallCss' => 'caching.html#InlineSmallResources',\n 'InlineSmallJavaScript' => 'caching.html#InlineSmallResources',\n 'LeverageBrowserCaching' => 'caching.html#LeverageBrowserCaching',\n 'MinifyCss' => 'payload.html#MinifyCSS',\n 'MinifyHTML' => 'payload.html#MinifyHTML',\n 'MinifyJavaScript' => 'payload.html#MinifyJS',\n 'MinimizeDnsLookups' => 'rtt.html#MinimizeDNSLookups',\n 'MinimizeRedirects' => 'rtt.html#AvoidRedirects',\n 'MinimizeRequestSize' => 'request.html#MinimizeRequestSize',\n 'OptimizeImages' => 'payload.html#CompressImages',\n 'OptimizeTheOrderOfStylesAndScripts' => 'rtt.html#PutStylesBeforeScripts',\n 'ParallelizeDownloadsAcrossHostnames' => 'rtt.html#ParallelizeDownloads',\n 'PreferAsyncResources' => 'rtt.html#PreferAsyncResources',\n 'PutCssInTheDocumentHead' => 'rendering.html#PutCSSInHead',\n 'RemoveQueryStringsFromStaticResources' => 'caching.html#LeverageProxyCaching',\n 'ServeResourcesFromAConsistentUrl' => 'payload.html#duplicate_resources',\n 'ServeScaledImages' => 'payload.html#ScaleImages',\n 'SpecifyACacheValidator' => 'caching.html#LeverageBrowserCaching',\n 'SpecifyAVaryAcceptEncodingHeader' => 'caching.html#LeverageProxyCaching',\n 'SpecifyCharsetEarly' => 'rendering.html#SpecifyCharsetEarly',\n 'SpecifyImageDimensions' => 'rendering.html#SpecifyImageDimensions',\n 'SpriteImages' => 'rtt.html#SpriteImages');\n\n $url = null;\n if( isset($rules[$rule]) )\n $url = 'http://code.google.com/speed/page-speed/docs/' . $rules[$rule];\n \n return $url;\n}", "protected function configureRateLimiting()\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());\n });\n }", "protected function configureRateLimiting()\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());\n });\n }", "protected function configureRateLimiting()\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());\n });\n }", "protected function configureRateLimiting()\n {\n RateLimiter::for('api', function (Request $request) {\n return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());\n });\n }", "public function blocked($request, $dailyLimit)\n {\n\n $dailyLimit = (int) $dailyLimit;\n $ip = $request->getClientIp();\n $user_agent = $request->header('User-Agent');\n $fake_mode = $this->config['fake_mode'];\n $log_blocked_requests = $this->config['log_blocked_requests'];\n $allow_logged_user = $this->config['allow_logged_user'];\n\n $full_url = substr($request->fullUrl(), strlen($request->getScheme(). \"://\")); # Get the URL without scheme\n\n $key_identifier = Auth::check() ? Auth::id() : $ip;\n $key_access_count = \"block_bot:{$key_identifier}\";\n\n $number_of_hits = 1;\n\n // Lets get the total count, or create a new key for him\n if(!Redis::exists($key_access_count))\n {\n $end_of_day_unix_timestamp = Carbon::tomorrow()->startOfDay()->timestamp;\n Redis::set($key_access_count, 1);\n Redis::expireat($key_access_count, $end_of_day_unix_timestamp);\n }\n else{\n $number_of_hits = Redis::incr($key_access_count);\n }\n\n $over_the_limit = $number_of_hits > $dailyLimit;\n $is_user_logged = $allow_logged_user && Auth::check();\n\n\n if(!$over_the_limit || $is_user_logged || $this->isWhitelisted($ip, $user_agent))\n {\n return false;\n }\n else{\n if ($log_blocked_requests){\n $key_notified = \"block_bot:notified:{$ip}\";\n if (!Redis::exists($key_notified)) {\n $end_of_day_unix_timestamp = Carbon::tomorrow()->startOfDay()->timestamp;\n Redis::set($key_notified, 1);\n Redis::expireat($key_notified, $end_of_day_unix_timestamp);\n if (Auth::guest()) {\n \\Potelo\\LaravelBlockBots\\Jobs\\ProcessLogWithIpInfo::dispatch($ip, $user_agent, 'BLOCKED', $full_url);\n }\n }\n }\n\n if ($fake_mode) {\n return false;\n } else {\n if (Auth::check() && $number_of_hits == $dailyLimit + 1) {\n event(new UserBlockedEvent(Auth::user(), $number_of_hits, Carbon::now()));\n }\n return true;\n }\n }\n }", "private function isRateLimitReached()\n {\n if (!$this->getRateLimit()) {\n throw new InstagramThrottleException('400 Bad Request : You have reached Instagram API Rate Limit', 400);\n }\n }", "public function __construct()\n {\n $this->middleware('throttle:20,1');\n \n event(new ApiRequest());\n }", "public function throttleKey(): string\n {\n return Str::lower(request('email')) . '|' . request()->ip();\n }", "protected function registerThrottleCheckpoint()\n {\n $this->registerThrottling();\n\n $this->app->singleton('sentinel.checkpoint.throttle', function ($app) {\n return new ThrottleCheckpoint(\n $app['sentinel.throttling'],\n $app['request']->getClientIp()\n );\n });\n }", "function tpc_get_stats() {\n\ttry {\n\t\tglobal $ydb;\n\n\t\t//Process `url` or `shorturl` parameter\n\t\tif(!isset($_REQUEST[\"url\"]) && !isset($_REQUEST[\"shorturl\"])) {\n\t\t\treturn array(\n\t\t\t\t\"errorCode\" => 400,\n\t\t\t\t\"message\" => \"error: Missing 'url' or 'shorturl' parameter.\",\n\t\t\t);\t\n\t\t}\n\n\t\tif(isset($_REQUEST[\"url\"])) {\n\t\t\t$keywords = tpc_get_url_keywords($_REQUEST[\"url\"]);\n\t\t} else {\n\t\t\t$pos = strrpos($_REQUEST[\"shorturl\"], \"/\");\n\t\t\t//Accept \"http://sho.rt/abc\"\n\t\t\tif($pos !== false) {\n\t\t\t\t$keywords = array(substr($_REQUEST[\"shorturl\"], $pos + 1));\n\t\t\t//Accept \"abc\"\n\t\t\t} else {\n\t\t\t\t$keywords = array($_REQUEST[\"shorturl\"]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(empty($keywords[0]) || !yourls_is_shorturl($keywords[0])) {\n\t\t\treturn array(\n\t\t\t\t\"errorCode\" => 404,\n\t\t\t\t\"message\" => \"error: not found\",\n\t\t\t);\t\n\t\t}\n\t\t\n\t\t//Process `since` and `until` parameters.\n\t\tif(isset($_REQUEST[\"since\"])) {\n\t\t\t$since = intval($_REQUEST[\"since\"]);\n\t\t} else {\n\t\t\t$since = 0; //Default to the Unix Epoch\n\t\t}\n\n\t\tif(isset($_REQUEST[\"until\"])) {\n\t\t\t$until = intval($_REQUEST[\"until\"]);\n\t\t} else {\n\t\t\t$until = time(); //Default to now\n\t\t}\n\n\t\tif($since >= $until) {\n\t\t\treturn array(\n\t\t\t\t\"errorCode\" => 400,\n\t\t\t\t\"message\" => \"error: The 'since' value ($since) must be smaller than the 'until' value ($until).\",\n\t\t\t);\n\t\t}\n\t\t\n\t\t$params = array(\n\t\t\t\"shorturls\" => $keywords,\n\t\t\t\"since\" => date(\"Y-m-d H:i:s\", $since),\n\t\t\t\"until\" => date(\"Y-m-d H:i:s\", $until),\n\t\t);\n\t\n\t $sql = \"SELECT COUNT(*)\n\t FROM \" . YOURLS_DB_TABLE_LOG . \"\n\t WHERE\n\t\t\t\t\tshorturl IN (:shorturls) AND\n\t\t\t\t\tclick_time > :since AND\n\t\t\t\t\tclick_time <= :until\";\n\n\t\t$result = $ydb->fetchValue($sql, $params);\n\n\t\treturn array(\n\t\t\t\"statusCode\" => 200,\n\t\t\t\"message\" => \"success\",\n\t\t\t\"url-stats-period\" => array(\n\t\t\t\t\"clicks\" => $result\n\t\t\t)\n\t\t);\n\t} catch (Exception $e) {\n\t\treturn array(\n\t\t\t\"errorCode\" => 500,\n\t\t\t\"message\" => \"error: \" . $e->getMessage(),\n\t\t);\n\t}\n}", "private function parseRateLimitAndCache() {\n\n $rateLimited = false;\n $rateLimit = null;\n $rateLimitMultiplier = null;\n $cached = false;\n $cacheTime = null;\n\n foreach ($this->interceptors as $interceptor) {\n $inspector = $this->classInspectorProvider->getClassInspector(get_class($interceptor));\n $annotations = $inspector->getClassAnnotations();\n\n // Derive rate limit config\n $rateLimited = $rateLimited || isset($annotations[\"rateLimited\"]);\n if (!$rateLimit) $rateLimit = isset($annotations[\"rateLimit\"][0]) ? $annotations[\"rateLimit\"][0]->getValue() : null;\n if (!$rateLimitMultiplier) $rateLimitMultiplier = isset($annotations[\"rateLimitMultiplier\"][0]) ? $annotations[\"rateLimitMultiplier\"][0]->getValue() : null;\n\n // Derive cache config\n $cached = $cached || isset($annotations[\"cached\"]);\n if (!$cacheTime) $cacheTime = isset($annotations[\"cacheTime\"][0]) ? $annotations[\"cacheTime\"][0]->getValue() : null;\n\n }\n\n // Only set the cache and ratelimit configs if any exist.\n if ($cached || $cacheTime) $this->contentCacheConfig = new ContentCacheConfig($cacheTime);\n if ($rateLimited || $rateLimit || $rateLimitMultiplier) $this->rateLimiterConfig = new RateLimiterConfig($rateLimit, $rateLimitMultiplier);\n }", "public function request_manager( )\n\t{\n\t\t$last_request = $this->php_session->get('last_request');\n\t\t//5 second interval\n\t\tif( $last_request+5 >= time() )\n\t\t{\n\t\t\t$req_count = $this->php_session->get('request_count');\n\t\t\t$req_count += 1;\n\t\t\t$this->php_session->set('request_count' , $req_count);\n\t\t\tif( $req_count >= 20 )\n\t\t\t\t$this->error('Too many HTTP requests from your session.');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->php_session->set('request_count' , 0 );\n\t\t}\n\t\t$this->php_session->set('last_request' , time( ) );\n\t\t\t\n\t}", "private function _checkRateLimit()\n {\n if (empty(self::$_responseHeaders))\n {\n return;\n }\n\n // Default the $limit and $remaining values if not set in the last response header.\n /** @var int $limit */\n $limit = isset(self::$_responseHeaders[self::RATE_LIMIT])\n ? (int)self::$_responseHeaders[self::RATE_LIMIT]\n : self::DEFAULT_RATE_LIMIT;\n\n /** @var int $remaining */\n $remaining = isset(self::$_responseHeaders[self::RATE_LIMIT_REMAINING])\n ? (int)self::$_responseHeaders[self::RATE_LIMIT_REMAINING]\n : self::DEFAULT_RATE_LIMIT;\n\n // If no API calls have been made, no need to delay.\n if ($limit == $remaining)\n {\n return;\n }\n\n // If we are below 5% remaining, sleep for 0.50 seconds.\n if ($remaining / $limit < 0.05)\n {\n usleep(500000);\n return;\n }\n\n // If we are below 10% remaining, sleep for 0.25 seconds.\n if ($remaining / $limit < 0.1)\n {\n usleep(250000);\n }\n }", "public function getTtl(): int\n {\n return 10;\n }", "function get_instance_count_slack_offset($game_name,$pool_name){\n\t$slack_found = false;\n\tfor($try = 1; $try < 60; $try++){\n\t\t$slack_api = json_decode(calculate_slack($game_name,false),true);\n\t\tif(isset($slack_api[$pool_name]) and $slack_api[$pool_name]['slack'] != 'NA'){\n\t\t\t$slack_found = true;\n\t\t\tbreak;\n\t\t}\n\t\tsleep(1);\n\t}\n\tif($slack_found){\n\t\t$pool_data = $slack_api[$pool_name];\n\t\t$pool_data['slack'] = str_replace('%','',$pool_data['slack']);\n\t\treturn $pool_data;\n\t}\n\tdie(\"Could not fetch the slack data from the database!\\n\");\n}", "function checkKeys()\n{\n $cache = Cache::get()->first();\n\n if (!$cache) {\n $cache = new Cache();\n refreshKeys($cache);\n }\n else { \n if (time() > $cache->timeout){\n refreshKeys($cache);\n }\n }\n}", "public function registerUserThrottling($userId)\n\t{\n\t\t$time = time();\n\n\t\t$ip = $this->request->getClientAddress();\n\t\t$agent = $this->request->getUserAgent();\n\t\t$hash = $this->md5($agent);\n\t\t$ua_id = $this->getUserAgentId($hash);\n\n $failedLogin = new \\Manafx\\Models\\User_Failed_Logins();\n $failedLogin->failed_login_user_id = $userId;\n $failedLogin->failed_login_ip_address = $this->request->getClientAddress();\n $failedLogin->failed_login_user_agent_id = $ua_id;\n $failedLogin->failed_login_time = $time;\n $failedLogin->save();\n\n $attempts = \\Manafx\\Models\\User_Failed_Logins::count(array(\n 'failed_login_ip_address = ?0 AND failed_login_time >= ?1',\n 'bind' => array(\n $this->request->getClientAddress(),\n $time - 3600 * 6\n )\n ));\n\n switch ($attempts) {\n case 1:\n // no delay\n break;\n case 2:\n sleep(2);\n break;\n case 3:\n sleep(4);\n break;\n case 4:\n sleep(6);\n break;\n default:\n sleep(8);\n break;\n }\n }", "public function getThrottledLogins(array $request = [], array $response = []): array\n {\n $uri = 'auth-modules/throttled-logins';\n\n return $this->client->get($this->buildUrl($uri), $response, $request);\n }", "protected function handleRateLimit(): void\n {\n if (!$this->isRateLimitEnabled() || !$this->requestTimestamp) {\n return;\n }\n\n /** @var DateTime $limitReset */\n $limitReset = $this->getApiCallLimits('reset');\n if (!$limitReset) {\n return;\n }\n\n $limitLeft = $this->getApiCallLimits('left') ?: 1;\n $secondsLeft = $limitReset->getTimestamp() - time();\n $rateLimitCycle = round(($secondsLeft / $limitLeft) * 1000);\n\n // Calculate in milliseconds the duration the API call took\n $duration = round(microtime(true) - $this->requestTimestamp, 3) * 1000;\n $waitTime = $rateLimitCycle - $duration;\n\n if ($waitTime > 0) {\n // Do the sleep for X microseconds (convert from milliseconds)\n usleep($waitTime * 1000);\n }\n }", "public function watch($limit = 10);", "private function throttleIsActive()\n {\n return $this->config['throttle'];\n }", "public function registerUserThrottling($userId)\n {\n $failedLogin = new FailedLogins();\n $failedLogin->usersId = $userId;\n $failedLogin->ipAddress = $this->request->getClientAddress();\n $failedLogin->attempted = time();\n $failedLogin->save();\n\n $attempts = FailedLogins::count([\n 'ipAddress = ?0 AND attempted >= ?1',\n 'bind' => [\n $this->request->getClientAddress(),\n time() - 3600 * 6\n ]\n ]);\n\n switch ($attempts) {\n case 1:\n case 2:\n // no delay\n break;\n case 3:\n case 4:\n sleep(2);\n break;\n default:\n sleep(4);\n break;\n }\n }", "public function getRefreshRate() { return 0; }", "public function hit($key, $decaySeconds);", "function do_ratelimit_info()\n{\n global $datasets; // from require_once \"../analysis/common/functions.php\"\n\n if (!isset($datasets)) {\n $datasets = []; // database tables not yet initialized\n }\n\n $dbh = pdo_connect();\n\n // TODO: this is experimental, work-in-progress code. */\n\n $days_back = 30;\n\n $limits = array();\n\n for ($d = 1; $d <= $days_back; $d++) {\n // TODO: handle year loop\n $sql = \"select count(*) as sum from tcat_error_ratelimit R1 join tcat_error_ratelimit R2 on R2.id = R1.id + 1 where R1.tweets != R2.tweets \".\n \"and year(R1.start) = year(now()) and dayofyear(R1.start) = dayofyear(date_sub(now(), interval $d day)) group by dayofyear(R1.start)\";\n $rec = $dbh->prepare($sql);\n $rec->execute();\n if ($res = $rec->fetch(PDO::FETCH_ASSOC)) {\n $limits[$days_back - $d] = sprintf(\"%.3f\", $res['sum'] / 1440);\n } else {\n // TODO: issue warning?\n $limits[$days_back - $d] = 0;\n }\n }\n\n // Most used keywords\n\n $keywords = array();\n\n // TODO: handle year loop\n //$sql = \"select TQP.phrase, count(*) as sum from tcat_captured_phrases TCP inner join tcat_query_phrases TQP on TCP.phrase_id = TQP.id \" .\n // \"where year(created_at) = year(now()) and dayofyear(created_at) = dayofyear(date_sub(now(), interval $d day)) group by dayofyear(created_at), \" .\n // \"phrase_id order by sum desc limit 30;\n $sql = \"select TQP.phrase as phrase, count(*) as sum from tcat_captured_phrases TCP inner join tcat_query_phrases TQP on TCP.phrase_id = TQP.id \" .\n \"where year(created_at) = year(now()) and dayofyear(created_at) >= dayofyear(date_sub(now(), interval 30 day)) group by \" .\n \"phrase_id order by sum desc limit 50\";\n $rec = $dbh->prepare($sql);\n $rec->execute();\n while ($res = $rec->fetch(PDO::FETCH_ASSOC)) {\n $keywords[$res['phrase']] = $res['sum'];\n }\n\n $response_mediatype = choose_mediatype(['application/json', 'text/html',\n 'text/plain']);\n\n switch ($response_mediatype) {\n case 'application/json':\n $obj = array( 'ratelimited-day-descending' => $limits,\n 'top-keywords' => $keywords);\n respond_with_json($obj);\n break;\n case 'text/html':\n html_begin(\"Ratelimit information\", [[\"Ratelimit information\"]]);\n\n // TODO: charts, graphs, something ..\n\n echo \" <ul>\\n\";\n foreach ($limits as $limit) {\n echo \"<li>$limit</li>\\n\";\n }\n echo \" </ul>\\n\";\n\n echo \" <ul>\\n\";\n foreach ($keywords as $keyword => $sum) {\n echo \"<li>$keyword: $sum</li>\\n\";\n }\n echo \" </ul>\\n\";\n\n html_end();\n break;\n\n case 'text/plain':\n default:\n // TODO\n break;\n }\n}", "public static function getUpdateInterval() {\n return 20;\n }", "public function try()\n {\n if (!$this->allow()) {\n throw new ThrottlingException($this->error(), $this->next());\n } else {\n $this->hit();\n }\n }", "function netrics_get_pagespeed( $url, $strategy = 'mobile' ) {\n $json = '';\n $data = $pagespeed = array();\n\n // Construct API call URL.\n $api_url = 'https://www.googleapis.com/pagespeedonline/v5/runPagespeed';\n $fields = 'analysisUTCTimestamp%2ClighthouseResult(audits%2Ccategories%2Fperformance%2Fscore)';\n $options = netrics_get_options(); // Get API Keys.\n $api_key = $options['psi'];\n $api = $api_url . '?strategy=' . $strategy . '&fields=' . $fields . '&key=' . $api_key . '&url=';\n\n // Make API call to run PageSpeed test.\n $json = netrics_request_data( $api . urlencode( $url ), 300 );\n if ( $json ) {\n $data = json_decode( $json );\n\n // Make array of test results from JSON.\n if ( isset( $data->lighthouseResult ) ) {\n $audits = $data->lighthouseResult->audits;\n $pagespeed = array(\n // 'bytes' => $audits->diagnostics->details->items[0]->totalByteWeight,\n 'date' => date( 'Y-m' ),\n 'dom' => str_replace( ',', '', $audits->{\"dom-size\"}->details->items[0]->value ),\n 'requests' => $audits->{\"resource-summary\"}->details->items[0]->requestCount,\n 'size' => $audits->{\"resource-summary\"}->details->items[0]->size,\n 'speed' => $audits->metrics->details->items[0]->speedIndex,\n 'tti' => $audits->metrics->details->items[0]->interactive,\n 'score' => $data->lighthouseResult->categories->performance->score,\n 'time' => $data->analysisUTCTimestamp,\n 'error' => 0,\n );\n\n } else { // No Lighthouse data returned.\n $pagespeed['error'] = 1;\n }\n\n } else { // No JSON returned from remote request.\n $pagespeed['error'] = 2;\n }\n\n return $pagespeed;\n}", "function wp_schedule_update_network_counts()\n {\n }", "public function index()\n {\n // health\n //$health_entries = healthentry::where('user_id', Auth::user()->id)->orderBy('id')->get();\n // sleep\n // if(Cache::has('bs'.Auth::user()->id)){\n // $bad_sleep = Cache::get('bs'.Auth::user()->id);\n // $mid_sleep = Cache::get('ms'.Auth::user()->id);\n // $good_sleep = Cache::get('gs'.Auth::user()->id);\n // }else{\n $sleep_entries = healthentry::where('user_id', Auth::user()->id)\n ->where('type', healthentry::TYPE_SLEEP)\n ->where('begin_time','>=',date('Y-m-d').' 00:00:00')\n ->orderBy('id')\n ->get();\n $bad_sleep = 0;\n $mid_sleep = 0;\n $good_sleep = 0;\n foreach($sleep_entries as $sleep_entry){\n if($sleep_entry->level == healthentry::LEVEL_BAD){\n $bad_sleep += $sleep_entry->value;\n }\n if($sleep_entry->level == healthentry::LEVEL_MID){\n $mid_sleep += $sleep_entry->value;\n }\n if($sleep_entry->level == healthentry::LEVEL_GOOD){\n $good_sleep += $sleep_entry->value;\n }\n }\n // Cache::put('bs'.Auth::user()->id, $bad_sleep, '10'); \n // Cache::put('ms'.Auth::user()->id, $mid_sleep, '10'); \n // Cache::put('gs'.Auth::user()->id, $good_sleep, '10'); \n // }\n // temperature\n $t_entries = healthentry::where('user_id', Auth::user()->id)\n ->where('type', healthentry::TYPE_TEMPERATURE)\n ->where('begin_time','>=',date('Y-m-d').' 00:00:00')\n ->get();\n $avg_t = 0;\n foreach($t_entries as $t_entry){\n $avg_t += $t_entry->value;\n }\n if($t_entries->count()==0){\n $avg_t = 0;\n }else{\n $avg_t = round($avg_t/$t_entries->count(),1);\n }\n // heartrate\n $hr_entries = healthentry::where('user_id', Auth::user()->id)\n ->where('type', healthentry::TYPE_HEARTRATE)\n ->where('begin_time','>=',date('Y-m-d').' 00:00:00')\n ->get();\n $avg_hr = 0;\n foreach($hr_entries as $hr_entry){\n $avg_hr += $hr_entry->value;\n }\n if($hr_entries->count()==0){\n $avg_hr = 0;\n }else{\n $avg_hr = round($avg_hr/$hr_entries->count(),1);\n }\n // blood_pressure\n $bp_entries = healthentry::where('user_id', Auth::user()->id)\n ->where('type', healthentry::TYPE_BLOODPRESSURE)\n ->where('begin_time','>=',date('Y-m-d').' 00:00:00')\n ->get();\n $avg_bp_high = 0;\n $avg_bp_low = 0;\n foreach($bp_entries as $bp_entry){\n $avg_bp_high += $bp_entry->value;\n $avg_bp_low += $bp_entry->value2;\n }\n if($bp_entries->count() == 0 ){\n $avg_bp_high = 0;\n $avg_bp_low =0;\n }else{\n $avg_bp_high = round($avg_bp_high/$bp_entries->count(),1);\n $avg_bp_low = round($avg_bp_low/$bp_entries->count(),1); \n }\n // sports\n $sports_entries = sportsentry::where('user_id',Auth::user()->id)\n ->where('start_time','>=',date('Y-m-d').' 00:00:00')\n ->orderBy('id')\n ->get();\n $running_distance = 0;\n $calories = 0;\n $running_time = 0;\n foreach($sports_entries as $sports_entry){\n if($sports_entry->type == sportsentry::TYPE_RUN ){\n $running_distance += $sports_entry->value;\n $running_time += $sports_entry->last_time;\n }\n $calories += $sports_entry->calories;\n }\n if($running_time == 0){\n $running_speed = 0;\n }else{\n $running_speed = round($running_distance/$running_time * 3.6,2);\n }\n // advice\n if(Cache::has('adviceOf'.Auth::user()->id)){\n $health_advices = Cache::get('adviceOf'.Auth::user()->id);\n }else{\n $health_advices = healthadvice::where('player_id',Auth::user()->id)->get();\n Cache::put('adviceOf'.Auth::user()->id, $health_advices, '10'); \n }\n\n return view('player.index',[\n 'sports_entries' => $sports_entries\n ,'running_distance' => $running_distance\n ,'running_speed' => $running_speed\n ,'calories' => $calories\n ,'bad_sleep' => $bad_sleep\n ,'mid_sleep' => $mid_sleep\n ,'good_sleep' => $good_sleep\n ,'avg_t' => $avg_t\n ,'avg_hr' => $avg_hr\n ,'avg_bp_high' => $avg_bp_high\n ,'avg_bp_low' => $avg_bp_low\n ,'health_advices' => $health_advices\n ]);\n }", "public function runTenIdenticalSearch()\n\t{\t\t\n\t\t$this->client->isLazy(); \t\t\n\t\t$time = time();\n\t\t$request = $this->client->getMessageFactory()->createRequest($this->url, 'GET');\n\t\t$request->addHeader('cookie',$this->strCookie);\n\t\t$request->setTimeout(300000000);\n\t\t$response = $this->client->getMessageFactory()->createResponse();\n\t\t$this->client->send($request, $response);\n\t\tif($response->getStatus() === 200) {\t\t\t\n\t\t\t$responseTime = time();\n\t\t\t$pageLoadTime = $responseTime-$time;\n\t\t\treturn $this->convertToSeconds($pageLoadTime);\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "protected function timeRetry(): int\n {\n return 300;\n }", "public function hasTimeLimitReached(): bool;", "#[@test, @limit(time= 1.0)]\n public function noTimeout() {\n }", "public static function checkThrottle($member)\n {\n if (!$member) {\n return false;\n }\n $throttleCount = Config::get('rainlab.forum::throttleCount', 2);\n $throttleMinutes = Config::get('rainlab.forum::throttleMinutes', 15);\n\n $timeLimit = Carbon::now()->subMinutes($throttleMinutes);\n $count = static::make()\n ->where('start_member_id', $member->id)\n ->where('created_at', '>', $timeLimit)\n ->count();\n\n return $count > $throttleCount;\n }", "public function handleStatistic()\n {\n $sub24Hours = Carbon::now()->subHours(24);\n $sub10Minutes = Carbon::now()->subMinutes(10);\n $now = Carbon::now();\n\n\n $candidatesIds = $this->argument('candidates_ids');\n\n\n \\DB::transaction(function () use ($candidatesIds) {\n if ($candidatesIds) {\n $this->candidates = Candidate::where(\n [\n 'is_pierced' => true,\n ]\n )->whereIn('id', $candidatesIds)->lockForUpdate()->get();\n } else {\n $expiredTime = Carbon::now()->subMinutes(15);\n $this->candidates = Candidate::where(['is_pierced' => true])->whereIn('status', ['order_placed', 'working'])\n ->where(function ($q) use ($expiredTime) {\n $q->where('stat_last_time', '<', $expiredTime)\n ->orWhere('stat_last_time', null);\n })\n ->lockForUpdate()->get();\n }\n\n $now = Carbon::now();\n\n foreach ($this->candidates as $candidat) {\n $candidat->stat_last_time = $now;\n $candidat->save();\n }\n });\n\n\n foreach ($this->candidates as $candidat) {\n if ($candidat->pierce_time < $sub24Hours) {\n $candidat->status = 'done';\n $candidat->save();\n continue;\n }\n\n\n\n\n $buyPrice = $candidat->pierce_price;\n $symbol = $candidat->symbol;\n $pierceTime = $candidat->pierce_time;\n $now = Carbon::now();\n\n $candles = floor($pierceTime->diffInSeconds($now) / 60 / 15) + 1;\n\n\n\n //dump(($candles));\n\n $params = [\n 'symbol' => $symbol,\n 'interval' => '15m',\n 'limit' => $candles\n ];\n\n\n\n\n $response = $this->binRequest->get('klines', $params);\n\n // dd(count($response));\n\n $statArr = [];\n $statArr['candidate_id'] = $candidat->id;\n $statArr['buy_price'] = $buyPrice;\n $statArr['symbol'] = $symbol;\n $statArr['created_at'] = $now;\n $statArr['updated_at'] = $now;\n\n $statArr = $this->getMaxPrices($statArr, $response);\n $statArr = $this->addPercentsToStat($statArr);\n\n Statistic::insert($statArr);\n // dd($statArr );\n\n\n if ($candidat->pierce_time > $sub10Minutes) {\n $candidat->max10minutes = $statArr['percent15'];\n $candidat->save();\n }\n }\n }", "function find_score( $url, $device, $key = '' ) {\n\n $url = \n \"https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=\" . $url . \"&category=performance&fields=lighthouseResult%2Fcategories%2F*%2Fscore&prettyPrint=false&strategy=\" . $device . \"&key=\" . $key;\n\n $init = curl_init();\n\n curl_setopt($init, CURLOPT_URL, $url);\n curl_setopt($init, CURLOPT_RETURNTRANSFER, true);\n\n $responce = curl_exec( $init );\n curl_close($init);\n\n $responce = json_decode( $responce );\n\n if ( ! empty( $responce->lighthouseResult->categories->performance->score ) ) {\n $score = $responce->lighthouseResult->categories->performance->score;\n $score = $score * 100;\n } else {\n $score = 'API Error';\n }\n\n return $score;\n}", "public function testShouldDoLoginThrottlingDelay()\n {\n $config = m::mock('Config');\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $repo = m::mock('Zizaco\\Confide\\RepositoryInterface');\n $passService = m::mock('Zizaco\\Confide\\PasswordServiceInterface');\n $loginThrottler = m::mock('Zizaco\\Confide\\LoginThrottleServiceInterface');\n\n $confide = m::mock(\n 'Zizaco\\Confide\\Confide'.\n '[loginThrottling]',\n [$repo, $passService, $loginThrottler, $app]\n );\n $confide->shouldAllowMockingProtectedMethods();\n\n $userEmail = 'someone@somewhere.com';\n $throttledUserEmail = 'hack@me.com';\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n $app->shouldReceive('make')->with('config')->twice()->andReturn($config);\n $confide->shouldReceive('loginThrottling')\n ->passthru();\n\n $config->shouldReceive('get')\n ->twice()->with('confide::throttle_limit')\n ->andReturn(19);\n\n $loginThrottler->shouldReceive('throttleIdentity')\n ->once()->with($userEmail)\n ->andReturn(0);\n\n $loginThrottler->shouldReceive('throttleIdentity')\n ->once()->with($throttledUserEmail)\n ->andReturn(14);\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n $this->assertTrue($confide->loginThrottling($userEmail));\n $this->assertTrue($confide->loginThrottling($throttledUserEmail));\n }", "public function rateLimitByIP($limit=100, $interval=60) {\n session_start();\n\n if($limit != $this->limit) {\n $limit = $this->limit;\n }\n\n if($interval != $this->interval) {\n $interval = $this->interval;\n }\n\n $defaultSession = array('requests'=>1, 'date'=>date('Y-m-d h:i:s'));\n\n $ipServices = new IPServices();\n $ip = $ipServices->getIP();\n $sessionID = 'RATE_LIMIT_'.$ip;\n\n if (isset($_SESSION[$sessionID])) {\n $sessionData = $_SESSION[$sessionID];\n\n $last = strtotime($_SESSION[$sessionID]['date']);\n $curr = strtotime(date('Y-m-d h:i:s'));\n $sec = abs($last - $curr);\n\n if ($sec <= $interval) { \n if($sessionData['requests'] == $limit) {\n // rate limit client\n return false;\n } else {\n if($sessionData['requests'] > $limit) {\n $_SESSION[$sessionID] = $defaultSession;\n return false;\n }\n\n $sessionData['requests'] = $sessionData['requests'] + 1;\n $_SESSION[$sessionID] = $sessionData;\n return true;\n } \n } \n }\n \n $_SESSION[$sessionID] = $defaultSession;\n return true;\n }", "protected function exceededRateLimit()\n {\n return $this->cache->get($this->config['keys']['requests']) > $this->config['limit'];\n }", "public function getRateLimit($context);", "public function get_limits()\n\t{\n\t\t$profile_start = microtime(true);\n\n\t\t$limitsData = array(\n\t\t\t\t\t'call_limit' =>\tCALL_LIMIT,\n\t\t\t\t\t'duration_limit' =>\tCALL_DURATION_LIMIT,\n\t\t\t\t\t'listing_limit' =>\tLISTING_LIMIT\n\t\t\t\t\t);\n\n\t\t$this->input->do_put($this->config->base_url.\"/api/limit\",[]);\n\n\t\tif(!empty($limitsData))\n\t\t\t$this->display->success($limitsData,'limits');\n\t\telse\n\t\t\t$this->display->error(1502);\n\n\t\t$profile_start = profiler($profile_start,__CLASS__,__FUNCTION__,'openapi');\n\t}", "protected function tick() {\n // per second, but possibly more often.\n }", "public function actionIndex()\n {\n //check if there are expire leads . leads passed 10 minutes\n // count them all\n //\n }", "function training_performance_callback() {\n global $user;\n $obj = new stdClass();\n $obj->some_var = rand(1, 500);\n $cid = 'cache_for_user_' . $user->uid;\n cache_set($cid, $obj, 'cache_training_performance', CACHE_PERMANENT);\n //cache_clear_all($cid, 'cache_training_performance');\n dpm(cache_get($cid, 'cache_training_performance'));\n $output = 'Test cache!' . rand(1, 500);\n\n return array(\n array(\n '#type' => 'markup',\n '#markup' => $output,\n ),\n );\n}", "public function handle($request, Closure $next)\n {\n $ip = $_SERVER['SERVER_ADDR']; //192.168.140.129\n $key = 'request10Times:ip:'.$ip.':token:'.$request->input('token');\n $num = Redis::get($key);\n if($num>10){\n die('请求时间次数超过限制');\n }\n echo '<hr/>';\n echo 'num:'.$num;\n echo 'key:'.$key;\n echo '<hr/>';\n\n Redis::incr($key);\n Redis::expire($key,10);\n\n return $next($request);\n }", "public static function rateLimit(): self\n {\n return self::getInstance('RATE_LIMIT');\n }", "public function create()\n {\n var_dump('Slow HTTP request in progress.');\n }", "protected function incrementLoginAttempts(Request $request): void\n {\n $this->limiter()->hit(\n $this->throttleKey($request),\n $this->decayMinutes() * 60\n );\n }", "protected function registerRateLimiting()\n {\n $this->app->singleton('api.limiting', function ($app) {\n return new RateLimitHandler($app, $app['cache'], $this->config('throttling'));\n });\n }", "protected static function getFacadeAccessor()\n\t{\n\t\treturn 'throttle';\n\t}", "function cmp_trafic_limiter_canPass($ip)\n{\n $tfilename=PLX_ROOT.'data/zb/trafic_limiter.php';\n if (!is_file($tfilename))\n {\n file_put_contents($tfilename,\"<?php\\n\\$GLOBALS['trafic_limiter']=array();\\n?>\", LOCK_EX);\n chmod($tfilename,0705);\n }\n require $tfilename;\n $tl=$GLOBALS['trafic_limiter'];\n if (!empty($tl[$ip]) && ($tl[$ip]+10>=time()))\n {\n return false;\n // FIXME: purge file of expired IPs to keep it small\n }\n $tl[$ip]=time();\n file_put_contents($tfilename, \"<?php\\n\\$GLOBALS['trafic_limiter']=\".var_export($tl,true).\";\\n?>\", LOCK_EX);\n return true;\n}", "function epfl_stats_webservice_call_duration($url, $duration, $in_local_cache=false)\n{\n /* If we are in CLI mode, it's useless to update in APC because it's the APC for mgmt container and not httpd\n container */\n if(php_sapi_name()=='cli') return;\n\n global $wp;\n\n $url_details = parse_url($url);\n\n /* Building target host name with scheme */\n $target_host = $url_details['scheme'].\"://\".$url_details['host'];\n if(array_key_exists('port', $url_details) && $url_details['port'] != \"\") $target_host .= \":\".$url_details['port'];\n\n /* Generating date/time in correct format: yyyy-MM-dd'T'HH:mm:ss.SSSZZ (ex: 2019-03-27T12:46:14.078Z ) */\n $log_array = array(\"@timegenerated\" => date(\"Y-m-d\\TH:i:s.v\\Z\"),\n \"priority\" => \"INFO\",\n \"verb\" => \"GET\",\n \"code\" => \"200\",\n \"localcache\" => ($in_local_cache) ? \"hit\" : \"miss\",\n \"src\" => home_url( $wp->request ),\n \"targethost\" => $target_host,\n \"targetpath\" => $url_details['path'],\n \"targetquery\" => (array_key_exists('query', $url_details)) ? $url_details['query'] : \"\",\n \"responsetime\" => ($in_local_cache) ? 0 : floor($duration*1000));\n\n $log_file = '/call_logs/ws_call_log.'.gethostname().'.log';\n /* We write in file only if we can open it */\n if(($h = fopen($log_file, 'a'))!==false)\n {\n fwrite($h, json_encode($log_array).\"\\n\");\n fclose($h);\n }\n\n}", "public function handle($job, $next)\n {\n Redis::throttle(\"key\")\n ->block(0)\n ->allow(1)\n ->every(10)\n ->then(function () use ($job, $next) {\n $next($job);\n }, function () use ($job) {\n $job->release(5);\n });\n }", "public function setCPUThrottlingRate(ContextInterface $ctx, SetCPUThrottlingRateRequest $request): void;", "public static function setCacheTimesForAuthRecheck($n) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setCacheTimesForAuthRecheck($n);\t\t\n\t}", "private function setRateLimiterKey()\n {\n $this->rateLimiterKey = sha1($this->formRequestClass . request()->ip());\n }", "protected function registerLoginThrottleService()\n\t{\n\t\t$this->app->bind('confide.throttle', function ($app) {\n\t\t\treturn new CacheLoginThrottleService($app);\n\t\t});\n\t}", "public function cachePerUser(array $access_rules);", "public function get_delay_between_checks(): int {\n $period = get_config('realtimeplugin_phppoll', 'checkinterval');\n return max($period, 200);\n }", "protected function limiter(): RateLimiter\n {\n return app(RateLimiter::class);\n }", "public function GoogleSpeedTest($domain,$api_key,$searchengine_id){\r\n\r\n\t$search_query = \"http://\".$domain;\r\n\t//$url=\"https://www.googleapis.com/customsearch/v1?key=$api_key&cx=$searchengine_id&num=10&q=$search_query\";\r\n\t$url=\"https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=$search_query&key=$api_key&cx=$searchengine_id\";\r\n\t$google_search = file_get_contents($url);\r\n\t$speed_data=json_decode($google_search,true);\r\n\r\n\tif($speed_data['responseCode']==\"200\")\r\n\t{\r\n\r\n\r\n\t\t// return $seo_data['queries']['request']['0']['totalResults'];\r\n\t\treturn $speed_data;\r\n\t}\r\n}", "public function update_requests() {\n\t\tif (!isset($_POST['time']) || !isset($_POST['hash'])) exit('0');\n\n\t\t// If the response is invalid return a zero response\n\t\t$received = $_POST['time'] . '|' . $_POST['hash'];\n\t\t$expected = $this->time_marker(hash('crc32', $this->required_delay), $_POST['time']);\n\t\tif ($received !== $expected) exit('0');\n\n\t\t// If response if premature return a zero response\n\t\t$now = time();\n\t\t$earliest = absint($_POST['time']) + $this->required_delay;\n\t\tif ($now < $earliest) exit('0');\n\n\t\t// Seems ok ... respond with new hash\n\t\t$response = hash('md5', $_POST['hash'] . $this->base_key);\n\t\texit($response);\n\t}", "function apc_cache_lock_click_index() {\n\t$n = 1;\n\t// we always unlock as soon as possilbe, so a TTL of 1 should be fine\n\twhile(!apc_add(APC_CACHE_CLICK_INDEX_LOCK, 1, 1)) {\n\t\t$n++;\n\t\tusleep(500);\n\t} \n\tif($n > 1) apc_cache_debug(\"lock_click_index: Locked click index in $n tries\");\n\treturn true;\n}", "public function billUsers()\n {\n// echo \"Scroll to the bottom to see total time taken\";\n $start_time = microtime(true);\n\n //lets create the list of data to be processed through a simple range\n\n $data = range(1, 10000);\n\n // we'll break down the list into chunks and process each chunk asynchroniusly\n $chunks = array_chunk($data, 100);\n\n $pool = Pool::create();\n\n foreach ($chunks as $chunk) {\n $pool[] = async(function () use ($chunk) {\n return $this->sendRequests($chunk);\n })->then(function ($output) use ($chunk){\n echo \"Requests $chunk[0] to \".$chunk[count($chunk) -1].\" completed\\n\";\n\n //save data to database here\n });\n }\n await($pool);\n\n $end_time = microtime(true);\n\n $execution_time = ($end_time - $start_time);\n\n echo \"<h4> Took = \".($execution_time/60).\" mins to complete </h4>\\n\";\n echo \"Normally this process should take about \".((.6 * count($data))/60 ).\" minute(s) to complete, if we processed it serially\";\n \n }", "public function testUnlimitedExecutionTime()\n {\n $response = $this->http->send(\n new Request('GET', '/visit-counter.php?with_no_time_limit')\n );\n\n $this->assertSame('1', (string) $response->getBody());\n $this->assertCreatedNewSession($response);\n $this->assertSame(1, $this->redis->dbSize());\n }", "public function handle($request, Closure $next)\n {\n// $google_bots = ['Googlebot', 'AdsBot'];\n// foreach ($google_bots as $item){\n// if(substr_count($request->header('User-Agent'), $item)){\n// BotVisit::query()\n// ->whereRaw('Date(created_at) = CURDATE()')\n// ->updateOrCreate(['agent' => $request->header('User-Agent')],['count' => DB::raw('count + 1')]);\n// }\n// }\n\n $googleBots = ['google', 'googlebot', 'adsbot'];\n\n foreach ($googleBots as $googleBot) {\n if (strpos(strtolower($request->header('User-Agent')), $googleBot) !== false) {\n if ($this->validateGoogleBotIP($request->ip())) {\n BotVisit::query()\n ->whereRaw('Date(created_at) = CURDATE()')\n ->updateOrCreate(['agent' => $request->header('User-Agent')],\n ['count' => DB::raw('count + 1')]);\n }\n\n break;\n }\n }\n\n\n $black_list = [\n 'BLEXBot',\n 'BlackWidow',\n 'Nutch',\n 'Jetbot',\n 'WebVac',\n 'Stanford',\n 'scooter',\n 'naver',\n 'dumbot',\n 'Hatena\\ Antenna',\n 'grub',\n 'looksmart',\n 'WebZip',\n 'larbin',\n 'b2w/0.1',\n 'Copernic',\n 'psbot',\n 'Python-urllib',\n 'NetMechanic',\n 'URL_Spider_Pro',\n 'CherryPicker',\n 'EmailCollector',\n 'EmailSiphon',\n 'WebBandit',\n 'EmailWolf',\n 'Email',\n 'ExtractorPro',\n 'CopyRightCheck',\n 'Crescent',\n 'SiteSnagger',\n 'ProWebWalker',\n 'CheeseBot',\n 'LNSpiderguy',\n 'ia_archiver',\n 'Alexibot',\n 'Teleport',\n 'MIIxpc',\n 'Telesoft',\n 'Website\\ Quester',\n 'moget',\n 'WebStripper',\n 'WebSauger',\n 'WebCopier',\n 'NetAnts',\n 'Mister\\ PiX',\n 'WebAuto',\n 'TheNomad',\n 'WWW-Collector-E',\n 'RMA',\n 'libWeb/clsHTTP',\n 'asterias',\n 'httplib',\n 'turingos',\n 'spanner',\n 'Harvest',\n 'InfoNaviRobot',\n 'Bullseye',\n 'WebBandit',\n 'NICErsPRO',\n 'Microsoft\\ URL\\ Control',\n 'DittoSpyder',\n 'Foobot',\n 'WebmasterWorldForumBot',\n 'SpankBot',\n 'BotALot',\n 'lwp-trivial',\n 'WebmasterWorld',\n 'BunnySlippers',\n 'URLy\\ Warning',\n 'Wget',\n 'LinkWalker',\n 'cosmos',\n 'hloader',\n 'humanlinks',\n 'LinkextractorPro',\n 'Offline\\ Explorer',\n 'Mata\\ Hari',\n 'LexiBot',\n 'Web\\ Image\\ Collector',\n 'The\\ Intraformant',\n 'True_Robot',\n 'BlowFish',\n 'SearchEngineWorld',\n 'JennyBot',\n 'MIIxpc',\n 'BuiltBotTough',\n 'ProPowerBot',\n 'BackDoorBot',\n 'toCrawl/UrlDispatcher',\n 'WebEnhancer',\n 'suzuran',\n 'WebViewer',\n 'VCI',\n 'Szukacz',\n 'QueryN',\n 'Openfind',\n 'Openbot',\n 'Webster',\n 'EroCrawler',\n 'LinkScan',\n 'Keyword',\n 'Kenjin',\n 'Iron33',\n 'Bookmark\\ search\\ tool',\n 'GetRight',\n 'FairAd\\ Client',\n 'Gaisbot',\n 'Aqua_Products',\n 'Radiation\\ Retriever\\ 1.1',\n 'Flaming\\ AttackBot',\n 'Oracle\\ Ultra\\ Search',\n 'MSIECrawler',\n 'PerMan',\n 'searchpreview',\n 'sootle',\n 'Enterprise_Search',\n 'Bot\\ mailto:craftbot@yahoo.com',\n 'ChinaClaw',\n 'Custo',\n 'DISCo',\n 'Download\\ Demon ',\n 'eCatch',\n 'EirGrabber',\n 'EmailSiphon',\n 'EmailWolf',\n 'Express\\ WebPictures',\n 'ExtractorPro',\n 'EyeNetIE',\n 'FlashGet',\n 'GetRight',\n 'GetWeb!',\n 'Go!Zilla',\n 'Go-Ahead-Got-It',\n 'GrabNet',\n 'Grafula',\n 'HMView',\n 'HTTrack',\n 'Image\\ Stripper',\n 'Image\\ Sucker',\n 'Indy\\ Library',\n 'InterGET',\n 'Internet\\ Ninja',\n 'JetCar',\n 'JOC\\ Web\\ Spider',\n 'larbin',\n 'LeechFTP',\n 'Mass\\ Downloader',\n 'MIDown\\ tool',\n 'Mister\\ PiX',\n 'Navroad',\n 'NearSite',\n 'NetAnts',\n 'NetSpider',\n 'Net\\ Vampire',\n 'NetZIP',\n 'Octopus',\n 'Offline\\ Explorer',\n 'Offline\\ Navigator',\n 'PageGrabber',\n 'Papa\\ Foto',\n 'pavuk',\n 'pcBrowser',\n 'RealDownload',\n 'ReGet',\n 'SiteSnagger',\n 'SmartDownload',\n 'SuperBot',\n 'SuperHTTP',\n 'Surfbot',\n 'tAkeOut',\n 'Teleport\\ Pro',\n 'VoidEYE',\n 'Web\\ Image\\ Collector',\n 'Web\\ Sucker',\n 'WebAuto',\n 'WebCopier',\n 'WebFetch',\n 'WebGo\\ IS',\n 'WebLeacher',\n 'WebReaper',\n 'WebSauger',\n 'Website\\ eXtractor',\n 'Website\\ Quester',\n 'WebStripper',\n 'WebWhacker',\n 'WebZIP',\n 'Wget',\n 'Widow',\n 'WWWOFFLE',\n 'Xaldon\\ WebSpider',\n 'Zeus',\n 'Semrush',\n 'BecomeBot',\n 'AhrefsBot',\n 'MJ12bot',\n 'rogerbot',\n 'exabot',\n 'Xenu',\n 'dotbot',\n 'gigabot',\n 'BlekkoBot',\n 'YandexBot'\n ];\n\n foreach ($black_list as $item) {\n if (strpos(strtolower($request->header('User-Agent')), strtolower($item)) !== false) {\n return redirect('404');\n }\n }\n\n return $next($request);\n }", "private function addTimer(array &$request) {\n $request['timer'] = microtime(true); //start time\n $request['time'] = false; //default if not overridden by time later\n }", "protected function throttleKey(Request $request): string\n {\n return Str::transliterate(Str::lower($request->input($this->username())) . '|' . $request->ip());\n }", "function update_intervals()\n {\n return config('browser', 'update_intervals', 20) * 1000;\n }", "function prefix_set_feed_cache_time( $seconds ) {\n return 1;\n}", "function wp_refresh_heartbeat_nonces($response)\n {\n }", "function htvcenter_ldap_monitor() {\n\tglobal $event;\n\tglobal $RootDir;\n\tglobal $CLOUD_USER_TABLE;\n\tglobal $cloud_nephos_USER_TABLE;\n\tglobal $htvcenter_SERVER_BASE_DIR;\n\t$ldap_monitor_lock = $htvcenter_SERVER_BASE_DIR.\"/htvcenter/web/action/ldap-conf/ldap-monitor.lock\";\n\t$ldap_monitor_timeout = \"360\";\n\n\t// enabled ?\n\t$ldap_conf = new ldapconfig();\n\t$ldap_conf->get_instance_by_id(10);\n\t$ldap_enabled = $ldap_conf->value;\n\tif ($ldap_enabled == 0) {\n\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"LDAP not yet activated ...\", \"\", \"\", 0, 0, 0);\n\t\treturn 0;\n\t}\n\n\n\t// lock to prevent running multiple times in parallel\n\tif (file_exists($ldap_monitor_lock)) {\n\t\t// check from when it is, if it is too old we remove it and start\n\t\t$ldap_monitor_lock_date = file_get_contents($ldap_monitor_lock);\n\t\t$now=$_SERVER['REQUEST_TIME'];\n\t\tif (($now - $ldap_monitor_lock_date) > $ldap_monitor_timeout) {\n\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 2, \"htvcenter-ldap-monitor-hook.php\", \"Timeout for the ldap-monitor-lock reached, creating new lock at $ldap_monitor_lock\", \"\", \"\", 0, 0, 0);\n\t\t\t$ldap_lock_fp = fopen($ldap_monitor_lock, 'w');\n\t\t\tfwrite($ldap_lock_fp, $now);\n\t\t\tfclose($ldap_lock_fp);\n\t\t} else {\n\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"ldap is still processing ($ldap_monitor_lock), skipping ldap event check !\", \"\", \"\", 0, 0, 0);\n\t\t\treturn 0;\n\t\t}\n\t} else {\n\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Checking for ldap events to be handled. Created $ldap_monitor_lock\", \"\", \"\", 0, 0, 0);\n\t\t$now=$_SERVER['REQUEST_TIME'];\n\t\t$ldap_lock_fp = fopen($ldap_monitor_lock, 'w');\n\t\tfwrite($ldap_lock_fp, $now);\n\t\tfclose($ldap_lock_fp);\n\t}\n\n\t// ################################## start ldap commands ###############################\n\n\t// get ldap from db config\n\t$ldap_conf = new ldapconfig();\n\t$ldap_conf->get_instance_by_id(1);\n\t$ldap_host = $ldap_conf->value;\n\t$ldap_conf->get_instance_by_id(2);\n\t$ldap_port = $ldap_conf->value;\n\t$ldap_conf->get_instance_by_id(3);\n\t$ldap_base_dn = $ldap_conf->value;\n\t$ldap_conf->get_instance_by_id(4);\n\t$ldap_admin = $ldap_conf->value;\n\t$ldap_conf->get_instance_by_id(5);\n\t$ldap_password = $ldap_conf->value;\n\n\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Starting User-sync from LDAP -> htvcenter\", \"\", \"\", 0, 0, 0);\n\n\t// get user data from ldap\n\t$filter = \"(uid=*)\";\n\t$connect = ldap_connect($ldap_host, $ldap_port);\n\tldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);\n\t$bind = ldap_bind($connect, $ldap_admin, $ldap_password);\n\t$read = ldap_search($connect, $ldap_base_dn, $filter);\n\t$info = ldap_get_entries($connect, $read);\n\n\t// here we get the htvcenter gid number from the ldap\n\t$dn = \"cn=htvcenter,ou=Group,\".$ldap_base_dn;\n\t$filter=\"(cn=*)\";\n\t$justthese = array(\"gidNumber\"); \n\t$sr=ldap_read($connect, $dn, $filter, $justthese);\n\t$entry = ldap_get_entries($connect, $sr);\n\t// in the resulting array gidNumber is full lowercase -> gidnumber\n\t$htvcenter_gid = $entry[0][\"gidnumber\"][0];\n\tif (!strlen($htvcenter_gid)) {\n\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 2, \"htvcenter-ldap-monitor-hook.php\", \"Coud not find the htvcenter gidnumber in the ldap server\", \"\", \"\", 0, 0, 0);\n\t\tunlink($ldap_monitor_lock);\n\t\treturn;\n\t} else {\n\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Found htvcenter gid number $htvcenter_gid\", \"\", \"\", 0, 0, 0);\n\t}\n\n\tldap_close($connect);\n\t$all_ldap_users = array();\n\n\t// htvcenter system user sync\n\t$htvcenter_user = new user('htvcenter');\n\n\n\n\n\t// is ldap user in htvcenter ?\n\tfor($line = 0; $line<$info[\"count\"]; $line++) {\n\t\tfor($col = 0; $col<$info[$line][\"count\"]; $col++) {\n\t\t\tif ($col == 0) {\n\t\t\t\t$data = $info[$line][$col];\n\t\t\t\t$ldap_user_name = $info[$line][$data][0];\n\t\t\t\t$ldap_user_gid = $info[$line]['gidnumber'][0];\n\t\t\t\t$check_htvcenter_user = new user($ldap_user_name);\n\t\t\t\tif (!$check_htvcenter_user->check_user_exists()) {\n\t\t\t\t\t// check for admin user\n\t\t\t\t\tif ($ldap_user_gid == $htvcenter_gid) {\n\t\t\t\t\t\t// add\n\t\t\t\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Creating LDAP user $ldap_user_name:$ldap_user_gid in htvcenter\", \"\", \"\", 0, 0, 0);\n\t\t\t\t\t\t$user_fields['user_id'] = htvcenter_db_get_free_id('user_id', $check_htvcenter_user->_user_table);\n\t\t\t\t\t\t$user_fields['user_name'] = $ldap_user_name;\n\t\t\t\t\t\t$user_fields['user_state'] = 'activated';\n\t\t\t\t\t\t$user_fields['user_role'] = 0;\n\t\t\t\t\t\t$user_fields['user_lang'] = 'en';\n\t\t\t\t\t\t$htvcenter_user->add($user_fields);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// begin cloud user sync\n\t\t\t\t// only if cloud is enabled\n\t\t\t\tif (file_exists(\"$RootDir/plugins/cloud/.running\")) {\n\t\t\t\t\t$c_user = new clouduser();\n\t\t\t\t\tif($c_user->is_name_free($ldap_user_name)) {\n\t\t\t\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Creating LDAP user $ldap_user_name in the Cloud\", \"\", \"\", 0, 0, 0);\n\t\t\t\t\t\t// get free cu_id\n\t\t\t\t\t\t$cloud_user_fields['cu_id'] = htvcenter_db_get_free_id('cu_id', $CLOUD_USER_TABLE);\n\t\t\t\t\t\t// TODO\n\t\t\t\t\t\t// auto-give-ccus ?\n\t\t\t\t\t\t$cloud_user_fields['cu_ccunits'] = 0;\n\t\t\t\t\t\t// other fields\n\t\t\t\t\t\t$cloud_user_fields['cu_cg_id'] = 0;\n\t\t\t\t\t\t$cloud_user_fields['cu_status'] = 1;\n\t\t\t\t\t\t$cloud_user_fields['cu_name'] = \"$ldap_user_name\";\n\t\t\t\t\t\t$cloud_user_fields['cu_password'] = \"\";\n\t\t\t\t\t\t$cloud_user_fields['cu_lastname'] = \"$ldap_user_name\";\n\t\t\t\t\t\t$cloud_user_fields['cu_forename'] = \"Cloud-User\";\n\t\t\t\t\t\t$cloud_user_fields['cu_email'] = \"empty\";\n\t\t\t\t\t\t$cloud_user_fields['cu_street'] = \"empty\";\n\t\t\t\t\t\t$cloud_user_fields['cu_city'] = \"empty\";\n\t\t\t\t\t\t$cloud_user_fields['cu_country'] = \"empty\";\n\t\t\t\t\t\t$cloud_user_fields['cu_phone'] = \"0\";\n\t\t\t\t\t\t$cloud_user_fields['cu_lang'] = 'en';\n\t\t\t\t\t\t$cl_user = new clouduser();\n\t\t\t\t\t\t$cl_user->add($cloud_user_fields);\n\t\t\t\t\t\t// set user permissions and limits, set to 0 (infinite) by default\n\t\t\t\t\t\t$cloud_user_limit = new clouduserlimits();\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_id'] = (int)str_replace(\".\", \"\", str_pad(microtime(true), 15, \"0\"));\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_cu_id'] = $cloud_user_fields['cu_id'];\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_resource_limit'] = 0;\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_memory_limit'] = 0;\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_disk_limit'] = 0;\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_cpu_limit'] = 0;\n\t\t\t\t\t\t$cloud_user_limits_fields['cl_network_limit'] = 0;\n\t\t\t\t\t\t$cloud_user_limit->add($cloud_user_limits_fields);\n\t\t\t\t\t\t// adding complete\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// end cloud user sync\n\n\n\t\t\t\t// begin cloud zones user sync\n\t\t\t\t// only if cloud is enabled\n\t\t\t\tif (file_exists(\"$RootDir/plugins/cloud-nephos/.running\")) {\n\t\t\t\t\t$cloud_nephos_user = new cloud_nephos_user();\n\t\t\t\t\tif($cloud_nephos_user->is_name_free($ldap_user_name)) {\n\t\t\t\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Creating LDAP user $ldap_user_name in Cloud Zones\", \"\", \"\", 0, 0, 0);\n\t\t\t\t\t\t$cloud_nephos_user_fields = array();\n\t\t\t\t\t\t// auto-give-ccus ?\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_ccunits'] = 0;\n\t\t\t\t\t\t// other fields\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_usergroup_id'] = 1;\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_name'] = \"$ldap_user_name\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_forename'] = \"Cloud Zone User\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_lastname'] = \"$ldap_user_name\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_email'] = \"empty\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_street'] = \"empty\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_city'] = \"empty\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_country'] = \"empty\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_phone'] = \"0\";\n\t\t\t\t\t\t$cloud_nephos_user_fields['cloud_nephos_user_lang'] = \"en\";\n\t\t\t\t\t\t$cloud_nephos_user->add($cloud_nephos_user_fields);\n\t\t\t\t\t\t// adding complete\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// end cloud zones user sync\n\n\t\t\t\t// add $ldap_user_name to array\n\t\t\t\tarray_push($all_ldap_users, $ldap_user_name);\n\t\t\t}\n\t\t}\n\t}\n\n\n\t// htvcenter user remove\n\t$htvcenter_username_arr = $htvcenter_user->get_name_list();\n\tforeach($htvcenter_username_arr as $htvcenter_username) {\n\t\t$username = $htvcenter_username['user_name'];\n\t\t// keep htvcenter user and anonymous user\n\t\tif(!strcmp($username, 'htvcenter')) {\n\t\t\tcontinue;\n\t\t}\n\t\tif(!strcmp($username, 'anonymous')) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (!in_array($username, $all_ldap_users)) {\n\t\t\t// remove\n\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"htvcenter User $username does not exists in ldap server, removing...\", \"\", \"\", 0, 0, 0);\n\t\t\t$htvcenter_user->remove_by_name($username);\n\t\t}\n\t}\n\n\t// end htvcenter user remove\n\n\t// cloud user remove\n\t// only if cloud is enabled\n\tif (file_exists(\"$RootDir/plugins/cloud/.running\")) {\n\n\t\t// check array if use still exist in LDAP, if not remove\n\t\t$all_cloud_users = new clouduser();\n\t\t$all_cloud_users_ids = $all_cloud_users->get_all_ids();\n\t\tforeach($all_cloud_users_ids as $cu_id_arr) {\n\t\t\t$cu_id = $cu_id_arr['cu_id'];\n\t\t\t$existing_cloud_user = new clouduser();\n\t\t\t$existing_cloud_user->get_instance_by_id($cu_id);\n\t\t\tif (!in_array($existing_cloud_user->name, $all_ldap_users)) {\n\t\t\t\t// remove\n\t\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Cloud User $existing_cloud_user->name does not exists in ldap server, removing...\", \"\", \"\", 0, 0, 0);\n\t\t\t\t// remove limits\n\t\t\t\t$cloud_user_limit = new clouduserlimits();\n\t\t\t\t$cloud_user_limit->remove_by_cu_id($existing_cloud_user->id);\n\t\t\t\t// remove user object\n\t\t\t\t$existing_cloud_user->remove($existing_cloud_user->id);\n\t\t\t}\n\t\t}\n\t}\n\t// end cloud user remove\n\n\t// cloud zones user remove\n\t// only if cloud zones is enabled\n\tif (file_exists(\"$RootDir/plugins/cloud-nephos/.running\")) {\n\n\t\t// check array if use still exist in LDAP, if not remove\n\t\t$all_cloud_nephos_users = new cloud_nephos_user();\n\t\t$all_cloud_nephos_users_ids = $all_cloud_nephos_users->get_all_ids();\n\t\tforeach($all_cloud_nephos_users_ids as $cz_u_id_arr) {\n\t\t\t$cz_u_id = $cz_u_id_arr['cloud_nephos_user_id'];\n\t\t\t$existing_cloud_nephos_user = new cloud_nephos_user();\n\t\t\t$existing_cloud_nephos_user->get_instance_by_id($cz_u_id);\n\t\t\t// enabled or just registered ?\n\t\t\tif ($existing_cloud_nephos_user->cloud_nephos_user_status == 1) {\n\t\t\t\tif (!in_array($existing_cloud_nephos_user->cloud_nephos_user_name, $all_ldap_users)) {\n\t\t\t\t\t// remove\n\t\t\t\t\t$event->log(\"htvcenter_ldap_monitor\", $_SERVER['REQUEST_TIME'], 5, \"htvcenter-ldap-monitor-hook.php\", \"Cloud Zones User $existing_cloud_user->cloud_nephos_user_name does not exists in ldap server, removing...\", \"\", \"\", 0, 0, 0);\n\t\t\t\t\t// remove user object\n\t\t\t\t\t$existing_cloud_nephos_user->remove($existing_cloud_nephos_user->cloud_nephos_user_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// end cloud zones user remove\n\n\t$event->log(\"cloud\", $_SERVER['REQUEST_TIME'], 5, \"ldap-monitor\", \"Removing the ldap-monitor lock $ldap_monitor_lock\", \"\", \"\", 0, 0, 0);\n\tunlink($ldap_monitor_lock);\n}", "function curl_get(&$handle, $url, $fields = '', &$info = NULL) {\r\n\tglobal $curl_last_timestamp, $curl_throttle;\r\n\tif (! $curl_throttle) {\r\n\t\t$curl_throttle = 5;\r\n\t}\r\n\tif ($curl_last_timestamp && time() - $curl_last_timestamp < $curl_throttle * 60) {\r\n\t\t$delay = min(array(\r\n\t\t\t$curl_throttle, time() - $curl_last_timestamp\r\n\t\t));\r\n\t\tif ($delay) {\r\n\t\t\t//log_msg('CURL', \"Sleeping for $delay second(s)\");\r\n\t\t\tusleep($delay * 1000000);\r\n\t\t}\r\n\t}\r\n\tif ($fields) {\r\n\t\tif (is_array($fields))\r\n\t\t\t$fields = http_build_query2($fields, '', '&');\r\n\t\t$url = \"$url?$fields\";\r\n\t}\r\n\tcurl_setopt($handle, CURLOPT_HTTPGET, TRUE);\r\n\tcurl_setopt($handle, CURLOPT_URL, $url);\r\n\tcurl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);\r\n\t$result = curl_exec($handle);\r\n\t$info = curl_getinfo($handle);\r\n\t$curl_last_timestamp = time();\r\n\t//log_msg('CURL', \"Get $url ; result info=\" . json_encode($info));\r\n\treturn $result;\r\n}", "function Poll($secs=5)\n\t{\n\t\t$this->conn->fnExecute = false;\n\t\t//$this->conn->debug=1;\n\t\tif ($secs <= 1) $secs = 1;\n\t\techo \"Accumulating statistics, every $secs seconds...\\n\";flush();\n\t\t$arro = $this->PollParameters();\n\t\t$cnt = 0;\n\t\tset_time_limit(0);\n\t\tsleep($secs);\n\t\twhile (1) {\n\n\t\t\t$arr = $this->PollParameters();\n\n\t\t\t$hits = sprintf('%2.2f',$arr[0]);\n\t\t\t$reads = sprintf('%12.4f',($arr[1]-$arro[1])/$secs);\n\t\t\t$writes = sprintf('%12.4f',($arr[2]-$arro[2])/$secs);\n\t\t\t$sess = sprintf('%5d',$arr[3]);\n\n\t\t\t$load = $this->CPULoad();\n\t\t\tif ($load !== false) {\n\t\t\t\t$oslabel = 'WS-CPU%';\n\t\t\t\t$osval = sprintf(\" %2.1f \",(float) $load);\n\t\t\t}else {\n\t\t\t\t$oslabel = '';\n\t\t\t\t$osval = '';\n\t\t\t}\n\t\t\tif ($cnt % 10 == 0) echo \" Time \".$oslabel.\" Hit% Sess Reads/s Writes/s\\n\";\n\t\t\t$cnt += 1;\n\t\t\techo date('H:i:s').' '.$osval.\"$hits $sess $reads $writes\\n\";\n\t\t\tflush();\n\n\t\t\tif (connection_aborted()) return;\n\n\t\t\tsleep($secs);\n\t\t\t$arro = $arr;\n\t\t}\n\t}", "function phpTrafficA_ipbased($c,$pageid,$ip,$agent,$time,$conf,$table,$site,$visitCutoff,$tmpdir,$ip2c,$resolution) {\n\n$max_keep_ipbased = $visitCutoff*60; // 1800 = 30 minutes, 3600 = 1 hour\n$pageid = trim($pageid, \" \\n\\r\");\n$tmpfile = \"$tmpdir/ipbased.$table.dat\";\nif (!file_exists($tmpfile)) {\n\ttouch($tmpfile);\n}\n$stats = file(\"$tmpfile\");\n$found = FALSE;\n$newpath = TRUE;\n$newString = \"\";\nforeach($stats as $log) {\n\t$log_arr = explode(\"|>|\", $log);\n\t$host = $log_arr[0];\n\t$first = $log_arr[1];\n\t$last = $log_arr[2];\n\t$clicks = $log_arr[3];\n\t$thispath = $log_arr[4];\n\tif ($first>100) {\n\t\tif ($host==$ip) {\n\t\t\tif ($last+$max_keep_ipbased > $time) {\n\t\t\t\t$newpath = FALSE;\n\t\t\t\t$clicks += 1;\n\t\t\t\t$thispath .= \"|$pageid\";\n\t\t\t\t$newString .= \"$ip|>|$first|>|$time|>|$clicks|>|$thispath|>|\\n\";\n\t\t\t} else {\n\t\t\t\tphpTrafficA_insert_ipbased_entry($c, $table, $first, $last, $clicks, $thispath, $host,$tmpdir);\n\t\t\t\t$newString .= \"$ip|>|$time|>|$time|>|1|>|$pageid|>|\\n\";\n\t\t\t}\n\t\t\t$found = TRUE;\n\t\t} else {\n\t\t\tif ($last+$max_keep_ipbased > $time) {\n\t\t\t\t$newString .= \"$host|>|$first|>|$last|>|$clicks|>|$thispath|>|\\n\";\n\t\t\t} else {\n\t\t\t\tphpTrafficA_insert_ipbased_entry($c, $table, $first, $last, $clicks, $thispath, $host,$tmpdir);\n\t\t\t}\n\t\t}\n\t}\n}\nif (!$found) { $newString .= \"$ip|>|$time|>|$time|>|1|>|$pageid|>|\\n\";}\n$newstats =fopen(\"$tmpfile\", \"w\");\nflock ($newstats,2);\nfwrite($newstats,$newString);\n// @flock ($newstats,3); Removed. No need to free the lock since it is done automatically when closing.\nfclose($newstats);\n\nif ($newpath) {\n\t// Add country, OS, and browser\n\t$monthstring = date(\"Y-m\",$time).\"-01\";\n\tlist($wb,$os)=explode(\";\",phpTrafficA_ExtractAgent($agent,$conf['browser_id'],$conf['browser_label'],$conf['os_id'],$conf['os_label']));\n\t$test = phpTrafficA_addDB_LDC(\"${table}_os\",$c,$monthstring,$os);\n\t$test = phpTrafficA_addDB_LDC(\"${table}_browser\",$c,$monthstring,$wb);\n\tif (!(preg_match(\"/Crawler/i\", $wb))) {\n\t\tif (!(preg_match(\"/Google/i\", $wb))) {\n\t\t\t$country = ip2Country($ip,$ip2c);\n\t\t\t$test = phpTrafficA_addDB_LDC(\"${table}_country\",$c,$monthstring,$country);\n\t\t}\n\t}\n}\n\n// If screen resolution has been recorded, store it for this IP\nif (trim($resolution)!=\"\") {\n\t$tmpfile = \"$tmpdir/resolution.$table.dat\";\n\tif (!file_exists($tmpfile)) {\n\t\ttouch($tmpfile);\n\t}\n\t$stats = file(\"$tmpfile\");\n\t$found = FALSE;\n\t$newString = \"\";\n\tforeach($stats as $log) {\n\t\t$log_arr = explode(\"|>|\", $log);\n\t\t$host = $log_arr[0];\n\t\t$res = $log_arr[1];\n\t\tif ($host==$ip) {\n\t\t\t$newString .= \"$ip|>|$resolution\\n\";\n\t\t\t$found = true;\n\t\t} else if (trim($host) != '') $newString .= \"$host|>|$res\\n\";\n\t}\n\tif (!$found) $newString .= \"$ip|>|$resolution\\n\";\n\t$newstats =fopen(\"$tmpfile\", \"w\");\n\tflock ($newstats,2);\n\tfwrite($newstats,$newString);\n\t// @flock ($newstats,3);Removed. No need to free the lock since it is done automatically when closing.\n\tfclose($newstats);\n}\n\nreturn 1;\n}", "public function howLongToCacheInSeconds(){\n return(120); //two minutes by default\n }" ]
[ "0.6320491", "0.583366", "0.57665706", "0.5460154", "0.5452807", "0.5408067", "0.5408067", "0.5361487", "0.5330827", "0.5307617", "0.5277414", "0.51894975", "0.5173899", "0.5131957", "0.51305836", "0.50775164", "0.50775164", "0.49747497", "0.49705458", "0.49536857", "0.49531162", "0.4940705", "0.49150738", "0.49150622", "0.4879594", "0.4879594", "0.4879594", "0.4879594", "0.4876724", "0.48655537", "0.47882563", "0.47577065", "0.47447437", "0.4739393", "0.47201365", "0.4693964", "0.4685487", "0.46706742", "0.4669715", "0.46684313", "0.46490565", "0.4647057", "0.4636654", "0.4634357", "0.46244135", "0.46185184", "0.4617801", "0.458472", "0.45790258", "0.4570316", "0.45677212", "0.45597628", "0.45481175", "0.45253578", "0.45157057", "0.45021385", "0.45000136", "0.4495778", "0.4493776", "0.4491899", "0.44799873", "0.4466025", "0.44620207", "0.44601792", "0.44501263", "0.44306815", "0.4426331", "0.4423184", "0.4414932", "0.43998665", "0.43964392", "0.43963546", "0.43782806", "0.43781695", "0.43778923", "0.43738347", "0.43667093", "0.43616924", "0.43504098", "0.4350272", "0.4344448", "0.43436778", "0.43353254", "0.43295178", "0.43222597", "0.43188536", "0.43022412", "0.42994347", "0.42979708", "0.42955464", "0.42898038", "0.42874068", "0.42669266", "0.42647687", "0.4255612", "0.42468917", "0.42435652", "0.42414635", "0.42406937", "0.4233722", "0.42302704" ]
0.0
-1
Check if action is allowed
public function allow() { foreach ($this->getRules() as $rule) { if (!$this->check($rule)) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isAllowedAction($action) {\n\t\t\treturn true;\n\t\t}", "public function isActionAllowed($action){\r\n if(in_array($action,$this->_allowedActions)){\r\n return true;\r\n }\r\n return false;\r\n }", "protected function isAllowedAction($action)\n {\n return true;\n }", "protected function isAllowed() {\n\t\treturn $this->allowedActions == array('*') ||\n\t\t\t\tin_array($this->_request->params['action'], array_map('strtolower', $this->allowedActions));\n\t}", "private static function action_allowed( $action ) {\n\t\tif ( in_array( $action, self::allowed_actions() ) ) {\n\t\t\t$class = route::action_class( $action );\n\t\t\tif ( self::check_interface( $class ) && self::check_parent_class( $class ) ) {\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t}\n\n\t}", "public function hasPermission($action = \"\");", "private function isAllowed() {\n $allowed = array(\n \"rss\" => array(\"feed\"),\n \"torrent\" => array(\"download\"),\n \"user\" => array(\"login\", \"register\", \"confirm\", \"recover\", \"invite\")\n );\n if (!isset($allowed[$this->data['url']['application']]))\n return false;\n if (in_array($this->data['url']['action'], $allowed[$this->data['url']['application']]))\n return true;\n else\n return false;\n }", "public function isActionAllowed($action)\n\t{\n\t\treturn Mage::getSingleton('admin/session')->isAllowed('rees46/manage/' . $action);\n\t}", "function isActionAllowed($controller_id = null, $action_id = null, $event_id = null, $model_id = null, $group_id = null)\n {\n\t\t$actionAllowed = parent::isActionAllowed($controller_id, $action_id, $event_id, $model_id, $group_id);\n\n\t\t$hikeStatus = EventNames::model()->getStatusHike($event_id);\n\t\t$rolPlayer = DeelnemersEvent::model()->getRolOfPlayer($event_id, Yii::app()->user->id);\n\t\treturn $actionAllowed;\n\t}", "public function beforeAction($action)\r\n {\r\n $user = $this->user;\r\n $request = Yii::$app->getRequest();\r\n $this->rule->permission = $this->getActionId($action);\r\n if(!$this->rule->allows($action, $user, $request)){\r\n $this->denyAccess($user);\r\n return false;\r\n }\r\n return true;\r\n }", "function valid_action() {\n # of pages that are about that page (i.e. not admin\n # or recent changes)\n global $ACT;\n if($ACT == 'show') { return true; }\n if($ACT == 'edit') { return true; }\n if($ACT == 'revisions') { return true; }\n return false;\n }", "protected function _isAllowed($action)\n {\n return Mage::getSingleton('admin/session')->isAllowed($action);\n }", "public function has_valid_action(): bool {\n\t\treturn is_string( $this->get_action() )\n\t\t&& \\mb_strlen( $this->get_action() ) > 0;\n\t}", "abstract function allowAddAction();", "public function isActionAllowed($section, $reference, $action = NULL) ;", "protected function _isAllowedAction($action)\n {\n return Mage::getSingleton('admin/session')->isAllowed('magna_news/' . $action);\n }", "public function isAction()\n {\n $args = func_get_args();\n foreach ($args as $arg)\n {\n // Check if action is set and exists\n if ($_POST['action'] == $arg || $_GET['action'] == $arg)\n {\n // quit here\n return true;\n }\n }\n\n return false;\n }", "private function _isAllowed()\r\n {\r\n $req = $this->app->request();\r\n $resource = strtoupper($req->getMethod()) . $req->getResourceUri() ;\r\n return in_array($resource, $this->config['allowed_resources']);\r\n }", "protected function _isAllowed()\n {\n \treturn true;\n }", "public function check_permission(string $action): void;", "public function hasActions();", "protected function _isAllowed()\n {\n return $this->_getAclHelper()->isActionAllowed($this->_aclSection);\n }", "final public function actionIsAllowed($action)\n\t{\n\t\t$allowed = $this->checkAction($action);\n\n\t\tif (!$allowed)\n\t\t\tthrow new ActionNotAllowedException($action, get_called_class());\n\n\t\treturn true;\n\t}", "protected function _isAllowedAction($action)\n {\n return Mage::getSingleton('admin/session')->isAllowed('blog/post_comment/' . $action);\n }", "protected function _isAllowedAction($action)\n {\n return Mage::getSingleton('admin/session')->isAllowed('cms/page/' . $action);\n }", "public function isAction($action)\n {\n if (!$this->MultiStepForm->isWhitelist($action)) {\n return false;\n }\n\n return parent::isAction($action);\n }", "public function requireAction()\n {\n $args = func_get_args();\n foreach ($args as $arg)\n {\n // Check if action is set and exists\n if ($_POST['action'] == $arg || $_GET['action'] == $arg)\n {\n // quit here\n return;\n }\n }\n\n $this->sendJsonResponse(false, 'Invalid Action!');\n die;\n }", "protected function _isAllowed()\n {\n switch ($this->getRequest()->getActionName()) {\n case 'new':\n case 'save':\n return Mage::getSingleton('admin/session')->isAllowed('requestprice/manage/save');\n break;\n case 'delete':\n return Mage::getSingleton('admin/session')->isAllowed('requestprice/manage/delete');\n default:\n return Mage::getSingleton('admin/session')->isAllowed('requestprice/manage');\n }\n }", "protected function checkActionPermission($action) {\n if (!$this->form_name) {\n return false; //weirdness. should just stop whatever is happening\n }\n if (!parent::checkActionPermission($action)) {\n return false;\n }\n $task = \"person_can_\" . $action . \"_child_form_\" . $this->form_name ;\n return $this->hasPermission(\"task($task)\");\n }", "public function exempt($action): bool;", "public function forbiddenAction() {\n }", "public function isAllowed(): bool\n {\n foreach ($this->rights as $rights) {\n [$module, $action] = explode('/', $rights);\n\n // check action rights\n if ($module !== '' && $action !== '' && !BackendAuthentication::isAllowedAction($action, $module)) {\n return false;\n }\n }\n\n return true;\n }", "private function checkFieldAction($postParams): bool\n {\n if (in_array($postParams['action'], ['allow', 'deny'])) {\n return true;\n }\n return false;\n }", "public function authorize(): bool\n {\n return $this->user()->can('anyAction', ChessRule::class);\n }", "public function checkActions() {\n if (isset($this->request_json->action)) {\n\n if (is_array($this->request_json->action)) {\n $this->request_json->action = array_pop($this->request_json->action);\n }\n $vars = array('data' => (array) $this->request_json);\n $this->hook('action_' . $this->request_json->action, $vars);\n exit;\n }\n }", "public function authorize()\n {\n return $this->user()->can('anyAction', ChessRule::class);\n }", "private function permissionCheck($action){\n\n\t\tglobal $checkgroup, $checkmod;\n\t\t\n\t\t#autmatically fail check if user is a guest, and its not set to public.\n\t\tif(($this->user == \"guest\") AND ($action != 0)){\n\t\t $permissionChk = false;\n\t\t}else{\n\t\t\tif($checkmod == 1){\n\t\t\t\t$permissionChk = true;\n\t\t\t}else{\n\t\t\t\tif(($action == 1) AND ($this->groupAccessLevel() == 1)){\n\t\t\t\t\t$permissionChk = true;\n\t\t\t\t}elseif(($action == 2) AND ($this->groupAccessLevel() == 1) or ($this->groupAccessLevel() == 2)){\n\t\t\t\t\t$permissionChk = true;\n\t\t\t\t}elseif(($action == 3) AND ($this->groupAccessLevel() == 3) or ($this->groupAccessLevel() == 2) or ($this->groupAccessLevel() == 1)){\n\t\t\t\t\t$permissionChk = true;\n\t\t\t\t}elseif($action == 4){\n\t\t\t\t\t$permissionChk = false;\n\t\t\t\t}elseif(($action == 5) and ($checkgroup == 1) or ($this->groupAccessLevel() == 1) or ($checkmod == 1)){\n\t\t\t\t\t$permissionChk = true;\n\t\t\t\t}elseif($action == 0){\n\t\t\t\t\t$permissionChk = true;\n\t\t\t\t}else{\n\t\t\t\t\t$permissionChk = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn($permissionChk);\n\t}", "protected function _checkIsForcedFormKeyAction()\n {\n return in_array($this->getRequest()->getActionName(), $this->_forcedFormKeyActions);\n }", "public function beforeAction($event)\n {\n $action = $event->id;\n if (isset($this->actions[$action])) {\n $verbs = $this->actions[$action];\n } elseif (isset($this->actions['*'])) {\n $verbs = $this->actions['*'];\n } else {\n return $event->isValid;\n }\n $verb = Yii::$app->getRequest()->getMethod();\n \n $allowed = array_map('strtoupper', $verbs);\n \n if (!in_array($verb, $allowed)) {\n \n $this->setHeader(400);\n echo json_encode(array('status'=>0,'error_code'=>400,'message'=>'Method not allowed'),JSON_PRETTY_PRINT);\n exit;\n \n } \n \n return true; \n }", "public function canUserDoThisActionDirectly($action_name)\n {\n if (!auth()->check()) {return abort(401, 'You are not authenticated');}\n\t\tif(isset($this->actions[$action_name])){\t\n\t\t\treturn auth()->user()->can($this->actions[$action_name]);\n\t\t}\n\t\treturn false;\n }", "public function supportsAction($actions);", "protected function isAllowedPageAction( $action ) {\n\t\t$title = $this->getTitle();\n\t\t$config = $this->getMFConfig();\n\n\t\tif (\n\t\t\t! in_array( $action, $config->get( 'MinervaPageActions' ) )\n\t\t\t|| $title->isMainPage()\n\t\t\t|| ( $this->isUserPage && !$title->exists() )\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( $action === 'edit' ) {\n\t\t\treturn $this->isCurrentPageContentModelEditable();\n\t\t}\n\n\t\tif ( $action === 'switch-language' ) {\n\t\t\treturn $this->doesPageHaveLanguages || $config->get( 'MinervaAlwaysShowLanguageButton' );\n\t\t}\n\n\t\treturn true;\n\t}", "public function execute()\n {\n if (Application::isGuest()) {\n // Check if the provided value exists in the array\n if (empty($this->actions) || in_array(Application::$jinx->controller->action, $this->actions)) {\n throw new ForbiddenException();\n }\n }\n }", "public function authorize()\n {\n if(!isset($this->action)){\n return false;\n }\n\n if($this->action === \"add\"){\n return Auth::guard('api')->check();\n }else if($this->action === \"update\" || $this->action === \"delete\"){\n if(empty($this->income) || Helper::getStringType($this->income) !== \"integer\"){\n return false;\n }\n\n // not existing or deleted\n if(empty((new Income)->income($this->income))){\n return false;\n }\n\n return Income::canModify(Auth::guard('api')->id(), $this->income) && Auth::guard('api')->check();\n }\n\n return false;\n }", "public function isPermitted($action)\r\n {\r\n // users Roles\r\n $Roles = $this->User->RoleCollection->getPropertyList('name');\r\n $Roles[] = 'everyone';\r\n\r\n // if user is owner\r\n if ($this->isOwner()) {\r\n $Roles[] = 'owner';\r\n }\r\n\r\n // superadmin can do anything\r\n if (in_array('superadmin', $Roles)) {\r\n return true;\r\n }\r\n\r\n // only roles user is in can perform an action with those roles set\r\n $AllowedGroups = $this->Permissions->getPermitted($action);\r\n if ($permitted = (bool) count(array_intersect($Roles, $AllowedGroups))) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "abstract function allowEditAction();", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Rapidmage_Firewall::manage_rules');\n }", "protected function _isAllowed()\n {\n \n $actionName = $this->getRequest()->getActionName();\n switch ($actionName) {\n case 'index':\n case 'edit':\n case 'delete':\n // intentionally no break\n default:\n $adminSession = Mage::getSingleton('admin/session');\n $isAllowed = $adminSession\n ->isAllowed('testimonials_clients/client');\n break;\n }\n \n return $isAllowed;\n }", "function hasAction()\n {\n return !is_null($this->_action);\n }", "abstract function allowDeleteAction();", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_misc/aircraft');\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_material/bs_handover/handovertwo');\n }", "public abstract function isAllowed($operation);", "protected function _isAllowed()\n {\n switch ($this->getRequest()->getActionName()) {\n case 'new':\n case 'save':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserSaveVersion();\n break;\n case 'delete':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteVersion();\n break;\n case 'massDeleteRevisions':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteRevision();\n break;\n default:\n return Mage::getSingleton('admin/session')->isAllowed('cms/page');\n break;\n }\n }", "public function current_role_can(string $action): bool;", "public static function check_access( $action ) {\n\n\t\t$skip = self::non_auth_actions();\n\n\t\tif ( ! HT_DEV_MODE ) {\n\t\t\tif ( ! in_array( $action, $skip ) ) {\n\t\t\t\t$nonce = pods_v_sanitized( 'nonce' );\n\n\t\t\t\tif ( ! self::check_nonce_and_referer( $nonce ) ) {\n\t\t\t\t\treturn 550;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tif ( ! self::action_allowed( $action ) ) {\n\t\t\treturn 501;\n\n\t\t}\n\n\t\treturn 200;\n\n\t}", "public function isForbidden();", "protected function _isAllowedAction($action)\n {\n return Mage::getSingleton('admin/session')->isAllowed('cms/magify_bannermanager/groups/' . $action);\n }", "function is_protected_ajax_action()\n {\n }", "private static function allowed_actions() {\n\t\t$key = __CLASS__ . __METHOD__;\n\t\tif ( false == ( $actions = get_transient( $key ) ) ) {\n\t\t\t$dir = trailingslashit( dirname( __FILE__ ) ) . 'actions';\n\t\t\t$files = scandir( $dir );\n\t\t\tforeach ( $files as $file ) {\n\t\t\t\t$path = pathinfo( $file, PATHINFO_EXTENSION );\n\t\t\t\tif ( 'php' == $path ) {\n\t\t\t\t\t$file = str_replace( '.php', '', $file );\n\t\t\t\t\t$actions[] = $file;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tset_transient( $key, $actions, WEEK_IN_SECONDS );\n\n\t\t}\n\n\t\t/**\n\t\t * Filter allowable actions for internal API\n\t\t *\n\t\t * @since 0.1.0\n\t\t *\n\t\t * @param array $actions Actions to allow\n\t\t *\n\t\t * @return array\n\t\t */\n\t\treturn apply_filters( 'ht_dms_internal_api_allowed_actions', $actions );\n\n\t}", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Lof_Outlet::outlet_edit');\n }", "public function authorize()\n {\n return Gate::allows('add_to_dos') ? true : false;\n }", "function checkAccess( $action, $access = '' ) {\r\n $result = true;\r\n if ( is_array( $access ) && array_key_exists( $action, $access ) ) {\r\n if ( array_key_exists( 'role', $access[$action] ) ) {\r\n if ( in_array( $this->user_role, $access[$action]['role'])) {\r\n $result = false;\r\n }\r\n } else {\r\n if ( !in_array( $this->user_role, $access[$action] ) ) {\r\n $result = false;\r\n }\r\n }\r\n }\r\n return $result;\r\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_logistics/equipment');\n }", "public function check($action = '')\n {\n $action_field = explode('.', trim($action,\"' \"));\n $_action = $action_field[0] ?? null;\n $_field = $action_field[1] ?? null;\n\n $permissions = $this->permissions();\n $_permission = false;\n\n\n if($_action)\n {\n //$_permission = !isset($permissions[$_action]) ?: !!$permissions[$_action];\n\n $_permissions = $permissions[$_action] ?? null;\n $_permission = ($_permissions) ? !!$_permissions : $_permission;\n\n if($_field && is_array($_permissions))\n {\n $_permission = (isset($_permissions[$_field])) ? !!$_permissions[$_field] : false;//$_permission;\n }\n }\n\n return $_permission;\n }", "protected function assertControllerAllowAction($action)\n {\n $this->expectAccessTo($action, true);\n }", "public function allow($action = null) {\n\t\t$args = func_get_args();\n\t\tif(empty($args) || $action === null) {\n\t\t\t$this->allowedActions = $this->_methods;\n\t\t} else {\n\t\t\tif(isset($args[0]) && is_array($args[0])) {\n\t\t\t\t$args = $args[0];\n\t\t\t}\n\t\t\t$this->allowedActions = array_merge($this->allowedActions, $args);\n\t\t}\n\t}", "public function user_is_allowed()\n {\n //check if the record exist\n if (! $this->record) {\n $this->build_error('These record does not exist or it may not belong to you',404);\n }\n\n //check if the user is the owner of the entry\n if(!isOwner($this->record)) {\n $this->build_error('you are not the owner of this task');\n }\n\n //check if the incomming entries type is Array\n if (!is_array($this->request->entries)) {\n $this->build_error('Please the entries must be an Array');\n }\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/emag_upload_invoice');\n }", "public function hasAction(string $name): bool;", "protected function checkIsAuthorized(string $action): bool\n {\n return method_exists($this, $action)\n ? $this->$action()\n : false;\n }", "public function can($action = '', Model $entity)\n {\n // This is split in two parts. We look if the user is part of a is_admin role, or of a role that has the permission\n /*\n * Select * from campaign_roles as r\n * where r.campaign_id = $1\n */\n }", "public function check_security( $action = - 1, $query_arg = 'security' ) {\r\n\t\tif ( - 1 == $action ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$adminurl = strtolower( admin_url() );\r\n\t\t$referer = strtolower( wp_get_referer() );\r\n\t\t$result = isset( $_REQUEST[ $query_arg ] ) ? wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST[ $query_arg ] ) ), $action ) : false;\r\n\t\tif ( ! $result && ! ( - 1 == $action && 0 === strpos( $referer, $adminurl ) ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public function canExecute($action, $user){\n return $user != null && (Security::is_dairy($user) || $user->is_veterinary());\n }", "public function acceptLoginAction() {\n\t\treturn FALSE;\n\t}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('sales/mfb_myflyingbox/offer');\n }", "public function isActionRequest()\n\t{\n\t\t$this->_checkRequestType();\n\t\treturn $this->_isActionRequest;\n\t}", "public function validateCustomerAttributeActions()\n {\n $actionName = $this->getActionName();\n $attributeId = $this->_request->getParam('attribute_id');\n $websiteId = $this->_request->getParam('website');\n if (in_array($actionName, [self::ACTION_NEW, self::ACTION_DELETE])\n || in_array($actionName, [self::ACTION_EDIT, self::ACTION_SAVE])\n && !$attributeId\n || $websiteId\n && !$this->_role->hasWebsiteAccess($websiteId, true)\n ) {\n $this->_forward();\n return false;\n }\n return true;\n }", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Pronko_TaskManagement::TaskManagement_save');\n }", "public function allowAction()\n\t{\trequire_once( 'form.inc' );\n\n\t\tif( $this->_getParam('user') )\n\t\t{\tif( $this->db->allowRefund($this->_getParam('user')) )\n\t\t\t{\n\t\t\t}else\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\t// Calculate the number for the past term\n\t\t$term = (date('Y') - 1900) * 10 + floor((date('m') - 1) / 4) * 4 + 1;\n\t\tif( $term % 10 == 1 )\n\t\t{\t$term -= 2;\n\t\t}else\n\t\t{\t$term -= 4;\n\t\t}\n\n\t\t// Add list of people who already have been enabled\n\t\t$this->view->user_allowed = implode( \", \", $this->db->getRefunds('REGULAR', $term));\n\n\t\t// Add list of users who got their refunds last term\n\t\t$this->view->user_options = $this->db->getRefunds('RECEIVED', $term);\n\t}", "public function checkAccess()\n {\n // need to be modified for security\n }", "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Formax_FormCrud::formcrud_create') ||\n $this->_authorization->isAllowed('Formax_FormCrud::formcrud_update');\n }", "public function check_access() {\n\n\t\tif (isset($this->current_entity_allowed)) {\n\t\t\treturn apply_filters('minerva_restrict_access_allowed', $this->current_entity_allowed);\n\t\t}\n\n\t\t$this->current_entity_allowed = MKB_Options::option('restrict_on') ?\n\t\t\t(bool) $this->check_entity_access($this->get_current_entity()) :\n\t\t\ttrue; // always allowed if restriction is off\n\n\t\treturn apply_filters('minerva_restrict_access_allowed', $this->current_entity_allowed);\n\t}", "public function beforeAction($action)\n {\n // which are triggered on the [[EVENT_BEFORE_ACTION]] event, e.g. PageCache or AccessControl\n if (!parent::beforeAction($action)) {\n return false;\n }\n if (Service::verifyAccess(Yii::$app->getRequest()->getQueryParam('app_id'),Yii::$app->getRequest()->getQueryParam('app_secret'))) {\n return true;\n } else {\n echo 'your api keys are from the dark side';\n Yii::$app->end();\n }\n }", "function checkRequesterIP($action) {\n return isUserLoggedOn() || $this->getCountOfRequest($action,24) < $action;\n }", "protected function _isAllowed()\n {\n if ($this->_shipment) {\n return $this->_authorization->isAllowed('Temando_Temando::temando_shipments_view');\n } else {\n return $this->_authorization->isAllowed('Temando_Temando::temando_pickups_view');\n }\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_kst/ifeedback');\n }", "function can($action, $params=array()){\n $logger = Logger::getInstance();\n\n $user = false;\n if(isset($_SESSION['JR'])){\n //who is logged in.\n $user = $_SESSION['JR']->getUser();\n }\n\n //If someone is logged in\n if($user !== false){\n switch($action){\n case 'find':\n //IF searching for own address, return true;\n $ret = true;\n foreach($params[0] as $p){\n if($p[0] == \"person_id\"){\n if(count($p) == 2 && $p[1] == $user['person_id']) $ret = true && $ret;\n else if(count($p) == 3 && $p[2] == $user['person_id']) $ret = true && $ret;\n else $ret = false;\n }\n }\n if($ret) return true;\n //Otherwise let anyone but reviewers search addresses\n return $user['role_id'] != ROLE::REVIEWER;\n\n case 'read':\n //Let anyone but reviewers read addresses, except their own\n return $this->vals['person_id'] == $user['person_id'] || $user['role_id'] != ROLE::REVIEWER;\n break;\n case 'update':\n //A user can update their own address\n if($user['person_id'] == $this->person_id) return true;\n \n //Administrators and Editors can edit addresses\n return $user['role_id'] == ROLE::ADMINISTRATOR || $user['role_id'] == ROLE::EDITOR;\n break;\n case 'create':\n if($user['person_id'] == $params['person_id']) return true;\n case 'delete':\n //Administrators, Editors can create and delete\n return $user['role_id'] == ROLE::ADMINISTRATOR || $user['role_id'] == ROLE::EDITOR;\n break;\n }\n }\n\n $logger->log(\"Permission Denied!\",Logger::DEBUG,true);\n return false;\n\n\n }", "function isActionAllowed($controller_id = null,\n\t\t\t\t\t\t\t $action_id = null,\n\t\t\t\t\t\t\t $event_id = null,\n\t\t\t\t\t\t\t $model_id = null,\n\t\t\t\t\t\t\t $group_id = null,\n\t\t\t\t\t\t\t $date = null,\n\t\t\t\t\t\t\t $order = null,\n\t\t\t\t\t\t\t $move = null)\n {\n\t\t$actionAllowed = parent::isActionAllowed($controller_id, $action_id, $event_id, $model_id, $group_id);\n\n\t\t$hikeStatus = EventNames::model()->getStatusHike($event_id);\n\t\t$rolPlayer = DeelnemersEvent::model()->getRolOfPlayer($event_id, Yii::app()->user->id);\n\t\t$route_id = OpenVragen::model()->getRouteIdVraag($model_id);\n\n\t\tif ($action_id == 'moveUpDownVraag' and\n\t\t\t$hikeStatus == EventNames::STATUS_opstart and\n\t\t\t$rolPlayer == DeelnemersEvent::ROL_organisatie) {\n\t\t\t\t$actionAllowed = true;\n\t\t}\n\n\t\tif ($action_id == 'createIntroductie' and\n\t\t\t$hikeStatus == EventNames::STATUS_opstart and\n\t\t\t$rolPlayer == DeelnemersEvent::ROL_organisatie) {\n\t\t\t\t$actionAllowed = true;\n\t\t}\n\n\t\tif ($action_id == 'moveUpDown'){\n\t\t\tif (!isset($order) || !isset($route_id)){\n\t\t\t\treturn $actionAllowed;\n\t\t\t}\n\t\t\tif ($hikeStatus != EventNames::STATUS_opstart or\n\t\t\t\t$rolPlayer != DeelnemersEvent::ROL_organisatie) {\n\t\t\t\t\treturn $actionAllowed;\n\t\t\t}\n\t\t\tif ($move == 'up') {\n\t\t\t\t$nextOrderExist = OpenVragen::model()->higherOrderNumberExists($event_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $model_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $order,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $route_id);\n\t\t\t}\n\t\t\tif ($move == 'down') {\n\t\t\t\t$nextOrderExist = OpenVragen::model()->lowerOrderNumberExists($event_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $model_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $order,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $route_id);\n\t\t\t}\n\t\t\tif ($nextOrderExist) {\n\t\t\t\t$actionAllowed = true;\n\t\t\t}\n\t\t}\n\n\t\treturn $actionAllowed;\n\t}", "public function checkAuth($action = NULL)\n\t{\n\t\tif(!isset($this->permissionObject))\n\t\t{\n\t\t\t$user = ActiveUser::getUser();\n\n\t\t\tif($site = ActiveSite::getSite())\n\t\t\t{\n\t\t\t\t$this->permissionObject = new Permissions($site->getLocation(), $user);\n\t\t\t}else{\n\t\t\t\t$this->permissionObject = new Permissions(1, $user); // 1 == Root\n\t\t\t}\n\t\t}\n\n\t\tif(!$action)\n\t\t\t$action = static::$requiredPermission;\n\n\t\t$type = static::$requiredPermissionType;\n\n\t\tif(!$type)\n\t\t\t$type = 'Base';\n\n\t\treturn $this->permissionObject->isAllowed($action, $type);\n\t}", "function check_permission()\n\t{\n\t\t$CFG = $this->config->item('permission_modify_configure');\n\t\tif( ! addPermission( $CFG[\"sector\"][\"add\"] ) )\n\t\t{\n\t\t\t$this->form_validation->set_message('check_permission', _e('access denied'));\n\t\t\treturn false;\t\t\t\t\n\t\t}\n\t}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('magjah_dash/dash');\n }", "function allow($operation,$params=array(),$allowCaching=true)\n{\n\treturn Yii::app()->user->checkAccess($operation,$params,$allowCaching);\n}", "public function execute()\n {\n if (Application::isGuest()) {\n if (empty($this->actions) || in_array(Application::$app->controller->action, $this->actions)) {\n throw new ForbiddenException();\n }\n }\n }", "public function beforeAction($action): bool\n {\n if (in_array($action->actionMethod, $action->controller->requestLimitActions)) {\n $hash = $this->generateHashBy($action->actionMethod);\n if (!$this->handle($hash)) {\n throw new \\Exception(\n Yii::t('app', 'The limit of access to server was ended')\n );\n }\n }\n\n return parent::beforeAction($action);\n }", "protected function _isAllowed()\n\t{\n\t\treturn Mage::getSingleton('admin/session')->isAllowed('dropship360/inventory');\n\t}", "protected function check_permission()\n {\n return true;\n }", "protected function _isAllowed()\r\n {\r\n return Mage::getSingleton('admin/session')->isAllowed('system/thetailor_workgroup_workflow');\r\n }", "function has_permission_to_action_role()\n\t{\n\t\t// intialize response data\n\t\t$jsonData = array('success' => false);\n\t\t$role_creator = $this->input->post('role_creator');\n\t\t$role_id = $this->input->post('role_id');\n\t\t$action = $this->input->post('action');\n\t\tif ($this->permission->has_permission('role', $action)) {\n\t\t\t$jsonData['success'] = true;\n\t\t}\n\t\t// send response to client\n\t\techo json_encode($jsonData);\n\t}", "public function __checkAuthentication($user, $action) {\n $action = $this->action;\n $authFlag = false;\n $role = $this->UserAuth->user(\"user_role\");\n switch ($role) {\n case 1001:\n if (in_array($action, $this->superadminActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n case 1002:\n if (in_array($action, $this->adminActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n case 1003:\n if (in_array($action, $this->instituteAdminActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n case 1004:\n if (in_array($action, $this->branchActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n case 1005:\n if (in_array($action, $this->teacherActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n case 1006:\n if (in_array($action, $this->accountantActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n case 1007:\n if (in_array($action, $this->parentActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break; \n default:\n if (in_array($action, $this->guestActions)) {\n $authFlag = true;\n $action = 'index';\n }\n break;\n }\n\n if (!$authFlag) {\n $this->_setFlashMsgs(__('You are not authorized for this action'), 'danger');\n $this->redirect($this->UserAuth->redirect());\n return false;\n } else {\n return true;\n }\n return self::isAuthorized($user);\n }", "private function _checkAccessPermitted ()\r\n {\r\n $this->_getPermitedScripts();\r\n if (array_search(basename($_SERVER['PHP_SELF']), $this->_scriptAccess) === false) {\r\n $ip = (getenv('HTTP_X_FORWARDED_FOR') ? getenv('HTTP_X_FORWARDED_FOR') : getenv('REMOTE_ADDR'));\r\n $sql = \"INSERT INTO `_log` (`date`, `activity`, `info`) VALUES ('$date', 'admin_access_not_granted', 'user={$this->_username};IP={$ip};script=\" . basename($_SERVER['PHP_SELF']) . \"')\";\r\n mysql_query($sql, db_c());\r\n \r\n $this->_dispatchError('zoneError');\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }" ]
[ "0.8500807", "0.79750603", "0.79603094", "0.79280543", "0.7923199", "0.77334404", "0.7700947", "0.7618391", "0.7468768", "0.73773235", "0.73711884", "0.7311027", "0.72411704", "0.722267", "0.7215428", "0.71965337", "0.7158741", "0.7139499", "0.71328634", "0.7130165", "0.7115449", "0.70854187", "0.7042391", "0.7011423", "0.7011015", "0.70002097", "0.6994199", "0.6983542", "0.6948327", "0.69267935", "0.6924952", "0.68686545", "0.68661696", "0.68444246", "0.6838625", "0.68297845", "0.68226427", "0.6808095", "0.68068296", "0.6797804", "0.6793993", "0.67817485", "0.67666084", "0.6750836", "0.6749839", "0.67300093", "0.67296463", "0.6727676", "0.6725347", "0.667799", "0.6677811", "0.6676348", "0.6670748", "0.6661515", "0.6660881", "0.66450197", "0.6644892", "0.66443133", "0.6640836", "0.66033906", "0.6592895", "0.6584881", "0.65839595", "0.6582626", "0.6570845", "0.65671873", "0.6563846", "0.6550297", "0.65443933", "0.6541865", "0.6538005", "0.6536764", "0.65350765", "0.6533112", "0.6522984", "0.65196455", "0.64967746", "0.6490314", "0.64790404", "0.6462342", "0.6461806", "0.6456856", "0.64556795", "0.64546627", "0.6449561", "0.64441544", "0.64403254", "0.64378554", "0.6418318", "0.6417987", "0.6411445", "0.64059347", "0.6400365", "0.639804", "0.63887346", "0.63886935", "0.6385787", "0.6377565", "0.6374742", "0.63714033", "0.63674796" ]
0.0
-1
Get last error message
public function error() { if ($rule = $this->rule) { return trans($rule->message, [ 'limit' => $rule->limit, 'interval' => $this->next()->diffAsCarbonInterval(), 'event' => $this->driver, 'seconds' => $rule->seconds ]); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastErrorMessage()\n {\n return $this->lastErrorMessage;\n }", "function get_last_error() {\n\t\treturn $this->errors[count($this->errors - 1)];\n\t}", "public final function last_error_message()\n {\n return isset($this->error) ? $this->error['message'] : '';\n }", "public function lastError()\r\n\t{\r\n\t\tif( $this->conn->Errors->Count )\r\n\t\t\treturn $this->conn->Errors[ $this->conn->Errors->Count - 1 ]->Description;\r\n\t\t\r\n\t\treturn '';\r\n\t}", "public function getLastErrorMessage(): ?string;", "public function get_last_error() {\n\t\treturn $this->last_error;\n\t}", "public final function getLastErrorMsg() {\n return $this->lastErrorMsg;\n }", "public function get_last_error() {\n return $this->last_error;\n }", "public function get_last_error() {\n\t\treturn $this->_error;\n\t}", "public function getErrorMsg()\r\n {\r\n return $this->lastErrorMsg;\r\n }", "public function getLastError()\r\n\t{\r\n\t\t// TODO: we should move this to returning an Error\r\n\t\t$numErrors = count($this->errors);\r\n\t\tif ($numErrors > 0)\r\n\t\t{\r\n\t\t\treturn $this->errors[$numErrors-1]['message'];\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\t}", "public function get_last_error_text() {\n\n if (!empty($this->last_error_text)) {\n return $this->last_error_text;\n }\n\n return FALSE;\n }", "public function lastError()\n {\n if (!empty($this->_query->_ERRORS)) {\n echo '<pre>';\n echo $this->_query->_ERRORSPLAIN[ count($this->_query->_ERRORS) - 1 ];\n echo '</pre>';\n } elseif (!empty($this->_ERRORS)) {\n echo '<pre>';\n echo $this->_ERRORSPLAIN[ count($this->_ERRORS) - 1 ];\n echo '</pre>';\n }\n }", "public function lastError()\r\n\t{\r\n\t\treturn @mssql_get_last_message();\r\n\t}", "public function get_last_error()\n {\n return $this->_error;\n }", "public function lastError()\n {\n return $this->error;\n }", "public function getLastError()\n {\n return $this->lastErrorMsg;\n }", "public function getLastValidationError(): string;", "public function getLastError(): string\r\n {\r\n return $this->lastError;\r\n }", "function lastError();", "public function getLastError(): string\n {\n return $this->lastError;\n }", "function msgsrv_last_error () {}", "public function getLastError() { return end($this->_traiat_errors); }", "protected function getLastError()\n {\n return error_get_last();\n }", "public function getLastError()\n {\n return $this->_errorMsg;\n }", "public function getLastError()\n {\n return $this->lastError;\n }", "public function getLastError()\n {\n return $this->lastError;\n }", "public function getLastError() {\n\t\t\treturn $this->lastError;\n\t\t}", "protected function getLastPhpErrorMessage()\n {\n $lastError = error_get_last();\n if (!empty($lastError)) {\n $phpMessage = explode(':', $lastError['message'], 2);\n $phpMessage = trim(trim(end($phpMessage)), '.') . '.';\n return $phpMessage;\n }\n\n return '';\n }", "private function getLastXMLErrorMessage()\n {\n $errorMessage = null;\n $error = \\libxml_get_last_error();\n\n if ($error !== false) {\n $errorMessage = \\trim($error->message);\n }\n\n return $errorMessage;\n }", "public function getErrorMessage()\n {\n // then re-apply the error code:\n if(($this->error_code !== 0) && empty($this->error_msg))\n {\n $this->setError($this->error_code);\n }\n return $this->error_msg;\n }", "public function getErrorMessage()\n {\n return $this->error_message;\n }", "public function getErrorMessage()\r\n {\r\n return $this->error_message;\r\n }", "public function lastError(): string\n {\n $errno = smbclient_state_errno($this->state);\n return 'SMB: ' .$this->errorCode[$errno]?? \"error code $errno\";\n }", "public function getErrorMessage()\n {\n $errorMessages = $this->getErrorMessages();\n if (empty($errorMessages)) {\n return false;\n }\n return $errorMessages[0];\n }", "public function getErrorMessage()\n\t{\n\t\treturn $this->errorMessage;\n\t}", "public function getError() {\n\t\treturn $this->current_error;\n\t}", "public function lastError(){\n $error = '';\n \n if ($this->connection){\n $error = mysql_error( $this->connection );\n }\n \n return $error;\n }", "protected function _getErrorMessage()\n {\n return pg_last_error($this->conn_id);\n }", "public function getError() {\n\t\treturn $this->lastError;\n\t}", "public function getErrorMessage()\n {\n return $this->singleValue('//i:errorMessage');\n }", "public function getErrorMessage()\n\t{\n\t\treturn $this->_errorMessage;\n\t}", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage()\n {\n return $this->errorMessage;\n }", "public function getErrorMessage() {\n return $this->errorMessage;\n }", "public function getError() {\n return imap_last_error();\n }", "public function getError()\n {\n return imap_last_error();\n }", "public function get_error_message() {\n\t\treturn $this->error_message;\n\t}", "public function getError()\n {\n return $this->currentError;\n }", "public function getMessage()\n {\n return $this->_error;\n }", "public function getLastError(): ?string\n {\n return $this->last_error;\n }", "public function getError()\r\n {\r\n return count($this->strError) == 0 ? null :\r\n (count($this->strError) == 1 ? $this->strError[0] :\r\n $this->strError);\r\n }", "public function errorMessage() {\n\t\t\treturn $this->strError; \n\t\t}", "public function getErrMsg()\n {\n return $this->get(self::ERRMSG);\n }", "public function getErrorMsg()\n\t{\n\t\treturn $this->error;\n\t}", "protected function getErrorMessage(): string\n\t{\n\t\tif($this->input !== null)\n\t\t{\n\t\t\t$errorMessage = $this->input->getErrorMessage();\n\t\t}\n\n\t\treturn $errorMessage ?? $this->defaultErrorMessage;\n\t}", "function getErrorMsg() {\n\t\treturn $this->errorMsg;\n\t}", "public function getErrMsg() {\n return $this->get(self::ERR_MSG);\n }", "public function getLastError()\n {\n if (!empty($this->_query->_ERRORS)) {\n return $this->_query->_ERRORSPLAIN[ count($this->_query->_ERRORS) - 1 ];\n } elseif (!empty($this->_ERRORS)) {\n return $this->_ERRORSPLAIN[ count($this->_ERRORS) - 1 ];\n }\n\n return false;\n }", "public function getLastError()\n {\n $result = '';\n\n if (is_object($this->provider)) {\n $result = $this->provider->getLastError();\n }\n\n return $result;\n }", "public function errorMessage()\n {\n return $this->error;\n }", "public function message()\n {\n return $this->errorMessage;\n }", "public function message()\n {\n return $this->errorMessage;\n }", "function get_error_message() {\n return $this->error_msg;\n }", "public function message()\n {\n return $this->errorText;\n }", "public function getMsgError() {\r\n return $this->msg_error;\r\n }", "public function getErrorMessage()\n {\n return $this->applyTemplate();\n }", "public function errorMessage()\n\t{\n\t\treturn $this->_source->errorMessage();\n\t}", "public function lastError()\r\n\t{\r\n\t\treturn @db2_stmt_errormsg();\r\n\t}", "public function getError()\n\t{\n\t\t$arr = each($this->error);\n\t\treturn $arr['value'];\n\t}", "public function error()\n\t{\n\t\treturn reset($this->errors);\n\t}", "public function message()\n {\n return $this->getError();\n }", "public function getError()\n {\n if (!empty($this->lastError)) {\n return $this->lastError;\n }\n\n return $this->wpdb->last_error;\n }", "public function getLastError() {}", "public function getErrorMessage() {\n\t\tswitch( $this->error ) {\n\t\t\tcase TAN_NOT_FOUND : return \"Die TAN wurde nicht gefunden\";\n case REGISTRATION_USER_EXISTS : return \"Dieser Nutzer Existiert bereits\";\n\t\t}\n\t}", "public function getLastError();", "public function getErrorMessage()\n\t\t{\n\t\t\t$error = $this->statement->errorInfo();\n\t\t\t$errorText \t= '<h6>Something happened ... :(</h6>';\n\t\t\t$errorText .= 'Error code : '.$error[0].'<br>';\n\t\t\t$errorText .= 'Driver error code : '.$error[1].'<br>';\n\t\t\t$errorText .= 'Error Message : '.$error[2].'<br>';\n\t\t\treturn $errorText;\n\t\t}", "public function getLastError() {\n return $_SESSION['last_login_error'];\n }", "public function getLastErrorCode(): ?string;", "function errorMsg() {\r\n return \r\n $this->resultError;\r\n }", "public function getErrorMessage() : string\n {\n return $this->errorMessage;\n }", "public function errorMessage() {\r\n\t\tif ($this->hasError()) {\r\n\t\t\treturn \"Query:\\n{$this->sql}\\nAnswer:\\n{$this->errorString}\";\r\n\t\t}\r\n\r\n\t\treturn 'No error occurred.';\r\n\t}", "public final function last_error()\n {\n return isset($this->error) ? $this->error : false;\n }", "public function getError(): string\n {\n foreach ($this->getBulkResponses() as $bulkResponse) {\n if ($bulkResponse->hasError()) {\n return $bulkResponse->getError();\n }\n }\n\n return '';\n }", "public function errorMessage() { return $this->errorMessage; }", "public function getError()\n {\n return count($this->errors) ? current($this->errors) : NULL;\n }", "public function getError(): string\n {\n return $this->error;\n }", "public function getCurrentError()\n {\n return $this->getCurrent(self::NAMESPACE_ERROR);\n }", "public function getMessage()\n {\n return isset($this->data->failure_msg) ? $this->data->failure_msg : '';\n }", "public function getError() {\n return $this->get(self::ERROR);\n }", "public function getError() {\n return $this->get(self::ERROR);\n }", "public function getFailureMessage()\n {\n\t\tif(null !== $this->_failed_index)\n\t\t\treturn $this->_items[$this->_failed_index]->getFailureMessage();\n\t\treturn '';\n }", "public function getError()\n {\n $nb_errors = count($this->errors);\n\n if (0 === $nb_errors) {\n return null;\n }\n\n return $this->errors[$nb_errors - 1];\n }", "public function getError(): string\n {\n return $this->Error;\n }", "public function getError();", "public function getError();" ]
[ "0.8786506", "0.86403686", "0.8629148", "0.8274136", "0.82686937", "0.82544786", "0.81902635", "0.81315637", "0.81313294", "0.8125704", "0.8123705", "0.80688304", "0.8053971", "0.80104214", "0.79723203", "0.7970764", "0.7910798", "0.77741146", "0.7739826", "0.77271193", "0.7726241", "0.7721118", "0.7666734", "0.76614016", "0.7660658", "0.7653858", "0.7653858", "0.7651597", "0.7632345", "0.75606847", "0.75592315", "0.75585574", "0.75539416", "0.7545093", "0.7537537", "0.7536663", "0.7531624", "0.7514662", "0.75069296", "0.75032884", "0.74453366", "0.7433449", "0.7428101", "0.7428101", "0.7428101", "0.7428101", "0.7428101", "0.7428101", "0.7428101", "0.7401674", "0.73989594", "0.7395295", "0.7389903", "0.73825455", "0.7363958", "0.73255616", "0.7325032", "0.73237115", "0.7317835", "0.7314545", "0.73072535", "0.7299393", "0.729633", "0.72961795", "0.7291533", "0.7266302", "0.72596574", "0.72596574", "0.7258759", "0.7251091", "0.72402906", "0.72308874", "0.72253335", "0.722245", "0.7219763", "0.7219411", "0.72126055", "0.72005564", "0.7189951", "0.7184033", "0.71785665", "0.71781063", "0.7169656", "0.71689826", "0.71672916", "0.71663713", "0.7160766", "0.7136403", "0.7134993", "0.7134297", "0.708894", "0.70833707", "0.70827234", "0.70807225", "0.7073749", "0.7073749", "0.7070449", "0.7067479", "0.70618254", "0.70610124", "0.70610124" ]
0.0
-1
Check if action is allowed in trycatch style and register the event
public function try() { if (!$this->allow()) { throw new ThrottlingException($this->error(), $this->next()); } else { $this->hit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function actions_init($event, $object_type, $object) {\n \tregister_action(\"error\");\n \treturn true;\n }", "protected function executeActionWithErrorHandling() {\n \n }", "function act() {\n throw $this->exception;\n }", "abstract function allowAddAction();", "public function catch_ALLOW($vlan) \n\t{\n //Rethrow the exception\n\t ALLOW($vlan);\n\t}", "public function manageNotFoundExecutableAction()\n {\n $responses = $this->triggerEvent(__FUNCTION__ . '.normalAction');\n return !$responses->stopped() && $this->flowEvaluator->attemptResume();\n }", "public function try(){\n\n }", "protected function errorAction() {}", "public function onKernelException()\n {\n echo '<br> something wrong happened ! exeption event listener successfuly fired :D ';\n }", "public function checkActions() {\n if (isset($this->request_json->action)) {\n\n if (is_array($this->request_json->action)) {\n $this->request_json->action = array_pop($this->request_json->action);\n }\n $vars = array('data' => (array) $this->request_json);\n $this->hook('action_' . $this->request_json->action, $vars);\n exit;\n }\n }", "public function loginCheckAction()\n {\n\n\n throw new \\Exception('This should never be reached!');\n }", "protected function _register_exception_handler()\n {\n if (!class_exists('\\prggmr\\signal\\integer\\Range', false)){\n require_once 'signal/integer/range.php';\n }\n if (null === $this->_exception_handle_signal) {\n $this->_engine_handle_signal = new \\prggmr\\signal\\integer\\Range(\n 0xE002, 0xE014\n );\n } else {\n if ($this->_search_complex($this->_engine_handle_signal)[0] === self::SEARCH_FOUND) {\n return true;\n }\n }\n $this->handle(function(){\n $args = func_get_args();\n $type = end($args);\n $message = null;\n if ($args[0] instanceof \\Exception) {\n $message = $args[0]->getMessage();\n } else {\n $message = engine_code($type);\n }\n throw new EngineException($message, $type, $args);\n }, $this->_engine_handle_signal, 0, null);\n }", "public function beforeAction($action): bool\n {\n if (in_array($action->actionMethod, $action->controller->requestLimitActions)) {\n $hash = $this->generateHashBy($action->actionMethod);\n if (!$this->handle($hash)) {\n throw new \\Exception(\n Yii::t('app', 'The limit of access to server was ended')\n );\n }\n }\n\n return parent::beforeAction($action);\n }", "public function enable_signaled_exceptions()\n {\n $this->_engine_exceptions = true;\n $this->_register_exception_handler();\n }", "function as_exception_handler($e){\n\t\t$msg = 'Error('.$e->getCode().') '. $e->getMessage().' in '. $e->getFile().':'. $e->getLine();\n\t\t$this->catch_error($msg, 'clickgs plugin crashed');\n\t}", "public function onActionNotFound() {\n if ( method_exists( $this->controller, \"onActionNotFound\" ) ) {\n $this->controller->onActionNotFound();\n } else {\n $closure = $this->onActionNotFound;\n if ( is_object( $closure ) && get_class( $closure ) == \"Closure\" ) {\n $closure();\n }\n }\n }", "function errorHandlerOn()\n\t{\n\t\t$this->bErrorHandler = true;\n\t}", "public function loginCheckAction()\n {\n throw new \\Exception('This should never be reached!');\n }", "public function beforeFilter(Event $event)\n {\n if ($this->getController()->Auth->user('id') ) {\n if ($this->checkAppRegistration() === false) {\n // accessible actions\n\n if (!in_array($this->getController()->request->getParam('action'),$this->getConfig('allowedActions'))) {\n $event->stopPropagation(); // stop event propagation\n if ($this->getController()->request->is('ajax')) {\n throw new ForbiddenException('An Error Occurred processing your request');\n }\n return $this->getController()->redirect(['plugin'=>false,'prefix'=>false,'controller'=>'Dashboard','action'=>'registerApplication']);\n }\n }\n }\n }", "public function execute()\n {\n if (Application::isGuest()) {\n // Check if the provided value exists in the array\n if (empty($this->actions) || in_array(Application::$jinx->controller->action, $this->actions)) {\n throw new ForbiddenException();\n }\n }\n }", "public abstract function onFail();", "function handler($ex) {\n echo \"In exception handler\\n\";\n}", "public static function handle() {\n die(call_user_func([new self::$_class, self::$_action]));\n }", "public function testDispatchErrorNoAction()\n {\n $this->expectException(ResourceNotFoundException::class);\n\n $this->uut->dispatch($this->buildRequest('/unknown-action'));\n }", "function exception_handler($ex) {\n // now let the plugin send the exception to client\n $this->send_error($ex);\n // not much else we can do now, add some logging later\n exit(1);\n }", "private function checkForModuleOrFunctionException():void\n {\n // check for module and function error\n if ($this->hasError()) {\n //check for bad module\n $this->moduleExceptionChecker();\n\n //check for bad function\n $this->functionExceptionChecker();\n }\n }", "protected function _preDispatch($action)\n {\n //parent::_preDispatch($action);\n\n if (!$this->_getReportModel()->canViewReports())\n {\n throw $this->getNoPermissionResponseException();\n }\n }", "function defaultAction() {\n\t\tthrow new xException(\"Method not allowed\", 403);\n\t}", "public function doesCheckModifyAccessListThrowExceptionOnWrongHookInterface() {}", "public static function failed_event_method()\n {\n return false;\n }", "public function execute()\n {\n if (Application::isGuest()) {\n if (empty($this->actions) || in_array(Application::$app->controller->action, $this->actions)) {\n throw new ForbiddenException();\n }\n }\n }", "public function beforeAction($event)\n {\n $action = $event->id;\n if (isset($this->actions[$action])) {\n $verbs = $this->actions[$action];\n } elseif (isset($this->actions['*'])) {\n $verbs = $this->actions['*'];\n } else {\n return $event->isValid;\n }\n $verb = Yii::$app->getRequest()->getMethod();\n \n $allowed = array_map('strtoupper', $verbs);\n \n if (!in_array($verb, $allowed)) {\n \n $this->setHeader(400);\n echo json_encode(array('status'=>0,'error_code'=>400,'message'=>'Method not allowed'),JSON_PRETTY_PRINT);\n exit;\n \n } \n \n return true; \n }", "public function errorOccured();", "public function testFireEventWithInternalOnException()\n {\n $eventManager = new EventManager;\n $eventManager->listen(EventManager::ON_EXCEPTION, function ($ex) {\n $this->assertTrue($ex instanceof \\Exception);\n });\n $eventManager->listen('thrown', function () {\n throw new \\Exception('');\n });\n $eventManager->fire('thrown');\n }", "public function catchEvents(){\n //Take Ajax Request\n $request = Request();\n $DirtyPayload = $request->getContent();\n\n///Function works but try carch doesnt !!!!!\ntry {\n // Process payload into an array with the product id as the key and product title as the value\n $payload = urldecode($DirtyPayload);\n $x = explode( '&' , $payload);\n $allClasses = [];\n foreach ($x as $class) {\n $xl = explode( '=' , $class);\n $allClasses[$xl[0]]=$xl[1];\n }\n static::saveEvents($allClasses);\n\n return \"Items loaded sucessfully | Refresh page.\";\n\n} catch (Exception $e) {\n //return $e;\n\n \\Bugsnag::notifyError('Error getting Shopify products', 'aaaaa'.$e);\n return \"Request resulted in error\";\n }\n}", "function isAllowedAction($action) {\n\t\t\treturn true;\n\t\t}", "public function enableExceptions()\n {\n $this->setExceptions(true);\n }", "final public function allowsEvents() {\n\t\treturn false;\n\t}", "public function notAllowedDeliverHook()\n {\n if (CHAMELEON_CHECK_VALID_USER_SESSION_ON_PROTECTED_DOWNLOADS) {\n throw new AccessDeniedHttpException('Access denied.');\n }\n }", "protected abstract function onAuthorizeMissingOwner(): Effect|Response;", "public function forbiddenAction() {\n }", "public function handle() {\n throw new Exception(\"This is a test exception.\");\n }", "private static function action_allowed( $action ) {\n\t\tif ( in_array( $action, self::allowed_actions() ) ) {\n\t\t\t$class = route::action_class( $action );\n\t\t\tif ( self::check_interface( $class ) && self::check_parent_class( $class ) ) {\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t}\n\n\t}", "protected static function exception()\n {\n foreach (self::fetch('exceptions') as $file) {\n Bus::need($file);\n }\n }", "protected function before_user_func()\n\t{\n\t\tif ($this->config['error_reporting'] !== false)\n\t\t{\n\t\t\tset_error_handler('Phery::error_handler', $this->config['error_reporting']);\n\t\t}\n\n\t\tif (empty($_POST['phery']['csrf']))\n\t\t{\n\t\t\t$_POST['phery']['csrf'] = '';\n\t\t}\n\n\t\tif ($this->csrf($_POST['phery']['csrf']) === false)\n\t\t{\n\t\t\tself::exception($this, 'Invalid CSRF token', self::ERROR_CSRF);\n\t\t}\n\t}", "public function testCanRegisterActionWithUnknownAccessLevel() {\n\t\t_elgg_services()->logger->disable();\n\t\t$this->assertTrue($this->actions->register('test/output', \"$this->actionsDir/output.php\", 'pblc'));\n\t\t$logged = _elgg_services()->logger->enable();\n\n\t\t$this->assertEquals([\n\t\t\t[\n\t\t\t\t'message' => 'Unrecognized value \\'pblc\\' for $access in Elgg\\\\ActionsService::register',\n\t\t\t\t'level' => Logger::ERROR,\n\t\t\t]\n\t\t\t\t], $logged);\n\n\t\t$actions = $this->actions->getAllActions();\n\t\t$this->assertArrayHasKey('test/output', $actions);\n\t\t$this->assertEquals([\n\t\t\t'file' => \"$this->actionsDir/output.php\",\n\t\t\t'access' => 'admin',\n\t\t\t\t], $actions['test/output']);\n\t}", "public function makeErrorAction()\n {\n // test this\n\n $this->app->abort(404, 'I am a code generated 404 error message');\n\n }", "public function shouldntRaiseAnEvent()\n {\n }", "public function onCatchApplicationException(MvcEvent $e)\n {\n $error = $e->getError();\n if (empty($error) || $error != Application::ERROR_EXCEPTION) {\n return;\n }\n\n // Do nothing if the result is a response object\n $result = $e->getResult();\n if ($result instanceof Response) {\n return;\n }\n\n $exception = $e->getParam('exception');\n $response = $e->getResponse();\n switch ($exception->getCode()) {\n case 403:\n $response->getHeaders()->addHeaderLine('Location', '/account/login');\n $response->setStatusCode(302);\n break;\n }\n }", "public static function trySubmit() {\n\t}", "public function test_function_must_exist_if_applied() {\n if (PHP_VERSION_ID >= 80000) {\n $this->expectException(TypeError::class);\n } else {\n $this->expectException(PHPUnit\\Framework\\Error\\Error::class);\n }\n $this->expectExceptionMessageMatches('/call_user_func_array\\(\\).* a valid callback, function (\\'|\")[0-9a-z]+(\\'|\") not found or invalid function name/');\n\n $hook = rand_str();\n yourls_add_action( $hook, rand_str() );\n // this will trigger an error, converted to an exception by PHPUnit\n yourls_do_action( $hook );\n }", "protected function tossIfException()\n\t{\n\t\tif ($this->exception) {\n\t\t\tthrow $this->exception;\n\t\t}\n\t}", "protected function initializeErrorHandling() {}", "public function errorAction()\n\t{\n\t}", "public function actionError() {\n \n }", "protected function throwRedirectException() {}", "function isActionAllowed($controller_id = null, $action_id = null, $event_id = null, $model_id = null, $group_id = null)\n {\n\t\t$actionAllowed = parent::isActionAllowed($controller_id, $action_id, $event_id, $model_id, $group_id);\n\n\t\t$hikeStatus = EventNames::model()->getStatusHike($event_id);\n\t\t$rolPlayer = DeelnemersEvent::model()->getRolOfPlayer($event_id, Yii::app()->user->id);\n\t\treturn $actionAllowed;\n\t}", "public function OnInvalidKey()\n {\n $this->response(403, 'Access denied ' . $_SERVER['REMOTE_ADDR'], 'Unauthorized', null);\n }", "protected function willAddAction(PhageAction $action) {\n // explicit or by making agents execute actions?\n\n if (!($action instanceof PhageExecuteAction)) {\n throw new Exception(\n pht(\n 'Can only add execute actions to an agent.'));\n }\n\n if ($this->isExiting) {\n throw new Exception(\n pht(\n 'You can not add new actions to an exiting agent.'));\n }\n\n $key = 'command/'.$this->commandKey++;\n\n $this->commands[$key] = array(\n 'key' => $key,\n 'command' => $action,\n );\n\n $this->queued[$key] = $key;\n }", "function as_error_handler($errno, $errstr, $errfile, $errline){\n\t\t$msg = 'Error('.$errno.') '.$errstr.' in '. $errfile.':'. $errline;\n\t\t$this->catch_error( $msg, 'clickgs plugin crashed');\n\t}", "public function testOnExecuteActionException()\n {\n // Start of user code RouterSpecialEventsControllerTest.testonExecuteActionException\n $controller = new RouterSpecialEventsController();\n $httpResponse = $controller->onExecuteActionException(\n AssociativeArray::createFromNativeArray(\n 'string',\n array(\n 'type' => 'SomeException',\n 'code' => 0,\n 'message' => 'Message of a simulated exception',\n 'file' => '/var/some-folder/some-file.som',\n 'controller' => 'SomeController',\n 'action' => 'someAction'\n )\n ));\n $this->assertEquals(500, $httpResponse->getStatusCode());\n $this->assertEquals(\n \"<html><h1>Error 500 : An exception has been thrown</h1><p>While executing SomeController::someAction</p><p>SomeException : Message of a simulated exception</p><p>TiBeN Framework</p></html>\", \n $httpResponse->getMessage()\n );\n // End of user code\n }", "public function testInvalidEventHandling() {\n\t\t$session = $this->getSession();\n\t\t$session->handleEvent(new Event(Event::TYPE_APPLICATION_BEFORE_CONTROLLER_RUN));\n\t\t$session['test'] = 'testValue';\n\t\t$session->handleEvent(new Event(Event::TYPE_APPLICATION_BEFORE_CONTROLLER_RUN));\n\t\t$this->assertSame('testValue', $session['test'], 'Loading the session twice overwrites data');\n\t}", "public function isHandled(): bool;", "abstract function allowEditAction();", "public function exempt($action): bool;", "public function preDispatch(MvcEvent $e)\r\n {\r\n $configTools = $this->getServiceLocator()->get('config')['tools'];\r\n $path = $this->getRequest()->getUri()->getPath();\r\n if (!in_array($path, $configTools['exclude_ip_control'])\r\n && !in_array($_SERVER['REMOTE_ADDR'], $configTools['ips'])\r\n ) {\r\n return $this->unauthorized($e);\r\n }\r\n }", "public function support(\\Exception $exception);", "public function testCallableException2()\n {\n $this->expectException(Exception::class);\n $m = new HookWithDynamicMethodMock();\n $m->addHook('unknown_method', $m);\n }", "protected function registerErrorHandling()\n {\n error_reporting(E_ALL);\n set_error_handler(function ($level, $message, $file = '', $line = 0) {\n if (error_reporting() & $level) {\n throw new \\ErrorException($message, 403, $level, $file, $line);\n }\n });\n\n set_exception_handler(function ($e) {\n echo($e);\n });\n\n register_shutdown_function(function () {\n echo(error_get_last());\n });\n }", "public function can_handle( Alert $alert ) {\n\n\t\treturn in_array( $alert->get_type(), [ Alerts::FAILED_EMAIL ], true );\n\t}", "function OnAfterError(){\n }", "public function markAsFailed();", "public function blockIllegalRequests(ActionRequest $request);", "function canHandleRequest() ;", "static public function error_on_exception( $e ) {\n\t\t$reactivate_url = wp_nonce_url( 'plugins.php?action=activate&plugin=' . W3TC_FILE, 'activate-plugin_' . W3TC_FILE );\n\t\t$reactivate_button = sprintf( '%1$sre-activate plugin', '<input type=\"button\" value=\"' ) .\n\t\t\tsprintf( '\" onclick=\"top.location.href = \\'%s\\'\" />', addslashes( $reactivate_url ) );\n\n\t\tself::_error( sprintf( __( '%s<br />then %s.', 'w3-total-cache' ), $e->getMessage(), $reactivate_button ) );\n\t}", "public function requireAction()\n {\n $args = func_get_args();\n foreach ($args as $arg)\n {\n // Check if action is set and exists\n if ($_POST['action'] == $arg || $_GET['action'] == $arg)\n {\n // quit here\n return;\n }\n }\n\n $this->sendJsonResponse(false, 'Invalid Action!');\n die;\n }", "function error(){}", "private function dispatch()\n\t{\n\t\t$success = $this->tryDispatch();\n\n\t\tif (!$success) {\n\t\t\t$error_controller = $this->config->getErrorController();\n\t\t\tif(!empty($error_controller)) {\n\t\t\t\t$this->route = new Route(\"/$error_controller/notFound\");\n\t\t\t\tif(!$this->tryDispatch()) {\n\t\t\t\t\tif ($this->config->shouldDebug()) {\n\t\t\t\t\t\tthrow new Exception(\"404 Not found\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinclude(dirname(__FILE__) . \"/errors/404error.php\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// 404 Not Found\n\t\t\t\tthrow new FrameworkException(FrameworkException::NOT_FOUND,\n\t\t\t\t\t\"Kunde tyvärr inte hitta sidan du sökte.\");\n\t\t\t}\n\t\t}\n\t\treturn $success;\n\t}", "protected function handleOther()\n {\n return new JsonResponse(['message' => 'StyleCI does not support this type of event.'], 400, [], JSON_PRETTY_PRINT);\n }", "public function enableExceptions()\n {\n $this->throwException = true;\n }", "protected function validateOrThrow() {}", "public function handle (Actiontaken $event)\n {\n\n try {\n\n if ($event->actionname == 'accepted') {\n $this->accept ($event->classlearner);\n } elseif ($event->actionname == 'rejected') {\n $this->reject ($event->classlearner);\n }\n } catch (Exception $exception) {\n Storage::disk ('local')->append ('handleEnrollRequestederor.txt', $exception);\n\n\n }\n }", "public function IsErrorDispatched ();", "public function testDispatchErrorRouteAction()\n {\n $this->expectException(IncompleteRouteException::class);\n\n $this->uut->dispatch($this->buildRequest('/missing-action'));\n }", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "public static function trap_errors_begin(){\n\t\t\tself::$trapprevhndlr=set_error_handler(array('Errors','handle_trap'));\n\t\t}", "public function onDispatch(Event $e)\n {\n// if(self::getOption('iframeapp'))\n// {\n// $request = $e->getParam('request');\n// $signedRequest = $request->post()->get('signed_request');\n// if(empty($signedRequest))\n// {\n// throw new Exception\\AuthException('No signed_request has been posted, are you trying to access outside Facebook?');\n// }\n// }\n }", "private static function initErrorHandler() {\n\t\t\tset_exception_handler('ErrorHandler::handleExceptions');\n\t\t\tset_error_handler('ErrorHandler::handleErrors');\n\t\t}", "function throwOn($method, $exception = false, $args = false) {\n $this->dieOnNoMethod($method, \"throw on\");\n $this->actions->register($method, $args,\n new SimpleThrower($exception ? $exception : new Exception()));\n }", "protected function mustTakeAction(string $eventName): bool\n {\n }", "public function register_actions() {\n\t\t}", "function cera_grimlock_404() {\n\t\tdo_action( 'grimlock_404' );\n\t}", "private function performActions()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$this->performActionList();\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$this->errorsNonFatal[htmlspecialcharsEx($e->getCode())] = htmlspecialcharsEx($e->getMessage());\n\t\t}\n\t}", "public static function tryError()\n\t{\n\t\tset_error_handler(array(__CLASS__, '_errorHandler'), E_ALL);\n\t\tself::$errorMsg = NULL;\n\t}", "public function forbiddenError() {\n sfContext::getInstance()->getController()->redirect('errores/forbidden');\n\t}", "public function executeInvalid(sfWebRequest $request)\n {\n \n }" ]
[ "0.6079019", "0.60713947", "0.5848069", "0.57431567", "0.5419727", "0.53817993", "0.534461", "0.5344305", "0.5329692", "0.53281635", "0.53043264", "0.5258145", "0.525575", "0.52457565", "0.5239975", "0.5237798", "0.5220268", "0.52077013", "0.51854604", "0.5179086", "0.5150846", "0.51415706", "0.5124296", "0.5079466", "0.50791514", "0.5052426", "0.4991211", "0.4981873", "0.49688134", "0.49602053", "0.49470457", "0.49438208", "0.493004", "0.491506", "0.48938802", "0.4891357", "0.4888597", "0.48860914", "0.48825836", "0.48792505", "0.4878486", "0.48773625", "0.48688975", "0.4860852", "0.4833496", "0.48228052", "0.4817109", "0.48139152", "0.48134917", "0.48116517", "0.48065993", "0.4800911", "0.48002985", "0.4799707", "0.47836304", "0.47829357", "0.47806346", "0.47796062", "0.47691885", "0.47689438", "0.4754581", "0.47535384", "0.47457594", "0.4745083", "0.47424114", "0.47423792", "0.47395226", "0.4731966", "0.47310337", "0.47305924", "0.47202033", "0.4719345", "0.47138602", "0.47103176", "0.47073832", "0.4699695", "0.46969807", "0.46882454", "0.46877724", "0.46814692", "0.46774986", "0.46733838", "0.4671474", "0.46608022", "0.46590006", "0.46590006", "0.46590006", "0.46590006", "0.46590006", "0.46590006", "0.4656978", "0.46528935", "0.465169", "0.46498233", "0.46322373", "0.46277228", "0.46180937", "0.46133557", "0.4610921", "0.4610506", "0.46051455" ]
0.0
-1
Make config publishment optional by merging the config from the package.
public function register() { $this->mergeConfigFrom( __DIR__.'/../config/laravel_monitoring_log.php', 'laravel_monitoring_log' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setupConfig()\n {\n $this->publishes([\n __DIR__ . '/config' => config_path(),\n ], 'config');\n\n $this->mergeConfigFrom(__DIR__ . '/../config/package-blueprint.php', 'package-blueprint');\n }", "private function mergeConfig() {\n\t\t$this->mergeConfigFrom(\n\t\t\t__DIR__ . '/../config/config.php', 'sl-upload'\n\t\t);\n\t}", "protected function publishConfig()\n {\n $this->publishes([\n $this->packagePath('config/config.php') => config_path($this->package . '.php')\n ], 'config');\n }", "private function mergeConfig()\n {\n $countries = $this->countryIso();\n $this->app->configure('priongeography');\n\n $this->mergeConfigFrom(\n __DIR__ . '/config/priongeography.php',\n 'priongeography'\n );\n }", "private function publishConfig()\n\t{\n\t\t$config = __DIR__ . '/config/workflow.php';\n\n\t\t$this->publishes([$config => config_path('workflow.php')]);\n\n\t\t$this->mergeConfigFrom($config, 'workflow');\n\t}", "private function mergeDefaultSettings(){\n\t\t//Get a copy of the default configuration.\n\t\t$defaultConfig = $this->getDefaultConfig();\n\t\t//Check for a 'general' section\n\t\tif(array_key_exists('general', $this->configuration)){\n\t\t\t//If it exists, compare the default keys to the loaded config for missing values\n\t\t\t$missingGeneral = array_diff_key($defaultConfig['general'], $this->configuration['general']);\n\t\t\t//Iterate through the missing values and attach them to the running configuration.\n\t\t\tif(count($missingGeneral) > 0){\n\t\t\t\tforeach($missingGeneral as $key=>$parameter){\n\t\t\t\t\t$this->configuration['general'][$key] = $parameter;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t//Section doesn't exist, so we need to set it to the defaults.\n\t\t\t$this->configuration['general'] = $defaultConfig['general'];\n\t\t}\n\t\t//Check for a 'options' section\n\t\tif(array_key_exists('options', $this->configuration)){\n\t\t\t//If it exists, compare the default keys to the loaded config for missing values\n\t\t\t$missingOptions = array_diff_key($defaultConfig['options'], $this->configuration['options']);\n\t\t\t//Iterate through the missing values and attach them to the running configuration.\n\t\t\tif(count($missionOptions) > 0){\n\t\t\t\tforeach($missingOptions as $key=>$parameter){\n\t\t\t\t\t$this->configuration['options'][$key] = $parameter;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t//Section doesn't exist, so we need to set it to the defaults.\n\t\t\t$this->configuration['options'] = $defaultConfig['options'];\n\t\t}\n\t}", "protected function configHandle()\n {\n $packageConfigPath = __DIR__.'/config/config.php';\n $appConfigPath = config_path('task-management.php');\n\n $this->mergeConfigFrom($packageConfigPath, 'task-management');\n\n $this->publishes([\n $packageConfigPath => $appConfigPath,\n ], 'config');\n }", "private function configure(): void\n {\n if (!$this->app->configurationIsCached()) {\n $this->mergeConfigFrom(__DIR__ . '/../config/paket.php', 'paket');\n }\n }", "private function mergeConfig()\n\t{\n\t\t$this->mergeConfigFrom(\n\t\t\t__DIR__ . '/../config/config.php', 'l5-sms'\n\t\t);\n\t}", "public function testNoComposerExtrasConfig()\n {\n\n $this->composer->setConfig(new Config(false, __DIR__ . '/ExcludeFolders/ValidIMLFile'));\n\n $this->io\n ->expects($this->never())\n ->method('write');\n\n $this->filesystem->expects($this->never())\n ->method('dumpFile');\n\n ExcludeFolders::update($this->event, $this->filesystem);\n }", "private function mergeConfig()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/config.php', 'routecache'\n );\n }", "protected function publishConfig()\n {\n $path = __DIR__.'/../config/disqus.php';\n $this->mergeConfigFrom($path, 'disqus');\n $this->publishes([\n $path => config_path('disqus.php'),\n ], 'disqus');\n }", "protected function publishConfig()\n {\n $this->publishes([\n __DIR__ . '/../config/acl.php' => config_path('acl.php'),\n ], 'config');\n }", "function apsa_merge_config() {\n global $apsa_uninstall;\n global $apsa_child_uninstall;\n if (!empty($apsa_child_uninstall)) {\n $apsa_uninstall = array_merge_recursive($apsa_uninstall, $apsa_child_uninstall);\n }\n}", "protected function setPackageConfigurationFile()\n {\n $config = __DIR__ . '/Config/recaptcha.php';\n $path = config_path('recaptcha.php');\n \n $this->publishes([$config => $path], 'config'); \n $this->mergeConfigFrom( $config, 'recaptcha');\n }", "protected function mergeConfig()\n {\n $this->mergeConfigFrom(__DIR__.\"/../config/{$this->name}.php\", $this->name);\n }", "private function publishConfig()\n {\n if ($this->app->environment('testing')) {\n return;\n }\n\n $this->publishes(\n [__DIR__ . '/..' . Settings::LARAVEL_PUBLISHABLE_CONFIG => LaravelConfig::configPublishPath()],\n 'config'\n );\n }", "protected function publishConfig()\n {\n $this->publishes([\n $this->basePath('config/flare/config.php') => config_path('flare/config.php'),\n ]);\n }", "private function bootConfig(): void\n {\n $baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR;\n $configDir = $baseDir . 'config' . DIRECTORY_SEPARATOR;\n\n $this->publishes([\n $configDir . 'laravel-database-emails.php' => config_path('laravel-database-emails.php'),\n ], 'laravel-database-emails-config');\n }", "public static function syncConfig()\n {\n $addon = self::addon();\n\n if (!self::isBackwardsCompatible() && !$addon->hasConfig('synchronize')) {\n $addon->setConfig('synchronize', false);\n\n if (\n $addon->getConfig('synchronize_actions') == true ||\n $addon->getConfig('synchronize_modules') == true ||\n $addon->getConfig('synchronize_templates') == true ||\n $addon->getConfig('synchronize_yformemails') == true\n ) {\n $addon->setConfig('synchronize', true);\n\n // Set developer synchronizing actions according to theme settings\n if ($addon->getConfig('synchronize_templates')) {\n rex_addon::get('developer')->setConfig('templates', true);\n }\n if ($addon->getConfig('synchronize_modules')) {\n rex_addon::get('developer')->setConfig('modules', true);\n }\n if ($addon->getConfig('synchronize_actions')) {\n rex_addon::get('developer')->setConfig('actions', true);\n }\n if ($addon->getConfig('synchronize_yformemails')) {\n rex_addon::get('developer')->setConfig('yform_email', true);\n }\n }\n\n $addon->removeConfig('synchronize_actions');\n $addon->removeConfig('synchronize_modules');\n $addon->removeConfig('synchronize_templates');\n $addon->removeConfig('synchronize_yformemails');\n }\n }", "protected function _initConfig()\n {\n parent::_initConfig();\n $this->_mergeConfig(array(\n 'get_descriptions' => false, // true to get descriptions for text sections\n ));\n }", "public function apply_config() {\n\t\tforeach ( $this->config as $dependency ) {\n\t\t\tif ( false == ( $download_link = $this->installer->get_download_link( $dependency ) ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->config[ $dependency['slug'] ]['download_link'] = $download_link;\n\t\t}\n\t}", "static protected function mergeConfig($config)\r\n {\r\n $config['all']['stylesheets'] = array_merge(isset($config['default']['stylesheets']) && is_array($config['default']['stylesheets']) ? $config['default']['stylesheets'] : array(), isset($config['all']['stylesheets']) && is_array($config['all']['stylesheets']) ? $config['all']['stylesheets'] : array());\r\n unset($config['default']['stylesheets']);\r\n\r\n $config['all']['javascripts'] = array_merge(isset($config['default']['javascripts']) && is_array($config['default']['javascripts']) ? $config['default']['javascripts'] : array(), isset($config['all']['javascripts']) && is_array($config['all']['javascripts']) ? $config['all']['javascripts'] : array());\r\n unset($config['default']['javascripts']);\r\n\r\n $config['all']['metas']['title'] = array_merge(\r\n isset($config['default']['metas']['title']) && is_array($config['default']['metas']['title']) ? $config['default']['metas']['title'] \r\n : (isset($config['default']['metas']['title']) ? array($config['default']['metas']['title']) : array()), \r\n isset($config['all']['metas']['title']) && is_array($config['all']['metas']['title']) ? $config['all']['metas']['title'] \r\n : (isset($config['all']['metas']['title']) ? array($config['all']['metas']['title']) : array())\r\n );\r\n unset($config['default']['metas']['title']);\r\n \r\n // merge default and all\r\n $config['all'] = sfToolkit::arrayDeepMerge(\r\n isset($config['default']) && is_array($config['default']) ? $config['default'] : array(),\r\n isset($config['all']) && is_array($config['all']) ? $config['all'] : array()\r\n );\r\n unset($config['default']);\r\n return self::replaceConstants($config);\r\n }", "protected function registerConfigurations()\n {\n $this->mergeConfigFrom($this->packagePath('config/tarpit.php'), 'tarpit');\n $this->publishes([$this->packagePath('config/config.php') => config_path('tarpit.php')], 'tarpit');\n }", "protected function mergeConfig()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/Config/teamrole.php', 'teamrole'\n );\n }", "protected function publishConfigurationFile()\n {\n // Determine the Local Configuration Path\n $source = $this->getLocalConfigurationPath();\n\n // Determine the Application Configuration Path\n $destination = $this->getApplicationConfigPath();\n\n // Publish the Configuration File\n $this->publishes([$source => $destination], 'config');\n }", "protected function exportConfig()\n {\n if ($this->option('interactive')) {\n if (! $this->confirm('Install the package config file?')) {\n return;\n }\n }\n if (file_exists(config_path('laravel-mentor.php')) && ! $this->option('force')) {\n if (! $this->confirm('The Laravel Mentor configuration file already exists. Do you want to replace it?')) {\n return;\n }\n }\n copy(\n $this->packagePath('config/laravel-mentor.php'),\n config_path('laravel-mentor.php')\n );\n\n $this->comment('Configuration Files installed successfully.');\n }", "protected function registerConfigPublisher()\n {\n $this->app->singleton('config.publisher', function ($app) {\n $path = $app->make('path.config');\n\n $publisher = new ConfigPublisher($app->make('files'), $path);\n\n $publisher->setPackagePath($app->make('path.base') . '/src');\n\n return $publisher;\n });\n }", "function conditional_config($config_key) {\n\tif(!chevereto_config($config_key)) {\n\t\treturn false;\n\t} else {\n\t\treturn true;\n\t}\n}", "public function defaultConfig();", "protected function addConfiguration()\n {\n $this['config'] = $this->share(\n function () {\n $user_config_file = (file_exists('phpdoc.xml'))\n ? 'phpdoc.xml'\n : 'phpdoc.dist.xml';\n\n return \\Zend\\Config\\Factory::fromFiles(\n array(\n __DIR__.'/../../data/phpdoc.tpl.xml',\n $user_config_file\n ), true\n );\n }\n );\n }", "protected function configure()\n {\n $this->publishes([\n __DIR__ . '/../config/laravel-calendar.php' => config_path('laravel-calendar.php'),\n ], 'config');\n\n $this->mergeConfigFrom(\n __DIR__ . '/../config/laravel-calendar.php',\n 'laravel-calender'\n );\n }", "private function publishesConfig(): void\n {\n $this->publishes([\n __DIR__.'/../config/invite-codes.php' => config_path('invite-codes.php'),\n ], 'invite-codes-config');\n }", "function instance_allow_config() {\n\n return false;\n }", "protected function mergeConfiguration()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/firefly.php', 'firefly'\n );\n }", "protected function registerConfigurations()\n {\n $this->mergeConfigFrom(\n $this->packagePath('config/config.php'), 'password'\n );\n $this->publishes([\n $this->packagePath('config/config.php') => config_path('password.php'),\n ], 'config');\n }", "function instance_allow_config()\r\n\t\t{\r\n\t\t\r\n\t\t}", "protected function prepareResources()\n {\n // Publish config\n $config = realpath(__DIR__.'/../config/config.php');\n\n $this->mergeConfigFrom($config, 'cartalyst.extensions');\n\n $this->publishes([\n $config => config_path('cartalyst.extensions.php'),\n ], 'config');\n }", "public function instance_allow_config() {\n return false;\n }", "protected function getConfigContainer2Extra()\n {\n }", "protected function registerConfigurations()\n {\n $this->mergeConfigFrom(\n $this->packagePath('config/laravel-deploy-helper.php'), 'laravel-deploy-helper'\n );\n $this->publishes([\n $this->packagePath('config/laravel-deploy-helper.php') => config_path('laravel-deploy-helper.php'),\n ], 'ldh-config');\n }", "protected function updateConfig() {\n $config_factory = \\Drupal::configFactory();\n $settings = $config_factory->getEditable('message_subscribe.settings');\n $settings->set('use_queue', TRUE);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('mailsystem.settings');\n $settings->set('defaults', [\n 'sender' => 'swiftmailer',\n 'formatter' => 'swiftmailer',\n ]);\n $settings->set('modules', [\n 'swiftmailer' => [\n 'none' => [\n 'formatter' => 'swiftmailer',\n 'sender' => 'swiftmailer',\n ],\n ],\n 'message_notify' => [\n 'none' => [\n 'formatter' => 'swiftmailer',\n 'sender' => 'swiftmailer',\n ],\n ],\n ]);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('swiftmailer.message');\n $settings->set('format', 'text/html');\n $settings->set('respect_format', FALSE);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('flag.flag.subscribe_node');\n $settings->set('status', TRUE);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('user.role.authenticated');\n $permissions = $settings->get('permissions');\n foreach ([\n 'flag subscribe_node',\n 'unflag subscribe_node',\n ] as $perm) {\n if (!in_array($perm, $permissions)) {\n $permissions[] = $perm;\n }\n }\n $settings->set('permissions', $permissions);\n $settings->save(TRUE);\n\n }", "public function updateConfig()\n {\n $this->aframe_assets_url = $this->composer->getConfig()->get('aframe-url') ?? '/aframe';\n \n $composer_json = $this->getVendorDir() . DIRECTORY_SEPARATOR . 'mkungla' . DIRECTORY_SEPARATOR . 'aframe-php' . DIRECTORY_SEPARATOR . 'composer.json';\n \n if (file_exists($composer_json)) {\n $config = json_decode(file_get_contents($composer_json));\n $config->config->{'aframe-dir'} = $this->getPublicRoot();\n $config->config->{'aframe-url'} = $this->aframe_assets_url;\n $config->version = self::AFRAME_PHP_VERSION;\n file_put_contents($composer_json, json_encode($config, JSON_PRETTY_PRINT));\n }\n }", "public function getConfigDefaults()\n {\n // $file = realpath(__DIR__ . '/../../data/distribution/config.dist.php');\n $file = __DIR__ . '/../../data/distribution/config.dist.php';\n\n return $this->getConfigFromFile($file);\n }", "protected function _setConfig()\n {\n if ($this->_system) {\n $config = $this->_system . DIRECTORY_SEPARATOR . 'config.php';\n } else {\n $config = false;\n }\n\n // manually look for a --config argument that overrides the default\n $found = false;\n foreach ($this->_argv as $val) {\n if ($val == '--config') {\n // found the argument\n $found = true;\n // reset the default in preparation for the next argument\n $config = false;\n continue;\n }\n \n if ($found && substr($val, 0, 1) != '-') {\n $config = $val;\n break;\n }\n \n if (substr($val, 0, 9) == '--config=') {\n $found = true;\n $config = substr($val, 9);\n break;\n }\n }\n \n // if there was a --config but no param, that's a failure\n if ($found && ! $config) {\n echo \"Please specify a config file path after the --config option.\" . PHP_EOL;\n exit(1);\n }\n \n // was there a config file at all?\n if ($config) {\n $realpath = realpath($config);\n if ($realpath) {\n $this->_config = $realpath;\n $text = \"Using config file '$realpath'.\" . PHP_EOL;\n } else {\n echo \"Could not resolve real path to config file '$config'.\" . PHP_EOL;\n exit(1);\n }\n } else {\n $text = \"Not using a config file.\" . PHP_EOL;\n }\n \n if ($this->_verbose) {\n echo $text;\n }\n }", "function instance_allow_config() {\n return true;\n }", "private function setPublishFiles()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/config.php' => config_path('setting.php'),\n ], 'setting');\n }\n }", "protected function defaultConfig()\n\t{\n\t\t$this->config=array(\n\t\t\t'code'=>'1',\n\t\t\t'scanning'=>\"\",\n\t\t\t'scanCodes'=>array()\n\t\t);\n\t}", "protected function loadConfigsFromPackage(): void\n {\n $packageConfigs = $this->getConfigsFromPackage();\n foreach ($packageConfigs as $file){\n $filename = pathinfo($file, PATHINFO_FILENAME);\n $this->mergeConfigFrom($file, $filename);\n }\n }", "protected function registerConfigurations()\n {\n $this->mergeConfigFrom(\n $this->packagePath('config/line.php'), 'ferdhika31.linebot'\n );\n $this->publishes([\n $this->packagePath('config/line.php') => config_path('ferdhika31/linebot.php'),\n ], 'config');\n }", "public static function returnExtConfDefaults() {}", "public function hasConfig($package);", "public function getDefaultConfiguration();", "public function getDefaultConfiguration() {}", "protected function addDefaultConfigurationForConfigGeneration() {\n if (!isset($this->configuration['disabled_field_types'])) {\n /** @var \\Drupal\\search_api_solr\\Controller\\AbstractSolrEntityListBuilder $solr_field_type_list_builder */\n $solr_field_type_list_builder = $this->entityTypeManager->getListBuilder('solr_field_type');\n $this->configuration['disabled_field_types'] = array_keys($solr_field_type_list_builder->getAllNotRecommendedEntities());\n }\n\n if (!isset($this->configuration['disabled_caches'])) {\n /** @var \\Drupal\\search_api_solr\\Controller\\AbstractSolrEntityListBuilder $solr_cache_list_builder */\n $solr_cache_list_builder = $this->entityTypeManager->getListBuilder('solr_cache');\n $this->configuration['disabled_caches'] = array_keys($solr_cache_list_builder->getAllNotRecommendedEntities());\n }\n\n if (!isset($this->configuration['disabled_request_handlers'])) {\n /** @var \\Drupal\\search_api_solr\\Controller\\AbstractSolrEntityListBuilder $solr_request_handler_list_builder */\n $solr_request_handler_list_builder = $this->entityTypeManager->getListBuilder('solr_request_handler');\n $this->configuration['disabled_request_handlers'] = array_keys($solr_request_handler_list_builder->getAllNotRecommendedEntities());\n }\n\n if (!isset($this->configuration['disabled_request_dispatchers'])) {\n /** @var \\Drupal\\search_api_solr\\Controller\\AbstractSolrEntityListBuilder $solr_request_dispatcher_list_builder */\n $solr_request_dispatcher_list_builder = $this->entityTypeManager->getListBuilder('solr_request_dispatcher');\n $this->configuration['disabled_request_dispatchers'] = array_keys($solr_request_dispatcher_list_builder->getAllNotRecommendedEntities());\n }\n }", "protected function loadConfiguration()\n {\n $configPath = __DIR__ . '/../../fixture/config/twigbridge.php';\n if (!$this->isLumen()) {\n $this->publishes([$configPath => config_path('twigbridge.php')], 'config');\n }\n $this->mergeConfigFrom($configPath, 'twigbridge');\n }", "function has_config() {\n return true;\n }", "public function has_config() {\n return false;\n }", "public function has_config() {\n return false;\n }", "abstract public function getConfig();", "protected function setup_config() {\n\t\t\t// TODO: Implement setup_config() method.\n\t\t}", "private function __init_config() {\n if (empty($this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"])) {\n $this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"] = [];\n }\n # Check if there is no dnshaper queue array in the config\n if (empty($this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"][\"item\"])) {\n $this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"][\"item\"] = [];\n }\n }", "public function merge(Config $other) {\n\t\t/* merge variables */\n\t\tforeach($other->getVars() as $key => $value) {\n\t\t\t$this->vars[ $key ] = $value;\n\t\t}\n\t\t/* merge templates */\n\t\tforeach($other->getTemplates() as $one) {\n\t\t\t$this->templates[] = $one;\n\t\t}\n\t}", "protected function loadConfiguration()\n {\n $config_path = __DIR__ . '/../../config/tintin.php';\n\n if (!$this->isLumen()) {\n $this->publishes([\n $config_path => config_path('view.php')\n ], 'config');\n }\n\n $this->mergeConfigFrom($config_path, 'view');\n }", "public function applyConfigDefaults(array $config)\n {\n $defaults = array(\n 'arch' => 'all',\n 'buildId' => gmdate(self::DEFAULT_BUILDTIME_FORMAT),\n 'description' => '',\n 'depends' => array(),\n 'exclude' => array(),\n 'maintainer' => '',\n 'postinst' => '',\n 'priority' => 'optional',\n 'sources' => array(),\n 'workspaceBasedir' => self::DEFAULT_WORKSPACE_BASEDIR\n );\n $config = array_merge($defaults, $config);\n\n if ($config['postinst']) {\n $config['postinst'] = rtrim($config['postinst']) . \"\\n\";\n }\n $config['sources'] = array();\n\n $config['fullName'] = sprintf(\n '%s_%s_%s',\n $config['shortName'], $config['version'], $config['arch']\n );\n $config['versionDir'] = sprintf(\n '%s/%s/%s',\n $config['workspaceBasedir'], $config['shortName'], $config['version']\n );\n $config['buildDir'] = \"{$config['versionDir']}/\" . $config['buildId'];\n $config['pkgDir'] = \"{$config['buildDir']}/{$config['fullName']}\";\n\n return $config;\n }", "private function initConfig()\n {\n return $this->config = [\n 'api' => 'https://api.gfycat.com/v1',\n ];\n }", "static function set_config() {\n\t\tif ( file_exists( self::childpath() . 'config/wpgrade-config' . EXT ) ) {\n\t\t\tself::$configuration = include self::childpath() . 'config/wpgrade-config' . EXT;\n\t\t} elseif ( file_exists( self::themepath() . 'config/wpgrade-config' . EXT ) ) {\n\t\t\tself::$configuration = include self::themepath() . 'config/wpgrade-config' . EXT;\n\t\t} elseif ( file_exists( self::childpath() . 'wpgrade-config' . EXT ) ) {\n\t\t\tself::$configuration = include self::childpath() . 'wpgrade-config' . EXT;\n\t\t} elseif ( file_exists( self::themepath() . 'wpgrade-config' . EXT ) ) {\n\t\t\tself::$configuration = include self::themepath() . 'wpgrade-config' . EXT;\n\t\t}\n\t}", "private function init_config() {\n set_config('siteadmins', '');\n set_config('siteguest', '');\n set_config('defaultuserroleid', '');\n set_config('defaultfrontpageroleid', '');\n }", "protected function configure(): void\n {\n $this->mergeConfigFrom(\n __DIR__ . '/config/permissions_makr.php', 'permissions_makr'\n );\n }", "function plugin_initconfig_repository()\n{\n global $_CONF;\n\n $c = config::get_instance();\n if (!$c->group_exists('repository')) {\n $c->add('sg_main', NULL, 'subgroup', 0, 0, NULL, 0, true, 'repository');\n $c->add('fs_main', NULL, 'fieldset', 0, 0, NULL, 0, true, 'repository');\n $c->add('repository_moderated', 1,\n 'select', 0, 0, 0, 10, true, 'repository');\n $c->add('max_pluginpatch_upload', 2000000, \n 'text', 0, 0, 0, 60, true, 'repository'); // 2 MB\n }\n\n return true;\n}", "abstract protected function getConfig();", "protected function mergeIntoConfig($config) {\n\t\tparent::mergeIntoConfig($config);\n\t\tif ($this->config['deletion_strategy'] == '') {\n\t\t\tthrow new Exception('Can not generate: must specify the deletion_strategy config setting (Delete|Retire|Custom).');\n\t\t}\n\t}", "public function hasConfig();", "public function initConfig() {\r\n\t$config = array();\r\n\tinclude($this->name . '/config.php');\r\n\t\\app::$config = array_merge(\\app::$config, $config);\r\n }", "function expungePackageConfig( $pPackageName ) {\n\t\tif( !empty( $pPackageName ) ) {\n\t\t\t$query = \"DELETE FROM `\".BIT_DB_PREFIX.\"kernel_config` WHERE `package`=?\";\n\t\t\t$result = $this->mDb->query( $query, array( strtolower( $pPackageName ) ) );\n\t\t\t// let's force a reload of the prefs\n\t\t\tunset( $this->mConfig );\n\t\t\t$this->loadConfig();\n\t\t}\n\t}", "public function instance_allow_config() {\n return true;\n }", "public function config(Config $config = null);", "function initCustomConfig() {\n\t\tglobal $db;\n\t\t\n\t\t// Use the existing PunBB database connection:\n\t\t$this->setConfig('dbConnection', 'link', $db->link_id);\n\t}", "private function registerConfiguration()\n {\n $configPath = __DIR__ . '/../config/themify.php';\n $this->mergeConfigFrom($configPath, 'themify');\n $this->publishes([$configPath => config_path('themify.php')]);\n }", "private function registerPublishing(): void\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/ethereum.php' => config_path('ethereum.php'),\n ], 'ethereum-config');\n }\n }", "public function setupConfig()\n {\n registry::getInstance()->set('config', $this->parseConfig());\n }", "public function writewebconfig()\n {\n //<add fileExtension=\"supersake\" allowed=\"false\"/>\n }", "function buildShowConfig(): void\n {\n // No default implementation\n }", "protected function configurePublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../stubs/fortify.php' => config_path('fortify.php'),\n ], 'fortify-config');\n\n $this->publishes([\n __DIR__.'/../stubs/CreateNewUser.php' => app_path('Actions/Fortify/CreateNewUser.php'),\n __DIR__.'/../stubs/FortifyServiceProvider.php' => app_path('Providers/FortifyServiceProvider.php'),\n __DIR__.'/../stubs/PasswordValidationRules.php' => app_path('Actions/Fortify/PasswordValidationRules.php'),\n __DIR__.'/../stubs/ResetUserPassword.php' => app_path('Actions/Fortify/ResetUserPassword.php'),\n __DIR__.'/../stubs/UpdateUserProfileInformation.php' => app_path('Actions/Fortify/UpdateUserProfileInformation.php'),\n __DIR__.'/../stubs/UpdateUserPassword.php' => app_path('Actions/Fortify/UpdateUserPassword.php'),\n ], 'fortify-support');\n\n $this->publishes([\n __DIR__.'/../database/migrations' => database_path('migrations'),\n ], 'fortify-migrations');\n }\n }", "public function fileclerk__config_dump()\n\t{\n\t\t$destination = Request::get('destination');\n\t\tdd($this->tasks->merge_configs($destination));\n\t}", "protected static function _initConfig($name, $config) {\n\t\t$defaults = ['priority' => true];\n\t\treturn parent::_initConfig($name, $config) + $defaults;\n\t}", "private function initialiseConfig()\n {\n $this->mergeConfigFrom(__DIR__ . '/..' . Settings::LARAVEL_REAL_CONFIG, Settings::LARAVEL_CONFIG_NAME);\n }", "protected function initConfig()\n {\n $this->config = [];\n }", "public function specialization() {\n if ($this->config === null) {\n $this->config = new stdClass();\n }\n // Set always show_dedication config settings to avoid errors.\n if (!isset($this->config->show_dedication)) {\n $this->config->show_dedication = 0;\n }\n }", "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/documentation.php' => config_path('documentation.php'),\n ], 'documentation-config');\n }\n }", "protected function initConfiguration(){\n $settings = array(\n 'user' => 'bitshok',\n 'widget_id' => '355763562850942976',\n 'tweets_limit' => 3,\n 'follow_btn' => 'on'\n );\n Configuration::updateValue($this->name.'_settings', serialize($settings));\n }", "public function boot()\n {\n $configPath = __DIR__ . '/../config/' . $this->configName . '.php';\n\n $this->publishes([$configPath => config_path($this->configName . '.php')], 'impersonate');\n }", "public function loadZkConfig()\n {\n $config = $this->getCacheConfig();\n if (empty($config)) {\n $config = $this->cacheConfig();\n }\n if ($config) {\n $config->replaceLaravelConfig($this->options['mode']);\n }\n }", "private function copyConfigFile()\n {\n $path = $this->getConfigPath();\n\n // if generatords config already exist\n if ($this->files->exists($path) && $this->option('force') === false) {\n $this->error(\"{$path} already exists! Run 'generate:publish-stubs --force' to override the config file.\");\n die;\n }\n\n File::copy(__DIR__ . '/../config/config.php', $path);\n }", "protected function addToConfig()\n {\n $path = $this->getConfigPath();\n $config = require($path);\n if (isset($config[$this->moduleId])) {\n if (\\Yii::$app->controller->confirm('Rewrite exist config?')) {\n $config[$this->moduleId] = $this->getConfigArray();\n echo 'Module config was rewrote' . PHP_EOL;\n }\n } else {\n $config[$this->moduleId] = $this->getConfigArray();\n }\n\n\n $this->writeArrayToFile($this->getConfigPath(), $config);\n }", "protected function loadConfigsForRegister(): void\n {\n $shipConfigs = $this->getConfigsFromShip();\n $containersConfigs = $this->getConfigsFromContainers();\n\n $configs = array_merge($shipConfigs, $containersConfigs);\n\n foreach ($configs as $file){\n $filename = pathinfo($file, PATHINFO_FILENAME);\n $this->mergeConfigFrom($file, $filename);\n }\n }", "public function getConfig($package);", "private function reconfigure() {\n\t\t$global = JConfig::getInstance();\n\t\tforeach ($global as $key => $value) {\n\t\t\tif (array_key_exists($key, $this->config)) {\n\t\t\t\t$this->config[$key] = $value;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tif (class_exists('JPConfig')) {\n\t\t\t\t$this->config = array_merge($this->config, JPConfig::getData());\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t// class JPConfig doesn't exist\n\t\t}\n\t}", "protected function resolveApplicationConfiguration($app)\n {\n parent::resolveApplicationConfiguration($app);\n\n $configs = [\n 'assets', 'cp', 'forms', 'routes', 'static_caching',\n 'sites', 'stache', 'system', 'users',\n ];\n\n foreach ($configs as $config) {\n $app['config']->set(\"statamic.$config\", require(__DIR__ . \"/../vendor/statamic/cms/config/{$config}.php\"));\n }\n\n // Setting the user repository to the default flat file system\n $app['config']->set('statamic.users.repository', 'file');\n\n // Assume the pro edition within tests\n $app['config']->set('statamic.editions.pro', true);\n\n Statamic::pushCpRoutes(function () {\n return require_once realpath(__DIR__ . '/../routes/cp.php');\n });\n\n Statamic::pushWebRoutes(function () {\n return require_once realpath(__DIR__ . '/../routes/web.php');\n });\n\n // Define butik config settings for all of our tests\n $app['config']->set(\"butik\", require(__DIR__ . \"/../config/config.php\"));\n\n // Set all layouts to null to prevent an error thrown from a layout which could not be found.\n $layouts = [\n 'layout_product-index',\n 'layout_product-category',\n 'layout_product-show',\n 'layout_cart',\n 'layout_checkout-delivery',\n 'layout_checkout-payment',\n 'layout_checkout-receipt',\n 'layout_checkout-receipt-invalid',\n ];\n\n foreach($layouts as $layout) {\n $app['config']->set('butik.' . $layout, null);\n }\n }", "function configure_propack() {\n global $quotepress_plugin;\n $quotepress_plugin->propack_enabled = true;\n }", "public function writeConfig() {\n $mergedTemplate = $this->mergeTemplate();\n file_put_contents(\"{$this->settings['paths']['hostConfigDir']}/{$this->params['name']}.cfg\", $mergedTemplate);\n file_put_contents(\"{$this->settings['paths']['hostTrackDir']}/{$this->params['type']}.inf\", \"{$this->params['name']}:{$this->params['instanceId']}\" . PHP_EOL, FILE_APPEND);\n $this->logChange();\n }" ]
[ "0.61094695", "0.60274494", "0.6017864", "0.59659356", "0.58404577", "0.5834162", "0.5826338", "0.58175045", "0.5806708", "0.57638204", "0.57378227", "0.5734405", "0.57080424", "0.5672454", "0.56511873", "0.56383306", "0.56295055", "0.56264156", "0.5611503", "0.5582038", "0.557343", "0.5544039", "0.5543076", "0.5478457", "0.54776126", "0.5463851", "0.5441513", "0.5426957", "0.5354776", "0.53491485", "0.53370374", "0.5328613", "0.53271306", "0.53156656", "0.5313499", "0.52662313", "0.52640307", "0.5245761", "0.52279043", "0.5227772", "0.5222608", "0.52208877", "0.52110493", "0.52013403", "0.5160222", "0.5148681", "0.51415616", "0.51387906", "0.513022", "0.51081425", "0.50959975", "0.50749207", "0.5074377", "0.507337", "0.5058862", "0.5051413", "0.50506866", "0.5047715", "0.5047715", "0.5041912", "0.5040723", "0.5036566", "0.5034651", "0.50277734", "0.5025711", "0.50169337", "0.5012456", "0.50120217", "0.5011136", "0.50071603", "0.5004155", "0.50038916", "0.49995312", "0.49972063", "0.49902776", "0.49847192", "0.49824786", "0.49818987", "0.49775657", "0.4975794", "0.49704134", "0.49702814", "0.49658585", "0.49635404", "0.49468344", "0.4945586", "0.49445668", "0.4940963", "0.4936303", "0.49336267", "0.49072418", "0.49065268", "0.48947746", "0.4887357", "0.48829487", "0.4881152", "0.48658696", "0.48607418", "0.48559493", "0.4851917", "0.484232" ]
0.0
-1
this function displays a random quote (oblique strategy)
function randomQuote() { $quotes[] = '(Organic) machinery'; $quotes[] = 'A line has two sides'; $quotes[] = 'A very small object -Its centre'; $quotes[] = 'Abandon desire'; $quotes[] = 'Abandon normal instructions'; $quotes[] = 'Accept advice'; $quotes[] = 'Accretion'; $quotes[] = 'Adding on'; $quotes[] = 'Allow an easement (an easement is the abandonment of a stricture)'; $quotes[] = 'Always first steps'; $quotes[] = 'Always give yourself credit for having more than personality'; $quotes[] = 'Always the first steps'; $quotes[] = 'Are there sections? Consider transitions'; $quotes[] = 'Ask people to work against their better judgement'; $quotes[] = 'Ask your body'; $quotes[] = 'Assemble some of the elements in a group and treat the group'; $quotes[] = 'Back up a few steps. What else could you have done?'; $quotes[] = 'Balance the consistency principle with the inconsistency principle'; $quotes[] = 'Be dirty'; $quotes[] = 'Be extravagant'; $quotes[] = 'Be less critical more often'; $quotes[] = 'Breathe more deeply'; $quotes[] = 'Bridges -build -burn'; $quotes[] = 'Call your mother and ask her what to do.'; $quotes[] = 'Cascades'; $quotes[] = 'Change ambiguities to specifics'; $quotes[] = 'Change instrument roles'; $quotes[] = 'Change nothing and continue with immaculate consistency'; $quotes[] = 'Change specifics to ambiguities'; $quotes[] = 'Children&#8217;s voices: -speaking -singing'; $quotes[] = 'Cluster analysis'; $quotes[] = 'Consider different fading systems'; $quotes[] = 'Consider transitions'; $quotes[] = 'Consult other sources -promising -unpromising'; $quotes[] = 'Convert a melodic element into a rhythmic element'; $quotes[] = 'Courage!'; $quotes[] = 'Cut a vital connection'; $quotes[] = 'Decorate, decorate'; $quotes[] = 'Define an area as &#8220safe&#8221 and use it as an anchor'; $quotes[] = 'Describe the landscape in which this belongs. (9 August)'; $quotes[] = 'Destroy nothing; Destroy the most important thing'; $quotes[] = 'Discard an axiom'; $quotes[] = 'Disciplined self-indulgence'; $quotes[] = 'Disconnect from desire'; $quotes[] = 'Discover the recipes you are using and abandon them'; $quotes[] = 'Discover your formulas and abandon them'; $quotes[] = 'Display your talent'; $quotes[] = 'Distorting time'; $quotes[] = 'Do nothing for as long as possible'; $quotes[] = 'Do something boring'; $quotes[] = 'Do something sudden, destructive and unpredictable'; $quotes[] = 'Do the last thing first'; $quotes[] = 'Do the washing up'; $quotes[] = 'Do the words need changing?'; $quotes[] = 'Do we need holes?'; $quotes[] = 'Don&#8217;t avoid what is easy'; $quotes[] = 'Don&#8217;t be afraid of things because they&#8217;re easy to do'; $quotes[] = 'Don&#8217;t be frightened of cliches'; $quotes[] = 'Don&#8217;t be frightened to display your talents'; $quotes[] = 'Don&#8217;t break the silence'; $quotes[] = 'Don&#8217;t stress one thing more than another'; $quotes[] = 'Emphasize differences'; $quotes[] = 'Emphasize repetitions'; $quotes[] = 'Emphasize the flaws'; $quotes[] = 'Faced with a choice, do both'; $quotes[] = 'Feed the recording back out of the medium'; $quotes[] = 'Feedback recordings into an acoustic situation'; $quotes[] = 'Fill every beat with something'; $quotes[] = 'Find a safe part and use it as an anchor'; $quotes[] = 'First work alone, then work in unusual pairs.'; $quotes[] = 'From nothing to more than nothing'; $quotes[] = 'Get your neck massaged'; $quotes[] = 'Ghost echoes'; $quotes[] = 'Give the game away'; $quotes[] = 'Give way to your worst impulse'; $quotes[] = 'Go outside. Shut the door.'; $quotes[] = 'Go slowly all the way round the outside'; $quotes[] = 'Go to an extreme, move back to a more comfortable place'; $quotes[] = 'How would someone else do it?'; $quotes[] = 'How would you explain this to your parents?'; $quotes[] = 'How would you have done it?'; $quotes[] = 'Humanize something that is free of error.'; $quotes[] = 'Idiot glee (?)'; $quotes[] = 'Imagine the music as a moving chain or caterpillar'; $quotes[] = 'Imagine the music as a series of disconnected events'; $quotes[] = 'In total darkness, or in a very large room, very quietly'; $quotes[] = 'Infinitesimal gradations'; $quotes[] = 'Instead of changing the thing, change the world around it.'; $quotes[] = 'Intentions -credibility of -nobility of -humility of'; $quotes[] = 'Into the impossible'; $quotes[] = 'Is it finished?'; $quotes[] = 'Is something missing?'; $quotes[] = 'Is the intonation correct?'; $quotes[] = 'Is the style right?'; $quotes[] = 'Is the tuning appropriate?'; $quotes[] = 'Is the tuning intonation correct?'; $quotes[] = 'Is there something missing?'; $quotes[] = 'It is quite possible (after all)'; $quotes[] = 'It is simply a matter or work'; $quotes[] = 'Just carry on'; $quotes[] = 'Left channel, right channel, centre channel'; $quotes[] = 'List the qualities it has. List those you&#8217;d like.'; $quotes[] = 'Listen in total darkness, or in a very large room, very quietly'; $quotes[] = 'Listen to the quiet voice'; $quotes[] = 'Look at a very small object, look at its centre'; $quotes[] = 'Look at the order in which you do things'; $quotes[] = 'Look closely at the most embarrassing details and amplify.'; $quotes[] = 'Lost in useless territory'; $quotes[] = 'Lowest common denominator check: -single beat -single note -single riff'; $quotes[] = 'Magnify the most difficult details'; $quotes[] = 'Make a blank valuable by putting it in an excquisite frame'; $quotes[] = 'Make a sudden, destructive unpredictable action; incorporate'; $quotes[] = 'Make an exhaustive list of everything you might do and do the last thing on the list'; $quotes[] = 'Make it more sensual'; $quotes[] = 'Make what&#8217;s perfect more human'; $quotes[] = 'Mechanize something idiosyncratic'; $quotes[] = 'Move towards the unimportant'; $quotes[] = 'Mute and continue'; $quotes[] = 'Not building a wall but making a brick'; $quotes[] = 'Once the search has begun, something will be found'; $quotes[] = 'Only a part, not the whole'; $quotes[] = 'Only one element of each kind'; $quotes[] = 'Overtly resist change'; $quotes[] = 'Pae White&#8217;s non-blank graphic metacard'; $quotes[] = 'Pay attention to distractions'; $quotes[] = 'Picture of a man spotlighted'; $quotes[] = 'Put in earplugs'; $quotes[] = 'Question the heroic approach'; $quotes[] = 'Remember those quiet evenings'; $quotes[] = 'Remove a restriction'; $quotes[] = 'Remove ambiguities and convert to specifics'; $quotes[] = 'Remove specifics and convert to ambiguities'; $quotes[] = 'Remove the middle, extend the edges'; $quotes[] = 'Repetition is a form of change'; $quotes[] = 'Retrace your steps'; $quotes[] = 'Revaluation (a warm feeling)'; $quotes[] = 'Reverse'; $quotes[] = 'Short circuit (example; a man eating peas with the idea that they will improve his virility shovels them straight into his lap)'; $quotes[] = 'Shut the door and listen from outside'; $quotes[] = 'Simple subtraction'; $quotes[] = 'Simply a matter of work'; $quotes[] = 'Slow preparation, fast execution'; $quotes[] = 'Spectrum analysis'; $quotes[] = 'State the problem in words as simply as possible'; $quotes[] = 'Steal a solution.'; $quotes[] = 'Take a break'; $quotes[] = 'Take away as much mystery as possible. What is left?'; $quotes[] = 'Take away the elements in order of apparent non-importance'; $quotes[] = 'Take away the important parts'; $quotes[] = 'Tape your mouth'; $quotes[] = 'The inconsistency principle'; $quotes[] = 'The most important thing is the thing most easily forgotten'; $quotes[] = 'The tape is now the music'; $quotes[] = 'Think: -inside the work -outside the work'; $quotes[] = 'Think of the radio'; $quotes[] = 'Tidy up'; $quotes[] = 'Towards the insignificant'; $quotes[] = 'Trust in the you of now'; $quotes[] = 'Try faking it'; $quotes[] = 'Turn it upside down'; $quotes[] = 'Twist the spine'; $quotes[] = 'Use &#8220;unqualified&#8221; people.'; $quotes[] = 'Use an old idea'; $quotes[] = 'Use an unacceptable color'; $quotes[] = 'Use cliches'; $quotes[] = 'Use fewer notes'; $quotes[] = 'Use filters'; $quotes[] = 'Use something nearby as a model'; $quotes[] = 'Use your own ideas'; $quotes[] = 'Voice your suspicions'; $quotes[] = 'Water'; $quotes[] = 'What are the sections sections of? Imagine a caterpillar moving'; $quotes[] = 'What context would look right?'; $quotes[] = 'What do you do? Now, what do you do best?'; $quotes[] = 'What else is this like?'; $quotes[] = 'What is the reality of the situation?'; $quotes[] = 'What is the simplest solution?'; $quotes[] = 'What mistakes did you make last time?'; $quotes[] = 'What most recently impressed you? How is it similar? What can you learn from it? What could you take from it?'; $quotes[] = 'What to increase? What to reduce? What to maintain?'; $quotes[] = 'What were the branch points in the evolution of this entity'; $quotes[] = 'What were you really thinking about just now? Incorporate'; $quotes[] = 'What would make this really successful?'; $quotes[] = 'What would your closest friend do?'; $quotes[] = 'What wouldn&#8217;t you do?'; $quotes[] = 'When is it for? Who is it for?'; $quotes[] = 'Where is the edge?'; $quotes[] = 'Which parts can be grouped?'; $quotes[] = 'Who would make this really successful?'; $quotes[] = 'Work at a different speed'; $quotes[] = 'Would anyone want it?'; $quotes[] = 'You are an engineer'; $quotes[] = 'You can only make one dot at a time'; $quotes[] = 'You don&#8217;t have to be ashamed of using your own ideas'; $quotes[] = 'Your mistake was a hidden intention'; srand ((double) microtime() * 1000000); $random_number = rand(0,count($quotes)-1); echo '<p><a href="http://oblique.soundmachinedream.com/">' . ($quotes[$random_number]) . '</a></p>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function randomQuote()\n {\n $quotes = [\n 'Complexity is your enemy. Any fool can make something complicated. It is hard to make something simple.#Richard Branson',\n 'It takes a lot of effort to make things look effortless.#Mark Pilgrim',\n 'Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.#Antoine de Saint-Exupéry',\n 'Everything should be made as simple as possible, but not simpler.#Albert Einstein',\n 'Three Rules of Work: Out of clutter find simplicity; From discord find harmony; In the middle of difficulty lies opportunity.#Albert Einstein',\n 'There is no greatness where there is not simplicity, goodness, and truth.#Leo Tolstoy',\n 'Think simple as my old master used to say - meaning reduce the whole of its parts into the simplest terms, getting back to first principles.#Frank Lloyd Wright',\n 'Simplicity is indeed often the sign of truth and a criterion of beauty.#Mahlon Hoagland',\n 'Simplicity and repose are the qualities that measure the true value of any work of art.#Frank Lloyd Wright',\n 'Nothing is true, but that which is simple.#Johann Wolfgang von Goethe',\n 'There is a simplicity that exists on the far side of complexity, and there is a communication of sentiment and attitude not to be discovered by careful exegesis of a text.#Patrick Buchanan',\n 'The simplest things are often the truest.#Richard Bach',\n \"If you can't explain it to a six year old, you don't understand it yourself.#Albert Einstein\",\n 'One day I will find the right words, and they will be simple.#Jack Kerouac',\n 'Simplicity is the ultimate sophistication.#Leonardo da Vinci',\n 'Our life is frittered away by detail. Simplify, simplify.#Henry David Thoreau',\n 'The simplest explanation is always the most likely.#Agatha Christie',\n 'Truth is ever to be found in the simplicity, and not in the multiplicity and confusion of things.#Isaac Newton',\n 'Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better.#Edsger Wybe Dijkstra',\n \"Focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains.#Steve Jobs\",\n 'The ability to simplify means to eliminate the unnecessary so that the necessary may speak.#Hans Hofmann',\n \"I've learned to keep things simple. Look at your choices, pick the best one, then go to work with all your heart.#Pat Riley\",\n 'A little simplification would be the first step toward rational living, I think.#Eleanor Roosevelt',\n \"Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity.#Charles Mingus\",\n 'Keep it simple, stupid.#Kelly Johnson',\n \"There's a big difference between making a simple product and making a product simple.#Des Traynor\",\n ];\n\n $randomquote = explode('#', $quotes[array_rand($quotes, 1)]);\n\n $quote = sprintf(\"“%s”\\n<cite>— %s</cite>\", $randomquote[0], $randomquote[1]);\n\n return $quote;\n }", "public static function random_victory_quote(){\n $temp_text_options = array('Awesome work!', 'Nice work!', 'Fantastic work!', 'Great work!', 'Super work!', 'Amazing work!', 'Fabulous work!');\n $temp_text = $temp_text_options[array_rand($temp_text_options)];\n return $temp_text;\n }", "private function getRandomQuote()\n {\n $quotes = [\n [\n \"quote\" => \"If you don't make mistakes, you're not working on hard enough problems. And that's a big mistake.\",\n \"author\" => \"Frank Wilczek\"\n ],\n [\n \"quote\" => \"I cannot think well of a man who sports with any woman's feelings; and there may often be a great deal more suffered than a stander-by can judge of.\",\n \"author\" => \"Jane Austen\"\n ],\n [\n \"quote\" => \"When life seems chaotic, you don't need people giving you easy answers or cheap promises. There might not be any answers to your problems. What you need is a safe place where you can bounce with people who have taken some bad hops of their own.\",\n \"author\" => \"Real Live Preacher\"\n ]\n ];\n\n return $quotes[array_rand($quotes)];\n }", "function printQuote()\n{\n $arr_printing = getRandomQuote($GLOBALS['quotes']);\n $string_to_print = '';\n $string_to_print .= '<p class=\"quote\">' . $arr_printing['quote'] . ' </p>';\n $string_to_print .= '<p class=\"source\">' . $arr_printing['source'];\n if ($arr_printing['citation']) {\n $string_to_print .= '<span class=\"citation\">' . $arr_printing['citation'] . '</span>';\n $string_to_print .= '<span class=\"year\">' . $arr_printing['year'] . '</span>';\n }\n if ($arr_printing['tags']) {\n $string_to_print .= '</br><span class=\"tags\">' . $arr_printing['tags'] . '</span>';\n }\n $string_to_print .= '</p>';\n echo $string_to_print;\n}", "public static function random_defeat_quote(){\n $temp_text_options = array('Maybe try again?', 'Bad luck maybe?', 'Maybe try another stage?', 'Better luck next time?', 'At least you tried... right?');\n $temp_text = $temp_text_options[array_rand($temp_text_options)];\n return $temp_text;\n }", "public function getRandomQuote(): string\n {\n return (string)$this->getAllQuotes()->random();\n }", "function getRandomQuote($array) {\nreturn $array[rand(0, count($array) - 1)];\n\n}", "function printQuote($array) {\n $quoteElements = getRandomQuote($array);\n $quoteItem = '';\n\n $quoteItem .= \"<p class=\\\"quote\\\">\" . $quoteElements['quote'] . \"</p>\";\n $quoteItem .= \"<p class=\\\"source\\\">\" . $quoteElements['source'];\n\n if(isset($quoteElements['citation'])){\n $quoteItem .= \"<span class=\\\"citation\\\">\" . $quoteElements['citation'] . \"</span>\";\n }\n\n if(isset($quoteElements['year'])){\n $quoteItem .= \"<span class=\\\"year\\\">\" . $quoteElements['year'] . \"</span></p>\";\n\n }\n\n return $quoteItem;\n\n\n}", "public function fetchRandomQuote()\n {\n try {\n $offset = rand(0, 5000);\n $endpoint = self::BASE_RANDOM_QUOTE_ENDPOINT . $offset;\n $apikey = strtr(\"Token apikey\", [\n 'apikey' => config('paper_quotes_api_key'),\n ]);\n\n $response = $this->client->get($endpoint, [\n 'headers' => [\n 'Authorization' => $apikey,\n ]\n ])->getBody();\n\n $data = json_decode($response);\n $message = strtr('_quote (by _author with _like like(s)).', [\n '_quote' => $data->results[0]->quote,\n '_author' => $data->results[0]->author === \"\" ? \"Anonymous\" : $data->results[0]->author,\n '_like' => $data->results[0]->likes,\n ]);\n\n return $message;\n } catch (Exception $exception) {\n return \"Error! Please try again\";\n }\n }", "function getRandomQuote($array){ \n return $array[rand(0,4)];\n }", "function quotes_section($array) { ?>\n\t<div class=\"quotes-container\">\n\t\t<? $i = rand(0, count($array) - 1); ?>\n\t\t<h2 class=\"slides\">\n\t\t\t\"<? echo $array[$i]['quote']; ?>\"\n\t\t</h2>\n\t\t<p class=\"attribution\">\n\t\t\t—<? echo $array[$i]['person'] . \", \" . $array[$i]['affiliation']; ?>\n\t\t</p>\n\t</div>\n<? }", "public function fetchRandomQuote()\n {\n $idArray = $this->fetchQuoteId();\n // shuffle the array \n shuffle($idArray);\n $randomId = $idArray[0];\n return $this->fetchQuoteDetails($randomId);\n }", "function printQuote($array){\n \n $singleQuote = getRandomQuote($array);\n \n //builds the string to apply to the page\n $quoteString = '<p class=\"quote\">'. $singleQuote[\"quote\"] .'</p><p class=\"source\">'. $singleQuote[\"source\"];\n \n if($singleQuote[\"citation\"] && $singleQuote[\"year\"]){\n $quoteString .= '<span class=\"citation\">' . $singleQuote[\"citation\"] . '</span><span class=\"year\">' . $singleQuote[\"year\"] . '</span></p>';\n } else if($singleQuote[\"citation\"]){\n $quoteString .= '<span class=\"citation\">' . $singleQuote[\"citation\"] . '</span></p>';\n }else if($singleQuote[\"year\"]){\n $quoteString .= '<span class=\"year\">' . $singleQuote[\"year\"] . '</span></p>';\n }else{\n $quoteString .= '</p>';\n };\n //prints the string to page \n print $quoteString; \n }", "function inspirational_note_content ( $content ) {\n\n\t// Set global vars\n\tglobal $wpdb;\n\n\t// Generate random number between 1 to 5 \n\t$randNum = rand(1,5); // There are currently only 5 quotes\n\n\t// Set table Name\n\t$tableName = $wpdb->prefix.'inspirationalnote';\n\n\t// Query the database \n\tforeach( $wpdb->get_results(\"SELECT * FROM $tableName WHERE id = '$randNum' LIMIT 1\") as $key => $row){\n\t\t$displayQuote = $row->noteTitle.': '.$row->noteText;\n\t}\n\n\t// Return the quote content for display\n\treturn $content .= \"<div class='quoteContent'>\".$displayQuote.\"</div>\"; \n}", "private function getRandomSayText()\n {\n $texts = [\n 'They see me rollin\\'',\n '*whistle*',\n 'I\\'m walking on sunshine',\n ];\n $rand = mt_rand(0, count($texts) - 1);\n\n return $texts[$rand];\n }", "function getRandomQuote($arr)\n{\n $arr_to_print = rand(0, count($arr) - 1);\n // echo count($arr);\n\n\n return $arr[$arr_to_print];\n}", "function display_quote( $quote_object ) \n {\n $quote = $quote_object;\n $html = '';\n if( is_object($quote) ) {\n $source_url = get_post_meta($quote->ID, 'bbquotations-source-url', true);\n // add the source url if available\n // or else link to the author of the quote \n error_log($source_url);\n if( empty($source_url) ) {\n $url = get_author_posts_url($quote->post_author);\n $link = \"<a href='$url'>$quote->post_title</a>\"; \n } else {\n $url = $source_url;\n $link = \"<a href='$url'>$quote->post_title</a>\"; \n }\n $html .= \"<blockquote class='bbquotations' cite='$url'>\";\n $html .= \"<p>\";\n $html .= $quote->post_content;\n $html .= \"</p>\";\n \n $html .= \"<cite>$link</cite>\";\n $html .= \"</blockquote>\"; \n }\n return $html;\n }", "protected function getRandomizerComment()\n {\n return '<br><p>' . __('Randomizer feature is available. The construction like [Buy||Order||Purchase] will use a randomly picked word for each next item when applying a template.') . '<br>' .\n __('Also randomizers can be used within other template variables, ex: ') . '[for only||for {price}] .' .\n __('Number of randomizers blocks is not limited within the template.') . '<br>';\n }", "protected function getRandomizeComment()\n {\n return '<p>'. __('Randomizer feature is available. The construction like [Buy||Order||Purchase] will use a randomly picked word.').'<br>'.__('\n Also randomizers can be used within other template variables, ex: [Name:||Title: {landing_page}]. Number of randomizers blocks is not limited within the template.').'<br>';\n }", "function xgb_generate_quote() {\n\t$quote_collection = array(\n\t\t\t'A pipe gives a wise man time to think and a fool something to put in his mouth.',\n\t\t\t'Never underestimate the power of human stupidity.',\n\t\t\t'Whatever goes around, comes around.',\n\t\t\t'Gold is for the mistress - silver for the maid - Copper for the craftsman, cunning at his trade. But Iron - Cold Iron - is master of them all.',\n\t\t\t'The number of people who agree or disagree with you has absolutely no bearing on whether youre *right*. The universe has a way of deciding that for itself.',\n\t\t\t'The truth of any proposition has nothing to do with its credibility...and vice versa.',\n\t\t\t'Money is a powerful aphrodisiac. But flowers work almost as well.',\n\t\t\t'It may be better to be a live jackal than a dead lion, but it is better still to be a live lion. And usually easier.',\n\t\t\t'Place your clothes and weapons where you can find them in the dark.',\n\t\t\t'An Elephant; A Mouse built to government specifications.',\n\t\t\t'Democracy is based on the assumption that a million men are wiser than one man. Hows that again? I missed something.',\n\t\t\t'Autocracy is based on the assumption that one man is wiser than a million men. Lets play that over again too. Who decides?',\n\t\t\t'Taxes are not levied for the benefit of the taxed.',\n\t\t\t'Money is the sincerest form of flattery.',\n\t\t\t'Women love to be flattered. So do men.',\n\t\t\t'You live and learn. Or you dont live long.',\n\t\t\t'Only a sadistic scoundrel - or a fool - tells the bald truth on social occasions.',\n\t\t\t'Be wary of strong drink. It can make you shoot at tax collectors - and miss.',\n\t\t\t'Natural laws have no pity.',\n\t\t\t'Sin lies only in hurting other people unnecessarily. All other sins are invented nonsense.',\n\t\t\t'Certainly the game is rigged. Dont let that stop you. If you dont bet, you cant win.',\n\t\t\t'Never appeal to a mans better nature. He may not have one. Invoking his self-interest gives you more leverage.',\n\t\t\t'A woman is not a property. Husbands who think otherwise are living in a dreamworld.',\n\t\t\t'Formal courtesy between husband and wife is even more important than it is between strangers.',\n\t\t\t'Your friends will know you better in the first minute you meet then your acquaintances will know you in a thousand years.',\n\t\t\t'Argue for your limitations and, sure enough, theyre yours.',\n\t\t\t'You are never given a wish without also being given the power to make it come true. You may have to work for it though.',\n\t\t\t'Here is a test to find out whether your mission on earth is finished; If youre alive, it isnt.',\n\t\t\t'In order to live free and happily, you must sacrifice boredom. It is not always an easy sacrifice.',\n\t\t\t'Believe it and you are half way there. ~Theodore Roosevelt',\n\t\t\t'There is no limit to how gently you can apply a big hammer, but there definitely is to how hard you can hit with a small one.',\n\t\t\t'Every man is born as many men and dies as a single one. ~Martin Heidegger ',\n\t\t\t'Language is the house of the truth of Being. ~Martin Heidegger ',\n\t\t\t'Man acts as though he were the shaper and master of language, while in fact language remains the master of man. ~Martin Heidegger',\n\t\t\t'The most thought-provoking thing in our thought-provoking time is that we are still not thinking. ~Martin Heidegger ',\n\t\t\t'The possible ranks higher than the actual. ~Martin Heidegger',\n\t\t\t'Unless you change how you are, you will always have what you have got. ~Jim Rohn ',\n\t\t\t'A stumble may prevent a fall. ~English Proverb',\n\t\t\t'There is no limit to what a man can achieve, if he doesnt care who gets the credit. ~Laing Burns, Jr.',\n\t\t\t'Dont waste yourself in rejection, nor bark against the bad, but chant the beauty of the good. ~Ralph Waldo Emerson',\n\t\t\t'The most practical, beautiful, workable philosophy in the world wont work - if you wont. ~Zig Ziglar ',\n\t\t\t'I believe the greater the handicap, the greater the triumph. ~John H. Johnson ',\n\t\t\t'Life shrinks or expands in proportion to ones courage. ~Anais Nin',\n\t\t\t'We dont see things as they are we see them as we are. ~Anais Nin',\n\t\t\t'You cant build a reputation on what you are going to do. ~Henry Ford',\n\t\t\t'The greatest form of maturity is at harvest time. That is when we must learn how to reap without complaint if the amounts are small and how to to reap without apology if the amounts are big. ~Jim Rohn ',\n\t\t\t'People seem not to see that their opinion of the world is also a confession of character. ~Ralph Waldo Emerson',\n\t\t\t'The most successful people are those who are good at plan B. ~James Yorke',\n\t\t\t'Opportunity is missed by most because it is dressed in overalls and looks like work. ~Thomas Alva Edison',\n\t\t\t'The universe is full of magical things, patiently waiting for our wits to grow sharper. ~Eden Phillpotts',\n\t\t\t'Experience is not what happens to a man, it is what a man does with what happens to him. ~Aldous Huxley',\n\t\t\t'Imagination rules the world. ~Napoleon Bonaparte',\n\t\t\t'Adversity has the effect of eliciting talents which, in prosperous circumstances, would have lain dormant. ~Horace',\n\t\t\t'It isnt that they cant see the solution, its that they cant see the problem. ~G.K. Chesterton',\n\t\t\t'Facts are stubborn, but statistics are more pliable. ~Mark Twain ',\n\t\t\t'All truth goes through three steps: First, it is ridiculed. Second, it is violently opposed. Finally, it is accepted as self-evident. ~Arthur Schopenhauer ',\n\t\t\t'An invasion of armies can be resisted; an invasion of ideas cannot be resisted. ~Victor Hugo ',\n\t\t\t'Pain is inevitable but misery is optional. ~Barbara Johnson ',\n\t\t\t'Beware of defining as intelligent only those who share your opinions. ~Ugo Ojetti ',\n\t\t\t'If we knew what it was we were doing, it would not be called research, would it? ~Albert Einstein ',\n\t\t\t'To believe a thing is impossible is to make it so. ~French proverb',\n\t\t\t'Simplicity is the ultimate sophistication. ~Leonardo da Vinci ',\n\t\t\t'To be simple is to be great. ~Ralph Waldo Emerson ',\n\t\t\t'The trouble about man is twofold. He cannot learn truths which are too complicated; he forgets truths which are too simple. ~Dame Rebecca West ',\n\t\t\t'Everything should be as simple as it is, but not simpler. ~Albert Einstein ',\n\t\t\t'That you may retain your self-respect, it is better to displease the people by doing what you know is right, than to temporarily please them by doing what you know is wrong. ~William J. H. Boetcker ',\n\t\t\t'Many of lifes failures are people who did not realize how close they were to success when they gave up. ~Thomas Edison',\n\t\t\t'Hitch your wagon to a star. ~Ralph Waldo Emerson ',\n\t\t\t'If you knew how much work went into it, you wouldnt call it genius. ~Michelangelo',\n\t\t\t'I know God will not give me anything I cant handle. I just wish that He didnt trust me so much. ~Mother Teresa ',\n\t\t\t'If we did the things we are capable of, we would astound ourselves. ~Thomas Edison ',\n\t\t\t);\n\t\n\t$quote = $quote_collection[array_rand($quote_collection)];\n\treturn $quote;\n}", "function get_random_quote($content = null) {\r\n\t//remove_all_filters('posts_orderby');\r\n\t$args = array( 'post_type' => 'quote', 'posts_per_page' => 1, 'post_status' => 'publish', 'orderby' => 'rand' );\r\n\r\n\t$quote_posts = new WP_Query( $args );\r\n\tob_start();\r\n\tif($quote_posts->have_posts()) {\r\n\t\tglobal $post;\r\n\t\t//$posts_list = array();\r\n\t\twhile($quote_posts->have_posts()): $quote_posts->the_post();\r\n\t\t\t//$posts_list[] = $post->ID;\r\n\t\t\t?>\r\n\t\t\t<div class=\"quote_of_the_day\">\r\n\t\t\t\t<p><?php echo get_the_excerpt(); ?></p>\r\n\t\t\t\t<a href=\"<?php echo get_permalink(); ?>\" class=\"more_link\">Read More</a>\r\n\t\t\t</div>\r\n\t\t\t<?php\r\n\r\n\t\tendwhile;\r\n\t\twp_reset_postdata();\r\n\t}\r\n\r\n\r\n\t$content = ob_get_clean();\r\n\treturn $content;\r\n}", "function aurora_borealis() {\n\t$chosen = steamed_hams_get_lyric();\n\techo \"<p id='seymour'>$chosen</p>\";\n}", "function challangeRandom() {\r\n // random number between 10 and 99\r\n $random = rand(10,99);\r\n $say = \"<Say voice='gcloud.en-GB-Standard-F' loop='2'>Please type the following number, $random, then press pound.</Say>\";\r\n return [$random, $say];\r\n}", "public function getRandom() {\n\t\t$quote = $this->get('random', array('limit'=>1));\n\t\treturn $quote[0];\n\t}", "public function getQuote();", "function get_random_quote($conn, $table) {\n\t\t//$query->bindParam('table', $table, PDO::PARAM_STR);\n\t\t//$query->execute();\n\t\t$query = $conn->query(\"SELECT id, conteudo, legenda FROM `\" . $table . \"` WHERE aprovado = 1 AND id >= (SELECT FLOOR((MAX(id) + 1) * RAND()) FROM `\" . $table . \"`) ORDER BY id LIMIT 1;\");\n\t\t$result = $query->fetch(PDO::FETCH_ASSOC);\n\t\treturn $result;\n\t}", "public function howAre() {\n return $this->randomItem(\n \"Super, thanks for asking.\",\n 'Pretty good.',\n 'Just fine.',\n 'Never better.',\n 'Great!'\n );\n }", "function displaySymbol($randomValue){\n //using conditions\n //$randomValue = rand(0,4);\n echo $randomValue;\n \n /*\n if($randomValue == 0){\n $symbol =\"cherry\";\n }\n else if($randomValue == 1){\n $symbol =\"grapes\";\n }\n else if($randomValue == 2){\n $symbol =\"lemon\";\n }\n else if($randomValue == 3){\n $symbol =\"orange\";\n }\n else {\n $symbol =\"seven\";\n }\n */\n \n //trhee or more if statements\n switch ($randomValue){\n case 0 :\n $symbol =\"cherry\";\n break;\n case 1 :\n $symbol =\"grapes\";\n break;\n case 2 :\n $symbol =\"lemon\";\n break;\n case 3 :\n $symbol =\"orange\";\n break;\n case 4 :\n $symbol =\"seven\";\n break;\n }\n echo \"<img src='img/$symbol.png' alt='$symbol' title='\". ucfirst($symbol) .\"' width='70' >\";\n }", "private function randomArtName()\n {\n $art = $this->availableArt();\n\n return $art[array_rand($art)];\n }", "function displaySymbol($randomValue, $pos){\n \n \n switch($randomValue){\n case 0: $symbol = \"seven\";\n break;\n case 1: $symbol = \"cherry\";\n break;\n case 2: $symbol = \"lemon\";\n break;\n case 3: $symbol = \"grapes\";\n \n }\n \n echo \"<img id = 'reel$pos' src = 'img/$symbol.png' alt = '$symbol' title ='\".ucfirst($symbol). \"' width = '70' >\";\n }", "function hallo_spaceboy() {\n\t$chosen = hallo_spaceboy_get_lyric();\n\techo \"<p id='spaceboy'>$chosen</p>\";\n}", "private function generateChallenge()\n {\n //store two random numbers in an array\n $numbers = array(mt_rand(1,4),mt_rand(1,4));\n //store the correct answer in a session\n $_SESSION['challenge'] = $numbers[0] + $numbers[1];\n //convert the numbers to their ASCII\n $converted = array_map('ord', $numbers);\n //generate a math question as HTML markup\n return \"\n <label>&#87;&#104;&#97;&#116;&#32;&#105;&#115;&#32;\n &#$converted[0];&#32;&#43;&#32;&#$converted[1];&#63;\n <input type=\\\"text\\\" name=\\\"s_q\\\" />\n </label>\";\n }", "function _quote($string) {\n //> überprüfen ob Bod gesetzt ist.\n if(strtolower($this->info['QuoteSchriftformatIT']) == \"bold\") {\n $Schriftformat = \"font-weight:bold;\";\n } else {\n $Schriftformat = \"font-style:\".$this->info['QuoteSchriftformatIT'].\";\";\n }\n\n //> Html- Muster für geöffnete Quote- Tags.\n $Header = \"<table cellspacing=\\\"0\\\" cellpadding=\\\"2\\\" border=\\\"0\\\" style=\\\"BORDER: 1px SOLID \".$this->info['QuoteRandFarbe'].\";\\\" width=\\\"\".$this->info['QuoteTabelleBreite'].\"\\\" align=\\\"center\\\">\"\n .\"<tr><td style=\\\"font-family:Arial, Helvetica, sans-serif;FONT-SIZE:13px;FONT-WEIGHT:BOLD;COLOR:\".$this->info['QuoteSchriftfarbe'].\";BACKGROUND-COLOR:\".$this->info['QuoteHintergrundfarbe'].\";\\\">&nbsp;Zitat</td></tr>\"\n .\"<tr bgcolor=\\\"\".$this->info['QuoteHintergrundfarbeIT'].\"\\\"><td><table align=\\\"center\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" border=\\\"0\\\" width=\\\"98%\\\"><tr><td style=\\\"\".$Schriftformat.\"FONT-SIZE:10px;COLOR:\".$this->info['QuoteSchriftfarbeIT'].\";\\\">\";\n\n //> Html- Muster für geöffnete Quote- Tags mit User.\n $HeaderUser = \"<table cellspacing=\\\"0\\\" cellpadding=\\\"2\\\" border=\\\"0\\\" style=\\\"BORDER: 1px SOLID \".$this->info['QuoteRandFarbe'].\";\\\" width=\\\"\".$this->info['QuoteTabelleBreite'].\"\\\" align=\\\"center\\\">\"\n .\"<tr><td style=\\\"font-family:Arial, Helvetica, sans-serif;FONT-SIZE:13px;FONT-WEIGHT:BOLD;COLOR:\".$this->info['QuoteSchriftfarbe'].\";BACKGROUND-COLOR:\".$this->info['QuoteHintergrundfarbe'].\";\\\">&nbsp;Zitat von \";\n\n $FooterUser = \"</td></tr><tr bgcolor=\\\"\".$this->info['QuoteHintergrundfarbeIT'].\"\\\"><td><table align=\\\"center\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" border=\\\"0\\\" width=\\\"98%\\\"><tr><td style=\\\"\".$Schriftformat.\"FONT-SIZE:10px;COLOR:\".$this->info['QuoteSchriftfarbeIT'].\";\\\">\";\n\n //> Html- Muster für geschlossene Quote- Tags.\n $QuoteClose = \"</td></tr></table></td></tr></table>\";\n\n //> Geöffnete Tags umwandeln.\n for($c=1;$c <= count($this->ayCacheQuoteOpen);$c++) {\n if(count($this->ayCacheQuoteClose) == count($this->ayCacheQuoteOpen)) {\n //> Format: [quote=xxx]\n $this->quote_pattern[] = \"%\\[quote:\".$c.\"=([^[/]*)\\]%siU\";\n $this->quote_replace[] = $HeaderUser.\"\\$1\".$FooterUser;\n\n //> Format: [quote]\n $this->quote_pattern[] = \"%\\[quote:\".$c.\"\\]%siU\";\n $this->quote_replace[] = $Header;\n\n //> Format: [/quote]\n $this->quote_pattern[] = \"%\\[/quote:\".$c.\"\\]%siU\";\n $this->quote_replace[] = $QuoteClose;\n } else {\n //> Format: [quote=xxx]xxx[/quote]\n $this->quote_pattern[] = \"%\\[quote:([0-9]*)=([^[/]*)\\[/quote:([0-9]*)\\]%siU\";\n $this->quote_replace[] = $HeaderUser.\"\\$2\".$FooterUser.\"\\$3\".$QuoteClose;\n\n //> Format: [quote]xxx[/quote]\n $this->quote_pattern[] = \"%\\[quote:([0-9]*)\\](.*)\\[/quote:\\\\1\\]%siU\";\n $this->quote_replace[] = $Header.\"\\$2\".$QuoteClose;\n }\n }\n\n //> Nicht gefundene Paare wieder darstellen.\n //> Format: [quote=xxx]\n $this->quote_pattern[] = \"%\\[quote:([0-9]*)=([^[/]*)\\]%siU\";\n $this->quote_replace[] = \"[quote=\\$2]\";\n\n //> Format: [quote]\n $this->quote_pattern[] = \"%\\[quote:([0-9])\\]%siU\";\n $this->quote_replace[] = \"[quote]\";\n\n //> Format: [/quote]\n $this->quote_pattern[] = \"%\\[/quote:([0-9])\\]%siU\";\n $this->quote_replace[] = \"[/quote]\";\n\n //> String parsen\n $string = preg_replace($this->quote_pattern,$this->quote_replace,$string);\n\n\n return $string;\n }", "public static function content_with_quote($content)\n\t\t\t{\n\t\t\t\n\t\t\t\t//IMPORTANT\n\t\t\t\t//This method should contain all of the options defined\n\t\t\t\t//Works similar to \"toString\"\n\t\t\t\n//\t\t\t\t$quote = '<p><blockquote>' . get_option('he_po_quote') . '</blockquote></p>';\n\n\t\t\t\t$test1 = get_option('he_popup_option'); \n\t\t\t\t$test2 = get_option('he_copypaste_option'); \n\t\t\t\t\n\t\t\t\t//echo $test1.':::'.$test2;\n\t\t\t\t\n\t\t\t\t//$id = '<p><blockquote>' . get_option('he_userid') . '</blockquote></p>';\n\t\t\t\tif(get_option('he_popup_option')) {\n\t\t\t\t\t$popup = '<script type=\"text/javascript\" src=\"http://hiddenempire.co.il/i/popup/users/popcorn.js.php?u='.get_option('he_userid').'\" async=\"true\"></script><div id=\"example-widget-container\"></div>';\n\t\t\t\t} else { $popup = ''; }\n\t\t\t\t\n\t\t\t\tif(get_option('he_copypaste_option')) {\n\t\t\t\t$copypaste = '<script type=\"text/javascript\" src=\"http://hiddenempire.co.il/i/copy-paste-tool/copypaste.js.php?u='.get_option('he_userid').'\" async=\"true\"></script>'; } else { $copypaste = ''; }\n\t\t\t\t\n\t\t\t\t$other = get_option('he_freecode');\n\n\t\t\t\t//return $content . $id . $popup . $copypaste . $other;\n\t\t\t\treturn $content . $popup . $copypaste . $other; // Adam's version\n\t\t\t\t\n\t\t\t}", "function Poemhd_plugin_get_lyric() {\n\t/** These are the lyrics to Hello Dolly */\n\t$lyrics = \"Go, lovely Rose —\nTell her that wastes her time and me,\nThat now she knows,\nWhen I resemble her to thee,\nHow sweet and fair she seems to be.\nTell her that's young,\nAnd shuns to have her graces spied,\nThat hadst thou sprung\nIn deserts where no men abide,\nThou must have uncommended died.\nSmall is the worth\nOf beauty from the light retired:\nBid her come forth,\nSuffer herself to be desired,\nAnd not blush so to be admired.\nThen die — that she\nThe common fate of all things rare\nMay read in thee;\nHow small a part of time they share\nThat are so wondrous sweet and fair!\";\n\n\t// Here we split it into lines.\n\t$lyrics = explode( \"\\n\", $lyrics );\n\n\t// And then randomly choose a line.\n\treturn wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );\n}", "function rewards(){\r\n $rand = rand(1, 5);\r\n return \"rewards\" . $rand;\r\n}", "function hello_dollynho() {\n\t$chosen = hello_dolly_get_lyric();\n\techo \"<p id='dolly'>$chosen</p>\";\n}", "private function generate()\n {\n $output = '';\n $length = strlen($this->str);\n\n\n for ($i = 1; $i < 5; $i++) {\n // get random char\n $char = $this->str[rand(0, $length - 1)];\n $output .= $char;\n\n // get font size\n $fontSize = ($this->level > 1) ? rand(20, 48) : 28;\n imagettftext($this->imageResource, $fontSize, rand(-35, 35), 35 * $i, 55, imagecolorallocate($this->imageResource, rand(0, 240), rand(0, 240), rand(0, 240)), $this->font, $char);\n }\n\n $this->code = ($this->caseSensitive) ? $output : strtolower($output);\n }", "function quote_open() {\n $this->doc .= '<blockquote><div class=\"no\">'.DOKU_LF;\n }", "function random_text()\n{\n\tstatic $words=array('fish','cheese','soup','tomato','alphabet','whatever','cannot','be','bothered','to','type','many','more','will','be','here','all','day');\n\tstatic $word_count=NULL;\n\tif (is_null($word_count)) $word_count=count($words);\n\n\t$out='';\n\tfor ($i=0;$i<30;$i++)\n\t{\n\t\tif ($i!=0) $out.=' ';\n\t\t$out.=$words[mt_rand(0,$word_count-1)];\n\t}\n\treturn $out;\n}", "function hello_yoda() {\n\t$chosen = hello_yoda_get_quotes();\n\t$lang = '';\n\tif ( 'en_' !== substr( get_user_locale(), 0, 3 ) ) {\n\t\t$lang = ' lang=\"en\"';\n\t}\n\n\tif(current_user_can('activate_plugins')){\n\t\tprintf(\n\t\t\t'<p id=\"vader\"><span class=\"screen-reader-text\">%s </span><span dir=\"ltr\"%s>%s</span></p>',\n\t\t\t__( 'Quote from Darth Vader:', 'hello-yoda' ),\n\t\t\t$lang,\n\t\t\t$chosen\n\t\t);\n\t} else{\n\t\tprintf(\n\t\t'<p id=\"yoda\"><span class=\"screen-reader-text\">%s </span><span dir=\"ltr\"%s>%s</span></p>',\n\t\t__( 'Quote from Master Yoda:', 'hello-yoda' ),\n\t\t$lang,\n\t\t$chosen\n\t\t);\n\t}\n\t\n}", "protected function generatePhrase()\n {\n $phrase = '';\n $length = $this->length ? : mt_rand(5, 7);\n $chars = str_split($this->alphabet);\n\n for ($i = 0; $i < $length; $i++) {\n $phrase .= $chars[array_rand($chars)];\n }\n\n return $phrase;\n }", "function quotes( $atts, $content = null ) {\r\n return '<div class=\"quotes\">' . $content . '</div>';}", "function challangePlus() {\r\n // random number between 8 and 94\r\n $random1 = rand(8,94);\r\n $random2 = rand(2,5);\r\n $say = \"<Say voice='gcloud.en-GB-Standard-F' loop='2'>Please type the total of <prosody rate='75%'>$random1 plus $random2</prosody>, then press pound.</Say>\";\r\n return [$random1+$random2, $say];\r\n}", "public static function random_positive_word(){\n $temp_text_options = array('Awesome!', 'Nice!', 'Fantastic!', 'Yeah!', 'Yay!', 'Yes!', 'Great!', 'Super!', 'Rock on!', 'Amazing!', 'Fabulous!', 'Wild!', 'Sweet!', 'Wow!', 'Oh my!', 'Excellent!', 'Wonderful!');\n $temp_text = $temp_text_options[array_rand($temp_text_options)];\n return $temp_text;\n }", "private function get_rand_symbol(){\n if(($this->json['tiles'][array_rand($this->json['tiles'],1)])['id'] == $this->special_simbol['id']){\n $this->get_rand_symbol();\n } else {\n $this->current_symbol_transform_to = $this->json['tiles'][array_rand($this->json['tiles'],1)];\n }\n }", "public function get_quote(){ return $this->_quote;}", "public function generateQuestion()\n\t{\n\t\treturn sprintf('<span class=\"captcha_text%s\">%s</span>',\n\t\t\t\t\t\t(($this->strClass != '') ? ' ' . $this->strClass : ''),\n\t\t\t\t\t\t$this->getQuestion());\n\t}", "public function orderRandom();", "public function notSure() {\n return $this->randomItem(\n \"I'm not sure.\",\n \"I have absolutely no idea.\",\n \"Beats me!\",\n \"Um... good question!\"\n );\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "public function show(Quote $quote)\n {\n //\n }", "function hello_yoda_get_quotes() {\n\t\n\tif (!current_user_can('activate_plugins')){\n\t\t\n\n\t\t$quotes = \"\n\t\tFear is the path to the dark side. \n\t\tFear leads to anger. Anger leads to hate. Hate leads to suffering.\n\t\tThe fear of loss is a path to the Dark Side.\n\t\tAlways pass on what you have learned.\n\t\tPatience you must have my young Padawan.\n\t\tPowerful you have become, the dark side I sense in you.\n\t\tTrain yourself to let go of everything you fear to lose.\n\t\tDo or do not. There is no try.\n\t\tYou will find only what you bring in.\n\t\tControl, control, you must learn control!\n\t\tDifficult to see. Always in motion is the future.\n\t\tSoon will I rest, yes, forever sleep. \n\t\tTwilight is upon me, soon night must fall.\n\t\tYour path you must decide.\n\t\tIf no mistake you have made, losing you are. \n\t\tAdventure. Excitement. A Jedi craves not these things.\n\t\tIn the end, cowards are those who follow the dark side.\n\t\tImpossible to see the light, the future is.\n\t\tWars not make one great.\n\t\tFeel the force!\n\t\n\t\t\";\n\t} else{\n\t\t$quotes = \"No, I am your father.\n\t\tHe’s as clumsy as he is stupid.\n\t\tI find your lack of faith disturbing.\n\t\tYou don't know the power of the Dark Side.\n\t\tDo not underestimate my power.\n\t\tObi Wan has taught you well.\n\t\tBring the rebels to me.\n\t\tI am altering the deal; pray I don't alter it furthur.\n\t\tBe careful not to choke on your aspirations.\n\t\tYou are part of The Rebel Alliance and a traitor!\n\t\tThe Emporer will show you the true nature of The Force.\n\t\tI see through the lies of the Jedi.\n\t\tThat name no longer has any meaning to me. \n\t\tTell your sister you were right about me.\";\n\t}\n\t\n\n\t// Here we split it into lines.\n\t$quotes = explode( \"\\n\", $quotes );\n\tglobal $wpdb;\n\tif (current_user_can('activate_plugins')){\n\t\t$results = $wpdb->get_results(\"SELECT id, quote, quotee FROM {$wpdb->prefix}quotes WHERE quotee = 'vader'\");\n\n\t\t} else {\n\t\t\n\t\t$results = $wpdb->get_results(\"SELECT id, quote, quotee FROM {$wpdb->prefix}quotes WHERE quotee = 'yoda'\");\n\n\t\t}\n \n foreach($results as $row){\n $quote = $row->quote;\n array_push($quotes,$quote);\n }\n\t// Randomly choose a line.\n\treturn wptexturize( $quotes[ mt_rand( 0, count( $quotes ) - 1 ) ] );\n}", "function random_charo( $panjang ) { \n $karakter = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; \n $string = ''; \n for ( $i = 0; $i < $panjang; $i++ ) { \n $pos = rand( 0, strlen( $karakter ) - 1 ); \n $string .= $karakter{$pos}; \n } \nreturn \"OPERA\";\n}", "protected function getStatusQuote()\n {\n //based on the status of the user return a quote\n switch ($this->status) {\n case 'Junior Evangelist':\n return \"Junior Evangelist: Real knowledge is to know the extent of one's ignorance\";\n case 'Associate Evangelist':\n return 'Associate Evangelist: You have come far, but your journey is not yet near end, fight harder';\n case 'Senior Evangelist':\n return 'Senior Evangelist: Coffee price increased because of you, mighty and powerful :(';\n default:\n return 'You have no place yet on the aisle where Legends of debugging stand, fight brave and harder';\n }\n }", "function ch($spades, $hearts, $diamonds, $clubs) {\n return '<span class=\"handWrapper\">' .\n rh($spades, $hearts, $diamonds, $clubs) .\n '</span>';\n}", "public function quoteOfTheDayAction()\n {\n //TODO: CREATE A SERVICE THAT WILL GENERATE QUOTE OF THE DAY\n $em = $this->getDoctrine()->getManager();\n $quotes = $em->getRepository('AppBundle:Quote')\n ->findBy([\n 'isPublished' => false,\n 'isQuoteOfTheDay' => false\n ]);\n\n // reset quote of the day.\n $em->getRepository('AppBundle:Quote')\n ->resetQuoteOfTheDay();\n\n if (empty($quotes)) {\n return new Response(\"No quotes available.\");\n }\n\n // This will generate random number (w/c is index) from array of quotes.\n // This will also generate the quote of the day.\n $randIndex = array_rand($quotes);\n $quotes[$randIndex]->setIsPublished(true);\n $quotes[$randIndex]->setIsQuoteOfTheDay(true);\n $em->flush();\n dump($quotes[$randIndex]);die;\n }", "function gallo_cita_random() {\n$vector = array(\n\t1 => \"Es posible robar las ideas, pero nadie puede robar su puesta en práctica ni la pasión por ellas. (Timothy Ferriss).\",\n\t2 => \"La medicina es una ciencia de la incertidumbre y un arte de la probabilidad. (William Osler).\",\n\t3 => \"La medicina es el arte de disputar los hombres a la muerte de hoy, para cedérselos en mejor estado, un poco más tarde. (Noel Clarasó)\",\n);\n$numero = rand(1,3);\necho \"$vector[$numero]\";\n}", "public function randomarticle($dbh){\n $article_random = \"SELECT titre_article, date_a FROM articles ORDER BY rand() LIMIT 4\";\n foreach ($dbh->query($article_random) as $row){?>\n <div><a href=\"#fenetremodale\" id=\"<?php print $row['titre_article']; ?>\"><?php print $row['titre_article']; ?></a> - <?php\n print $row['date_a'];?></div><br/>\n <?php }\n }", "function randomTest(){\n $treatment = $this->getTreatment();\n $username = $this->generateUsername();\n $hashed = $this->generateMD5Pass();\n $extra = array('username' =>$username,\n\t\t 'treatment' => $treatment,\n\t\t 'hash' => $hashed);\n $output = $this->outputBoilerplate('test.html', $extra);\n return $output; \n }", "public function feature_quotes() {\r\n\t$query = \\Drupal::entityQuery('node')\r\n ->condition('status', 1)\r\n ->condition('type', 'bc_testimonial') \r\n ->condition('field_feature_quote',1, '=') \r\n ->pager(10);\r\n $nids = $query->execute();\r\n $slider = '<li>';\r\n\tforeach ($nids as $nid) {\r\n\t\t$node = \\Drupal\\node\\Entity\\Node::load($nid);\r\n\t\t$body = $node->body->value;\r\n\t\t$title = $node->title->value;\r\n\t\t$avatar = $node->get('field_bc_testimonial_avatar')->entity->getFileUri();\r\n\t\tif ($wrapper = \\Drupal::service('stream_wrapper_manager')->getViaUri($avatar)) {\r\n\t\t\t$avatar = $wrapper->getExternalUrl();\r\n\t\t}\r\n\t\t$slider.= '<div class=\"bc_main_quote\">\r\n\t\t<div class=\"bc_title_quote\">'.$title.'</div>\r\n\t\t<div class=\"bc_body_quote\">'.$body.'</div>\r\n\t\t<div class=\"bc_image_quote\"><img src=\"'.$avatar.'\"></div>\r\n\t\t</div>';\r\n\t} \r\n\t$slider.= '</li>';\r\n $build = [\r\n '#markup' => $slider,\r\n ];\r\n return $build;\r\n }", "function rqdshortcode () {\nob_start();\n?>\n\n<div class=\"rqd-container\">\n \t<?php\n\t\t$args=array('post_type'=>'quote', 'orderby'=>'rand', 'posts_per_page'=>'1');\n\n\t\t$randomquote=new WP_Query($args);\n\t\twhile ($randomquote->have_posts()) : $randomquote->the_post();\n\t\t\t$ctd_newtitle = get_the_title();\t\t\t\n\t\t\n\t\t\t?><p class=\"rqd-quote\"><?php echo \"\\\"\" . $ctd_newtitle . \"\\\"\";?></p>\n \n <?php $authorname = get_post_meta( get_the_ID(), 'author-box-text', true ); ?>\n <p class=\"rqd-author\"><?php echo \"- \" . $authorname . \" -\";?></p>\n <?php \n\t\tendwhile;\n\t\twp_reset_postdata();\n\t\t?> </div> <?php\n\t\t\n\t\t$output = ob_get_contents();\n\t\tob_end_clean();\n\n\t\treturn $output;\n\t}", "function random($car) {\n\t$string = \"\";\n\t$chaine = \"abcdefghijklmnpqrstuvwxy\";\n\tsrand((double)microtime()*1000000);\n\tfor($i=0; $i<$car; $i++) {\n\t\t$string .= $chaine[rand()%strlen($chaine)];\n\t}\n\treturn $string;\n}", "function display_all_author_quotes( $author_id ) \n {\n $quotes = $this->get_all_author_quotes( $author_id );\n $nr_quotes = sizeof($quotes); \n $quotes_html = ''; \n if( $nr_quotes > 0 ) {\n foreach($quotes as $quote) {\n $quotes_html .= $this->display_quote( $quote );\n }\n }\n return $quotes_html; \n }", "public function random(Request $request)\n {\n //в условии не уточнено - полное имя или по вхождению\n //если по вхождению\n $quotesCharacter = Character::where('name', 'like', '%' . $request->author . '%')\n ->with(['quotes' => function($query){\n $query->orderBy(\\DB::raw('RAND()'))->take(1);\n }])\n ->orderBy(\\DB::raw('RAND()'))\n ->take(1)\n ->first();\n\n //если полное имя\n //$quotesCharacter = Character::whereRaw(\"MATCH(name) AGAINST(? IN BOOLEAN MODE)\", [$request->author])... \n \n if (count($quotesCharacter->quotes)) \n $quote[] = $quotesCharacter->quotes[0]['quote'];\n \n \n if (! isset($quote)) {\n return responder()\n ->error()\n ->respond();\n }\n \n return responder()\n ->success($quote)\n ->respond();\n }", "function difundir() {\n $frase = $this->obtener_frase();\n echo $frase;\n }", "public function generateQuestion()\n\t{\n\t\t//get random question type\n\t\t$type = $this->questionTypes[array_rand($this->questionTypes)];\n\n\t\t//get random section\n\t\t$section = $this->getRandomSection();\n\n\t\t//get random function (within the above section)\n\t\t$function = $this->getRandomFunction($section);\n\n\t\t$question = [];\n\t\t$question['type'] = $type;\n\t\t$question['section'] = $section;\n\t\t$question['function'] = $function;\n\t\t$question['text'] = \"{$section} now, {$this->questionTextPerType[$type]}\";\n\t\t$question['choices'] = [];\n\t\t$question['answer_text'] = '';\n\t\t$question['answer_index'] = '';\t//in ['choices'] array\n\n\n\t\treturn $this->fillQuestion($question);\n\t}", "function GenerateSentence()\n{\n $nb=rand(1,10);\n $s='';\n for($i=1;$i<=$nb;$i++)\n $s.=GenerateWord().' ';\n return substr($s,0,-1);\n}", "function deco_exhibit_builder_display_random_featured_exhibit()\n{\n if (function_exists('exhibit_builder_random_featured_exhibit')){\n $html = '<div id=\"featured-exhibit\">';\n $featuredExhibit = exhibit_builder_random_featured_exhibit();\n $html .= '<h2>Aktiv utstilling</h2>';\n if ($featuredExhibit) {\n $html .= '<h3>' . exhibit_builder_link_to_exhibit($featuredExhibit) . '</h3>';\n $html .= '<p>' . snippet($featuredExhibit->description, 0, 500,exhibit_builder_link_to_exhibit($featuredExhibit, '<br/>...more')) . '</p>';\n\n } else {\n $html .= '<p>You have no featured exhibits.</p>';\n }\n $html .= '</div>';\n return $html;\n} }", "function quotes() {\n if (empty($this->bio_quotes)) $this->parparse(\"Personal Quotes\",$this->bio_quotes);\n return $this->bio_quotes;\n }", "private static function genNRand($q) {\n\t $i=$rac='';\n\t for ($i=0; $i<$q ;$i++) {\n\t $er=rand(0,2);\n\t switch ($er) {\n\t case 0: $rac.=rand(0,9); break;\n\t case 1: $rac.=chr(rand(65,90)); break;\n\t case 2: $rac.=chr(rand(98,122)); break;\n\t }\n\t }\n\t return ($rac);\n\t}", "function getCommonRandomQuotesSQL($accessId, $maxLength) {\n $sql = \" FROM author au\";\n $sql .= \" INNER JOIN quote q ON q.author_id = au.id\";\n $sql .= \" INNER JOIN quote_access qa ON qa.quote_id = q.id\";\n $sql .= \" WHERE qa.access_ident = \".$accessId;\n $sql .= \" AND (length(q.quote_text) + length(au.name)) <= \".$maxLength;\n return $sql;\n}", "public function howtoEat()\n {\n return \"Chicken could be fried!<br>\";\n }", "public static function sentence()\n {\n\n # Determine the number of comma-separated sections and number of words in\n # each section for this sentence.\n\n for ($section_count = mt_rand(1, 5); $section_count; --$section_count)\n {\n foreach (array_rand(static::$words, mt_rand(3, 12)) as $key)\n {\n $section[] = static::$words[$key];\n }\n $sentence[] = implode($section, ' ');\n }\n # Convert to sentence case and add end punctuation.\n return ucfirst(implode($sentence, ', ')) . (mt_rand(0, 1) ? '.' : '?');\n }", "function GenerateSentence() {\n $nb = rand(1, 10);\n $s = '';\n for ($i = 1; $i <= $nb; $i++)\n $s .= $this->GenerateWord() . ' ';\n return substr($s, 0, -1);\n }", "function GenerateSentence()\n{\n\t$nb=rand(1,10);\n\t$s='';\n\tfor($i=1;$i<=$nb;$i++)\n\t\t$s.=GenerateWord().' ';\n\treturn substr($s,0,-1);\n}", "public function html()\n {\n $random_quote = $this->randomQuote();\n $cp_path = CP_ROUTE;\n return $this->view('widget', compact('random_quote','cp_path'))->render();\n }", "function rh($spades, $hearts, $diamonds, $clubs) {\n return \"<span class='handContent'>\" .\n \"<span style='color: black'>&spades;</span> $spades<br/>\" .\n \"<span style='color: red'>&hearts;</span> $hearts<br/>\" .\n \"<span style='color: red'>&diams;</span> $diamonds<br/>\" .\n \"<span style='color: black'>&clubs;</span> $clubs<br/>\" .\n \"</span>\";\n}", "public function randomItem();", "function generate_sentence($num_words)\r\n\t{\r\n\t\t$output = '';\r\n\t\tfor($i = 0; $i < $num_words; $i++)\r\n\t\t{\r\n\t\t\t$output = $output . generate_word(rand(1,3)) . ' ';\r\n\t\t}\r\n\t\t\r\n\t\treturn $output;\r\n\t}", "function default_quote_content( $content, $post )\n {\n\n if ($post->post_type !== 'lh_quotes')\n {\n return $content;\n }\n\n if(!isset($_GET['client_id']) )\n {\n return $content;\n }\n\n $client_id = $_GET['client_id'];\n\n $client_name = get_the_title($client_id);\n $arr = explode(' ',trim($client_name));\n $first_name = $arr[0]; // get the first name\n\n $content = 'Dear '.$first_name.',<br/>';\n $content.= 'Thanks for your interest in Little House. Please find your quote broken down for the playhouse / play decks as discussed.<br/><br/>';\n $content.= 'This price is only for the timber and labour and so does not include accessories such as the climbing wall holds or slide etc. We can help you to source these, as required.<br/><br/>';\n $content.= '[lh_image]<br/>';\n $content.= '[lh_quote]<br/><br/>';\n\n $content.='This quote is provided on the basis of the following assumptions:';\n $content.='<ul>';\n $content.='<li>Date of build will be agreed upon commission but is subject to the availability of timber</li>';\n $content.='<li>Timber can transported to the build site (e.g. 3m lengths can fit through a side access or direct route through the house)</li>';\n $content.='<li>Timber will be delivered to your home/build site on the day in advance of the build, usually the day prior to the build and will be stored in a safe, secure location. Timber that is damaged after delivery but prior to build will require replacement at an additional cost.</li>';\n $content.='<li><Water and electricity will be available for the duration of the build /li>';\n $content.='<li>You will receive formal approval for the build from your immediate neighbours. </li>';\n $content.='</ul>';\n\n $content.= '<br/>If you would like to proceed and commission your Little House, a deposit of £500 is required, made payable to Barrington Innovation, sort code 309034 account number 32156268, paid a minimum of '.DEPOSIT_DAY_LIMIT.' days prior to build date. The deposit will be deducted from your invoice upon completion of the build.<br/><br/>';\n $content.='To accept this quote and kick start your Little House build, please click on the link below.<br/><br/>';\n $content.= '[lh_accept_link]<br/><br/>';\n\n $content.='If you have any queries or would like to discuss any aspect of the design, please contact Little House’s Client Liaison Ailsa Peron (contact details below), who will help answer any questions relating to your quote and who will help coordinate your build, if commissioned.<br/>';\n $content.='Thank you again for your interest, and we hope to have the opportunity to bring your Little House to life soon!<br/><br/>';\n $content.='Kind regards,<br/>';\n $content.= 'Alex Furr';\n\n return $content;\n }", "function displayFlower($rand1, $rand2, $rand3, $rand4) {\n echo \"<div id='flower'>\";\n for ($i = 1; $i < 5; $i++){\n $total += ${\"rand\" .$i};\n }\n if ($total == 12) {\n $flower = \"j\"; \n //echo $flower;\n $flow = \"Juliet Rose\";\n $price = \"$'15 Million' in USD.\";\n } else if ($total >= 10 && $total <= 11) {\n $flower = \"s\";\n //echo $flower;\n $flow = \"Shenzhen Nongke Orchid\";\n $price = \"$'290k' in USD.\";\n } else if ($total >= 5 && $total <= 9) {\n $flower = \"k\";\n //echo $flower;\n //echo \"TESSSSST\";\n $flow = \"Kinabalu Orchid\";\n $price = \"$'6k' in USD.\";\n } else if ($total >= 0 && $total <=4) {\n //echo \"$farray[3]\";\n $flower = \"g\";\n $flow = \"Gloriosa Lily\";\n $price = \"$'10' in USD.\";\n }\n $j = 0;\n while ($j <= 6) { /*This keeps the text from overlapping with the greek symbols.*/\n echo \"<br/>\";\n $j++;\n }\n $randArray = array($rand1,$rand2,$rand3,$rand4);\n echo \"The simple code: \";\n echo implode(\",\",$randArray); echo \"<br/>\";\n echo \"Genetic and Alchemic totals from greek glyphs (You want a 12): $total <br/>\";\n echo \"Calculating bonus magics: \";\n $bonus = caclculateBonusMagics($bonus,$rand4);\n $total += $bonus;\n echo \"New Total: $total <br/>\";\n if ($total >= 12) { /*I could not separate this concern easily. It would take an entire rewrite. I need reconsider my approach in the future.*/\n $flower = \"j\"; \n //echo $flower;\n $flow = \"Juliet Rose\";\n $price = \"$'15 Million' in USD.\";\n } else if ($total >= 10 && $total <= 11) {\n $flower = \"s\";\n //echo $flower;\n $flow = \"Shenzhen Nongke Orchid\";\n $price = \"$'290k' in USD.\";\n } else if ($total >= 5 && $total <= 9) {\n $flower = \"k\";\n //echo $flower;\n //echo \"TESSSSST\";\n $flow = \"Kinabalu Orchid\";\n $price = \"$'6k' in USD.\";\n } else if ($total >= 0 && $total <=4) {\n //echo \"$farray[3]\";\n $flower = \"g\";\n $flow = \"Gloriosa Lily\";\n $price = \"$'10' in USD.\";\n }\n //echo \" $rand1, $rand2, $rand3, $rand4 \"; echo \"<br/>\";\n echo \"<br/>\";\n echo \"<img src='img/flower/$flower.jpg' alt='A $flow.' title ='The elegant $flow, breath taking ...'/>\";\n echo \"<br/><br/>\";\n echo \"Through alchemy you have created the $flow. <br/>\";\n echo \"It is worth $price Have fun selling it!\";\n echo \"</div>\";\n }", "function w18ol_ajax_get_oneliner() {\n\tglobal $oneliners;\n\t$oneliner_index = array_rand($oneliners);\n\t$oneliner = $oneliners[$oneliner_index];\n\techo $oneliner;\n\t// echo $oneliners[array_rand($oneliners)];\n\twp_die();\n}", "public function showQuoteButton()\n {\n return $this->quotationHelper->showButtonOnList(\n $this->getProduct(),\n $this->customerSession->getCustomerGroupId()\n );\n }", "function DictionaryWhatMeans(){\n\t\n\tglobal $db_dictionary;\n\tglobal $eden_cfg;\n\t\n\t$res = mysql_query(\"SELECT dictionary_id FROM $db_dictionary WHERE dictionary_parent_id=0 AND dictionary_allow=1\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$words = Array();\n\twhile ($ar = mysql_fetch_array($res)){\n\t\t$words[] .= $ar['dictionary_id'];\n\t}\n\t$num = count($words) - 1; // -1 je prevence proti zobrazeni cisla minus rozsah pole\n\t$random_num = rand (0,$num);\n\t$random_word = $words[$random_num];\n\t$res_word = mysql_query(\"SELECT dictionary_word, dictionary_word_description FROM $db_dictionary WHERE dictionary_id=\".(integer)$random_word) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_word = mysql_fetch_array($res_word);\n\techo \"<span class=\\\"h2\\\">\".$ar_word['dictionary_word'].\"</span><br>\".$ar_word['dictionary_word_description'];\n}", "function buildTrendingList($titles) {\n foreach($titles as $title){\n $num = rand(1, 20);\n echo \"<div class=\\\"panel-body\\\">\\n\n <p><a href=\\\"/phase5/pages/info.php?id=$title[2]\\\"><img class=\\\"img-rounded\\\" src=\\\"images/trending_$num.jpg\\\">\n &nbsp;&nbsp;&nbsp; $title[0]</a></p>\\n\n </div>\\n\";\n }\n}", "public static function generateQuestion()\n {\n $lhOperand = rand(0,10); //randomises left hand operand\n $rhOperand = rand(0,10); //randomises right hand operand\n $operator = rand(0,2); //randomises operator\n switch($operator)\n {\n case 0: self::$answer=($lhOperand+$rhOperand);\n $question = \"$lhOperand+$rhOperand\";\n break;\n case 1: self::$answer=($lhOperand-$rhOperand);\n $question = \"$lhOperand-$rhOperand\";\n break;\n case 2: self::$answer=($lhOperand*$rhOperand);\n $question = \"$lhOperand*$rhOperand\";\n break;\n }\n //var_dump($question);\n var_dump(self::$answer);\n return $question;\n }", "public function random();", "protected function _getRandomAuthor()\n {\n $sth = $this->_dbObj->prepare('SELECT author FROM ' . $this->_quotesTable)->execute();\n $authors = $sth->fetchAllAssoc();\n\n $randomKey = array_rand($authors);\n\n return $authors[$randomKey]['author'];\n }", "function bunch(){\r\n $rand = rand(1, 6);\r\n return \"bunch\" . $rand;\r\n}", "function bq_get_quotes() {\n\t/** These are quotes from A P J Abul Kalam */\n $quotes=[\n \"“স্বপ্ন বাস্তবায়ন না হওয়া পর্যন্ত তোমাকে স্বপ্ন দেখে যেতে হবে” – Abdul Kalam\",\n \"“স্বপ্ন সেটা নয় যেটা তুমি ঘুমিয়ে ঘুমিয়ে দেখো | স্বপ্ন হলো সেটাই যা পূরণের অদম্য ইচ্ছা তোমায় ঘুমাতে দেবে না” – Abdul Kalam\",\n \"“একটা কথা পরিষ্কার, সৃষ্টিকর্তা তাদেরই সহায় থাকেন, যারা কঠোর পরিশ্রম করেন” – Abdul Kalam\",\n \"“যদি সূর্যের মতো উজ্জ্বল হতে চাও, তাহলে তোমাকেই প্রথমে সূর্যের মত পুড়তে হবে” – Abdul Kalam\",\n \"“সফলতার গল্পে কেবল একটা বার্তা থাকে কিন্তু ব্যর্থতার গল্পে সফল হওয়ার উপায় থাকে” – Abdul Kalam\",\n \"“স্বপ্ন দেখতে হবে, স্বপ্ন থেকেই চিন্তার জন্ম হয় আর চিন্তা জন্ম দেয় কাজের” – Abdul Kalam \",\n \"“আমরা শুধু সাফল্যের উপরই গড়ি না, আমরা অসফলতার উপরেও গড়ি” – Abdul Kalam\",\n \"“জটিল কাজে বেশি আনন্দ পাওয়া যায়, তাই সফলতার আনন্দ পাওয়ার জন্য মানুষের কাজ জটিল হওয়া উচিত” – Abdul Kalam\",\n \"“ব্যর্থতা নামক রোগের সবথেকে ভালো অসুধ হলো আত্মবিশ্বাস আর কঠোর পরিশ্রম, এটা আপনাকে একজন সফল মানুষ করে তুলবে” – Abdul Kalam \",\n \"“নির্দিষ্ট লক্ষ্য, ক্রমাগত জ্ঞান সঞ্চয় করা, কঠোর পরিশ্রম ও হার না মানা মনোভাব – এই চারটি জিনিস মেনে চললে যেকোনো কিছুকেই লাভ করা যেতে পারে” – Abdul Kalam\"\n ];\n\n\t// And then randomly choose a line.\n\tprintf(wptexturize( $quotes[ mt_rand( 0, count( $quotes ) - 1 ) ] ));\n}", "function wisdom() {\n $this->data['pagebody'] = 'justone';\n $source = $this->quotes->get(6);\n \n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n\n $this->render();\n }", "public static function paragraph()\n {\n for ($sentence_count = mt_rand(1, 4); $sentence_count; --$sentence_count)\n $paragraph[] = self::sentence();\n\n return implode($paragraph, ' ');\n }", "function default_quote_email_content($quote_id)\n {\n\n $client_info = lh_queries::get_client_from_quote($quote_id);\n\n $client_fullname = $client_info['name'];\n // Get the first name\n $first_name = lh_crm_utils::get_first_name($client_fullname);\n\n $content = 'Dear '.$first_name.',<br/><br/>';\n $content.= 'Please find attached your quote for the XXXXX as discussed.<br/>';\n\n $content.= '<br/>Please do not hesitate to get in touch if you have any questions or would like to discuss any aspect of the design.<br/><br/>';\n $content.= 'Kind regards,<br/><br/>';\n $content.= 'Ailsa Peron (Client Liaison)';\n\n $content.=LH_SIGNATURE;\n\n\n\n return $content;\n }", "function bethel_pullquote ($atts, $content = NULL) {\n if (isset($atts['align']) && $atts['align']=='right') {\n $att_string = ' class=\"align-right\"';\n } else {\n $att_string = '';\n }\n return \"<aside{$att_string}><span class=\\\"left-quote\\\">&ldquo;</span>{$content}<span class=\\\"right-quote\\\">&rdquo;</span></aside>\";\n}", "function welcomeBanner()\r\n{\r\n\t$welcomeWords = array(\"Welcome\", \"Salutations\", \"Bonjour\", \"Hello\", \"G'Day\", \"Guten Tag\", \"Buona Giornata\", \"Yoi Tsuitachi\", \"M'athcho maroon\", \"Hey\", \"Good to see you\", \"Hi\", \"Howdy\",\"Sup\", \"Hiya\");\r\n\treturn $welcomeWords[rand(0,sizeof($welcomeWords)-1)];\r\n}", "public function getAuthor() {\n return $this->randomQuote->author_name;\n }", "function display() {\n $output = '';\n \n $output .= $this->_component_id;\n $output .= '<br/>' . $this->_component_type_id;\n $output .= '<br/>' . $this->_quote_id;\n $output .= '<br/>' . $this->component_name;\n $output .= '<br/>' . $this->metal;\n $output .= '<br/>' . $this->powdercoating;\n $output .= '<br/>' . $this->fabric;\n $output .= '<br/>' . $this->processing;\n $output .= '<br/>' . $this->wastage;\n $output .= '<br/>' . $this->installation;\n $output .= '<br/>' . $this->margin;\n $output .= '<br/>' . $this->other;\n\n $output .= '<br/>';\n \n return $output;\n }" ]
[ "0.75834805", "0.7485821", "0.74646705", "0.73319286", "0.7141187", "0.69643116", "0.6843378", "0.6832109", "0.67816746", "0.67586464", "0.66896313", "0.6629355", "0.6569175", "0.651321", "0.64887094", "0.6482947", "0.64169383", "0.62554276", "0.6230489", "0.60560507", "0.6050517", "0.60139656", "0.5986826", "0.5969959", "0.59603095", "0.5947859", "0.58514535", "0.5843632", "0.58418447", "0.5825304", "0.5798969", "0.57656455", "0.57122755", "0.5706422", "0.5697493", "0.5679421", "0.5654598", "0.5651412", "0.56498337", "0.56419", "0.56157446", "0.56141984", "0.55652237", "0.5560097", "0.5559794", "0.55348027", "0.5514565", "0.54887486", "0.5488023", "0.5465276", "0.54641956", "0.54641956", "0.54641956", "0.54641956", "0.5459739", "0.5450435", "0.54489094", "0.5434379", "0.54296595", "0.5423661", "0.5414522", "0.54131305", "0.54129064", "0.53966635", "0.5384665", "0.5373983", "0.5371177", "0.536961", "0.5364823", "0.53447324", "0.534259", "0.53230965", "0.5321176", "0.53154683", "0.5313741", "0.5309207", "0.5309142", "0.5308115", "0.5304392", "0.5300995", "0.52969503", "0.5283793", "0.5270846", "0.5270346", "0.52697057", "0.5261838", "0.52510315", "0.52451354", "0.5238517", "0.5232829", "0.5206874", "0.5206264", "0.5203593", "0.5202875", "0.519556", "0.5191529", "0.51894593", "0.51860654", "0.51843214", "0.5180674" ]
0.7580261
1
/ Enqueue all styles/scripts required by shortcode
function enqueue_shortcode_scripts() { wp_enqueue_style( 'mpc_pricing_legend-css', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/mpc_pricing_legend/css/mpc_pricing_legend.css', array(), MPC_MASSIVE_VERSION ); wp_enqueue_script( 'mpc_pricing_legend-js', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/mpc_pricing_legend/js/mpc_pricing_legend' . MPC_MASSIVE_MIN . '.js', array( 'jquery' ), MPC_MASSIVE_VERSION ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enqueue_shortcode_scripts() {\r\n\t\t\twp_enqueue_style( 'mpc_button_set-css', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/mpc_button_set/css/mpc_button_set.css', array(), MPC_MASSIVE_VERSION );\r\n\t\t\twp_enqueue_script( 'mpc_button_set-js', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/mpc_button_set/js/mpc_button_set' . MPC_MASSIVE_MIN . '.js', array( 'jquery' ), MPC_MASSIVE_VERSION );\r\n\t\t}", "function themesflat_shortcode_register_assets() {\t\t\n\t\twp_enqueue_style( 'vc_extend_shortcode', plugins_url('assets/css/shortcodes.css', __FILE__), array() );\t\n\t\twp_enqueue_style( 'vc_extend_style', plugins_url('assets/css/shortcodes-3rd.css', __FILE__),array() );\n\t\twp_register_script( 'themesflat-carousel', plugins_url('assets/3rd/owl.carousel.js', __FILE__), array(), '1.0', true );\n\t\twp_register_script( 'themesflat-flexslider', plugins_url('assets/3rd/jquery.flexslider-min.js', __FILE__), array(), '1.0', true );\t\t\n\t\twp_register_script( 'themesflat-manific-popup', plugins_url('assets/3rd/jquery.magnific-popup.min.js', __FILE__), array(), '1.0', true );\t\t\n\t\twp_register_script( 'themesflat-counter', plugins_url('assets/3rd/jquery-countTo.js', __FILE__), array(), '1.0', true );\n\t\twp_enqueue_script( 'flat-shortcode', plugins_url('assets/js/shortcodes.js', __FILE__), array(), '1.0', true );\n\t\twp_register_script( 'themesflat-google', 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCIm1AxfRgiI_w36PonGqb_uNNMsVGndKo&v=3.7', array(), '1.0', true );\n\t\twp_register_script( 'themesflat-gmap3', plugins_url('assets/3rd/gmap3.min.js', __FILE__), array(), '1.0', true );\t\n\t}", "function shortcodes_enqueue() {\n\t\twp_enqueue_script('flavour_shortcodes', get_template_directory_uri().'/Flavour/shortcodes.js');\n\t\twp_enqueue_style('flavour_shortcodes', get_template_directory_uri().'/Flavour/shortcodes.css');\n\t}", "public function setup_scripts_and_styles() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_css' ), 50 );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_js' ), 10 );\n\t}", "function enqueues() {\n\t\twp_register_style( 'ks-thematic-actions', plugin_dir_url( __FILE__ ) . 'style.css' );\n\t wp_enqueue_style( 'ks-thematic-actions' );\n\t}", "public function enqueue_scripts() {\n\t\twp_add_inline_style( 'at-main', $this->inline_css() );\n\t}", "function shortcode_reference_scripts() {\n\t$referrer = realpath(dirname(__FILE__));\n\twp_enqueue_style( 'shortcode-reference-style', plugins_url('/css/shortcode-reference.css', $referrer) );\n\twp_enqueue_script( 'shortcode-reference-js', plugins_url('/js/shortcode-reference.js', $referrer) );\n}", "public function register_scripts()\n {\n wp_register_style(\n 'fau-oembed-style',\n plugins_url('assets/css/fau-oembed.css', plugin()->getBasename()),\n [],\n plugin()->getVersion()\n ); \n }", "public function enqueueScripts() {\n wp_register_style('rrze-faq-style', plugins_url('assets/css/rrze-faq.css', plugin_basename($this->pluginFile)));\n wp_enqueue_style('rrze-faq-style');\n }", "function elegance_scripts()\n {\n /**\n * Stylesheet Enqueue\n * @version 1.0.0\n */\n wp_enqueue_style( 'elegance-style', get_stylesheet_uri() );\n wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/assets/dist/css/bootstrap.min.css', array(), '4.3.1', 'all');\n wp_enqueue_style( 'font-awesome-css', get_template_directory_uri() . '/assets/dist/fonts/font-awesome.min.css', array(), '4.0.0', 'all');\n\n /**\n * Scripts Enqueue\n * @version 1.0.0\n */\n wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/assets/dist/js/bootstrap.min.js', array( 'jquery' ), '4.3.1', true );\n\n /**\n * Woocommerce Stylesheet\n * @version 1.0.0\n */\n wp_enqueue_style( 'woocommerce-css', get_template_directory_uri() . '/assets/dist/css/woocommerce.css', array(), '1.0.0', 'all');\n \n }", "public function enqueueScripts()\n {\n wp_enqueue_style('gfbitpay-admin', $this->plugin->urlBase . 'style-admin.css', false, GFBITPAY_PLUGIN_VERSION);\n }", "public function frontEndStyleScripts(): void\n {\n wp_enqueue_style('users-data-bootstrap', plugin_dir_url(dirname(__FILE__)) . 'assets/css/bootstrap.min.css', [], UsersListing::getVersion());\n wp_enqueue_style('users-data-fontawsome', plugin_dir_url(dirname(__FILE__)) . 'assets/css/font-awesome.min.css', [], UsersListing::getVersion());\n wp_enqueue_style('users-data-styles', plugin_dir_url(dirname(__FILE__)) . 'assets/css/users-data.css', [], UsersListing::getVersion());\n //\n wp_enqueue_script('jquery-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.min.js', ['jquery'], UsersListing::getVersion(), false);\n wp_enqueue_script('jquery-popper', plugin_dir_url(dirname(__FILE__)) . 'assets/js/popper.min.js', ['jquery'], UsersListing::getVersion(), false);\n wp_enqueue_script('bootstrap-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/bootstrap.min.js', ['jquery'], UsersListing::getVersion(), false);\n }", "public function enqueue_scripts() {\n\n\t\twp_enqueue_style( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.css' ), array(), '1.0' );\n\n\t}", "public function enqueue_scripts() {\n\t\t$this->styles();\n\t\t$this->scripts();\n\t}", "static function enqueue_scripts(){\n\t\tself::include_css();\n\t\tself::include_js();\n\t}", "function bwcr_enqueue(){\n wp_enqueue_style( 'bwcr-style', plugin_dir_url( __FILE__ ) . 'style.css', array(), filemtime(plugin_dir_path( __FILE__ ) . 'style.css'), false );\n wp_enqueue_script( 'bwcr-script', plugin_dir_url( __FILE__ ) . 'script.js', array(), filemtime(plugin_dir_path( __FILE__ ) . 'script.js'), false );\n wp_enqueue_style( 'font-awe', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', false );\n}", "function asc_enqueue_scripts() {\n\t/**\n\t * Fires when scripts and styles are enqueued.\n\t *\n\t * @since 2.8.0\n\t */\n\tdo_action( 'asc_enqueue_scripts' );\n}", "function aitEnqueueScriptsAndStyles(){\r\n\tif(!is_admin()){\r\n\t\t// just shortcuts\r\n\t\t$s = THEME_CSS_URL;\r\n\t\t$j = THEME_JS_URL;\r\n\r\n\t\taitAddStyles(array(\r\n\t\t\t'ait-colorbox' => array('file' => \"$s/libs/colorbox.css\"),\r\n\t\t\t'ait-fancybox' => array('file' => \"$s/libs/fancybox.css\"),\r\n\t\t\t'jquery-ui' \t => array('file' => \"$s/libs/jquery-ui.css\"),\r\n\t\t\t'prettysociable' => array('file' => \"$s/libs/prettySociable.css\"),\r\n\t\t\t'hoverzoom' \t => array('file' => \"$s/libs/hoverZoom.css\"),\r\n\t\t));\r\n\r\n\t\taitAddScripts(array(\r\n\t\t\t'jquery-ui-tabs' \t\t\t=> true,\r\n\t\t\t'jquery-ui-accordion' \t\t\t=> true,\r\n\t\t\t'jquery-infieldlabel' \t\t\t=> array('file' => \"$j/libs/jquery-infieldlabel.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'jquery-iconmenu' \t\t\t\t=> array('file' => \"$j/libs/jquery-iconmenu.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'jquery-plugins'\t \t\t\t=> array('file' => \"$j/libs/jquery-plugins.js\", 'deps' => array('jquery')),\r\n\t\t\t'modernizr'\t\t\t\t\t\t=> array('file' => \"$j/libs/modernizr-2.6.1-custom.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\r\n\t\t\t'ait-gridgallery' \t\t\t=> array('file' => \"$j/gridgallery.js\", 'deps' => array('jquery', 'jquery-plugins'), 'inFooter' => true),\r\n\t\t\t'ait-testimonials' \t\t\t=> array('file' => \"$j/testimonials.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'ait-script' \t\t\t=> array('file' => \"$j/script.js\", 'deps' => array('jquery', 'jquery-infieldlabel', 'jquery-iconmenu', 'jquery-plugins', 'modernizr'), 'inFooter' => true),\r\n\t\t));\r\n\t}\r\n}", "public function enqueue_assets() {\n\t\twp_enqueue_script( 'satispress-admin' );\n\t\twp_enqueue_style( 'satispress-admin' );\n\t}", "function awesome_script_enqueue() {\r\n\t//css\r\n\twp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.3.4', 'all');\r\n\twp_enqueue_style('customstyle', get_template_directory_uri() . '/css/katayam.css', array(), '1.0.0', 'all');\r\n\t//js\r\n\twp_enqueue_script('jquery');\r\n\twp_enqueue_script('bootstrapjs', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '3.3.4', true);\r\n\twp_enqueue_script('customjs', get_template_directory_uri() . '/js/katayam.js', array(), '1.0.0', true);\r\n\t\r\n}", "public function enqueue_scripts() {\n\t\twp_enqueue_style( 'pt-style', plugins_url( 'assets/css/style.css', __FILE__ ), array(), '1.0.0', false );\n\n\t\twp_enqueue_script( 'pt-script', plugins_url( 'assets/js/script.js', __FILE__ ), array(), '1.0.0', true );\n\t}", "function wordpressboilerplate_scripts (){\n wp_enqueue_style( 'wordpressboilerplate-style', get_stylesheet_uri() );\n wp_enqueue_script( 'wordpressboilerplate-script', get_template_directory_uri() . 'js/main.js', array( 'jquery' ) );\n\n wp_register_style('animate.css', get_stylesheet_uri() . 'assets/vendor/font-awesome/css/font-awesome.min.css');\n}", "public function enqueue_scripts() {\n\t\t// wp_enqueue_style( 'simple-grams', plugins_url( '/assets/css/simple-grams.css', __FILE__ ) );\n\t}", "public function add_scripts_and_styles()\n {\n // Estilos css \n wp_register_style( 'wiAjustesStyles', WI_PLUGIN_URL . '/style.css', null, WI_VERSION );\n wp_enqueue_style( 'wiAjustesStyles' );\n\n // Scripts de javascript\n wp_enqueue_script('wiAjustesStylesJs', WI_PLUGIN_URL . '/script.js' , array('jquery'));\n }", "function on_enqueue_scripts ()\n{\n wp_register_style ('cap-meta-search-front', plugins_url ('css/front.css', __FILE__));\n wp_enqueue_style ('cap-meta-search-front');\n wp_register_script (\n 'cap-meta-search-front',\n plugins_url ('js/front.js', __FILE__),\n array ('cap-jquery', 'cap-jquery-ui')\n );\n}", "public function enqueueScripts(){}", "public function enqueue_scripts () {\n\n\t\t$visibility = apply_filters( 'wp_simple_flexslider_insert_frontend_script', true );\n\n\t\tif( $visibility ) {\n\t\t\twp_enqueue_style( 'jquery-flexslider', WP_SIMPLE_FLEXSLIDER_URL . 'flexslider/flexslider.css', array(), '2.3.0', 'all' );\n\t\t\twp_register_script( 'jquery-flexslider', WP_SIMPLE_FLEXSLIDER_URL . 'flexslider/jquery.flexslider-min.js', array( 'jquery'), '2.3.0', 'all' );\n\t\t\twp_enqueue_script( 'wc-simple-flexslider-frontend', WP_SIMPLE_FLEXSLIDER_URL . 'js/wp-simple-flexslider-frontend.js', array( 'jquery', 'jquery-flexslider' ), '0.1', 'all' );\n\t\t}\n\t}", "function _s_scripts() {\n\twp_enqueue_style( 'main.css', get_stylesheet_directory_uri() . '/dist/src/style.css', false, '6.9' );\n\twp_enqueue_script( 'main.js', get_stylesheet_directory_uri() . '/dist/main.js', false, false, true );\n}", "function admin_include_scripts() {\n\n\t\t\twp_register_style('wa_wcc_admin',get_template_directory_uri().'/plugin/collapse/assets/css/admin.css');\n\t\t\twp_enqueue_style('wa_wcc_admin');\n\n\t}", "function enqueue()\n\t{\n\t\twp_enqueue_style('kbpluginstyle', $this->plugin_url . 'assets/style.css');\n\t\twp_enqueue_script('kbpluginscript', $this->plugin_url . 'assets/script.js');\n\t}", "function berry_scripts() {\n\n\twp_dequeue_style( 'seed-style');\n\twp_enqueue_style( 'berry-style', get_stylesheet_uri() );\n\twp_enqueue_script( 'berry-main', get_stylesheet_directory_uri() . '/js/main.js', array(), '2016-1', true );\n\n}", "function aitAdminEnqueueScriptsAndStyles()\n{\n\t$mapLanguage = get_locale();\n\taitAddScripts(array(\n\t\t'ait-googlemaps-api' => array(\n\t\t\t\t\t\t\t\t\t //'file' => 'https://maps.google.com/maps/api/js?key=AIzaSyC62AaIu5cD1nwSCmyO4-33o3DjkFCH4KE&sensor=false&amp;language='.$mapLanguage,\n\t\t\t\t\t\t\t\t\t 'file' => 'https://maps.google.com/maps/api/js?key=AIzaSyBL0QWiORKMYd585E4qvcsHcAR1R7wmdiY&sensor=false&amp;language='.$mapLanguage,\n\t\t\t\t\t\t\t\t\t 'deps' => array('jquery')\n\t\t\t\t\t\t\t\t\t ),\n\t\t'ait-jquery-gmap3' => array('file' => THEME_JS_URL . '/libs/gmap3.min.js', 'deps' => array('jquery', 'ait-googlemaps-api')),\n\t));\n}", "public static function wp_enqueue_scripts() {\n\t\t\t\n\t\t\tWPPFrontendUI::_register_styles();\n\t\t\t\n\t\t}", "function assets(){\n\t\t\twp_enqueue_style( 'sp-2020-styles', get_template_directory_uri() .'/assets/css/main.css', array(), SPUTZNIK_2020_THEME_VERSION );\n\t\t\twp_enqueue_script( 'sp-2020-js', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), SPUTZNIK_2020_THEME_VERSION, true );\n\n\t\t}", "static function wp_enqueue_scripts() {\r\n\r\n\t\t// Enqueue CSS file\r\n wp_register_style('stackad', plugins_url('css/stackad.css', __FILE__));\r\n wp_enqueue_style('stackad');\r\n\r\n // Register JS file\r\n wp_register_script('stackad', plugins_url('js/stackad.js', __FILE__), array('jquery'), false, true);\r\n\t}", "function frulape_basic_scripts() {\n\twp_enqueue_style( 'frulape_basic-style', get_stylesheet_uri() ); // wordpress styles\n\n\twp_enqueue_style( 'bootstrap-grid', get_template_directory_uri() . '/assets/css/bootstrap-grid.min.css' ); // custom styles\n\n\twp_enqueue_style( 'frulape_basic-custom_style', get_template_directory_uri() . '/assets/css/style.css', array('frulape_basic-style', 'bootstrap-grid'), '0.0.1' ); // custom styles\n\n\twp_enqueue_script( 'frulape_basic-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), '20151215', true );\n\n\twp_enqueue_script( 'frulape_basic-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "public function enqueue_front_end_scripts() {}", "function cs_style_and_scripts() {\n \n\t\twp_enqueue_style( 'bootstrap-css', get_stylesheet_directory_uri() .'/public/css/vendor.css' );\n\t\twp_enqueue_style( 'bootstrap-css', get_stylesheet_directory_uri() .'/public/css/app.css' );\n wp_enqueue_style( 'main-css', get_stylesheet_uri() );\n\n /*wp_enqueue_script( 'myscripts', get_stylesheet_directory_uri() . '/assets/js/app.js', '', '1.0.0', true );\n wp_localize_script('myscripts', 'cs_obj', array(\n 'ajax_url' => admin_url('admin-ajax.php'),\n ));*/\n\n }", "public function loadScripts()\n\t\t\t{\n\t\t\t\t// Contest CSS\n\t\t\t\twp_register_style('wppc-shortcode-css', WPPC_URI.'css/wppc-shortcode.css', '', WPPC_VERSION);\n\t\t\t\twp_enqueue_style('wppc-shortcode-css');\n\t\t\t\twp_register_style('wppc-colorbox-css', WPPC_URI.'css/colorbox.css', '', '1.5.13');\n\t\t\t\twp_enqueue_style('wppc-colorbox-css');\n\n\t\t\t\t// jQuery\n\t\t\t\twp_enqueue_script('jquery', '', '', '', true);\n\n\t\t\t\t// jQuery UI core\n\t\t\t\twp_enqueue_script('jquery-ui-core', array('jquery'), '', '', true);\n\n\t\t\t\t// jQuery UI Tabs\n\t\t\t\twp_enqueue_script('jquery-ui-tabs', array('jquery-ui-core'), '', '', true);\n\n\t\t\t\t// Font Awesome\n\t\t\t\twp_register_style('font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', '', '', 'all');\n\t\t\t\twp_enqueue_style('font-awesome');\n\n\t\t\t\t// Contest JS\n\t\t\t\twp_register_script('wppc-shortcode', WPPC_URI.'js/wppc-shortcode.js', array('jquery'), WPPC_VERSION, true);\n\t\t\t\twp_enqueue_script('wppc-shortcode');\n\n\t\t\t\t// Colorbox JS\n\t\t\t\twp_register_script('wppc-colorbox', WPPC_URI.'js/jquery.colorbox-min.js', array('jquery'), '1.5.13', true);\n\t\t\t\twp_enqueue_script('wppc-colorbox');\n\n\t\t\t\t// Ajax calls\n\t\t\t\twp_register_script('wppc-ajax-frontend', plugins_url('js/wppc-ajax-frontend.min.js', WPPC_FILE), array('jquery'), WPPC_VERSION, true);\n\t\t\t\twp_enqueue_script('wppc-ajax-frontend');\n\n\t\t\t\t// Localize Ajax handler - TO BE DELETED LATER\n\t\t\t\twp_localize_script('wppc-ajax-frontend', 'wppcSubmitPhoto', array(\n\t\t\t\t\t'ajaxurl' => WPPC_URI.'ajax/ajax-handler.php',\n\t\t\t\t\t'action' => $this->submitFormAction,\n\t\t\t\t));\n\n\t\t\t\t// ImagesLoaded JS script\n\t\t\t\twp_enqueue_script('images-loaded', WPPC_URI.'js/imagesloaded.pkgd.min.js', array('jquery'), IMAGES_LOADED_VERSION, true);\n\t\t\t}", "public function enqueue()\n {\n foreach ($this->assets as $name => $asset) {\n if (preg_match('/\\.js$/', $asset)) {\n wp_enqueue_script($name, $this->assetsUrl . $asset, [], false, true);\n }\n if (preg_match('/\\.css$/', $asset)) {\n wp_enqueue_style($name, $this->assetsUrl . $asset);\n }\n }\n }", "function add_scripts_to_front() {\n $media = get_option('smfn_option_3') ? get_option('smfn_option_3') : \"1023\";\n wp_register_style('smfn-dynamic-css', plugin_dir_url(SMFN_FILE).'assets/css/dynamic.css.php?media=' . $media);\n wp_enqueue_style( 'smfn-dynamic-css');\n wp_enqueue_script('smfn-actions', plugin_dir_url(SMFN_FILE) . 'assets/js/smfnfunctions.js', array(), '1.0.0', true);\n }", "public function enqueueAssets()\n {\n wp_enqueue_style( WPADW_DOMAIN . '-admin-style', WPADW_URL . '/assets/style.css' );\n }", "public function enqueue() {\n $this->register();\n\n // If stylesheet is in browser cache, load it the traditional way\n if ( isset( $_COOKIE['fullCSS'] ) && false !== $_COOKIE['fullCSS'] )\n {\n // Load Typekit\n wp_enqueue_style( 'typekit' );\n // Default style.css.\n wp_enqueue_style( 'style' );\n }\n // Otherwise, inline critical CSS and load full stylesheet asynchronously\n else\n {\n add_filter( 'style_loader_tag', array( $this, 'custom_link_tag_attributes' ), 5, 4 );\n add_action( 'wp_head', array( __CLASS__, 'loadCSS' ), 10 );\n }\n\n // jQuery.\n wp_enqueue_script( 'jquery' );\n\n // Fullpage.js\n wp_enqueue_script( 'parallax' );\n wp_enqueue_script( 'fullpage' );\n\n // MmenuLight\n wp_enqueue_script( 'mmenu-light-polyfills' );\n wp_enqueue_script( 'mmenu-light' );\n\n // Frontend.\n wp_enqueue_script( 'app-js' );\n\n // Post comments.\n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n wp_enqueue_script( 'comment-reply' );\n }\n }", "function ahla_enqueue_assets()\n{\n\t// CSS\n\twp_enqueue_style( 'theme-style');\n\n\t// JS\n\twp_enqueue_script( 'skip-link-focus-fix');\n\n\t// comments\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\tdo_action( 'ahla_enqueue_assets' );\n}", "function assets() {\n\t\tif ( ! is_admin() ) {\n\t\t\twp_enqueue_style( '_yourthemename-style', get_theme_file_uri( '/dist/css/bundle.css' ), array(), _YOURTHEMENAME_VER );\n\n\t\t\twp_deregister_script( 'jquery' );\n\t\t\twp_enqueue_script( '_yourthemename-scripts', get_theme_file_uri( '/dist/js/bundle.min.js' ), array(), _YOURTHEMENAME_VER, true );\n\t\t}\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t}", "public function enqueue() {\n\t\tgutenberg_widgets_init( 'gutenberg_customizer' );\n\t}", "function wpdocs_theme_name_scripts() {\n wp_enqueue_style('pva-style', get_stylesheet_uri());\n wp_enqueue_style('pva-bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.min.css', array(), '1.0.0', 'all');\n wp_enqueue_script('pva-script', get_template_directory_uri() . '/js/sitescript.js', array(), '1.0.0', true);\n}", "function ajout_scripts() {\n wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/bootstrap/css/bootstrap.min.css');\n wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/fonts/font-awesome.min.css');\n wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/css/styles.min.css');\n wp_enqueue_style('font-1', 'https://fonts.googleapis.com/css?family=Open+Sans');\n wp_enqueue_style('font-2', 'https://fonts.googleapis.com/css?family=Roboto');\n\n wp_enqueue_script('messcripts', get_template_directory_uri() . '/assets/js/jquery.min.js');\n wp_enqueue_script('messcripts2', get_template_directory_uri() . '/assets/js/script.js');\n wp_enqueue_style('crdStyles', get_stylesheet_uri());\n\n\n}", "function startwordpress_scripts() {\n\twp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.3.6' );\n\twp_enqueue_style( 'style', get_template_directory_uri() . '/css/style.css'. null, time(), true );\n\twp_enqueue_script('jquery');\n\twp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '3.3.6', true );\n\t//cdns\n\twp_register_style('Font_Awesome', 'https://use.fontawesome.com/releases/v5.1.0/css/all.css');\n\twp_enqueue_style('Font_Awesome');\n\twp_register_style('AOS', 'https://cdnjs.cloudflare.com/ajax/libs/aos/3.0.0-beta.4/aos.css');\n\twp_enqueue_style('AOS');\n\twp_register_script('AOS_JS', \"https://cdnjs.cloudflare.com/ajax/libs/aos/3.0.0-beta.4/aos.js\", null, null, true );\n\twp_enqueue_script(\"AOS_JS\");\n\n\twp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', null, time(), true );\n}", "function cs_front_scripts_enqueue() {\n\tglobal $cs_theme_option;\n if (!is_admin()) {\n\t\twp_enqueue_style('style_css', get_template_directory_uri() . '/style.css');\n\t\twp_enqueue_style('widget_css', get_template_directory_uri() . '/css/widget.css');\n \t\tif ( $cs_theme_option['color_switcher'] == \"on\" ) {\n\t\t\twp_enqueue_style('color-switcher_css', get_template_directory_uri() . '/css/color-switcher.css');\n\t\t}\n \t\twp_enqueue_style('bootstrap_css', get_template_directory_uri() . '/css/bootstrap.min.css');\n \t\twp_enqueue_style('font-awesome_css', get_template_directory_uri() . '/css/font-awesome.css');\n\t\t// Register stylesheet\n \twp_register_style( 'ie6_css', get_template_directory_uri() . '/css/ie.css' );\n \t// Apply IE conditionals\n \t$GLOBALS['wp_styles']->add_data( 'ie6_css', 'conditional', 'lte IE 9' );\n\t\t$GLOBALS['wp_styles']->add_data( 'font-awesome-ie7_css', 'conditional', 'lte IE 9' );\n \t// Enqueue stylesheet\n \twp_enqueue_style( 'ie6_css' );\n\t\t\n\t\twp_enqueue_style( 'font-awesome-ie7_css' );\n \t\twp_enqueue_style( 'wp-mediaelement' );\n \t\t wp_enqueue_script('jquery');\n\t\t\twp_enqueue_script( 'wp-mediaelement' );\n\t\t\twp_enqueue_script('bootstrap_js', get_template_directory_uri() . '/scripts/frontend/bootstrap.min.js', '', '', true);\n\t\t\twp_enqueue_script('bscrolltofixed_js', get_template_directory_uri() . '/scripts/frontend/jquery-scrolltofixed.js', '', '', true);\n \t\t\twp_enqueue_script('jquery.nicescroll_js', get_template_directory_uri() . '/scripts/frontend/jquery.nicescroll.js', '0', '', true);\n\t\t\twp_enqueue_script('jquery.nicescrollpjus_js', get_template_directory_uri() . '/scripts/frontend/jquery.nicescroll.plus.js', '0', '', true);\n\t\t\twp_enqueue_script('functions_js', get_template_directory_uri() . '/scripts/frontend/functions.js', '0', '', true);\n \t\t\tif ( $cs_theme_option['style_rtl'] == \"on\"){\n\t\t\t\twp_enqueue_style('rtl_css', get_template_directory_uri() . '/css/rtl.css');\n \t\t\t}\n\t\t\tif \t($cs_theme_option['responsive'] == \"on\") {\n\t\t\t\techo '<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\">';\n\t\t\t\twp_enqueue_style('responsive_css', get_template_directory_uri() . '/css/responsive.css');\n\t\t\t}\n }\n}", "function enqueue_scripts() {\n\n wp_register_style( 'dg-text-css', plugins_url('css/dg-text.css', __FILE__), null, '1', 'all' );\n wp_enqueue_style( 'dg-text-css' );\n }", "function put_in_queue() {\n wp_enqueue_script('reviewsjs', plugins_url('/assets/js/reviews.js', __FILE__));\n wp_enqueue_style('reviewscss', plugins_url('/assets/css/reviews.css', __FILE__));\n }", "function goodrds_scripts() {\n\t\twp_register_style( 'goodrds_css', plugins_url('goodrds.css', __FILE__), false, '0.1' );\n\t\twp_enqueue_style( 'goodrds_css' );\n\n\t\twp_register_script( 'goodrds_js', plugins_url('goodrds.js', __FILE__), array('jquery'), '0.1', true );\n\t\twp_enqueue_script( 'goodrds_js' );\n\t}", "public function myScripts()\n {\n //wp_register_script('angularjs',plugins_url('bower_components/angular/angular.min.js', __FILE__));\n wp_enqueue_style('grimagecss', plugins_url('style.css', __FILE__));\n //wp_enqueue_script('grimagescripts',plugins_url('/app.js',__FILE__));\n }", "function mandiberg_scripts() {\n\n\t\t//include bootstrap:\n\t\twp_register_style( 'bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css' );\n\t\twp_enqueue_style( 'bootstrap-style');\n\n\n\n\t\t// Register the style like this for a theme:\n\t wp_register_style( 'mandiberg-style', get_template_directory_uri() . '/style.css', array(), '20120208', 'all' );\n\t\twp_enqueue_style( 'mandiberg-style');\n\n\t\t//barba js for transitions\n\n\t\t wp_register_script('barba', get_template_directory_uri() . '/build/barba.min.js', array ( 'jquery' ),'1.1', true);\n\t\t wp_enqueue_script('barba');\n\n\t\t//js\n\t\twp_register_script('js-file', get_template_directory_uri() . '/build/script.js', array ( 'jquery' ),'1.1', true);\n\t\t wp_enqueue_script('js-file');\n\n\t}", "public function enqueue_scripts() {\r\n\r\n\t\t}", "function scripts(){\n wp_register_style('style',get_template_directory_uri() . '/assets/css/style.css',[],1,'all');\n wp_enqueue_style('style');\n wp_enqueue_style('custom-google-font','//fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');\n wp_register_script('app',get_template_directory_uri() . '/assets/js/app.js',[],1,true);\n wp_enqueue_script('app');\n}", "function beaver_extender_fe_style_editor_load_scripts() {\n\n\twp_enqueue_style( 'dashicons' );\n\twp_enqueue_style( 'beaver_extender_fe_style_editor_styles' );\n\twp_enqueue_style( 'beaver_extender_jquery_ui_css', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css', false, BBEXT_VERSION, false );\n\twp_enqueue_script( 'jquery-ui-resizable' );\n\twp_enqueue_script( 'beaver_extender_fe_style_editor' );\n\twp_enqueue_script( 'beaver_extender_ace' );\n\twp_enqueue_script( 'beaver_extender_ace_autocomplete' );\n\t\t\n}", "function artistpress_scripts() {\n\t\twp_enqueue_style( 'reset', get_template_directory_uri() . '/css/reset.css', array(), '2.0' );\n\t\twp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.3.7' );\n\t\twp_enqueue_style( 'main_style', get_template_directory_uri() . '/style.css' );\n\t\twp_enqueue_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', array(), '1.11.3', true );\n\t\twp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '3.3.6', true );\n\t\twp_register_script( 'load', get_template_directory_uri() . '/js/load.js' );\n\n\t\t//localize params for use in load.js\n\t\t$theme_params = array(\n\t\t 'backround_image' => get_option('backround_image'),\n\t\t 'action_url' => get_option('action_url'),\n\t\t);\n\n\t\twp_localize_script( 'load', 'themeParams', $theme_params );\n\n\t\twp_enqueue_script( 'load', get_template_directory_uri() . '/js/load.js', array( 'jquery' ,'bootstrap'), '1', true );\n\t}", "function thesaasx_gutenberg_assets() {\n\n\tthesaasx_enqueue_assets();\n\n\twp_dequeue_style('thesaasx');\n\twp_enqueue_style( 'thesaasx-editor-bleed-fix', THE_PLUGIN_URL . 'assets/css/editor-bleed-fix.min.css' , false, '1.0', 'all' );\n}", "function enqueue_custom_script(){\n\n\t$version = \"b\";\n\n\twp_dequeue_style( 'gforms_formsmain_css' );\n\n\t$cam_formsmain = get_template_directory_uri() . '/css/gforms-formsmain.css';\n\twp_register_style('cam_formsmain',$cam_formsmain, false, $version);\n\twp_enqueue_style( 'cam_formsmain');\t\n\n}", "function enqueue()\n {\n wp_enqueue_style('mypluginstyles', plugins_url('/assets/mystyle.css', __FILE__));\n wp_enqueue_script('mypluginscript', plugins_url('/assets/myscript.js', __FILE__));\n }", "function clea_base_enqueue_scripts() {\n\n\t/* Enqueue scripts. */\n\n}", "public function enqueues() {\n\n\t\t// CSS.\n\t\twp_enqueue_style(\n\t\t\t'wpforms-builder-setup',\n\t\t\tWPFORMS_PLUGIN_URL . 'assets/css/admin-builder-setup.css',\n\t\t\tnull,\n\t\t\tWPFORMS_VERSION\n\t\t);\n\t}", "public function admin_enqueue_scripts() {\n\t\t$pagenow = $GLOBALS['pagenow'];\n\n\t\tif ( ! ( self::is_term_edit( $pagenow ) || self::is_term_overview( $pagenow ) ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$asset_manager = new WPSEO_Admin_Asset_Manager();\n\t\t$asset_manager->enqueue_style( 'scoring' );\n\n\t\t$tab = new WPSEO_Help_Center_Template_Variables_Tab();\n\t\t$tab->enqueue_assets();\n\n\t\t$tag_id = filter_input( INPUT_GET, 'tag_ID' );\n\t\tif (\n\t\t\tself::is_term_edit( $pagenow ) &&\n\t\t\t! empty( $tag_id ) // After we drop support for <4.5 this can be removed.\n\t\t) {\n\t\t\twp_enqueue_media(); // Enqueue files needed for upload functionality.\n\n\t\t\t$asset_manager->enqueue_style( 'metabox-css' );\n\t\t\t$asset_manager->enqueue_style( 'snippet' );\n\t\t\t$asset_manager->enqueue_style( 'scoring' );\n\t\t\t$asset_manager->enqueue_script( 'metabox' );\n\t\t\t$asset_manager->enqueue_script( 'term-scraper' );\n\n\t\t\twp_localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'term-scraper', 'wpseoTermScraperL10n', $this->localize_term_scraper_script() );\n\t\t\t$yoast_components_l10n = new WPSEO_Admin_Asset_Yoast_Components_l10n();\n\t\t\t$yoast_components_l10n->localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'term-scraper' );\n\n\t\t\twp_localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'replacevar-plugin', 'wpseoReplaceVarsL10n', $this->localize_replace_vars_script() );\n\t\t\twp_localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'metabox', 'wpseoSelect2Locale', WPSEO_Utils::get_language( WPSEO_Utils::get_user_locale() ) );\n\t\t\twp_localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'metabox', 'wpseoAdminL10n', WPSEO_Help_Center::get_translated_texts() );\n\n\t\t\t$asset_manager->enqueue_script( 'admin-media' );\n\n\t\t\twp_localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'admin-media', 'wpseoMediaL10n', array(\n\t\t\t\t'choose_image' => __( 'Use Image', 'wordpress-seo' ),\n\t\t\t) );\n\t\t}\n\n\t\tif ( self::is_term_overview( $pagenow ) ) {\n\t\t\t$asset_manager->enqueue_script( 'edit-page-script' );\n\t\t}\n\t}", "function dw_schemas_add_assets() {\n\twp_enqueue_script('schemas-admin-js', '/wp-content/plugins/dw_schemas/assets/scripts.js');\n\twp_enqueue_style('schemas-admin-css', '/wp-content/plugins/dw_schemas/assets/styles.css');\n}", "function starkers_script_enqueuer() {\n\t\twp_register_script( 'site', get_template_directory_uri().'/js/scripts.min.js', array( 'jquery' ) );\n\t\twp_enqueue_script( 'site' );\n\n\t\twp_register_style( 'screen', get_stylesheet_directory_uri().'/style.css', '', '', 'screen' );\n\t\twp_enqueue_style( 'screen' );\n\t}", "function enqueue() {\n\n\t$js_path = trailingslashit( get_template_directory() ) . 'assets/js/main.min.js';\n\t$css_path = trailingslashit( get_template_directory() ) . 'assets/css/main.min.css';\n\t$req_path = trailingslashit( get_template_directory() ) . 'assets/js/vendor.min.js';\n\n\twp_enqueue_script(\n\n\t\t'req_js',\n\t\ttrailingslashit( get_stylesheet_directory_uri() ) . 'assets/js/vendor.min.js',\n\t\tfalse,\n\t\tfilemtime($req_path),\n\t\ttrue\n\n\t);\n\n\twp_enqueue_script(\n\n\t\t'main_js',\n\t\ttrailingslashit( get_stylesheet_directory_uri() ) . 'assets/js/main.min.js',\n\t\tfalse,\n\t\tfilemtime($js_path),\n\t\ttrue\n\n\t);\n\n\twp_enqueue_style(\n\n\t\t'main_css',\n\t\ttrailingslashit( get_stylesheet_directory_uri() ) . 'assets/css/main.min.css',\n\t\tfalse,\n\t\tfilemtime($css_path),\n\t\t'all'\n\n\t);\n\n}", "function green_shortcodes_vc_scripts_admin() {\n\t\t// Include CSS \n\t\tgreen_enqueue_style ( 'shortcodes_vc-style', green_get_file_url('shortcodes/shortcodes_vc_admin.css'), array(), null );\n\t\t// Include JS\n\t\tgreen_enqueue_script( 'shortcodes_vc-script', green_get_file_url('shortcodes/shortcodes_vc_admin.js'), array(), null, true );\n\t}", "function frontend_enqueue_scripts()\n\t{\n\t\twp_register_style('font-awesome', $this->stylesheet, array(), $this->version);\n\n\t\twp_enqueue_style( array( 'font-awesome' ) );\n\t}", "function csu_hcfw_resources_load_scripts() {\n\twp_enqueue_style( 'csu-hcfw-resources-styles', plugin_dir_url( __FILE__ ) . 'includes/css/styles.css' );\n}", "function cactus_shortcodes_wp_head(){\r\n\t\t// write out custom code for shortcodes\r\n\t\tif(is_singular()){\r\n\t\t\t$id = get_the_ID();\r\n\r\n\t\t\t$shortcodes = get_post_meta($id,'_cactus_shortcodes', true);\r\n\r\n\t\t\tif(isset($shortcodes) && is_array($shortcodes) && count($shortcodes) > 0){\r\n\r\n\t\t\t\tforeach($shortcodes as $tag){\r\n\r\n\t\t\t\t\t$config = businesshub_get_shortcode_config($tag);\r\n\r\n\t\t\t\t\tif(isset($config['js']) && count($config['js']) > 0){\r\n\t\t\t\t\t\t$idx = 1;\r\n\t\t\t\t\t\tforeach($config['js'] as $js => $params){\r\n\r\n\t\t\t\t\t\t\twp_enqueue_script($js);\r\n\t\t\t\t\t\t\t$idx++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(isset($config['css']) && count($config['css']) > 0){\r\n\t\t\t\t\t\t$idx = 1;\r\n\t\t\t\t\t\tforeach($config['css'] as $css => $params){\r\n\t\t\t\t\t\t\twp_enqueue_style($css);\r\n\t\t\t\t\t\t\t$idx++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t\t$css = get_post_meta($id,'_cactus_shortcodes_custom_css', true);\r\n\r\n\t\t\tif($css != ''){\r\n\t\t\t\techo '<style type=\"text/css\">' . $css . '</style>';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// write global custom css\r\n\t\t$custom_css = '';\r\n\t\t$global_custom_css = get_option('ct_custom_css');\r\n\r\n\t\tif(isset($global_custom_css) && is_array($global_custom_css)){\r\n\t\t\tforeach($global_custom_css as $key => $css){\r\n\t\t\t\t// check if widget is active\r\n\t\t\t\tpreg_match('/(.*)\\[(.*)\\]/', $key, $matches);\r\n\t\t\t\t// widget id_base\r\n\t\t\t\t$id_base = substr($matches[1], 7);\r\n\r\n\t\t\t\tif(is_active_widget(false, $id_base . '-' . $matches[2], $id_base, true)){\r\n\t\t\t\t\t$custom_css .= $css;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif($custom_css != ''){\r\n\t\t\techo '<style type=\"text/css\" id=\"ct_global_custom_css\">' . $custom_css . '</style>';\r\n\t\t}\r\n\r\n\t\t// write custom css used in Theme Options\r\n\t\t$ot_custom_css = get_option('ct_ot_custom_css');\r\n\r\n\t\tif($ot_custom_css != ''){\r\n\t\t\techo '<style type=\"text/css\" id=\"ct_global_ot_custom_css\">' . $ot_custom_css . '</style>';\r\n\t\t}\r\n\r\n\t\t// enqueue_scripts and enqueue_styles for shortcodes used in widget\r\n\t\t$shortcodes = get_option('ct_shortcodes_used_in_widgets');\r\n\r\n\t\tif(isset($shortcodes) && is_array($shortcodes)){\r\n\t\t\tforeach($shortcodes as $key => $tags){\r\n\t\t\t\t// check if widget is active\r\n\t\t\t\tpreg_match('/(.*)\\[(.*)\\]/', $key, $matches);\r\n\t\t\t\t// widget id_base\r\n\t\t\t\t$id_base = substr($matches[1], 7);\r\n\r\n\t\t\t\tif(is_active_widget(false, $id_base . '-' . $matches[2], $id_base, true)){\r\n\t\t\t\t\tforeach($tags as $tag){\r\n\t\t\t\t\t\t$config = businesshub_get_shortcode_config($tag);\r\n\r\n\t\t\t\t\t\tif(isset($config['js']) && count($config['js']) > 0){\r\n\r\n\t\t\t\t\t\t\tforeach($config['js'] as $js => $params){\r\n\t\t\t\t\t\t\t\twp_enqueue_script($js);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(isset($config['css']) && count($config['css']) > 0){\r\n\r\n\t\t\t\t\t\t\tforeach($config['css'] as $css => $params){\r\n\t\t\t\t\t\t\t\twp_enqueue_style($css);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// enqueue_scripts and enqueue_styles for shortcodes used in theme options\r\n\t\t$shortcodes = get_option('ct_shortcodes_used_in_ot');\r\n\r\n\t\tif(isset($shortcodes) && is_array($shortcodes) && isset($tag)){\r\n\r\n\t\t\tforeach($shortcodes as $tags){\r\n\t\t\t\t$config = businesshub_get_shortcode_config($tag);\r\n\r\n\t\t\t\tif(isset($config['js']) && count($config['js']) > 0){\r\n\r\n\t\t\t\t\tforeach($config['js'] as $js => $params){\r\n\t\t\t\t\t\twp_enqueue_script($js);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(isset($config['css']) && count($config['css']) > 0){\r\n\r\n\t\t\t\t\tforeach($config['css'] as $css => $params){\r\n\t\t\t\t\t\twp_enqueue_style($css);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function enqueue_scripts() {\n\n\t}", "function joe_uctc_enqueue_scripts() {\n\n\twp_register_style( JOE_UCTC_PREFIX, plugin_dir_url( __FILE__ ) . 'css/' . JOE_UCTC_PREFIX . '.css', array(), JOE_UCTC_VER );\n\twp_enqueue_style( JOE_UCTC_PREFIX );\n\n\n\twp_register_script( 'clipboardjs', '//cdnjs.cloudflare.com/ajax/libs/clipboard.js/' . JOE_UCTC_CLIPBOARDJS_VER . '/clipboard.min.js', array(), JOE_UCTC_CLIPBOARDJS_VER, true );\n\twp_enqueue_script( 'clipboardjs' );\n\n\twp_register_script( 'clicktocopy-init', plugin_dir_url( __FILE__ ) . 'js/' . JOE_UCTC_PREFIX . '-init.js', array( 'clipboardjs' ), JOE_UCTC_VER, true );\n\twp_enqueue_script( 'clicktocopy-init' );\n\n}", "private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}", "private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}", "public function enqueue_scripts() {\n\n /**\n * All styles goes here\n */\n wp_enqueue_style( 'wp-allmeta-styles', plugins_url( 'css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n\n /**\n * All scripts goes here\n */\n wp_enqueue_script( 'wp-allmeta-scripts', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ), false, true );\n\n\n /**\n * Example for setting up text strings from Javascript files for localization\n *\n * Uncomment line below and replace with proper localization variables.\n */\n // $translation_array = array( 'some_string' => __( 'Some string to translate', 'baseplugin' ), 'a_value' => '10' );\n // wp_localize_script( 'base-plugin-scripts', 'baseplugin', $translation_array ) );\n\n }", "function green_shortcodes_vc_scripts_front() {\n\t\tif (green_vc_is_frontend()) {\n\t\t\t// Include CSS \n\t\t\tgreen_enqueue_style ( 'shortcodes_vc-style', green_get_file_url('shortcodes/shortcodes_vc_front.css'), array(), null );\n\t\t\t// Include JS\n\t\t\tgreen_enqueue_script( 'shortcodes_vc-script', green_get_file_url('shortcodes/shortcodes_vc_front.js'), array(), null, true );\n\t\t}\n\t}", "protected function enqueue_scripts()\n {\n wp_enqueue_style('tify_control-text_remaining');\n wp_enqueue_script('tify_control-text_remaining');\n }", "function inject_scripts() {\n\n\tglobal $wp_styles, $wp_scripts;\n\n\t//Default way of loading styles. Version number added to ensure\n\t//the correct version is sent to the client regardless of caching.\n\twp_register_style( 'style', get_stylesheet_uri(), false, '1.0.0' );\n\twp_enqueue_style( 'style' );\n\n\t// Adds an ie8 and below stylesheet:\t\n\twp_enqueue_style( 'ie8_style', get_stylesheet_directory_uri() . '/css/ie8.css', array( 'style' ) );\n\twp_style_add_data( 'ie8_style', 'conditional', 'lte IE 8' );\n\n\n\t$js_dir = get_template_directory_uri() . '/js';\n\t$js_libs = $js_dir . '/bower_components';\n\n\t//Loads requirejs, all scripts are set true to push them into the footer:\n\twp_enqueue_script( 'requrejs', $js_libs . '/requirejs/require.js', array(), '', true );\n\n\n\t//config file that depends on requirejs.\n\twp_register_script( 'optimize', $js_dir . '/optimize.min.js', '', '', true );\n\n\n\t//Creates a json object so the configjs knows its directory. \n\twp_localize_script( 'optimize', 'dir', array(\n\t\t'path'\t\t=> $js_dir,\n\t\t'ajax_url'\t=> admin_url( 'admin-ajax.php' )\n\t));\n\n\n\twp_enqueue_script( 'optimize', '', '', '', true );\n\n\t// Styles for the lightbox plugin.\n\twp_register_style('lightbox-style', $js_libs . '/lightbox2/dist/css/lightbox.min.css' );\n\twp_enqueue_style( 'lightbox-style' );\n\n}", "private function enqueues(){\n\n\t\t\tadd_action( 'init', function(){\n\n\t\t\t\t//scripts:\n\t\t\t\t$url = Url::plugin( 'chef-sections', true ).'Assets/js/libs/';\n\t\t\t\t\n\t\t\t\tScript::register( 'isotope', $url.'isotope.min', false );\n\t\t\t\tScript::register( 'imagesloaded', $url.'imagesloaded.min', false );\n\t\t\t\tScript::register( 'autoload', $url.'autoload', false );\n\t\t\t\tScript::register( 'fitvids', $url.'fitvids.min', false );\n\n\t\t\t\t//sass:\n\t\t\t\tif( !Sass::ignore() ){\n\t\t\t\t\t\n\t\t\t\t\t$url = 'chef-sections/Assets/sass/front/';\n\t\t\t\t\t\n\t\t\t\t\tSass::register( 'sections-columns', $url.'_columns', false );\n\t\t\t\t\tSass::register( 'sections-collection', $url.'_collection', false );\n\t\t\t\t\tSass::register( 'sections-loader', $url.'_loader', false );\n\t\t\t\t\tSass::register( 'sections-socials', $url.'_socials', false );\n\t\t\t\t\tSass::register( 'sections-responsive', $url.'_responsive', false );\n\n\t\t\t\t}else{\n\n\t\t\t\t\t//we need to ignore sass and enqueue a regular css file:\n\t\t\t\t\tadd_action( 'wp_enqueue_scripts', function(){\n\n\t\t\t\t\t\twp_enqueue_style( 'chef_sections', Url::plugin( 'chef-sections', true ).'Assets/css/compiled.css' );\n\n\t\t\t\t\t});\n\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function accvent_scripts() {\n\t wp_enqueue_style( 'main', get_stylesheet_uri() );\n\t wp_enqueue_script( 'bundle', get_template_directory_uri() . '/js/build.min.js', array(), '1.0.0', true );\n\t}", "function jn_scripts_styles() {\n // Loads our main stylesheet.\n wp_enqueue_style( 'jn-style', get_stylesheet_uri() );\n // Loads jQuery\n\twp_enqueue_script( 'jquery' );\n\t// Loads javascript file\n wp_enqueue_script('jn-js-responsive', get_template_directory_uri() . '/js/responsive.js');\n}", "function enqueue() {\n\t\twp_enqueue_style( 'mypluginstyle', plugins_url( '/assets/mystyle.css', __FILE__ ) );\n\t\twp_enqueue_script( 'mypluginscript', plugins_url( '/assets/myscript.js', __FILE__ ) );\n\n\t}", "public function enqueue_scripts()\n {\n if (is_singular($this->token)) {\n wp_register_style($this->token, esc_url($this->assets_url . 'css/chiroquiz.css'), [], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_register_style('animate', esc_url($this->assets_url . 'css/animate.css'), [], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_register_style('roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,900,900italic,300italic,300');\n wp_register_style('robo-slab', 'https://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100');\n wp_enqueue_style($this->token);\n wp_enqueue_style('animate');\n wp_enqueue_style('roboto');\n wp_enqueue_style('roboto-slab');\n\n wp_register_script('icheck', esc_url($this->assets_url . 'js/icheck.js'), ['jquery']);\n wp_register_script($this->token . '-js', esc_url($this->assets_url . 'js/scripts.js'), [\n 'jquery',\n 'icheck'\n ]);\n wp_enqueue_script('icheck');\n wp_enqueue_script($this->token . '-js');\n wp_register_script('platform-email-validator', esc_url($this->assets_url . 'js/platform-email-validator.js'), [\n 'jquery'\n ], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_enqueue_script('platform-email-validator');\n\n $localize = [\n 'ajaxurl' => admin_url('admin-ajax.php'),\n ];\n wp_localize_script($this->token . '-js', 'ChiroQuiz', $localize);\n }\n }", "function gucci_styles() {\n\t// Load main stylesheet\n\twp_enqueue_style('gucci-style', get_template_directory_uri() . '/library/dist/css/style.css');\n\t// Load main javascript\n\twp_enqueue_script('gucci-script', get_template_directory_uri() . '/library/dist/js/functions.min.js', array('jquery'), '1.0', true);\n}", "private function register_scripts()\n\t{\n\t\tif (is_admin()) {\n\t\t\t// Load our main stylesheet.\n\t\t\twp_enqueue_style('kd-letters', plugin_dir_url( __FILE__ ) . '/templates/style/kd-letters.css');\n\t\t}\n\t}", "public function register_frontend_assets() {\n\t\twp_enqueue_style( 'ghc-functionality', $this->plugin_dir_url( 'dist/css/style.min.css' ), array(), $this->version );\n\n\t\twp_register_script( 'ghc-content-types-filter', $this->plugin_dir_url( 'dist/js/content-types.min.js' ), array( 'jquery' ), $this->version, true );\n\n\t\twp_register_script( 'ghc-maps', $this->plugin_dir_url( 'dist/js/maps.min.js' ), array( 'jquery', 'google-maps-api' ), $this->version, true );\n\t\twp_register_script( 'google-maps-api', 'https://maps.googleapis.com/maps/api/js?key=' . get_option( 'options_api_key' ), array(), null, true ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters -- let Google Maps handle cache invalidation.\n\n\t\twp_enqueue_script( 'ghc-popups', $this->plugin_dir_url( 'dist/js/popups.min.js' ), array( 'jquery', 'popup-maker-site' ), $this->version, true );\n\n\t\twp_register_script( 'ghc-robly-lists', $this->plugin_dir_url( 'dist/js/robly-lists.min.js' ), array( 'jquery' ), $this->version, true );\n\n\t\twp_register_script( 'slick', $this->plugin_dir_url( 'dist/js/slick.min.js' ), array( 'jquery' ), $this->version, true );\n\t\twp_register_style( 'slick', $this->plugin_dir_url( 'dist/css/slick.min.css' ), array(), $this->version, false );\n\t}", "function rssmi_footer_scripts() {\n\twp_enqueue_style( 'frontend', plugins_url( 'css/frontend.css', dirname( __FILE__ ) ) );\n\twp_enqueue_script( 'showexcerpt', plugins_url( 'scripts/show-excerpt.js', dirname( __FILE__ ) ) );\n}", "public function action_wp_enqueue_scripts() {\n\n\t\twp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/lib/bootstrap/dist/css/bootstrap.css' );\n\t\twp_enqueue_style( 'core-style', get_stylesheet_directory_uri() . '/assets/stylesheets/core.css' );\n\n\t}", "function enqueue(){\n wp_enqueue_style( 'pluginstyle', plugins_url( '/assets/beteasy-style.css', __FILE__ ) );\n wp_enqueue_script( 'pluginscript', plugins_url( '/assets/beteasy-js.js', __FILE__ ) );\n\n }", "function my_shortcode_add(){\n wp_enqueue_style('my-css', plugin_dir_url( __FILE__ ) . 'css/style.css' );\n #wp_enqueue_style('my-css'); //loaded here\n wp_enqueue_script('ajax-handle', plugin_dir_url( __FILE__ ) . 'js/functions.js', array( 'jquery' ) );\n wp_localize_script('ajax-handle','the_ajax_script', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );\n \n wp_enqueue_script(\n 'validate',\n 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js', \n array('jquery') \n );\n wp_enqueue_script(\n 'recaptcha',\n 'https://www.google.com/recaptcha/api.js', \n array('jquery') \n );\n ob_start();\n include(\"user_face/form.php\");\n return ob_get_clean();\n}", "function mpcth_enqueue_scripts() {\r\n\tglobal $mpcth_settings;\r\n\r\n\trequire_once(get_template_directory() . '/mpc-wp-boilerplate/php/mpcth-settings.php');\r\n\r\n\t/* CSS */\r\n\r\n\t// Shortcodes Styles\r\n\twp_enqueue_style('shortcodes-style', MPC_THEME_ROOT.'/mpc-wp-boilerplate/css/shortcodes.css');\r\n\r\n\t// Fancybox Styles\r\n\twp_enqueue_style('fancybox-style', MPC_THEME_ROOT.'/mpc-wp-boilerplate/css/fancybox.css');\r\n\r\n\t// Open Sans Import \r\n\twp_enqueue_style('open-sans', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600');\r\n\r\n\t// PT Sans Import \r\n\twp_enqueue_style('pt-sans', 'http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic');\r\n\r\n\t// Flex Slider\r\n\twp_enqueue_style('mpcth-flexslider-css', MPC_THEME_ROOT.'/mpc-wp-boilerplate/css/flexslider.css');\r\n\t\r\n\t/* JS */\r\n\r\n\t// HTML 5\r\n\twp_enqueue_script('html5', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/html5.js', array('jquery')); \r\n\t\r\n\t// MPC WP Boilerplate JS\r\n\twp_enqueue_script('mpcth-js', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/mpcth-functions.js', array('jquery'), '1.0', true);\r\n\twp_localize_script('mpcth-js', 'ajaxurl', admin_url('admin-ajax.php'));\r\n\r\n\t// Custom Theme JS\r\n\twp_enqueue_script('mpcth-theme-js', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/mpcth-theme.js', array('jquery'), '1.0');\r\n\r\n\t// Shortcodes JS\r\n\twp_enqueue_script('mpcth-shortcodes-js', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/mpcth-shortcodes.js', array('jquery'), '1.0');\r\n\r\n\t// jQuery Easing\r\n\twp_enqueue_script('jquery-easing', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.easing.min.js', array('jquery'), '1.3');\r\n\r\n\t// jQuery Waypoint\r\n\twp_enqueue_script('jquery-waypoints', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.waypoints.min.js', array('jquery'), '2.0.2');\r\n\r\n\t// Raphael\r\n\twp_enqueue_script('raphael', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/raphael.min.js', '2.1.0');\r\n\r\n\t// Fancybox\r\n\twp_enqueue_script('jquery-fancybox', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.fancybox.js', array('jquery'), '1.3.4');\r\n\r\n\t// Validate Script\r\n\twp_enqueue_script('jquery-validate', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.validate.min.js', array('jquery'), '1.8.1');\r\n\r\n\t// Flex Slider\r\n\twp_enqueue_script('mpcth-flexslider-js', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.flexslider-min.js', array('jquery'), '1.0');\r\n\r\n\t// Spin Loader\r\n\twp_enqueue_script('spin-loader', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/spin.min.js', '1.2.8');\r\n\r\n\t// oEmbed used for twitter\r\n\twp_enqueue_script('jquery-oembed', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.oembed.js', array('jquery'));\r\n\r\n\t// Cufon Fonts\r\n\t$mpcth_custom_fonts = get_option('mpcth_custom_fonts');\r\n\t\r\n\tif(isset($mpcth_custom_fonts))\r\n\t\twp_enqueue_script('mpcth-custom-fonts', MPC_THEME_ROOT . '/mpc-wp-boilerplate/massive-panel/js/cufon.js', array('jquery'));\r\n\r\n\t// Blog load more - enqueue & passing data to JS\r\n\tif($mpcth_settings['blogPagination'] == 'loadmore' || $mpcth_settings['portfolioPagination'] == 'loadmore' || $mpcth_settings['searchPagination'] == 'loadmore' || $mpcth_settings['archivePagination'] == 'loadmore') {\r\n\t\t\r\n\t\twp_enqueue_style('isotope-style', MPC_THEME_ROOT.'/mpc-wp-boilerplate/css/isotope.css');\r\n\t\twp_enqueue_script('isotope', MPC_THEME_ROOT.'/mpc-wp-boilerplate/js/jquery.isotope.min.js', array('jquery'), '1.5.21');\r\n\t}\r\n}", "function my_script_enqueue()\n{\n\t//css\n\twp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/asset/css/bootstrap.css', array() , '4.1.3', 'all' );\n\twp_enqueue_style( 'mycss', get_template_directory_uri() . '/asset/css/mycss.css', array() , $ver = '1.0.0', $media = 'all' );\n\t//js\n\twp_enqueue_script( 'bootstrap_js', $src = get_template_directory_uri() . '/asset/js/bootstrap.js', $deps = array(), $ver = '4.1.3', $in_footer = true );\n\twp_enqueue_script( 'myjs', $src = get_template_directory_uri() . '/asset/js/myjs.js', $deps = array(), $ver = '1.0.0', $in_footer = true );\n}", "function innelyz_scripts() {\n wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.js', array('jquery'), '3.3.7', false);\n wp_enqueue_style( 'bootstrap', get_template_directory_uri() .'/assets/css/bootstrap.css', array(), false, 'all' );\n wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lora|Pacifico|Roboto');\n wp_enqueue_style( 'innelyz-style', get_stylesheet_uri() );\n }", "public function enqueue()\n {\n\n \n $css_uri = YATRI_THEME_URI . 'mantrabrain-theme/customizer/controls/modal/';\n\n $js_uri = YATRI_THEME_URI . 'mantrabrain-theme/customizer/controls/modal/';\n\n wp_enqueue_script('yatri-modal-control-js', $js_uri . 'modal.js', array('yatri-color-alpha'), YATRI_THEME_VERSION, true);\n\n wp_enqueue_style('yatri-modal-control-css', $js_uri . 'modal.css', array(), YATRI_THEME_VERSION);\n\n if ($this->has_typography_fields()) {\n\n $all_fonts['google'] = Mantrabrain_Theme_Helper::get_google_fonts();\n $all_fonts['normal'] = Mantrabrain_Theme_Helper::get_normal_fonts();\n $all_fonts['varients'] = Mantrabrain_Theme_Helper::all_font_varients();\n\n wp_localize_script('yatri-modal-control-js', 'yatriAllFonts', $all_fonts);\n }\n\n\n }", "function jakob_script_enqueue() {\r\n wp_enqueue_style('customstyle', get_template_directory_uri().'/css/jakob.css', false, '1.0.0', 'all');\r\n wp_enqueue_script('customjs-jakob', get_template_directory_uri().'/js/jakob.js', array(), '1.0.0', true);\r\n wp_enqueue_script('customjs-contact', get_template_directory_uri().'/js/contact-form.js', array(), '1.0.0', true);\r\n wp_enqueue_script('font-awesome', 'https://use.fontawesome.com/releases/v5.0.4/js/all.js', array(), '1.0.0', true);\r\n}", "public function enqueue() {\n\t\twp_enqueue_style( 'nscu-controls' );\n\t\twp_enqueue_script( 'nscu-controls' );\n\t}", "public function enqueue() {\n\t\twp_enqueue_style( 'nscu-controls' );\n\t\twp_enqueue_script( 'nscu-controls' );\n\t}", "function enqueueStyles() {\r\n $version = '0.2';\r\n $mainJS = get_template_directory_uri() . '/js/dist/main.js';\r\n $mainCSS = get_template_directory_uri() . '/css/dist/main.min.css';\r\n\r\n wp_enqueue_style('style', $mainCSS, $version, true);\r\n wp_enqueue_script('script', $mainJS, $version, true);\r\n}" ]
[ "0.79357576", "0.7787999", "0.77750313", "0.7757865", "0.77118766", "0.7708648", "0.7657971", "0.7645883", "0.7638315", "0.757307", "0.75562656", "0.7534461", "0.748145", "0.74541175", "0.74378467", "0.74154043", "0.7411024", "0.7408116", "0.74052924", "0.73984015", "0.7397292", "0.7387552", "0.7375919", "0.73687476", "0.735534", "0.73518425", "0.73462343", "0.7344627", "0.734089", "0.73364097", "0.73066217", "0.7277922", "0.72633356", "0.72623414", "0.72531", "0.724941", "0.7246619", "0.72455066", "0.7245335", "0.72450185", "0.72383505", "0.72326666", "0.7225088", "0.72173756", "0.7201238", "0.71865255", "0.71864825", "0.7180461", "0.7179406", "0.717561", "0.71690375", "0.7167544", "0.7167176", "0.71670514", "0.7162748", "0.7155448", "0.7151418", "0.71468157", "0.7144608", "0.71421075", "0.7140888", "0.7137004", "0.71366465", "0.71342903", "0.7133903", "0.7131832", "0.7130055", "0.7129188", "0.7118575", "0.71176547", "0.7114628", "0.71143025", "0.7112901", "0.7104573", "0.71033967", "0.71033967", "0.7102302", "0.70971954", "0.7095926", "0.70954514", "0.7090879", "0.7089196", "0.7088661", "0.7084571", "0.70831805", "0.7081384", "0.7079707", "0.70761484", "0.7073686", "0.70724046", "0.7068301", "0.7066532", "0.7064643", "0.7063144", "0.7062366", "0.7060456", "0.7058759", "0.70584154", "0.70584154", "0.70583504" ]
0.78738135
1
/ Return shortcode markup for display
function shortcode_template( $atts, $content = null ) { global $MPC_Shortcode, $mpc_ma_options; if ( ! defined( 'MPC_MASSIVE_FULL' ) || ( defined( 'MPC_MASSIVE_FULL' ) && $mpc_ma_options[ 'single_js_css' ] !== '1' ) ) { $this->enqueue_shortcode_scripts(); } $atts = shortcode_atts( array( 'class' => '', 'preset' => '', /* General */ 'properties' => '', 'properties_font_color' => '', 'properties_font_align' => '', 'properties_font_transform' => '', 'prop_padding_css' => '', 'prop_even_background_type' => 'color', 'prop_even_background_color' => '', 'prop_even_background_image' => '', 'prop_even_background_image_size' => 'large', 'prop_even_background_repeat' => 'no-repeat', 'prop_even_background_size' => 'initial', 'prop_even_background_position' => 'middle-center', 'prop_even_background_gradient' => '#83bae3||#80e0d4||0;100||180||linear', ), $atts ); /* Prepare */ $styles = $this->shortcode_styles( $atts ); $css_id = $styles[ 'id' ]; $MPC_Shortcode[ 'pricing' ][ 'style' ] .= $styles[ 'css' ]; $animation = MPC_Parser::animation( $atts ); $properties = explode( '|||', $atts[ 'properties' ] ); /* Fonts Presets */ $title_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'title' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'title' ] : ''; $price_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'price' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'price' ] : ''; $props_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'prop' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'prop' ] : ''; /* Prepare Parts */ $title = $MPC_Shortcode[ 'pricing' ][ 'disable' ][ 'title' ] == '' ? '<div class="mpc-pricing__title' . $title_classes . '">&nbsp;</div>' : ''; $price = $MPC_Shortcode[ 'pricing' ][ 'disable' ][ 'price' ] == '' ? '<div class="mpc-pricing__price' . $price_classes . '">&nbsp;</div>' : ''; $props = '<div class="mpc-pricing__properties' . $props_classes . '">'; foreach( $properties as $property ) { $props .= '<div class="mpc-pricing__property">' . $property . '</div>'; } $props .= '</div>'; /* Shortcode classes | Animation | Layout */ $classes = $animation != '' ? ' mpc-animation' : ''; $classes .= ' ' . esc_attr( $atts[ 'class' ] ); /* Shortcode Output */ $return = '<div id="' . $css_id . '" class="mpc-pricing-column mpc-pricing-legend' . $classes . '" ' . $animation . '>'; $return .= $title . $price . $props; $return .= '</div>'; $MPC_Shortcode[ 'pricing' ][ 'parts' ][ 'legend' ] = $return; global $mpc_frontend; if ( $mpc_frontend ) { $css = '<style>' . $styles[ 'css' ] . '</style>'; return $css; } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function shortcode() {\n\t\t\treturn \"\";\n\t\t}", "function shortcode ( $content ) {\n return short_code ( $content );\n}", "function html5_shortcode_demo($atts, $content = null)\n{\n return '<div class=\"shortcode-demo\">' . do_shortcode($content) . '</div>'; // do_shortcode allows for nested Shortcodes\n}", "function html5_shortcode_demo( $atts, $content = null ) {\n return '<div class=\"shortcode-demo\">' . do_shortcode( $content ) . '</div>'; // do_shortcode allows for nested Shortcodes\n}", "public function get_shortcode() {\n\t\t$args = array();\n\t\tforeach ($this->args as $k => $v) {\n\t\t\t// Only include info if it's not the default... save space and easier to read shortcodes\n\t\t\tif (isset($this->defaults[$k]) && $this->defaults[$k] != $v) { // && (!empty($this->defaults[$k]) && !empty($v))) {\n\t\t\t\tif ( !empty($v) ) {\n\t\t\t\t\tif ( is_array($v) ) {\n\t\t\t\t\t\t$args[] = $k.'=\"'.implode(',', $v).'\"';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$args[] = $k.'=\"'.$v.'\"';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Direct filtering on a field\n\t\t\telseif (!isset($this->defaults[$k])) {\n\t\t\t\t$args[] = $k.'=\"'.$v.'\"';\n\t\t\t}\n\t\t}\n\t\t\n\t\t$args = implode(' ', $args);\n\t\tif (!empty($args)) {\n\t\t\t$args = ' '.$args;\n\t\t}\n\t\treturn '[summarize-posts'.$args.']';\n\t}", "public function generate_short_code_content($atts)\n {\n $short_code_atts = shortcode_atts(array(), $atts);\n\n ob_start();\n\n $this->cyl_locate_template_part('shortcode/colorYourLife.php', []);\n\n return ob_get_clean();\n }", "public abstract function do_shortcode( $atts, $content, $tag );", "function shortcode_karaja( $atts, $content = null ) {\n return '<div class=\"lingua-kr\">'.$content.'</div>';\n}", "function tz_one_third( $atts, $content = null ) {\n return '<div class=\"one_third\">' . do_shortcode($content) . '</div>';\n}", "function pt_shortcode( $atts )\n\t\t{\n\t\t\treturn $this->pt_show_blc_front();\n\t\t}", "function add_shortcode( $atts, $content = null, $name = null ) {\n\n\t\tif ( ! $this->validate_shortcode( $atts, $content, $name ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$options = $this->set_options( $atts );\n\n\t\tob_start();\n\t\t\n\t\t?><div id=\"<?php echo esc_attr($options['selector']); ?>\" class=\"<?php echo esc_attr($options['classes']); ?>\" <?php do_action(\"oxygen_vsb_component_attr\", $options, $this->options['tag']); ?>><iframe scrolling=\"no\" frameborder=\"no\" src=\"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/<?php echo $options[\"soundcloud_track_id\"]; ?>&amp;color=<?php echo urlencode($options[\"soundcloud_color\"]); ?>&amp;auto_play=<?php echo urlencode($options[\"soundcloud_auto_play\"]); ?>&amp;hide_related=<?php echo urlencode($options[\"soundcloud_hide_related\"]); ?>&amp;show_comments=<?php echo urlencode($options[\"soundcloud_show_comments\"]); ?>&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true\"></iframe></div><?php\n\n\t\treturn ob_get_clean();\n\t}", "function hello_shortcode($atts, $content = null, $tag){\n //put $atts in $a..\n $a = shortcode_atts(array(\n 'class' => 'no_class'\n ), $atts);\n\n return \"<div class='small=12 panel rounded \" . $a['class'] . \"'>\" . $content . \"</div>\";\n}", "function button_shortcode($atts, $content = NULL) {\n $a = shortcode_atts( array(\n 'class' => ''\n ), $atts );\n $content = '<span class=\"button '.$class.'\">'.$content.'</span>';\n return $content;\n}", "function plugin_starter_shortcode_1() {\r\n\t// This is just for showing that the shortcut works\r\n\treturn '<div class=\"starter-test\">This is the output of this shortcode</div>';\r\n}", "function add_shortcode( $atts, $content, $name ) {\n\n\t\tif ( ! $this->validate_shortcode( $atts, $content, $name ) ) {\n return '';\n }\n\n\t\t$options = $this->set_options( $atts );\n\n\t\tob_start();\n\n\t\t?><div id=\"<?php echo esc_attr($options['selector']); ?>\" class=\"<?php if(isset($options['classes'])) echo esc_attr($options['classes']); ?>\" <?php do_action(\"oxygen_vsb_component_attr\", $options, $this->options['tag']); ?>><?php echo do_shortcode( $content ); ?></div><?php\n\n\t\treturn ob_get_clean();\n\t}", "function render_sc_myShortcode( $context ) {\n\tob_start();\n\t?>\n<div>Some: <?=$context['disp1']?></div>\n<div>Another: <?=$context['disp2']?></div>\n<?php\n\treturn ob_get_clean();\n}", "function nooshin_a_text_shortcode( $atts, $content = null ) {\n //set default attributes and values\n\n return '<p>'. $content .'</p>';\n\n}", "function mr_megaresult_shortcode_handler( $attrs, $content=null) {\n return \"look, a shortcode!\";\n}", "public function processShortcode($atts) {\n\t\t\n\t\textract(shortcode_atts(array(\n \t\t'request' => 'blank'\n\t\t), $atts));\n\t\t\n\t\t$content = self::processRequest($request);\n\t\t\n\t\treturn \"<!--BEGIN: onxshop_start --><div class='onxshop_wordpress'>{$content}</div><!-- END: onxshop_end -->\";\n \n\t}", "function do_shortcode($content, $ignore_html = \\false)\n {\n }", "public function renderShortcode(ShortcodeAttributes $atts, $content);", "public function getShortcode();", "function Kaya_dropcap( $atts, $content = null ) {\r\n return '<span class=\"dropcap\">' . do_shortcode($content) . '</span>';\r\n}", "function sc_container( $attr, $content='' ) {\n\t$class = isset( $attr['class'] ) ? $attr['class'] : '';\n\tob_start();\n\t?>\n\t<div class=\"container <?php echo $class; ?>\">\n\t\t<?php echo do_shortcode( $content ); ?>\n\t</div>\n\t<?php\n\treturn ob_get_clean();\n}", "public function shortcode($atts) {\n global $wpdb;\n if (isset($atts['slug'])) {\n $q=$wpdb->prepare(\n \"SELECT id \".\n \"FROM {$wpdb->prefix}h5p_contents \".\n \"WHERE slug=%s\",\n $atts['slug']\n );\n $row=$wpdb->get_row($q,ARRAY_A);\n\n if ($wpdb->last_error) {\n return sprintf(__('Database error: %s.', $this->plugin_slug), $wpdb->last_error);\n }\n\n if (!isset($row['id'])) {\n return sprintf(__('Cannot find H5P content with slug: %s.', $this->plugin_slug), $atts['slug']);\n }\n\n $atts['id']=$row['id'];\n }\n\n $id = isset($atts['id']) ? intval($atts['id']) : NULL;\n $content = $this->get_content($id);\n if (is_string($content)) {\n // Return error message if the user has the correct cap\n return current_user_can('edit_h5p_contents') ? $content : NULL;\n }\n\n // Log view\n new H5P_Event('content', 'shortcode',\n $content['id'],\n $content['title'],\n $content['library']['name'],\n $content['library']['majorVersion'] . '.' . $content['library']['minorVersion']);\n\n return $this->add_assets($content);\n }", "public function add_short_code()\n {\n add_shortcode('colorYourLife', array($this, 'generate_short_code_content'));\n }", "function btn_shortcode( $atts, $content = null ) {\n $a = shortcode_atts( array(\n 'href' => '#'\n ), $atts );\n \n return '<a class=\"button\" href=\"' . esc_attr($a['href']) . '\">' . $content . '</a>';\n}", "public function get_markup () {\r\n\t\t$data = $this->properties_to_array();\r\n\r\n\t\t// Do shortcode\r\n\t\tforeach($data['accordion'] as $index=>$accordion) {\r\n\t\t\t$accordion['content'] = $this->_do_shortcode($accordion['content']);\r\n\t\t\t$data['accordion'][$index] = $accordion;\r\n\t\t}\r\n\r\n\t\t$data['preset'] = isset($data['preset']) ? $data['preset'] : 'default';\r\n\r\n\t\t$data['wrapper_id'] = str_replace('uaccordion-object-', 'wrapper-', $data['element_id']);\r\n\r\n\t\t$markup = upfront_get_template('uaccordion', $data, dirname(dirname(__FILE__)) . '/tpl/uaccordion.html');\r\n\r\n\t\t// upfront_add_element_style('uaccordion_style', array('css/uaccordion.css', dirname(__FILE__)));\r\n\t\tupfront_add_element_script('uaccordion_script', array('js/uaccordion-front.js', dirname(__FILE__)));\r\n\t\treturn $markup;\r\n\t}", "function html5_shortcode_demo_2( $atts, $content = null ) {\n return '<h2>' . $content . '</h2>';\n}", "function tag_fn($atts, $content = null, $code){\n\treturn '<'. $code . '>'. do_shortcode($content) .'</'.$code.'>';\n}", "function gallery_section_shortcode( $atts, $content = null ) {\t\n\t$output = '<li>';\n\t$output .= do_shortcode($content);\n\t$output .= '</li>';\n\treturn $output;\n}", "private function wrap_in_shortcode ($content, $atts)\n {\n $params = empty ($atts['params']) ? '' : \" params=\\\"{$atts['params']}\\\"\";\n $params .= empty ($atts['stringparams']) ? '' : \" stringparams=\\\"{$atts['stringparams']}\\\"\";\n return \"[{$this->shortcode} xml=\\\"{$atts['xml']}\\\" xslt=\\\"{$atts['xslt']}\\\"$params]\\n\" .\n \"$content\\n[/{$this->shortcode}]\";\n }", "function shortcode_template( $atts, $content = null ) {\r\n\t\t\tglobal $mpc_ma_options;\r\n\t\t\tif ( ! defined( 'MPC_MASSIVE_FULL' ) || ( defined( 'MPC_MASSIVE_FULL' ) && $mpc_ma_options[ 'single_js_css' ] !== '1' ) ) {\r\n\t\t\t\t$this->enqueue_shortcode_scripts();\r\n\t\t\t}\r\n\r\n\t\t\t$atts = shortcode_atts( array(\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'preset' => '',\r\n\t\t\t\t'content_preset' => '',\r\n\t\t\t\t'style' => 'horizontal',\r\n\t\t\t\t'space' => '',\r\n\t\t\t\t'fullwidth' => '',\r\n\r\n\t\t\t\t'padding_css' => '',\r\n\t\t\t\t'margin_css' => '',\r\n\t\t\t\t'border_css' => '',\r\n\r\n\t\t\t\t'icon_type' => 'icon',\r\n\t\t\t\t'icon' => '',\r\n\t\t\t\t'icon_character' => '',\r\n\t\t\t\t'icon_image' => '',\r\n\t\t\t\t'icon_image_size' => 'thumbnail',\r\n\t\t\t\t'icon_preset' => '',\r\n\t\t\t\t'icon_color' => '#333333',\r\n\t\t\t\t'icon_size' => '',\r\n\r\n\t\t\t\t'icon_margin_css' => '',\r\n\t\t\t\t'icon_animation' => 'none',\r\n\r\n\t\t\t\t'background_type' => 'color',\r\n\t\t\t\t'background_color' => '',\r\n\t\t\t\t'background_image' => '',\r\n\t\t\t\t'background_image_size' => 'large',\r\n\t\t\t\t'background_repeat' => 'no-repeat',\r\n\t\t\t\t'background_size' => 'initial',\r\n\t\t\t\t'background_position' => 'middle-center',\r\n\t\t\t\t'background_gradient' => '#83bae3||#80e0d4||0;100||180||linear',\r\n\r\n\t\t\t\t'animation_in_type' => 'none',\r\n\t\t\t\t'animation_in_duration' => '300',\r\n\t\t\t\t'animation_in_delay' => '0',\r\n\t\t\t\t'animation_in_offset' => '100',\r\n\r\n\t\t\t\t'animation_loop_type' => 'none',\r\n\t\t\t\t'animation_loop_duration' => '1000',\r\n\t\t\t\t'animation_loop_delay' => '1000',\r\n\t\t\t\t'animation_loop_hover' => '',\r\n\t\t\t), $atts );\r\n\r\n\t\t\t$styles = $this->shortcode_styles( $atts );\r\n\t\t\t$css_id = $styles[ 'id' ];\r\n\r\n\t\t\t$icon = MPC_Parser::icon( $atts );\r\n\t\t\t$animation = MPC_Parser::animation( $atts );\r\n\r\n\t\t\t$classes = $animation != '' ? ' mpc-animation' : '';\r\n\t\t\t$classes .= $atts[ 'fullwidth' ] != '' ? ' mpc-fullwidth' : '';\r\n\t\t\t$classes .= $atts[ 'style' ] == 'horizontal' ? ' mpc-style--horizontal' : ' mpc-style--vertical';\r\n\t\t\t$classes .= ' ' . esc_attr( $atts[ 'class' ] );\r\n\r\n\t\t\t$separator_classes = $icon[ 'class' ] == '' && $icon[ 'content' ] == '' ? ' mpc-empty' : '';\r\n\r\n\t\t\tglobal $mpc_button_separator;\r\n\t\t\t$mpc_button_separator = '<span class=\"mpc-button-separator-wrap\"><span class=\"mpc-button-separator-box\"><span class=\"mpc-button-separator ' . $icon[ 'class' ] . $separator_classes . '\">' . $icon[ 'content' ] . '</span></span></span>';\r\n\r\n\t\t\t$return = '<div id=\"' . $css_id . '\" class=\"mpc-button-set mpc-init' . $classes . '\"' . $animation . ( $atts[ 'icon_animation' ] != 'none' ? ' data-animation=\"' . esc_attr( $atts[ 'icon_animation' ] ) . '\"' : '' ) . '>';\r\n\t\t\t\t$return .= do_shortcode( $content );\r\n\t\t\t$return .= '</div>';\r\n\r\n\t\t\t$mpc_button_separator = null;\r\n\r\n\t\t\tglobal $mpc_frontend;\r\n\t\t\tif ( $mpc_frontend ) {\r\n\t\t\t\t$return .= '<style>' . $styles[ 'css' ] . '</style>';\r\n\t\t\t}\r\n\r\n\t\t\treturn $return;\r\n\t\t}", "function add_shortcode_interface() {\n\tob_start();\n?>\n\t<a href=\"#TB_inline?width=600&height=700&inlineId=select-shortcode-form\" class=\"thickbox button\" id=\"add-shortcode\" title=\"Add Shortcode\">Add Shortcode</a>\n<?php\n\techo ob_get_clean();\n}", "public function add_shortcode_content(){\n\n //turn on output buffering to capture script output\n ob_start();\n\n $this->enqueue_frontend();\n $this->timepicker_style();\n\n //include the specified file\n require_once(\"$this->plugin_path/page-templates/questionnaire-template.php\");\n\n //assign the file output to $content variable and clean buffer\n $content = ob_get_clean();\n //return the $content\n //return is important for the output to appear at the correct position\n return $content; \n }", "function display( array $atts, $content = '' ) {\n\n\t\tob_start();\n\n\t\tpublisher_set_prop( 'shortcode-better-newsticker', $atts );\n\n\t\tpublisher_get_view( 'shortcodes', 'better-newsticker' );\n\n\t\tpublisher_clear_props();\n\t\tpublisher_clear_query();\n\n\t\treturn ob_get_clean();\n\t}", "public static function exampleShortcode($atts, $content = null){\n\t\treturn '<div class=\"example-shortcode\">' . do_shortcode($content) . '</div>';\n\t}", "function scratch_SC_lead( $atts , $content = null ) {\n\t\n\t$output = '';\n\t\n\textract( shortcode_atts(\n\t\tarray(\n\t\t),\n\t\t$atts\n\t));\n\t\n\t$output .= '<p class=\"lead\">';\n\t\t$output .= do_shortcode( $content );\n\t$output .= '</p>';\n\t\n\treturn $output;\n\n}", "function icon_shortcode($atts, $content = NULL) {\n $a = shortcode_atts( array(\n 'class' => ''\n ), $atts );\n $content = '<span class=\"fa '.$class.'\"></span>';\n return $content;\n}", "function htheme_banner_shortcode( $atts ) {\r\n\r\n\t\t#SETUP CONTENT CLASS\r\n\t\t$htheme_data = $this->htheme_content->htheme_get_content_banner($atts);\r\n\r\n\t\t#RETURN DATA/HTML\r\n\t\treturn $htheme_data;\r\n\r\n\t}", "function ot_span_shortcode( $atts, $content = null ) {\n\textract( shortcode_atts( array(\n\t\t'class' => '', \n\t\t'id' => '' \n\t), $atts) );\n\t\n\t$return = '<span';\n\tif ( !empty( $class ) )\n\t\t$return .= ' class=\"'.$class.'\"';\n\t\n if ( !empty( $id ) )\n\t\t$return .= ' id=\"'.$id.'\"';\n\n $return .= '>' . $content . '</span>';\n\n\treturn $return;\n}", "public function shortcode_template() {\n\t\treturn 'templates/shortcodes/projects.php';\n\t}", "function add_shortcode() {\n\t\tadd_shortcode( 'contact-form', array( 'Grunion_Contact_Form', 'parse' ) );\n\t\tadd_shortcode( 'contact-field', array( 'Grunion_Contact_Form', 'parse_contact_field' ) );\n\t}", "function group_of_gadgets_shortcode( $atts, $content = null ) {\r\n return '<div style=\"width:100%;float:left;\">' . do_shortcode($content) . '</div>';\r\n}", "function sm_shortcode( $atts ) {\n\t$a = shortcode_atts( array(\n\t\t'post-id' => get_the_ID() ,\n\t\t'key' => '',\n\t\t'single' => false,\n ), $atts );\t\n \n return get_post_meta( $a[\"post-id\"], $a[\"key\"], $a[\"post-id\"] ) ;\n\n}", "public function markup(): string;", "public static function parse_shortcode($attributes, $content, $parser, $shortcode): string;", "function Intro($atts, $content = null ) {\r\n\treturn '<p class=\"intro\">' .do_shortcode($content). '</p>';\r\n}", "function custom_shortcode_landing() {\n\n $return = '<div class=\"land-rental box\">';\n $return .= '<h3>שטחים להשכרה</h3> </div>';\n return $return;\n\n}", "function htheme_instagram_shortcode( $atts ) {\r\n\r\n\t\t#SETUP CONTENT CLASS\r\n\t\t$htheme_data = $this->htheme_content->htheme_get_instagram($atts);\r\n\r\n\t\t#RETURN DATA/HTML\r\n\t\treturn $htheme_data;\r\n\r\n\t}", "function oet_ajax_display_featured_content_block(){\n $shortcode = oet_featured_content_block_display($_POST['attributes'], true);\n echo wpautop(stripslashes($shortcode));\n die();\n}", "function block_shortcode($atts) {\r\n extract(shortcode_atts(array(\r\n\t\t'url' \t=> 'https://www.google.com/',\r\n\t\t'image'\t=> get_stylesheet_directory_uri().'/assets/img/feature_img_swf.png',\r\n\t\t'text'\t=> 'Run A Startup',\r\n\t\t'color'\t=> '#186677',\r\n\t\t), $atts, 'block_shortcode'));\r\n\t\r\n return \r\n\t\t\t'<div class=\"col-md-3 col-lg-3 col-sm-6 col-xs-6 cd-block-row\">\r\n\t\t\t\t<a href=\"'.$url.'\">\r\n\t\t\t\t\t<div id=\"cd-block-id\" class=\"cd-block\">\r\n\t\t\t\t\t\t<img id=\"block-img\" src=\"'.$image.'\" alt=\"\" />\r\n\t\t\t\t\t\t<p style=\"color:'.$color.';\">'.$text.'</p>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>\r\n\t\t\t</div>'\r\n\t;\r\n}", "function my_shortcode() {\n\n$options = get_option('foodrecipecptplugin_settings');\nreturn \"<p>Recipe Name:\" . $options['foodrecipecptplugin_text_field_0'] . \"</p>\".\"<p>Category: \" . $options['foodrecipecptplugin_text_field_1'].\"</p>\".\"<p>Ingredients: \". $options['foodrecipecptplugin_text_field_2'].\"</p>\".\"<p>Recipe Instructions: \" . $options['foodrecipecptplugin_text_field_3'] . \"</p>\";\n}", "function rqdshortcode () {\nob_start();\n?>\n\n<div class=\"rqd-container\">\n \t<?php\n\t\t$args=array('post_type'=>'quote', 'orderby'=>'rand', 'posts_per_page'=>'1');\n\n\t\t$randomquote=new WP_Query($args);\n\t\twhile ($randomquote->have_posts()) : $randomquote->the_post();\n\t\t\t$ctd_newtitle = get_the_title();\t\t\t\n\t\t\n\t\t\t?><p class=\"rqd-quote\"><?php echo \"\\\"\" . $ctd_newtitle . \"\\\"\";?></p>\n \n <?php $authorname = get_post_meta( get_the_ID(), 'author-box-text', true ); ?>\n <p class=\"rqd-author\"><?php echo \"- \" . $authorname . \" -\";?></p>\n <?php \n\t\tendwhile;\n\t\twp_reset_postdata();\n\t\t?> </div> <?php\n\t\t\n\t\t$output = ob_get_contents();\n\t\tob_end_clean();\n\n\t\treturn $output;\n\t}", "function sc_myShortcode( $attrs, $content = null ) {\n\t// Default attributes.\n\tSDES_Static::set_default_keyValue( $attrs, 'attr1', 'SomeValue' );\n\tSDES_Static::set_default_keyValue( $attrs, 'attr2', 'AnotherValue' );\n\t// Sanitize input.\n\t$attrs['attr1'] = esc_attr( $attrs['attr1'] );\n\t$attrs['attr2'] = esc_attr( $attrs['attr2'] );\n\n\t// Shortcode logic.\n\n\t// Set context for view.\n\t$context['disp1'] = $attrs['attr1'];\n\t$context['disp2'] = $attrs['attr2'];\n\t// Render HTML.\n\treturn rencer_sc_myShortcode( $context );\n}", "public function smartape_display( $atts, $content ) {\n\t\t//* Let's build this bitch too.\n\t\t$output = '<a class=\"shortcode-this\" href=\"https://www.smartape.ru/?partner=2922\"'\n\t\t . 'target=\"_blank\">'\n\t\t . $content\n\t\t . '<span class=\"shortcode-this-icon\">&darr;</span>'\n\t\t . '<img class=\"shortcode-this-image\" src=\"'\n\t\t . plugin_dir_url( __FILE__ )\n\t\t . '/img/smartape-logo.png\" alt=\"Smartape логотип\"></a>';\n\n\t\treturn $output;\n\t}", "public function shortcode() {\r\n\t\treturn $this->get_timeline();\r\n\t}", "function sp_framework_toggle_content_sc( $atts, $content = null ) {\n\n\t\textract( shortcode_atts( array(\n\t\t\t'title' => ''\n\t\t), $atts ) );\n\t\t\n\t\t$output = '<div class=\"toggle-wrap\">';\n\t\t$output .= '<span class=\"trigger\"><a href=\"#\">' . esc_attr( $title ) . '</a></span><div class=\"toggle-container\">';\n\t\t$output .= $content; \n\t\t$output .= '</div></div>';\n\n\t\treturn $output;\n\t\n\t}", "function flex_video_shortcode($atts, $content = NULL) {\n $a = shortcode_atts( array(\n 'aspect' => ''\n ), $atts );\n $aspect = ($a['aspect'] == 'standard') ? '' : 'widescreen';\n $content = '<div class=\"flexvideo '.$aspect.'\">'.$content.'</div>';\n return $content;\n}", "function shortcodes_xh_version()\n{\n global $pth;\n\n return '<h1>Shortcodes_xh</h1>'.\"\\n\"\n\t. tag('img src=\"'.$pth['folder']['plugins'].'shortcodes_xh/help/ShortCode_XH.png\" style=\"float: left; margin: 0 20px 20px 0\"')\n\t. '<p>This plugin is to use the familiar <a href=\"https://codex.wordpress.org/Shortcode_API\" target=\"_blank\">WordPress shortcode syntax</a> in CMSimple_XH.</p>'\n\t. '<p>Version: '.SHORTCODES_XH_VERSION.'</p>'.\"\\n\"\n\t. '<p>Copyright &copy; 2015 <a href=\"http://cmsimple-jp.org\" target=\"_blank\">cmsimple-jp.org</a></p>'.\"\\n\"\n\t. '<p>Original <a href=\"https://github.com/Badcow/Shortcodes\" target=\"_blank\">Badcow/Shortcodes Latest commit 5 Apr 2015</a></p>'\n\t. '<p style=\"text-align: justify\">'\n\t. '<b>License</b>'. tag('br') . \"\\n\"\n\t. ' Art License Terms : <a href=\"http://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">Creative Commons License </a> . Detail <a href=\"https://github.com/Badcow/Shortcodes\" target=\"_blank\">https://github.com/Badcow/Shortcodes</a>'. tag('br').\"\\n\"\n\t. ' Software License terms : <a href=\"http://www.gnu.org/licenses/\" target=\"_blank\">GPLv3.</a>';\n}", "function code_block_shortcode_init($atts, $content = null) {\n $stripped_content = remove_empty_p_tags($content);\n $return_string = '<pre>'.$stripped_content.'</pre>';\n return $return_string;\n}", "function add_shortcode( $atts, $content, $name ) {\n\n\t\tif (! $this->validate_shortcode( $atts, $content, $name ) ) {\n return '';\n }\n\n\t\t$options = $this->set_options( $atts );\n\n\t\tob_start();\n\n\t\tif ( is_active_sidebar( $options[\"sidebar_id\"] ) ) {\n\t\t\tdynamic_sidebar( $options[\"sidebar_id\"] );\n\t\t}\n\t\telse {\n\t\t\techo \"No active \\\"\".$options[\"sidebar_id\"].\"\\\" sidebar\";\n\t\t}\n\n\t\treturn ob_get_clean();\n\t}", "function nooshin_a_text_icon_shortcode( $atts, $content = null ) {\n //set default attributes and values\n $values = shortcode_atts( array(\n 'url' \t=> '#',\n 'target'\t=> '_self',\n 'icon'=>'fab fa-telegram',\n ), $atts );\n\n $result = '<p><i class=\" mr-1 '. $values['icon'] .'\"></i>';\n if($values['url']!='#' and $values['url']!=\"\"){\n $result=$result.'<a class=\" text-dark\" href=\"'. esc_attr($values['url']) .'\" target=\"'. esc_attr($values['target']) .'\">'. $content .'</a></p>';\n }\n else{\n $result=$result.$content .'</p>';\n }\n return $result;\n\n}", "function sp_three_four_sc( $atts, $content = null ) {\n\n\t\treturn '<div class=\"three_fourth\">' . do_shortcode( $content ) . '</div>';\n\n\t}", "function render_block_core_shortcode($attributes, $content)\n {\n }", "function mmc_shortcode() {\r\n\t//$cards = mmc_fetch_my_card_info();\r\n\r\n\t//$cards_content = mmc_display_card_info( $cards ); // do some formatting here\r\n\r\n\t//return $cards_content;\r\n\tinclude('cards_index.php');\r\n}", "function be_div_shortcode( $atts ) {\n\textract( shortcode_atts( array(\n\t\t'class' => '', \n\t\t'id' => '' \n\t), $atts) );\n\n\t$return = '<div';\n\tif ( !empty( $class ) )\n\t\t$return .= ' class=\"'.$class.'\"';\n\tif ( !empty( $id ) )\n\t\t$return .= ' id=\"'.$id.'\"';\n\t$return .= '>';\n\t\n\treturn $return;\n}", "function crumble_adsense( $atts, $content = null ) {\r\n\textract( shortcode_atts( array(\r\n\t\t'float' => 'left',\r\n\t\t'ad_client' => 'pub-XXXXXXXXXXX',\r\n\t\t'ad_slot' => 'XXXXXXXXXX',\r\n\t\t'ad_width' => '250',\r\n\t\t'ad_height' => '250'\r\n\r\n\t), $atts ) );\r\n\t\r\n\t$code = '<div class=\"adsense-'. $float . '\">\r\n\t\t<script type=\"text/javascript\"><!--\r\n \t\tgoogle_ad_client = \"' . $ad_client . '\";\r\n \t\tgoogle_ad_slot = \"' . $ad_slot . '\";\r\n \t\tgoogle_ad_width = ' . $ad_width . ';\r\n \t\tgoogle_ad_height = ' . $ad_height .';\r\n \t\t//-->\r\n \t\t</script>\r\n \t\t<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script>\r\n\t\t</div>';\r\n\t\t\t\t\t\r\n\treturn $code;\r\n}", "function acf_shortcode($atts)\n{\n}", "public static function shortcode( $atts ) {\n\t\t$atts = parent::get_attributes( $atts );\n\n\t\t$recipe = WPRM_Template_Shortcodes::get_recipe( $atts['id'] );\n\t\t$output = '';\n\n\t\treturn apply_filters( parent::get_hook(), $output, $atts, $recipe );\n\t}", "function tc_epo_show_shortcode( $atts, $content = NULL ) {\n\textract( shortcode_atts( array(\n\t\t'action' => '',\n\t), $atts ) );\n\n\tob_start();\n\tdo_action( $action );\n\n\t$content = ob_get_contents();\n\tob_end_clean();\n\n\treturn $content;\n}", "function module_callout_box_function($atts, $content, $tag){\r\n\treturn '<div class=\"mod-section-block-callout\">' . do_shortcode($content) . '</div>';\r\n}", "function crumble_stdDrop($atts, $content = null) {\r\n\treturn '<span class=\"dropcap\">' . do_shortcode ( $content ) . '</span>';\r\n}", "function full_image_shortcode_init($atts, $content = null) {\n $return_string = '<div class=\"full-image\">'.$content.'</div>';\n return $return_string;\n}", "function sp_one_fourth_sc( $atts, $content = null ) {\n\n\t\treturn '<div class=\"one_fourth\">' . do_shortcode( $content ) . '</div>';\n\n\t}", "function crumble_fontItalic($atts, $content = null) {\r\n\treturn '<p class=\"italic\">' . do_shortcode ( $content ) . '</p>';\r\n}", "function sp_three_four_sc( $atts, $content = null ) {\n\n\t\treturn '<div class=\"three-fourth\">' . do_shortcode( $content ) . '</div>';\n\n\t}", "public function shortcode_display($atts, $contet = '', $tag){\n\t\t\n\t\t$html = '';\n\t\t//our main upcoming preview shortcode\n\t\tif($tag == 'upcoming_post_preview'){\n\t\t\t\t\n\t\t\t//define default arguments\n\t\t\t$arguments = shortcode_atts(array(\n\t\t\t\t'number_of_previews'\t=> 1,\n\t\t\t\t'post_id'\t\t\t\t=> false\n\t\t\t\t), $atts, $tag);\n\t\t\t\t\n\t\t\t//build output\n\t\t\t$html .= $this->get_upcoming_post_preview($arguments);\n\t\t}\n\t\t\n\t\treturn $html;\n\t}", "function crumble_collapse( $atts, $content = null ) {\r\n\textract( shortcode_atts( array(\r\n\t\t'title' => 'Collapse Title',\r\n\r\n\t), $atts ) );\r\n\t\r\n\t$code = '<div class=\"collapse-crumble\">';\r\n\t$code .= '<h6>' . $title . '</h6>';\r\n\t$code .= '<div class=\"toggle-content\">';\r\n\t$code .= do_shortcode( $content ) . '</div><!-- /toggle-content -->';\r\n\t$code .= '</div><!-- /collapse -->';\r\n\t\t\t\r\n\treturn $code;\r\n}", "function shortcode() {\n\n ob_start();\n\n if ( is_user_logged_in() ) {\n $this->prepare_form();\n } else {\n printf( __( \"This page is restricted. Please %s to view this page.\", 'wpuf' ), wp_loginout( '', false ) );\n }\n\n $content = ob_get_contents();\n ob_end_clean();\n\n return $content;\n }", "function sp_one_fourth_sc( $atts, $content = null ) {\n\n\t\treturn '<div class=\"one-fourth\">' . do_shortcode( $content ) . '</div>';\n\n\t}", "function echotheme_jquerycycle_shortcode( $atts ){\n\tob_start();\n\tget_template_part('part', 'jquerycycle-gallery');\n\treturn ob_get_clean();\n}", "function do_utcw_shortcode($args) {\n\t\n\t// Shortcodes should return values, not echo out\n\t$args['return'] = true;\n\t\n\treturn do_utcw($args);\n}", "function shortcode_input( $atts ){\n\n $a = shortcode_atts( [\n 'placeholder' => 'Please Fill Out',\n 'name' => '',\n 'for' => '',\n 'id' => '',\n 'label_name' => 'Label',\n 'label_class' => '',\n 'input_class' => '',\n 'display' => 'block'\n ],\n $atts);\n\n return \"<label style='display:{$a['display']};' class='{$a['label_class']}' for='{$a['for']}'>{$a['label_name']}:</label>\n <input class='{$a['input_class']}' placeholder='{$a['placeholder']}' name='{$a['name']}' id='{$a['id']}'/>\n \";\n\n}", "function vslider_short_code($atts) {\r\n\tob_start();\r\n extract(shortcode_atts(array(\r\n\t\t\"name\" => ''\r\n\t), $atts));\r\n\tvslider($name);\r\n\t$output = ob_get_clean();\r\n\treturn $output;\r\n}", "function track_shortcode($atts, $content=null){\n\textract(shortcode_atts(array(\n\t\t'kind' => '',\n\t\t'src' => '',\n\t\t'srclang' => '',\n\t\t'label' => '',\n\t\t'default' => ''\n\t), $atts));\n\t\n\tif($kind)\n\t\t$kind = \" kind='\" . $kind . \"'\";\n\t\n\tif($src)\n\t\t$src = \" src='\" . $src . \"'\";\n\t\n\tif($srclang)\n\t\t$srclang = \" srclang='\" . $srclang . \"'\";\n\t\n\tif($label)\n\t\t$label = \" label='\" . $label . \"'\";\n\t\n\tif($default == \"true\" || $default == \"default\")\n\t\t$default = \" default\";\n\telse\n\t\t$default = \"\";\n\t\n\t$track = \"\n\t\t<track\" . $kind . $src . $srclang . $label . $default . \" />\n\t\";\n\t\n\treturn $track;\n}", "public function column_shortcode($item)\n {\n /*\n * the below string sets up the jQuery write back to the post by\n * exposing the available shortcode related items. The tags would be done\n * in the same fashion\n *\n * One challenge is to only add this code to the media modal and not to the\n * admin list area.\n *\n */\n\n //$shortcodeString = '<input id=\"puawpShortcode-'.$item['audio_file_ids'][0].\n //'\" type=\"text\" style=\"display:none;\" value=\"'.$item['shortcode'].'\"><a href=\"#\" id=\"puawpShortcodeInsert-'.$item['audio_file_ids'][0].\n //'\">Insert Pop Up Archive player</a>';\n\n $htmlShortcodeString = \"<strong>Audio File Count = \".$item['audio_files_count'].'</strong><br/>';\n for ($i=0; $i<$item['audio_files_count'];$i++) {\n $htmlShortcodeString .=$item['audio_file_data'][$i]['audio_file_shortcode'].'<br/>';\n }\n return $htmlShortcodeString;\n }", "function display( array $atts , $content = '' ){\r\n\r\n ob_start();\r\n\r\n if( $atts['title'] && ! Better_Framework::widget_manager()->get_current_sidebar() && $atts['show_title'] ){\r\n $atts['element-type'] = $this->id;\r\n echo apply_filters( 'better-framework/shortcodes/title', $atts );\r\n }\r\n\r\n $height = 65;\r\n if( $atts['show_faces'] == true ){\r\n $height += 175;\r\n }\r\n if( $atts['show_posts'] == true ){\r\n $height += 350;\r\n }\r\n\r\n ?>\r\n <div class=\"bf-shortcode bf-shortcode-likebox style-<?php echo $atts['style']; ?>\">\r\n <div class=\"the-content\">\r\n <iframe src=\"https://www.facebook.com/plugins/likebox.php?href=<?php echo urlencode( $atts['url'] ) ?>&amp;width=270&amp;height=<?php echo $height; ?>&amp;show_faces=<?php echo $atts['show_faces']; ?>&amp;colorscheme=<?php echo $atts['style']; ?>&amp;stream=<?php echo $atts['show_posts']; ?>&amp;show_border=<?php echo $atts['show_border']; ?>&amp;header=<?php echo $atts['show_header']; ?>\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:100%; height:<?php echo $height; ?>px;\" allowTransparency=\"true\"></iframe>\r\n </div>\r\n </div>\r\n <?php\r\n\r\n return ob_get_clean();\r\n }", "function endcore_socialbuttons_shortcode($atts, $content = null) {\n if(is_admin()) {\n return;\n }\n\n\tob_start();\t\n\tget_template_part('parts/stuff/code', 'social');\n\t$output = ob_get_contents();\n\tob_end_clean();\n\treturn $output;\n}", "public static function showWebformShortCode($atts)\n\t{\n\t\t$params = shortcode_atts(array(\n\t\t\t'url' => 'null',\n\t\t\t'css' => 'on',\n\t\t\t'center' => 'off',\n\t\t\t'center_margin' => '200',\n\t\t\t'variant' => ''\n\t\t), $atts);\n\n\t\t$div_start = $div_end = '';\n\t\tif ($params['center'] == 'on')\n\t\t{\n\t\t\t$div_start = '<div style=\"margin-left: auto; margin-right: auto; width: ' . $params['center_margin'] . 'px;\">';\n\t\t\t$div_end = '</div>';\n\t\t}\n\n\t\t$css = ($params['css'] == \"off\") ? htmlspecialchars(\"&css=1\") : \"\";\n\n\t\t$variant_maps = array('A' => 0, 'B' => 1, 'C' => 2, 'D' => 3, 'E' => 4, 'F' => 5, 'G' => 6, 'H' => 7);\n\t\t$params['variant'] = strtoupper($params['variant']);\n\t\t$variant = (in_array($params['variant'], array_keys($variant_maps))) ? htmlspecialchars(\"&v=\" . $variant_maps[$params['variant']]) : \"\";\n\n\t\t$params['url'] = self::replaceHttpsToHttpIfSslOn($params['url']);\n\n\t\treturn $div_start . '<script type=\"text/javascript\" src=\"' . $params['url'] . $css . $variant . '\"></script>' . $div_end;\n\t}", "function shortcode_btn ( $atts, $content = \"\" ) {\n\t$a = shortcode_atts( array(\n\t\t'link' => \"#\",\n\t\t'type' => \"default\",\n\t\t'target' => \"\",\n\t\t'class' => \"\",\n\t\t'title' => \"\",\n\t), $atts );\n\t\n\treturn '<a class=\"btn btn-' . $a['type'] . ' ' . $a['class'] . '\" href=\"' . $a['link'] . '\" title=\"' . $a['title'] . '\" ' . (empty($a['target']) ? '' : 'target=\"' . $a['target'] . '\"') . '>' . do_shortcode( $content ) . '</a>';\n}", "function output_markup();", "protected function content($atts, $content = null) {\n\n extract(shortcode_atts(array(\n\t\t\t'id' => '',\n\t\t\t'display_social_meta' => 'on',\n\t\t\t'display_comments_count' => 'on',\n\t\t\t'display_excerpt' => 'off',\n\t\t\t'display_meta' => 'on',\n ), $atts));\n\n\n /* ================ Render Shortcodes ================ */\n\n ob_start();\n\t\t\n\t\t//Method to retrieve a single post\n\t\t$queried_post = get_post($id);\n\t\t$postID = $queried_post->ID;\n\t\t$postLink = get_permalink($postID);\n\t\t$postTitle = $queried_post->post_title;\n\t\t$postDate = mysql2date('l, F j, Y', $queried_post->post_date);\n\t\t$postAuthorID = $queried_post->post_author;\n\t\t$postAuthor = get_the_author_meta('nickname', $postAuthorID);\n\t\t//$postTags = get_the_tags($postID);\n\t\t$postCommentCount = $queried_post->comment_count;\n\t\t$postExcerpt = $queried_post->post_excerpt;\n\t\t$postContent = $queried_post->post_content;\n\t\t$postTip = get_post_meta($postID, 'pm_post_tooltip_meta_function', true);\n\t\t$postIconSaved = get_post_meta($postID, 'pm_post_icon_meta', true);\n\t\t$postIcon = $postIconSaved != '' ? $postIconSaved : 'fa fa-file';\n\t\t\n\t\t$displayExcerptOnMeta = get_theme_mod('displayExcerptOnMeta', 'on');\n\t\t\t\n ?>\n \n <?php \n\t\t\t//$img = wp_get_attachment_image_src($el_image, \"large\"); \n\t\t\t//$imgSrc = $img[0];\n\t\t?>\n\n <!-- Element Code start -->\n \n <div class=\"pm-single-post-shortcode-container\">\n\t\n <div class=\"pm_span_header pm_post_single\">\n <h4>\n \n <span><?php esc_attr_e($postTitle); ?></span>\n \n <?php if( $postTip !== '' ){ ?>\n <a class=\"<?php esc_attr_e($postIcon); ?> pm_tip\" title=\"<?php esc_attr_e($postTip); ?>\" href=\"<?php echo esc_url($postLink); ?>\"></a>\n <?php } else { ?>\n <a class=\"<?php esc_attr_e($postIcon); ?>\" href=\"<?php echo esc_url($postLink); ?>\"></a>\n <?php } ?>\n \n </h4>\n </div>\n \n <div class=\"pm-hover-item\">\n \n <div class=\"pm-hover-item-title-panel\">\n <a class=\"icon-location-arrow pm_float_right pm_panel_touch_btn\"></a>\n \n <?php if( $display_meta === 'on' ) { ?>\n <p><b><?php esc_attr_e('Posted','localization'); ?></b> <?php esc_attr_e($postDate); ?><b> <?php esc_attr_e('by','localization'); ?></b> <?php esc_attr_e($postAuthor); ?></p>\n <?php } ?>\n \n <?php if( $displayExcerptOnMeta === 'on' ){ ?>\n <p><?php echo pm_hope_string_limit_words($postExcerpt, 7); ?>...</p>\n <?php } ?>\n \n </div>\n \n <div class=\"pm-hover-item-details\">\n <div class=\"pm-hover-item-spacer\">\n \n \t<?php if( $display_excerpt === 'on' ){ ?>\n <p><?php echo pm_hope_string_limit_words($postExcerpt, 20); ?>...</p>\n <?php } ?>\n \n <a href=\"<?php echo esc_url($postLink); ?>\"><?php esc_attr_e('Read More','localization'); ?> &raquo;</a>\n \n \n <?php if($display_comments_count === 'on'){ ?>\n <div class=\"pm_post_tags\">\n <i class=\"fa fa-comment\"></i><?php echo get_comments_number(); ?> <?php esc_attr_e('comments', 'localization'); ?>\t\n </div>\n <?php } else { ?>\n <div class=\"pm_post_tags\" style=\"margin-bottom:0px;\">\n </div>\t\n <?php } ?>\n \n <?php if( $display_social_meta === 'on' ) : ?>\t\t\t\t\t\t\t\t\t\t\n \n <ul class=\"pm-post-social-icons\">\n \n <li class=\"twitter\">\n <a target=\"_blank\" href=\"http://twitter.com/home?status=<?php echo urlencode(get_the_title()); ?>\"><i class=\"fa fa-twitter\"></i></a>\n </li>\n \n <li class=\"facebook\">\n <a target=\"_blank\" href=\"http://www.facebook.com/share.php?u=<?php echo urlencode(get_the_permalink()); ?>\"><i class=\"fa fa-facebook\"></i></a>\n </li>\n \n <li class=\"linkedin\">\n <a href=\"http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo urlencode(get_the_permalink()); ?>&amp;title=<?php echo urlencode(get_the_title()); ?>&amp;summary=<?php echo urlencode(get_the_excerpt()); ?>\" target=\"_blank\"><i class=\"fa fa-linkedin\"></i></a>\n </li>\n \n <li class=\"gplus\">\n <a href=\"https://plus.google.com/share?url=<?php echo urlencode(get_the_permalink()); ?>\" target=\"_blank\"><i class=\"fa fa-google-plus\"></i></a>\n </li>\n \n </ul>\n \n <?php endif; ?>\t\n \n </div>\n </div>\n \n <div class=\"pm-hover-item-img\">\n \t<?php echo get_the_post_thumbnail( $postID ); ?>\n </div>\n \n </div>\n \n </div>\t\n \n <!-- Element Code / END -->\n\n <?php\n\n $output = ob_get_clean();\n\n /* ================ Render Shortcodes ================ */\n\n return $output;\n\n }", "function audio_logger_shortcode($atts = [], $content = null){\n\n ob_start();\n\n\n require_once(plugin_dir_path(__FILE__) . '/audio-logger-scripts.php');\n\n $output = ob_get_clean();\n $run_shortcodes = do_shortcode($output);\n return $run_shortcodes;\n}", "public function wppcShortcode($atts)\n\t\t\t{\n\t\t\t\t// Shortcode default atributes\n\t\t\t\t$atts = shortcode_atts(array('id' => 1), $atts);\n\n\t\t\t\tglobal $wpdb;\n\t\t\t\t$contest = $wpdb->get_row('SELECT * FROM '.WPPC_TABLE_ALL_CONTESTS.' WHERE id='.$atts['id']);\n\t\t\t\t$contestWinners = unserialize($contest->contest_winners);\n\t\t\t\t?>\n\n\t\t\t\t<div id=\"wppc-contest\">\n\t\t\t\t\t<div id=\"wppc-main\">\n\t\t\t\t\t\t<div id=\"contest-tabs\" style=\"display: inline;\">\n\t\t\t\t\t\t\t<ul id=\"contest-nav\" style=\"margin-bottom: 20px; margin-top: 20px;\">\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_about != ''): ?><li style=\"display: inline; margin-right: 2rem;\" <?php if ($contest->start_date > date('Y-m-d h:m:s', time())): ?>class=\"ui-state-default ui-corner-top ui-tabs-active ui-state-active\"<?php endif; ?>><a href=\"#contest-about\">About</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time())): ?><li style=\"display: inline; margin-right: 2rem;\" class=\"ui-state-default ui-corner-top ui-tabs-active ui-state-active\"><a href=\"#contest-photo-gallery\">Photo Gallery</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contestWinners['text'] != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-winners\">Winners</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_rules != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-rules\">Rules</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_prizes != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-prizes\">Prizes</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time()) && date('Y-m-d h:m:s', time()) <= date('Y-m-d', strtotime('+1 day' , strtotime($contest->end_registration)))): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-entry-form\">Entry form</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_contact != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-contact\">Contact</a></li><?php endif; ?>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<!-- Contest about -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_about != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-about\">';\n\t\t\t\t\t\t\t\t\t<?php echo $this->formatContent($contest->contest_about); ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest photo gallery -->\n\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time())): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-photo-gallery\">\n\t\t\t\t\t\t\t\t\t<?php echo $contest->contest_photo_gallery; ?>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t$totalDays = (strtotime($contest->end_registration) - strtotime($contest->start_date)) / (60*60*24);\n\t\t\t\t\t\t\t\t\t\t$weeks = $totalDays % 7 != 0 ? $totalDays / 7 + 1 : $totalDays / 7;\n\t\t\t\t\t\t\t\t\t?>\n\n\t\t\t\t\t\t\t\t\t<!-- Contest filters -->\n\t\t\t\t\t\t\t\t\t<div id=\"wppc-filters\" class=\"row\" style=\"margin-top:20px; margin-bottom: 20px;\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"<?php echo $contest->id ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t<select name=\"wppc-weeks\" id=\"wppc-weeks\" class=\"form-control wppc-select-filter\">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"week-all\">All weeks</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($week = 1; $week <= $weeks; $week ++)\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<option value=\"week-'.$week.'\">Week '.$week.'</option>';\n\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-md-offset-1\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"<?php echo $contest->id ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t<select name=\"wppc-points\" id=\"wppc-points\" class=\"form-control wppc-select-filter\">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-all\">All points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-0\">0 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-1\">1 point</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-2\">2 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-3\">3 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-4\">4 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-5\">5 points</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php if ($contest->photos_mobile_allowed > 0): ?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-md-offset-1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"<?php echo $contest->id ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" value=\"mobile-only\" class=\"btn btn-primary\" id=\"wppc-button-filter\">Mobile only</button>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<!-- Contest photos -->\n\t\t\t\t\t\t\t\t\t<div id=\"wppc-photos\">\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t$wpDir = wp_upload_dir();\n\t\t\t\t\t\t\t\t\t\t\t$contestDir = $wpDir['baseurl'].'/wppc-photos/wppc-photos-'.$contest->id.'/';\n\n\t\t\t\t\t\t\t\t\t\t\t// Get all photos for this contest\n\t\t\t\t\t\t\t\t\t\t\t$contestPhotos = $wpdb->get_results('SELECT * FROM '.WPPC_TABLE_CONTESTS_ENTRIES.' WHERE contest_id='.$contest->id.' AND visible=1');\n\n\t\t\t\t\t\t\t\t\t\t\t// Shuffle photos\n\t\t\t\t\t\t\t\t\t\t\tshuffle($contestPhotos);\n\n\t\t\t\t\t\t\t\t\t\t\t// Get points\n\t\t\t\t\t\t\t\t\t\t\t$contestPoints = array($contest->first_point, $contest->second_point, $contest->third_point, $contest->forth_point, $contest->fifth_point);\n\n\t\t\t\t\t\t\t\t\t\t\t$this->displayContestPhotos($contestPhotos, $contest->contest_name, $contest->end_vote, $contestDir, $contestPoints, get_permalink(get_the_id()), $contest->contest_social_description, $this->photosPerPage);\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?> \n\n\t\t\t\t\t\t\t<!-- Contest winners -->\n\t\t\t\t\t\t\t<?php if ($contestWinners['text'] != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-winners\">\n\t\t\t\t\t\t\t\t\t<?php echo $contestWinners['text'] ?>\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2>First prize</h2>\n\t\t\t\t\t\t\t\t\t\t<?php $firstWinner = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$contestWinners['first-winner'], ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $firstWinner['competitor_photo'] ?>\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo $contestDir ?>medium/<?php echo $firstWinner['competitor_photo'] ?>\" alt=\"<?php echo $firstWinner['photo_name'] ?>\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"no-padding-left col-md-6\">\n\t\t\t\t\t\t\t\t\t\t\t<h2>Second prize</h2>\n\t\t\t\t\t\t\t\t\t\t\t<?php $secondWinner = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$contestWinners['second-winner'], ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $secondWinner['competitor_photo'] ?>\" title=\"\" style=\"background-image: url('<?php echo $contestDir ?>medium/<?php echo $secondWinner['competitor_photo'] ?>'); position: relative; float: left; width: 100%; height: 300px; background-position: 50% 50%; background-repeat: no-repeat; background-size: cover;\">\n\t\t\t\t\t\t\t\t\t\t\t\t<!-- <img src=\"<?php echo $contestDir ?>medium/<?php echo $secondWinner['competitor_photo'] ?>\" alt=\"<?php echo $secondWinner['photo_name'] ?>\" /> -->\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"no-padding-right col-md-6\">\n\t\t\t\t\t\t\t\t\t\t\t<h2>Third prize</h2>\n\t\t\t\t\t\t\t\t\t\t\t<?php $thirdWinner = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$contestWinners['third-winner'], ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $thirdWinner['competitor_photo'] ?>\" title=\"\" style=\"background-image: url('<?php echo $contestDir ?>medium/<?php echo $thirdWinner['competitor_photo'] ?>'); position: relative; float: left; width: 100%; height: 300px; background-position: 50% 50%; background-repeat: no-repeat; background-size: cover;\">\n\t\t\t\t\t\t\t\t\t\t\t\t<!-- <img src=\"<?php echo $contestDir ?>medium/<?php echo $thirdWinner['competitor_photo'] ?>\" alt=\"<?php echo $thirdWinner['photo_name'] ?>\" /> -->\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2>Our favorites</h2>\n\t\t\t\t\t\t\t\t\t\t<?php foreach ($contestWinners['our-favorites'] as $photoID): ?>\n\t\t\t\t\t\t\t\t\t\t\t<?php $photo = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$photoID, ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $photo['competitor_photo'] ?>\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo $contestDir ?>thumbs/<?php echo $photo['competitor_photo'] ?>\" alt=\"<?php echo $photo['photo_name'] ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest rules -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_rules != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-rules\">\n\t\t\t\t\t\t\t\t\t<div id=\"rules-tabs\">\n\t\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t\t<li style=\"display: inline; margin-right: 2rem;\"><a href=\"#en-rules\"><img style=\"max-width: 30px;\" src=\"<?php echo WPPC_URI.'img/flags/uk-flag.png' ?>\" /></a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li style=\"display: inline; margin-right: 2rem;\"><a href=\"#ro-rules\"><img style=\"max-width: 30px;\" src=\"<?php echo WPPC_URI.'img/flags/ro-flag.png' ?>\" /></a></li>\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t<?php $rules = unserialize($contest->contest_rules); ?>\n\t\t\t\t\t\t\t\t\t\t<div id=\"en-rules\"><?php echo $rules['en'] ?></div>\n\t\t\t\t\t\t\t\t\t\t<div id=\"ro-rules\"><?php echo $rules['ro'] ?></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest prizes -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_prizes != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-prizes\">\n\t\t\t\t\t\t\t\t\t<?php echo $this->formatContent($contest->contest_prizes); ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest entry form -->\n\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time()) && date('Y-m-d h:m:s', time()) <= date('Y-m-d', strtotime('+1 day' , strtotime($contest->end_registration)))): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-entry-form\">\n\t\t\t\t\t\t\t\t\t<?php $this->setEntryForm($contest->id, $contest->contest_entry_form); ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest contact -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_contact != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-contact\">\n\t\t\t\t\t\t\t\t\t<?php echo $contest->contest_contact; ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t</div> <!-- end contest-tabs -->\n\t\t\t\t\t</div> <!-- end wppc-main -->\n\n\t\t\t\t\t<div id=\"wppc-sidebar\">\n\t\t\t\t\t\t<?php /* Follow us */ setFollowUs(); ?>\n\t\t\t\t\t\t<br/><br/>\n\t\t\t\t\t\t<?php echo $contest->contest_sidebar ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<?php\n\t\t\t}", "function sc_row( $attr, $content='' ) {\n\t$class = isset( $attr['class'] ) ? $attr['class'] : '';\n\tob_start();\n\t?>\n\t<div class=\"row <?php echo $class; ?>\">\n\t\t<?php echo do_shortcode( $content ); ?>\n\t</div>\n\t<?php\n\treturn ob_get_clean();\n}", "function wpestate_shortcodes(){\n wpestate_register_shortcodes();\n wpestate_tiny_short_codes_register();\n add_filter('widget_text', 'do_shortcode');\n}", "function pm_team_shortcode( $atts, $content = null) {\n\textract(shortcode_atts(array(\n\t\t'member_name'\t => '',\n\t\t'designation'\t => '',\n\t\t'member_image'\t => '',\n\t\t'member_desc'\t => '',\n\t\t'image_alt'\t => '',\n\t\t'team_fb' => '',\n\t\t'team_tr' => '',\n\t\t'team_gp' => '',\n\t\t'team_ld' => '',\n\t\t'team_sk' => '',\n\t\t'class'\t => '',\n\t), $atts));\n\n\t$result = '';\n\n\tob_start(); \n\n\t// Assigning a master css class and hooking into KC\n\t$master_class = apply_filters( 'kc-el-class', $atts );\n\t$master_class[] = 'pm-team';\n\n\t// Retrieving user define classes\n\t$classes = array( 'mob-bgrid-whole group' );\n\t(!empty($class)) ? $classes[] = $class : ''; ?>\n\n\t<div class=\"<?php echo esc_attr( implode( ' ', $master_class ) ); ?>\">\n\t\t<div id=\"team-wrapper\" class=\"<?php echo esc_attr( implode( ' ', $classes ) ); ?>\">\n\t\t\t<div class=\"bgrid member\">\n\t\t\t\t<div class=\"member-header\">\n\t\t\t\t\t<div class=\"member-pic\">\n\t\t\t\t\t\t<img src=\"<?php echo esc_url( $member_image ); ?>\" alt=\"<?php if( !empty( $image_alt ) ): echo esc_html( $image_alt ); else: echo esc_html( $member_name ); endif; ?>\"/> \t \t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"member-name\">\n\t\t\t\t\t\t<h3> <?php echo esc_html( $member_name ); ?> </h3>\n\t\t\t\t\t\t<span> <?php echo esc_html( $designation ); ?> </span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\t\t\n\t\t\t\t<div><?php echo esc_html( $member_desc ); ?></div> \n\t\t\t\t<ul class=\"member-social\">\n\t\t\t\t\t<?php \n\t\t\t\t\tif( ! empty( $team_fb ) ) : ?>\n\t\t\t\t\t<li><a href=\"<?php echo esc_url( $team_fb ); ?>\"><i class=\"fa fa-facebook\"></i></a></li>\n\t\t\t\t\t<?php endif; //End fb\n\t\t\t\t\tif( ! empty( $team_tr ) ) : ?>\t\n\t\t\t\t\t<li><a href=\"<?php echo esc_url( $team_tr ); ?>\"><i class=\"fa fa-twitter\"></i></a></li>\n\t\t\t\t\t<?php endif; //End tr\n\n\t\t\t\t\tif( ! empty( $team_gp ) ) : ?>\t\n\t\t\t\t\t<li><a href=\"<?php echo esc_url( $team_gp ); ?>\"><i class=\"fa fa-google-plus\"></i></a></li>\n\t\t\t\t\t<?php endif; //End tr\n\n\t\t\t\t\tif( ! empty( $team_ld ) ) : ?>\t\n\t\t\t\t\t<li><a href=\"<?php echo esc_url( $team_ld ); ?>\"><i class=\"fa fa-linkedin\"></i></a></li>\n\t\t\t\t\t<?php endif; //End tr\n\n\t\t\t\t\tif( ! empty( $team_sk ) ) : ?>\t\n\t\t\t\t\t<li><a href=\"<?php echo esc_url( $team_sk ); ?>\"><i class=\"fa fa-skype\"></i></a></li>\n\t\t\t\t<?php endif; ?>\t\n\t\t\t</ul>\n\t\t</div> <!-- /member -->\n\t</div> <!-- /team-wrapper -->\n</div> <!-- /pm-team -->\n\t<?php \n\t$result .= ob_get_clean();\n\treturn $result;\n\n}", "function display( array $atts, $content = '' ) {\n\n\t\tob_start();\n\n\t\tpublisher_set_prop( 'shortcode-bs-dribbble-atts', $atts );\n\n\t\tpublisher_get_view( 'shortcodes', 'bs-dribbble' );\n\n\t\tpublisher_clear_props();\n\n\t\treturn ob_get_clean();\n\n\t}", "public function on_shortcode ($atts, $content = '')\n {\n // NOTE: this function keeps the shortcode tags around because\n // we still need them in case we have to save the post.\n //\n // BUG: wpautop Works only if the shortcode tag and\n // attributes are on one line.\n\n // error_log (\"on_shortcode () ==> enter\");\n\n $this->page_has_shortcode = true;\n\n if (!$this->post_id) {\n // relevanssi uses get_the_content () instead of\n // the_content () and thus does not exercise the\n // 'the_content' filter stack\n return $content;\n }\n\n $atts = shortcode_atts (\n array (\n 'xml' => '',\n 'xslt' => '',\n 'params' => '',\n 'stringparams' => '',\n ),\n $atts\n );\n $xml = urljoin (get_opt ('xmlroot'), $atts['xml']);\n $xslt = urljoin (get_opt ('xsltroot'), $atts['xslt']);\n $params = wp_parse_args ($atts['params']);\n $stringparams = wp_parse_args ($atts['stringparams']);\n $xsltproc = get_opt ('xsltproc');\n\n $xml_file_time = intval (filemtime ($xml));\n $xslt_file_time = intval (filemtime ($xslt));\n\n if (!$xml_file_time) {\n return \"XML file $xml not found.\";\n }\n if (!$xslt_file_time) {\n return \"XSLT file $xslt not found.\";\n }\n\n // phpinfo ();\n // passthru ('/usr/bin/xsltproc --help');\n // passthru ('/vol/local/bin/tidy -help');\n\n // do a transform if any of page, xml, or xsl changed\n $do_transform = $this->cache_time < max ($this->modified_time, $xml_file_time, $xslt_file_time);\n // do a transform if http query param cap_xsl == 'reload'\n $do_transform = $do_transform || (get_query_var ('cap_xsl', '') == 'reload');\n $this->is_stale |= $do_transform;\n\n // do a revision only if page or xml changed\n $this->do_revision |= $this->cache_time < max ($this->modified_time, $xml_file_time);\n\n // Keep track of the XML files that make up this page.\n if (!in_array ($xml, $this->xmlfiles)) {\n $this->xmlfiles[] = $xml;\n }\n\n if (!$this->do_xsl || !$do_transform) {\n // Cached copy of this XSL is current. Return the cached copy. The\n // shortcode is already stripped, so we must add it again, so that\n // we can protect our content from the dreaded wp_autop.\n\n // error_log ('on_shortcode () ==> exit cached');\n return $this->wrap_in_shortcode ($content, $atts);\n }\n\n // The cached copy is out of date. Run the XSLT processor. Then add the\n // shortcodes back so we can save them into the db.\n\n $retval = 666;\n $cmdline = array ();\n $cmdline[] = $xsltproc;\n foreach ($params as $key => $value) {\n $key = escapeshellarg ($key);\n $value = escapeshellarg ($value);\n $cmdline[] = \"--param $key $value\";\n }\n foreach ($stringparams as $key => $value) {\n $key = escapeshellarg ($key);\n $value = escapeshellarg ($value);\n $cmdline[] = \"--stringparam $key $value\";\n }\n $cmdline[] = escapeshellarg ($xslt);\n $cmdline[] = escapeshellarg ($xml);\n // '| /vol/local/bin/tidy -qni -xml -utf8 -wrap 80'\n\n // redirect stderr to stdout to keep server error logs small\n // (seems to be a problem at uni-koeln.de)\n $cmdline[] = '2>/dev/null';\n\n $cmdline = join (' ', $cmdline);\n\n $output = array ();\n exec ($cmdline, $output, $retval);\n if (strncmp ($output[0], '<?xml ', 6) == 0) {\n array_shift ($output);\n }\n array_unshift ($output, '<div class=\"xsl-output\">');\n $output[] = '</div>';\n $content = join (\"\\n\", $output);\n\n // A hook to let other plugins know that we just transformed a file.\n // Used by the metadata extraction plugin to keep metadata up-to-date.\n do_action ('cap_xsl_transformed', $this->post_id, $xml, $xslt, $params, $stringparams);\n\n // error_log ('on_shortcode () ==> exit transformed');\n\n return $this->wrap_in_shortcode ($content, $atts);\n }" ]
[ "0.8234862", "0.8050699", "0.78636724", "0.782172", "0.7593737", "0.7546476", "0.7488747", "0.74048394", "0.7398054", "0.73966575", "0.7393855", "0.73363054", "0.73329675", "0.73271537", "0.7318686", "0.73160374", "0.73028284", "0.72967446", "0.7253649", "0.72084796", "0.7171508", "0.7170617", "0.7166447", "0.71232355", "0.71158725", "0.7112296", "0.70923066", "0.70796686", "0.7053879", "0.704803", "0.7024902", "0.7021672", "0.7013172", "0.6940497", "0.6934134", "0.69167215", "0.6915561", "0.6911629", "0.6909806", "0.69004416", "0.68843687", "0.6874016", "0.6864766", "0.6863738", "0.68570745", "0.6853855", "0.6851538", "0.6849459", "0.6847514", "0.684498", "0.6844979", "0.68378896", "0.68280244", "0.6822743", "0.6820609", "0.6807175", "0.67990476", "0.67695194", "0.676404", "0.67635226", "0.67627", "0.6750296", "0.67409414", "0.673836", "0.6718273", "0.67167825", "0.6700813", "0.6698498", "0.6696374", "0.6695156", "0.6689284", "0.66867566", "0.6677392", "0.66771936", "0.6675047", "0.6674974", "0.66744816", "0.66702384", "0.66654193", "0.6655778", "0.6651365", "0.66393125", "0.6637247", "0.6633312", "0.661344", "0.6612395", "0.6610299", "0.66019285", "0.66018915", "0.66008174", "0.6582608", "0.65797013", "0.65689087", "0.65681356", "0.6560493", "0.6557599", "0.6556812", "0.6554536", "0.65522105", "0.65510064" ]
0.6611519
86
/ Generate shortcode styles
function shortcode_styles( $styles ) { global $mpc_massive_styles; $css_id = uniqid( 'mpc-pricing-legend-' . rand( 1, 100 ) ); $style = ''; if ( $temp_style = MPC_CSS::background( $styles, 'prop_even' ) ) { $style .= '.mpc-pricing-column[id="' . $css_id . '"] .mpc-pricing__property:nth-child(even) {'; $style .= $temp_style; $style .= '}'; } if ( $temp_style = MPC_CSS::font( $styles, 'properties' ) ) { $style .= '.mpc-pricing-column[id="' . $css_id . '"] .mpc-pricing__property {'; $style .= $temp_style; $style .= '}'; } $mpc_massive_styles .= $style; return array( 'id' => $css_id, 'css' => $style, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function omfg_mobile_pro_shortcode_styles() {\n\n\tglobal $omfgmobilepro_pluginroot;\n\n\techo '<link rel=\"stylesheet\" href=\"'.$omfgmobilepro_pluginroot.'shortcodes/shortcodes.css\">';\n\n}", "function shortcode_template( $atts, $content = null ) {\r\n\t\t\tglobal $MPC_Shortcode, $mpc_ma_options;\r\n\t\t\tif ( ! defined( 'MPC_MASSIVE_FULL' ) || ( defined( 'MPC_MASSIVE_FULL' ) && $mpc_ma_options[ 'single_js_css' ] !== '1' ) ) {\r\n\t\t\t\t$this->enqueue_shortcode_scripts();\r\n\t\t\t}\r\n\r\n\t\t\t$atts = shortcode_atts( array(\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'preset' => '',\r\n\r\n\t\t\t\t/* General */\r\n\t\t\t\t'properties' => '',\r\n\t\t\t\t'properties_font_color' => '',\r\n\t\t\t\t'properties_font_align' => '',\r\n\t\t\t\t'properties_font_transform' => '',\r\n\t\t\t\t'prop_padding_css' => '',\r\n\r\n\t\t\t\t'prop_even_background_type' => 'color',\r\n\t\t\t\t'prop_even_background_color' => '',\r\n\t\t\t\t'prop_even_background_image' => '',\r\n\t\t\t\t'prop_even_background_image_size' => 'large',\r\n\t\t\t\t'prop_even_background_repeat' => 'no-repeat',\r\n\t\t\t\t'prop_even_background_size' => 'initial',\r\n\t\t\t\t'prop_even_background_position' => 'middle-center',\r\n\t\t\t\t'prop_even_background_gradient' => '#83bae3||#80e0d4||0;100||180||linear',\r\n ), $atts );\r\n\r\n\t\t\t/* Prepare */\r\n\t\t\t$styles = $this->shortcode_styles( $atts );\r\n\t\t\t$css_id = $styles[ 'id' ];\r\n\t\t\t$MPC_Shortcode[ 'pricing' ][ 'style' ] .= $styles[ 'css' ];\r\n\r\n\t\t\t$animation = MPC_Parser::animation( $atts );\r\n\t\t\t$properties = explode( '|||', $atts[ 'properties' ] );\r\n\r\n\t\t\t/* Fonts Presets */\r\n\t\t\t$title_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'title' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'title' ] : '';\r\n\t\t\t$price_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'price' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'price' ] : '';\r\n\t\t\t$props_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'prop' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'prop' ] : '';\r\n\r\n\t\t\t/* Prepare Parts */\r\n\t\t\t$title = $MPC_Shortcode[ 'pricing' ][ 'disable' ][ 'title' ] == '' ? '<div class=\"mpc-pricing__title' . $title_classes . '\">&nbsp;</div>' : '';\r\n\t\t\t$price = $MPC_Shortcode[ 'pricing' ][ 'disable' ][ 'price' ] == '' ? '<div class=\"mpc-pricing__price' . $price_classes . '\">&nbsp;</div>' : '';\r\n\r\n\t\t\t$props = '<div class=\"mpc-pricing__properties' . $props_classes . '\">';\r\n\t\t\tforeach( $properties as $property ) {\r\n\t\t\t\t$props .= '<div class=\"mpc-pricing__property\">' . $property . '</div>';\r\n\t\t\t}\r\n\t\t\t$props .= '</div>';\r\n\r\n\t\t\t/* Shortcode classes | Animation | Layout */\r\n\t\t\t$classes = $animation != '' ? ' mpc-animation' : '';\r\n\t\t\t$classes .= ' ' . esc_attr( $atts[ 'class' ] );\r\n\r\n\t\t\t/* Shortcode Output */\r\n\t\t\t$return = '<div id=\"' . $css_id . '\" class=\"mpc-pricing-column mpc-pricing-legend' . $classes . '\" ' . $animation . '>';\r\n\t\t\t\t$return .= $title . $price . $props;\r\n\t\t\t$return .= '</div>';\r\n\r\n\t\t\t$MPC_Shortcode[ 'pricing' ][ 'parts' ][ 'legend' ] = $return;\r\n\r\n\t\t\tglobal $mpc_frontend;\r\n\t\t\tif ( $mpc_frontend ) {\r\n\t\t\t\t$css = '<style>' . $styles[ 'css' ] . '</style>';\r\n\r\n\t\t\t\treturn $css;\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}", "function shortcode_styles( $styles ) {\r\n\t\t\tglobal $mpc_massive_styles;\r\n\t\t\t$css_id = uniqid( 'mpc_button_set-' . rand( 1, 100 ) );\r\n\t\t\t$style = '';\r\n\r\n\t\t\t// Add 'px'\r\n\t\t\t$styles[ 'icon_size' ] = $styles[ 'icon_size' ] != '' ? $styles[ 'icon_size' ] . ( is_numeric( $styles[ 'icon_size' ] ) ? 'px' : '' ) : '';\r\n\r\n\t\t\t$styles[ 'space' ] = is_numeric( $styles[ 'space' ] ) ? $styles[ 'space' ] / 2 >> 0 : '';\r\n\t\t\t$styles[ 'space' ] = $styles[ 'space' ] != '' ? $styles[ 'space' ] . 'px' : '';\r\n\r\n\t\t\t// Set\r\n\t\t\tif ( $styles[ 'margin_css' ] ) {\r\n\t\t\t\t$style .= '.mpc-button-set[id=\"' . $css_id . '\"] {';\r\n\t\t\t\t\t$style .= $styles[ 'margin_css' ];\r\n\t\t\t\t$style .= '}';\r\n\t\t\t}\r\n\r\n\t\t\t// Separator\r\n\t\t\t$inner_styles = array();\r\n\t\t\tif ( $styles[ 'border_css' ] ) { $inner_styles[] = $styles[ 'border_css' ]; }\r\n\t\t\tif ( $styles[ 'padding_css' ] ) { $inner_styles[] = $styles[ 'padding_css' ]; }\r\n\t\t\tif ( $temp_style = MPC_CSS::background( $styles ) ) { $inner_styles[] = $temp_style; }\r\n\t\t\tif ( $temp_style = MPC_CSS::icon( $styles ) ) { $inner_styles[] = $temp_style; }\r\n\r\n\t\t\tif ( count( $inner_styles ) > 0 ) {\r\n\t\t\t\t$style .= '.mpc-button-set[id=\"' . $css_id . '\"] .mpc-button-separator {';\r\n\t\t\t\t\t$style .= join( '', $inner_styles );\r\n\t\t\t\t$style .= '}';\r\n\t\t\t}\r\n\r\n\t\t\tif ( $styles[ 'icon_margin_css' ] ) {\r\n\t\t\t\t$style .= '.mpc-button-set[id=\"' . $css_id . '\"] .mpc-button-separator-box {';\r\n\t\t\t\t\t$style .= $styles[ 'icon_margin_css' ];\r\n\t\t\t\t$style .= '}';\r\n\t\t\t}\r\n\r\n\t\t\t// Button\r\n\t\t\tif ( $styles[ 'space' ] ) {\r\n\t\t\t\t$style .= '.mpc-button-set[id=\"' . $css_id . '\"].mpc-style--horizontal .mpc-button {';\r\n\t\t\t\t\t$style .= 'padding-left:' . $styles[ 'space' ] . ';';\r\n\t\t\t\t\t$style .= 'padding-right:' . $styles[ 'space' ] . ';';\r\n\t\t\t\t$style .= '}';\r\n\r\n\t\t\t\t$style .= '.mpc-button-set[id=\"' . $css_id . '\"].mpc-style--vertical .mpc-button {';\r\n\t\t\t\t\t$style .= 'padding-top:' . $styles[ 'space' ] . ';';\r\n\t\t\t\t\t$style .= 'padding-bottom:' . $styles[ 'space' ] . ';';\r\n\t\t\t\t$style .= '}';\r\n\t\t\t}\r\n\r\n\t\t\t$mpc_massive_styles .= $style;\r\n\r\n\t\t\treturn array(\r\n\t\t\t\t'id' => $css_id,\r\n\t\t\t\t'css' => $style,\r\n\t\t\t);\r\n\t\t}", "function shortcode_template( $atts, $content = null ) {\r\n\t\t\tglobal $mpc_ma_options;\r\n\t\t\tif ( ! defined( 'MPC_MASSIVE_FULL' ) || ( defined( 'MPC_MASSIVE_FULL' ) && $mpc_ma_options[ 'single_js_css' ] !== '1' ) ) {\r\n\t\t\t\t$this->enqueue_shortcode_scripts();\r\n\t\t\t}\r\n\r\n\t\t\t$atts = shortcode_atts( array(\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'preset' => '',\r\n\t\t\t\t'content_preset' => '',\r\n\t\t\t\t'style' => 'horizontal',\r\n\t\t\t\t'space' => '',\r\n\t\t\t\t'fullwidth' => '',\r\n\r\n\t\t\t\t'padding_css' => '',\r\n\t\t\t\t'margin_css' => '',\r\n\t\t\t\t'border_css' => '',\r\n\r\n\t\t\t\t'icon_type' => 'icon',\r\n\t\t\t\t'icon' => '',\r\n\t\t\t\t'icon_character' => '',\r\n\t\t\t\t'icon_image' => '',\r\n\t\t\t\t'icon_image_size' => 'thumbnail',\r\n\t\t\t\t'icon_preset' => '',\r\n\t\t\t\t'icon_color' => '#333333',\r\n\t\t\t\t'icon_size' => '',\r\n\r\n\t\t\t\t'icon_margin_css' => '',\r\n\t\t\t\t'icon_animation' => 'none',\r\n\r\n\t\t\t\t'background_type' => 'color',\r\n\t\t\t\t'background_color' => '',\r\n\t\t\t\t'background_image' => '',\r\n\t\t\t\t'background_image_size' => 'large',\r\n\t\t\t\t'background_repeat' => 'no-repeat',\r\n\t\t\t\t'background_size' => 'initial',\r\n\t\t\t\t'background_position' => 'middle-center',\r\n\t\t\t\t'background_gradient' => '#83bae3||#80e0d4||0;100||180||linear',\r\n\r\n\t\t\t\t'animation_in_type' => 'none',\r\n\t\t\t\t'animation_in_duration' => '300',\r\n\t\t\t\t'animation_in_delay' => '0',\r\n\t\t\t\t'animation_in_offset' => '100',\r\n\r\n\t\t\t\t'animation_loop_type' => 'none',\r\n\t\t\t\t'animation_loop_duration' => '1000',\r\n\t\t\t\t'animation_loop_delay' => '1000',\r\n\t\t\t\t'animation_loop_hover' => '',\r\n\t\t\t), $atts );\r\n\r\n\t\t\t$styles = $this->shortcode_styles( $atts );\r\n\t\t\t$css_id = $styles[ 'id' ];\r\n\r\n\t\t\t$icon = MPC_Parser::icon( $atts );\r\n\t\t\t$animation = MPC_Parser::animation( $atts );\r\n\r\n\t\t\t$classes = $animation != '' ? ' mpc-animation' : '';\r\n\t\t\t$classes .= $atts[ 'fullwidth' ] != '' ? ' mpc-fullwidth' : '';\r\n\t\t\t$classes .= $atts[ 'style' ] == 'horizontal' ? ' mpc-style--horizontal' : ' mpc-style--vertical';\r\n\t\t\t$classes .= ' ' . esc_attr( $atts[ 'class' ] );\r\n\r\n\t\t\t$separator_classes = $icon[ 'class' ] == '' && $icon[ 'content' ] == '' ? ' mpc-empty' : '';\r\n\r\n\t\t\tglobal $mpc_button_separator;\r\n\t\t\t$mpc_button_separator = '<span class=\"mpc-button-separator-wrap\"><span class=\"mpc-button-separator-box\"><span class=\"mpc-button-separator ' . $icon[ 'class' ] . $separator_classes . '\">' . $icon[ 'content' ] . '</span></span></span>';\r\n\r\n\t\t\t$return = '<div id=\"' . $css_id . '\" class=\"mpc-button-set mpc-init' . $classes . '\"' . $animation . ( $atts[ 'icon_animation' ] != 'none' ? ' data-animation=\"' . esc_attr( $atts[ 'icon_animation' ] ) . '\"' : '' ) . '>';\r\n\t\t\t\t$return .= do_shortcode( $content );\r\n\t\t\t$return .= '</div>';\r\n\r\n\t\t\t$mpc_button_separator = null;\r\n\r\n\t\t\tglobal $mpc_frontend;\r\n\t\t\tif ( $mpc_frontend ) {\r\n\t\t\t\t$return .= '<style>' . $styles[ 'css' ] . '</style>';\r\n\t\t\t}\r\n\r\n\t\t\treturn $return;\r\n\t\t}", "function my_customizer_styles() { ?>\n\n <style>\n h2.customize-control-category {\n\n display: block;\n margin-bottom: 0;\n\n color: #454545;\n\n font-size: 15px;\n line-height: 24px;\n\t\tfont-weight: bold;\n\t\ttext-transform: uppercase;\n letter-spacing: 2px;\n\n }\n\tp.customize-control-category-description {\n\n\t\tdisplay: block;\n\t\tmargin: 0 0 6px 0;\n\n\t\tcolor: #5E5E5E;\n\n\t\tfont-size: 12px;\n\t}\n </style>\n\n<? }", "function returnCustomCSS(){\n // vars\n $output = '';\n // build styling\n if(!empty(SELF::$WPgutenberg_ColorPalette) || !empty(SELF::$WPgutenberg_FontSizes)):\n // coloring\n if(!empty(SELF::$WPgutenberg_ColorPalette)):\n foreach (SELF::$WPgutenberg_ColorPalette as $colorkey => $color) {\n $output .= ' .has-' . prefix_core_BaseFunctions::Slugify($color[\"key\"]) . '-color {color: ' . $color[\"value\"] . ';}';\n $output .= ' .has-' . prefix_core_BaseFunctions::Slugify($color[\"key\"]) . '-background-color {background-color: ' . $color[\"value\"] . ';}';\n };\n endif;\n // font sizes\n if(!empty(SELF::$WPgutenberg_FontSizes)):\n foreach (SELF::$WPgutenberg_FontSizes as $sizekey => $size) {\n $output .= ' .has-' . prefix_core_BaseFunctions::Slugify($size[\"key\"]) . '-font-size {font-size: ' . $size[\"value\"] . 'px;}';\n };\n endif;\n endif;\n // return\n return $output;\n }", "private function \t\t\t\tbuild_style_tags() {\n\t\t$load=array(\n\t\t\t\"assets/css/bootstrap/bootstrap-grid.min.css\",\n\t\t\t\"assets/css/bootstrap/bootstrap-reboot.min.css\",\n\t\t\t\"assets/css/bootstrap/bootstrap.min.css\",\n\t\t\t\"assets/css/fontawesome/all.min.css\",\n\t\t\t\"assets/css/style.css\"\n\t\t);\n\n\n\t\treturn array_reduce(array_unique(array_merge($load, $this->section_css)), function($_acum, $_item) {\n\t\t\t$_acum.=<<<R\n\n\t\t<link rel=\"stylesheet\" title=\"estilos\" type=\"text/css\" href=\"{$_item}\" media=\"screen\" />\nR;\n\t\t\treturn $_acum;\n}, '');\n\t}", "public function build_css() {\n\t\t\t\n\t\t}", "protected function generateCSS() {}", "function crumble_list_shortcode($atts, $content = null) {\r\n\textract( shortcode_atts( \r\n\t\tarray( \r\n\t\t\t\"style\" => '1',\r\n\t\t\t\"underline\" => '1' \r\n\t\t), $atts));\r\n\t\r\n\t$code = '';\r\n\t$list_type = '';\r\n\t\r\n\tswitch ($style) {\r\n\t case 1:\r\n\t\t\t$list_type = 'unordered';\r\n\t\t\tbreak;\r\n\t case 2:\r\n\t \t\t$list_type = 'ordered';\r\n\t\t\tbreak;\r\n\r\n\t case 3:\r\n\t \t\t$list_type = 'square';\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t case 4:\r\n\t \t\t$list_type = 'circle';\r\n\t\t\tbreak;\r\n\r\n\t case 5:\r\n\t \t\t$list_type = 'bullets';\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t case 6:\r\n\t \t\t$list_type = 'arrow';\r\n\t\t\tbreak;\r\n\r\n\t case 7:\r\n\t \t\t$list_type = 'arrow2';\r\n\t\t\tbreak;\r\n\t\t\r\n\t}\r\n\t\r\n\tif( $underline == \"1\" ) {\r\n\t\t$code = '<ul class=\"list '.$list_type.' underline\">' . do_shortcode ( $content ) . '</ul>';\r\n\t} else {\r\n\t\t$code = '<ul class=\"list '.$list_type.'\">' . do_shortcode ( $content ) . '</ul>';\r\n\t}\r\n\t\r\n\treturn $code;\r\n\t\r\n}", "public function add_short_code()\n {\n add_shortcode('colorYourLife', array($this, 'generate_short_code_content'));\n }", "public function generate_short_code_content($atts)\n {\n $short_code_atts = shortcode_atts(array(), $atts);\n\n ob_start();\n\n $this->cyl_locate_template_part('shortcode/colorYourLife.php', []);\n\n return ob_get_clean();\n }", "function anva_custom_css() {\n\t$styles = '';\n\t$custom_css = anva_get_option( 'custom_css' );\n\t$custom_css = anva_compress( $custom_css );\n\tif ( ! empty( $custom_css ) ) {\n\t\t$styles = '<style type=\"text/css\">' . $custom_css . '</style>';\n\t}\n\techo $styles; \n}", "function cactus_shortcodes_wp_head(){\r\n\t\t// write out custom code for shortcodes\r\n\t\tif(is_singular()){\r\n\t\t\t$id = get_the_ID();\r\n\r\n\t\t\t$shortcodes = get_post_meta($id,'_cactus_shortcodes', true);\r\n\r\n\t\t\tif(isset($shortcodes) && is_array($shortcodes) && count($shortcodes) > 0){\r\n\r\n\t\t\t\tforeach($shortcodes as $tag){\r\n\r\n\t\t\t\t\t$config = businesshub_get_shortcode_config($tag);\r\n\r\n\t\t\t\t\tif(isset($config['js']) && count($config['js']) > 0){\r\n\t\t\t\t\t\t$idx = 1;\r\n\t\t\t\t\t\tforeach($config['js'] as $js => $params){\r\n\r\n\t\t\t\t\t\t\twp_enqueue_script($js);\r\n\t\t\t\t\t\t\t$idx++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(isset($config['css']) && count($config['css']) > 0){\r\n\t\t\t\t\t\t$idx = 1;\r\n\t\t\t\t\t\tforeach($config['css'] as $css => $params){\r\n\t\t\t\t\t\t\twp_enqueue_style($css);\r\n\t\t\t\t\t\t\t$idx++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t\t$css = get_post_meta($id,'_cactus_shortcodes_custom_css', true);\r\n\r\n\t\t\tif($css != ''){\r\n\t\t\t\techo '<style type=\"text/css\">' . $css . '</style>';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// write global custom css\r\n\t\t$custom_css = '';\r\n\t\t$global_custom_css = get_option('ct_custom_css');\r\n\r\n\t\tif(isset($global_custom_css) && is_array($global_custom_css)){\r\n\t\t\tforeach($global_custom_css as $key => $css){\r\n\t\t\t\t// check if widget is active\r\n\t\t\t\tpreg_match('/(.*)\\[(.*)\\]/', $key, $matches);\r\n\t\t\t\t// widget id_base\r\n\t\t\t\t$id_base = substr($matches[1], 7);\r\n\r\n\t\t\t\tif(is_active_widget(false, $id_base . '-' . $matches[2], $id_base, true)){\r\n\t\t\t\t\t$custom_css .= $css;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif($custom_css != ''){\r\n\t\t\techo '<style type=\"text/css\" id=\"ct_global_custom_css\">' . $custom_css . '</style>';\r\n\t\t}\r\n\r\n\t\t// write custom css used in Theme Options\r\n\t\t$ot_custom_css = get_option('ct_ot_custom_css');\r\n\r\n\t\tif($ot_custom_css != ''){\r\n\t\t\techo '<style type=\"text/css\" id=\"ct_global_ot_custom_css\">' . $ot_custom_css . '</style>';\r\n\t\t}\r\n\r\n\t\t// enqueue_scripts and enqueue_styles for shortcodes used in widget\r\n\t\t$shortcodes = get_option('ct_shortcodes_used_in_widgets');\r\n\r\n\t\tif(isset($shortcodes) && is_array($shortcodes)){\r\n\t\t\tforeach($shortcodes as $key => $tags){\r\n\t\t\t\t// check if widget is active\r\n\t\t\t\tpreg_match('/(.*)\\[(.*)\\]/', $key, $matches);\r\n\t\t\t\t// widget id_base\r\n\t\t\t\t$id_base = substr($matches[1], 7);\r\n\r\n\t\t\t\tif(is_active_widget(false, $id_base . '-' . $matches[2], $id_base, true)){\r\n\t\t\t\t\tforeach($tags as $tag){\r\n\t\t\t\t\t\t$config = businesshub_get_shortcode_config($tag);\r\n\r\n\t\t\t\t\t\tif(isset($config['js']) && count($config['js']) > 0){\r\n\r\n\t\t\t\t\t\t\tforeach($config['js'] as $js => $params){\r\n\t\t\t\t\t\t\t\twp_enqueue_script($js);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(isset($config['css']) && count($config['css']) > 0){\r\n\r\n\t\t\t\t\t\t\tforeach($config['css'] as $css => $params){\r\n\t\t\t\t\t\t\t\twp_enqueue_style($css);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// enqueue_scripts and enqueue_styles for shortcodes used in theme options\r\n\t\t$shortcodes = get_option('ct_shortcodes_used_in_ot');\r\n\r\n\t\tif(isset($shortcodes) && is_array($shortcodes) && isset($tag)){\r\n\r\n\t\t\tforeach($shortcodes as $tags){\r\n\t\t\t\t$config = businesshub_get_shortcode_config($tag);\r\n\r\n\t\t\t\tif(isset($config['js']) && count($config['js']) > 0){\r\n\r\n\t\t\t\t\tforeach($config['js'] as $js => $params){\r\n\t\t\t\t\t\twp_enqueue_script($js);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(isset($config['css']) && count($config['css']) > 0){\r\n\r\n\t\t\t\t\tforeach($config['css'] as $css => $params){\r\n\t\t\t\t\t\twp_enqueue_style($css);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function shortcode_map() {\r\n\t\t\tif ( ! function_exists( 'vc_map' ) ) {\r\n\t\t\t\treturn '';\r\n\t\t\t}\r\n\r\n\t\t\t$base = array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_preset',\r\n\t\t\t\t\t'heading' => __( 'Style Preset', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'preset',\r\n\t\t\t\t\t'tooltip' => MPC_Helper::style_presets_desc(),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'shortcode' => $this->shortcode,\r\n\t\t\t\t\t'wide_modal' => true,\r\n\t\t\t\t\t'description' => __( 'Choose preset or create new one.', 'mpc' ),\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_content',\r\n\t\t\t\t\t'heading' => __( 'Content Preset', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'content_preset',\r\n\t\t\t\t\t'tooltip' => MPC_Helper::content_presets_desc(),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'shortcode' => $this->shortcode,\r\n\t\t\t\t\t'extended' => true,\r\n\t\t\t\t\t'description' => __( 'Choose preset or create new one.', 'mpc' ),\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'dropdown',\r\n\t\t\t\t\t'heading' => __( 'Style', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'style',\r\n\t\t\t\t\t'admin_label' => true,\r\n\t\t\t\t\t'tooltip' => __( 'Select buttons set style:<br><b>Horizontal</b>: horizontal buttons side by side;<br><b>Vertical</b>: vertical buttons one under the other.', 'mpc' ),\r\n\t\t\t\t\t'value' => array(\r\n\t\t\t\t\t\t__( 'Horizontal', 'mpc' ) => 'horizontal',\r\n\t\t\t\t\t\t__( 'Vertical', 'mpc' ) => 'vertical',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'std' => 'horizontal',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_text',\r\n\t\t\t\t\t'heading' => __( 'Separator Space', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'space',\r\n\t\t\t\t\t'tooltip' => __( 'Define separator space between buttons. Adds additional space on sides of separator to prevent it from overlapping button content.', 'mpc' ),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'addon' => array(\r\n\t\t\t\t\t\t'icon' => 'dashicons dashicons-leftright',\r\n\t\t\t\t\t\t'align' => 'prepend',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'label' => 'px',\r\n\t\t\t\t\t'validate' => true,\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'checkbox',\r\n\t\t\t\t\t'heading' => __( 'Full Width', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'fullwidth',\r\n\t\t\t\t\t'tooltip' => __( 'Check to stretch buttons to 100% width of their container.', 'mpc' ),\r\n\t\t\t\t\t'value' => array( __( 'Enable', 'mpc' ) => 'true' ),\r\n\t\t\t\t\t'std' => '',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t$icon_animation = array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_animation',\r\n\t\t\t\t\t'heading' => __( 'Animation Effect', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'icon_animation',\r\n\t\t\t\t\t'tooltip' => __( 'Choose one of the animation types. You can apply the animation to the preview box on the right with the <b>Refresh</b> button.', 'mpc' ),\r\n\t\t\t\t\t'value' => MPC_Snippets::$animations_loop_list,\r\n\t\t\t\t\t'std' => 'none',\r\n\t\t\t\t\t'group' => __( 'Separator', 'mpc' ),\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-12 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t$margin = MPC_Snippets::vc_margin();\r\n\t\t\t$animation = MPC_Snippets::vc_animation();\r\n\t\t\t$class = MPC_Snippets::vc_class();\r\n\r\n\t\t\t$background = MPC_Snippets::vc_background( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$border = MPC_Snippets::vc_border( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$padding = MPC_Snippets::vc_padding( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$icon_margin = MPC_Snippets::vc_margin( array( 'prefix' => 'icon', 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$icon = MPC_Snippets::vc_icon( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\r\n\t\t\t$params = array_merge( $base, $margin, $icon, $icon_animation, $background, $border, $padding, $icon_margin, $animation, $class );\r\n\r\n\t\t\treturn array(\r\n\t\t\t\t'name' => __( 'Buttons Set', 'mpc' ),\r\n\t\t\t\t'description' => __( 'Buttons with separator', 'mpc' ),\r\n\t\t\t\t'base' => 'mpc_button_set',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'icon' => 'mpc-shicon-buttons-set',\r\n\t\t\t\t'category' => __( 'MPC', 'mpc' ),\r\n\t\t\t\t'as_parent' => array( 'only' => 'mpc_button, mpc_lightbox' ),\r\n\t\t\t\t'content_element' => true,\r\n\t\t\t\t\"js_view\" => 'VcColumnView',\r\n\t\t\t\t'params' => $params,\r\n\t\t\t);\r\n\t\t}", "function register_style() {\n}", "public function create_shortcodes() {\n \n }", "function hello_shortcode($atts, $content = null, $tag){\n //put $atts in $a..\n $a = shortcode_atts(array(\n 'class' => 'no_class'\n ), $atts);\n\n return \"<div class='small=12 panel rounded \" . $a['class'] . \"'>\" . $content . \"</div>\";\n}", "function svs_css_customizer() {\n\t?>\n\t<style type = \"text/css\">\n\t\n\t\tbody { background-color: #<?php echo get_theme_mod('background_color'); ?>;}\n\t\t\n\t\th1,h2,h3,h4,h5,h6,h7,h8 {color: <?php echo get_theme_mod('headers_color'); ?>;}\n\t\t\n\t\ta {\tcolor: <?php echo get_theme_mod('link_color'); ?>;}\n\t\t\n\t\ta:hover, a:focus { color: <?php echo get_theme_mod('link_hover_color'); ?>;}\n\t\n\t<?php\n\t$content_layout = get_theme_mod('content_layout_setting');\n\n\tif ($content_layout == 'compressed') : ?>\n\t\t\n\t\t.the-post {\n\t\t\twidth: 95%;\n\t\t\theight: 100%; <!-- important!!! -->\n\t\t\tmargin: 5px 0 15px 0;\n\t\t\tborder-bottom: 1px solid #eee;\n\t\t}\n\t\t\n\t\t.vid-col {\n\t\t\twidth: 100%;\n\n\t\t}\n\t\t\n\t\t.vid-title {\n\t\t\tmargin-bottom: 5px;\n\t\t}\n\t\t\n\t\t.content-show, .content-hide {\n\t\t\tfont-size: 11px;\n\t\t\tfloat: right;\n\t\t}\n\n\t\t.content-layout{ display: none;}\n\t\t\n\t\n\t<?php endif;?>\n\t\t\n\t</style>\n\t\n\t<?php\n}", "public function init()\n {\n $this->shortcode->getHandlers()->add('color', function (ShortcodeInterface $sc) {\n $color = $sc->getParameter('c', null);\n $bgColor = $sc->getParameter('bg', null);\n $padding = $sc->getParameter('padding', 3);\n\n if ($color || $bgColor) {\n $colorString = sprintf(\"%s%s%s\",\n $color !== null ? \"color:{$color};\" : '',\n $bgColor !== null ? \"background-color:{$bgColor};\" : '',\n $bgColor !== null ? \"padding-left:{$padding}px;padding-right:{$padding}px;\" : ''\n );\n\n return '<span style=\"' . $colorString . '\">' . $sc->getContent() . '</span>';\n }\n });\n }", "function ra_builder_css()\n\t\t{\n\t\t\t$this->output('<meta name=\"generator\" content=\"rahularyan\">');\n\t\t\tif($this->template == 'user'){\n\t\t\t\tif(defined('QA_WORDPRESS_INTEGRATE_PATH')){\n\t\t\t\t\t$id = $this->content['raw']['userid'];\n\t\t\t\t\t$cover = get_user_meta( $id, 'cover' );\n\t\t\t\t\t$cover = $cover[0];\n\t\t\t\t}else{\n\t\t\t\t\t@$cover = ra_user_profile(@$this->content['raw']['account']['handle'], 'cover');\n\t\t\t\t}\n\t\t\t\tif($cover)\n\t\t\t\t\t$this->output('<style>#user .user-bar{background:url(\"'.qa_opt('site_url').'images/'.$cover.'\") no-repeat scroll 0 0 / cover;}</style>');\n\t\t\t\t\n\t\t\t}\n\t\t\tif(ra_is_home()){\t\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_home').ra_db_builder('css_bottom').'</style>');\n\t\t\t}elseif($this->template == 'questions'){\t\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_questions').ra_db_builder('css_bottom').'</style>');\n\t\t\t}elseif($this->template == 'unanswered'){\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_unanswered').ra_db_builder('css_bottom').'</style>');\n\t\t\t}elseif($this->template == 'tags'){\t\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_tags').ra_db_builder('css_bottom').'</style>');\n\t\t\t}elseif($this->template == 'categories'){\t\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_categories').ra_db_builder('css_bottom').'</style>');\n\t\t\t}elseif($this->template == 'users'){\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_users').ra_db_builder('css_bottom').'</style>');\n\t\t\t}elseif($this->template == 'user'){\t\t\t\t\n\t\t\t\t$this->output('<style>'.ra_db_builder('css_user').ra_db_builder('css_bottom').'</style>');\n\t\t\t}\n\t\t}", "function style(){\r\n\t\t// Sorry mom :(\r\n\t\t$style=\"<style>\r\n\t\t\t.debug{\r\n\t\t\t\tposition: relative;\r\n\t\t\t\tpadding: 15px;\r\n\t\t\t\tmargin: 15px;\r\n\t\t\t\tborder: 1px solid black;\r\n\t\t\t\tcolor: black;\r\n\t\t\t\tfont-size: 14px;\r\n\t\t\t\tfont-family: monospace;\r\n\t\t\t\toverflow: auto;\r\n\t\t\t\t\r\n\t\t\t\ttext-align: left;\r\n\t\t\t\tline-height: 14px;\r\n\t\t\t\tborder-radius: 10px;\r\n\t\t\t\tmoz-border-radiuz: 10px;\r\n\t\t\t\t\r\n\t\t\t\tbackground-image: linear-gradient(bottom, rgb(251,255,199) 90%, rgb(227,222,157) 100%);\r\n\t\t\t\tbackground-image: -o-linear-gradient(bottom, rgb(251,255,199) 90%, rgb(227,222,157) 100%);\r\n\t\t\t\tbackground-image: -moz-linear-gradient(bottom, rgb(251,255,199) 90%, rgb(227,222,157) 100%);\r\n\t\t\t\tbackground-image: -webkit-linear-gradient(bottom, rgb(251,255,199) 90%, rgb(227,222,157) 100%);\r\n\t\t\t\tbackground-image: -ms-linear-gradient(bottom, rgb(251,255,199) 90%, rgb(227,222,157) 100%);\r\n\t\t\t\t\r\n\t\t\t\tbackground-image: -webkit-gradient(\r\n\t\t\t\t\tlinear,\r\n\t\t\t\t\tleft bottom,\r\n\t\t\t\t\tleft top,\r\n\t\t\t\t\tcolor-stop(0.9, rgb(251,255,199)),\r\n\t\t\t\t\tcolor-stop(1, rgb(227,222,157))\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t</style>\r\n\t\t \";\r\n\t\treturn $style;\r\n\t}", "public function builder_additional_styles() { ?>\n\n <style id=\"cv-builder-cv_section-module\">\n .cv-module-cv_section .cv-sidebar-representation {\n display: none;\n }\n @media (min-width: 800px) {\n .cv-module-cv_section:not(.sidebar_layout-no-sidebar) > .cv-sidebar-representation {\n display: block;\n position: absolute;\n top: 0; bottom: 0;\n margin: auto 0;\n height: 35px;\n line-height: 35px;\n width: 125px;\n text-align: center;\n font-weight: 400;\n font-size: 14px;\n color: #999;\n }\n .cv-module-cv_section:not(.sidebar_layout-no-sidebar) > .cv-module-content {\n min-height: 185px;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-module-content {\n border-left: 125px solid #eee !important;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-sidebar-representation {\n left: 0;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-module-content {\n border-right: 125px solid #eee !important;\n }\n .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-sidebar-representation {\n right: 0;\n }\n html:not([dir=\"rtl\"]) .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-module-content {\n -webkit-border-radius: 0px 3px 3px 0px;\n border-radius: 0px 3px 3px 0px;\n }\n html:not([dir=\"rtl\"]) .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-sidebar-representation {\n left: 35px;\n }\n html[dir=\"rtl\"] .cv-module-cv_section.sidebar_layout-sidebar-left > .cv-module-content {\n -webkit-border-radius: 3px 0px 0px 3px;\n border-radius: 3px 0px 0px 3px;\n }\n html[dir=\"rtl\"] .cv-module-cv_section.sidebar_layout-sidebar-right > .cv-sidebar-representation {\n right: 35px;\n }\n }\n </style>\n\n <?php }", "function BWB_generate_css( $selector, $style, $mod_name, $prefix='', $postfix='', $echo=true, $type=false ) {\n $return = '';\n $property = false;\n \n if ( gettype( $mod_name ) == 'array' ) :\n $property = $mod_name['property'];\n $mod_name = $mod_name['mod_name'];\n endif;\n \n \n $mod_name = plugin_prefix($mod_name);\n\n $mod = get_theme_mod($mod_name);\n \n if ($property) :\n $mod = $mod[$property];\n endif;\n\n if ($type) {\n \n if ( $type == 'boolean' ) :\n\n if ( is_null( $mod ) || !$mod) :\n $mod = 'none';\n else :\n $mod = 'block';\n endif; \n endif;\n }\n \n if ( ! empty( $mod ) ) {\n\n $return = sprintf('%s { %s:%s; }',\n $selector,\n $style,\n $prefix . $mod . $postfix\n );\n if ( $echo ) {\n echo $return;\n }\n }\n return $return;\n}", "function generate_advanced_css() {\n\t\t$generate_settings = wp_parse_args(\n\t\t\tget_option( 'generate_settings', array() ),\n\t\t\tgenerate_get_color_defaults()\n\t\t);\n\n\t\t$css = new GeneratePress_CSS;\n\n\t\t$css->set_selector( '.top-bar' );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['top_bar_background_color'] ) );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['top_bar_text_color'] ) );\n\n\t\t$css->set_selector( '.top-bar a,.top-bar a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['top_bar_link_color'] ) );\n\n\t\t$css->set_selector( '.top-bar a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['top_bar_link_color_hover'] ) );\n\n\t\t$css->set_selector( '.site-header' );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['header_background_color'] ) );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['header_text_color'] ) );\n\n\t\t$css->set_selector( '.site-header a,.site-header a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['header_link_color'] ) );\n\n\t\t$css->set_selector( '.site-header a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['header_link_hover_color'] ) );\n\n\t\t$css->set_selector( '.main-title a,.main-title a:hover,.main-title a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['site_title_color'] ) );\n\n\t\t$css->set_selector( '.site-description' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['site_tagline_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation,.main-navigation ul ul' );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li a,.menu-toggle' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li:hover > a,.main-navigation .main-nav ul li:focus > a, .main-navigation .main-nav ul li.sfHover > a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_hover_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_hover_color'] ) );\n\n\t\t$css->set_selector( 'button.menu-toggle:hover,button.menu-toggle:focus,.main-navigation .mobile-bar-items a,.main-navigation .mobile-bar-items a:hover,.main-navigation .mobile-bar-items a:focus' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li[class*=\"current-menu-\"] > a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_current_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_current_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li[class*=\"current-menu-\"] > a:hover,.main-navigation .main-nav ul li[class*=\"current-menu-\"].sfHover > a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_current_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_current_color'] ) );\n\n\t\t$css->set_selector( '.navigation-search input[type=\"search\"],.navigation-search input[type=\"search\"]:active' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_background_hover_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_hover_color'] ) );\n\n\t\t$css->set_selector( '.navigation-search input[type=\"search\"]:focus' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_hover_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_hover_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation ul ul' );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li:hover > a,.main-navigation .main-nav ul ul li:focus > a,.main-navigation .main-nav ul ul li.sfHover > a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_hover_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_hover_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li[class*=\"current-menu-\"] > a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_current_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_current_color'] ) );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li[class*=\"current-menu-\"] > a:hover,.main-navigation .main-nav ul ul li[class*=\"current-menu-\"].sfHover > a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_current_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_current_color'] ) );\n\n\t\t$css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['content_text_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['content_background_color'] ) );\n\n\t\t$css->set_selector( '.inside-article a,.inside-article a:visited,.paging-navigation a,.paging-navigation a:visited,.comments-area a,.comments-area a:visited,.page-header a,.page-header a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['content_link_color'] ) );\n\n\t\t$css->set_selector( '.inside-article a:hover,.paging-navigation a:hover,.comments-area a:hover,.page-header a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['content_link_hover_color'] ) );\n\n\t\t$css->set_selector( '.entry-header h1,.page-header h1' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['content_title_color'] ) );\n\n\t\t$css->set_selector( '.entry-title a,.entry-title a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['blog_post_title_color'] ) );\n\n\t\t$css->set_selector( '.entry-title a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['blog_post_title_hover_color'] ) );\n\n\t\t$css->set_selector( '.entry-meta' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['entry_meta_text_color'] ) );\n\n\t\t$css->set_selector( '.entry-meta a,.entry-meta a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['entry_meta_link_color'] ) );\n\n\t\t$css->set_selector( '.entry-meta a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['entry_meta_link_color_hover'] ) );\n\n\t\t$css->set_selector( 'h1' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['h1_color'] ) );\n\n\t\t$css->set_selector( 'h2' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['h2_color'] ) );\n\n\t\t$css->set_selector( 'h3' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['h3_color'] ) );\n\n\t\t$css->set_selector( 'h4' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['h4_color'] ) );\n\n\t\t$css->set_selector( 'h5' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['h5_color'] ) );\n\n\t\t$css->set_selector( 'h6' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['h6_color'] ) );\n\n\t\t$css->set_selector( '.sidebar .widget' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_text_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['sidebar_widget_background_color'] ) );\n\n\t\t$css->set_selector( '.sidebar .widget a,.sidebar .widget a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_link_color'] ) );\n\n\t\t$css->set_selector( '.sidebar .widget a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_link_hover_color'] ) );\n\n\t\t$css->set_selector( '.sidebar .widget .widget-title' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_title_color'] ) );\n\n\t\t$css->set_selector( '.footer-widgets' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_widget_text_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['footer_widget_background_color'] ) );\n\n\t\t$css->set_selector( '.footer-widgets a,.footer-widgets a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_widget_link_color'] ) );\n\n\t\t$css->set_selector( '.footer-widgets a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_widget_link_hover_color'] ) );\n\n\t\t$css->set_selector( '.footer-widgets .widget-title' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_widget_title_color'] ) );\n\n\t\t$css->set_selector( '.site-info' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_text_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['footer_background_color'] ) );\n\n\t\t$css->set_selector( '.site-info a,.site-info a:visited' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_link_color'] ) );\n\n\t\t$css->set_selector( '.site-info a:hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_link_hover_color'] ) );\n\n\t\t$css->set_selector( '.footer-bar .widget_nav_menu .current-menu-item a' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['footer_link_hover_color'] ) );\n\n\t\t$css->set_selector( 'input[type=\"text\"],input[type=\"email\"],input[type=\"url\"],input[type=\"password\"],input[type=\"search\"],input[type=\"tel\"],input[type=\"number\"],textarea,select' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['form_text_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['form_background_color'] ) );\n\t\t$css->add_property( 'border-color', esc_attr( $generate_settings['form_border_color'] ) );\n\n\t\t$css->set_selector( 'input[type=\"text\"]:focus,input[type=\"email\"]:focus,input[type=\"url\"]:focus,input[type=\"password\"]:focus,input[type=\"search\"]:focus,input[type=\"tel\"]:focus,input[type=\"number\"]:focus,textarea:focus,select:focus' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['form_text_color_focus'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['form_background_color_focus'] ) );\n\t\t$css->add_property( 'border-color', esc_attr( $generate_settings['form_border_color_focus'] ) );\n\n\t\t$css->set_selector( 'button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"],a.button,a.button:visited,a.wp-block-button__link:not(.has-background)' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['form_button_text_color'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['form_button_background_color'] ) );\n\n\t\t$css->set_selector( 'button:hover,html input[type=\"button\"]:hover,input[type=\"reset\"]:hover,input[type=\"submit\"]:hover,a.button:hover,button:focus,html input[type=\"button\"]:focus,input[type=\"reset\"]:focus,input[type=\"submit\"]:focus,a.button:focus,a.wp-block-button__link:not(.has-background):active,a.wp-block-button__link:not(.has-background):focus,a.wp-block-button__link:not(.has-background):hover' );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['form_button_text_color_hover'] ) );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['form_button_background_color_hover'] ) );\n\n\t\t$css->set_selector( '.generate-back-to-top,.generate-back-to-top:visited' );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['back_to_top_background_color'] ) );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['back_to_top_text_color'] ) );\n\n\t\t$css->set_selector( '.generate-back-to-top:hover,.generate-back-to-top:focus' );\n\t\t$css->add_property( 'background-color', esc_attr( $generate_settings['back_to_top_background_color_hover'] ) );\n\t\t$css->add_property( 'color', esc_attr( $generate_settings['back_to_top_text_color_hover'] ) );\n\n\t\tdo_action( 'generate_colors_css', $css );\n\n\t\treturn apply_filters( 'generate_colors_css_output', $css->css_output() );\n\t}", "function adventure_inline_css() {\r\n \r\n //Favicon\r\n if ( get_theme_mod('favicon_setting') != '' ) {\r\n echo '<!-- Favicon Image -->' . \"\\n\";\r\n echo '<link rel=\"shortcut icon\" href=\"' . get_theme_mod('favicon_setting') . '\" />' . \"\\n\\n\";}\r\n\t\t\r\n\t\t// Convert Content from Hex to RGB\r\n\t\tif ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) {\r\n\t\t\t$hex = str_replace(\"#\", \"\", get_theme_mod('backgroundcolor_setting'));\r\n\t\t\tif(strlen($hex) == 3) {\r\n\t\t\t\t$r = hexdec(substr($hex,0,1).substr($hex,0,1));\r\n\t\t\t\t$g = hexdec(substr($hex,1,1).substr($hex,1,1));\r\n\t\t\t\t$b = hexdec(substr($hex,2,1).substr($hex,2,1)); }\r\n\t\t\telse {\r\n\t\t\t\t$r = hexdec(substr($hex,0,2));\r\n\t\t\t\t$g = hexdec(substr($hex,2,2));\r\n\t\t\t\t$b = hexdec(substr($hex,4,2)); } }\r\n\r\n\t\t// Convert Sidebar from Hex to RGB\r\n\t\tif ( ( get_theme_mod('sidebarcolor_setting') != '#000000' ) ) {\r\n\t\t$hexs = str_replace(\"#\", \"\", get_theme_mod('sidebarcolor_setting'));\r\n\r\n\t\tif(strlen($hexs) == 3) {\r\n\t\t\t$rs = hexdec(substr($hexs,0,1).substr($hexs,0,1));\r\n\t\t\t$gs = hexdec(substr($hexs,1,1).substr($hexs,1,1));\r\n\t\t\t$bs = hexdec(substr($hexs,2,1).substr($hexs,2,1)); }\r\n\t\telse {\r\n\t\t\t$rs = hexdec(substr($hexs,0,2));\r\n\t\t\t$gs = hexdec(substr($hexs,2,2));\r\n\t\t\t$bs = hexdec(substr($hexs,4,2)); } }\r\n\t\t\r\n if ( ( get_theme_mod('titlefontstyle_setting') != 'Default') || (get_theme_mod('taglinefontstyle_setting') != 'Default') || (get_theme_mod('bodyfontstyle_setting') != 'Default') || (get_theme_mod('headerfontstyle_setting') != 'Default')) {\r\n echo '<!-- Custom Font Styles -->' . \"\\n\";\r\n if (get_theme_mod('titlefontstyle_setting') != 'Default') {echo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('titlefontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n if (get_theme_mod('taglinefontstyle_setting') != 'Default') {\techo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('taglinefontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n if (get_theme_mod('bodyfontstyle_setting') != 'Default') {\techo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('bodyfontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n if (get_theme_mod('headerfontstyle_setting') != 'Default') {\techo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('headerfontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n echo '<!-- End Custom Fonts -->' . \"\\n\\n\";}\r\n\r\n\t\techo '<!-- Custom CSS Styles -->' . \"\\n\";\r\n echo '<style type=\"text/css\" media=\"screen\">' . \"\\n\";\r\n if (is_page() || is_single()) $featured_background = get_post_meta( get_queried_object_ID(), 'featured-background', true ); if (!empty($featured_background)) echo ' body, body.custom-background {background-image:url(' . $featured_background . '); background-size:cover;}' . \"\\n\";\r\n\t\tif ( get_theme_mod('backgroundsize_setting') != 'auto' ) echo '\tbody, body.custom-background {background-size:' . get_theme_mod('backgroundsize_setting') . ';}' . \"\\n\";\r\n\t\tif ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) echo '\t.contents {background: rgba(' . $r . ',' . $g . ', ' . $b . ', ' . get_theme_mod('contentbackground_setting') . ');}' . \"\\n\";\r\n if ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) echo ' @media only screen and (max-width:55em) { .contents {background: rgba(' . $r . ',' . $g . ', ' . $b . ', .95 );} }' . \"\\n\";\r\n\t\tif ( ( get_theme_mod('sidebarcolor_setting') != '#000000' ) || ( get_theme_mod('sidebarbackground_setting') != '.50' ) ) echo '\taside {background: rgba(' . $rs . ',' . $gs . ', ' . $bs . ', ' . get_theme_mod('sidebarbackground_setting') . ');}' . \"\\n\";\r\n\t\tif ( get_theme_mod('titlecolor_setting') != '#eee2d6' ) echo '\t.header h1 a {color:' . get_theme_mod('titlecolor_setting') . ';}' . \"\\n\";\r\n\t\tif ( get_theme_mod('taglinecolor_setting') != '#066ba0' ) echo '\t.header h1 i {color:' . get_theme_mod('taglinecolor_setting') . ';}' . \"\\n\";\r\n\t\tif ( get_theme_mod('title_size_setting') != '4.0' ) echo '\t.header h1 {font-size:' . get_theme_mod('title_size_setting') . 'em;}' . \"\\n\"; \r\n\t\tif ( get_theme_mod('tagline_rotation_setting') != '-1.00' ) echo '\t.header h1 i {-moz-transform:rotate(' . get_theme_mod('tagline_rotation_setting') . 'deg); transform:rotate(' . get_theme_mod('tagline_rotation_setting') . 'deg);}' . \"\\n\";\r\n\t\tif ( (get_theme_mod('bannerimage_setting') != 'purple.png') && (get_theme_mod('bannerimage_setting') != '') ) echo '\t.header {background: bottom url(' . get_template_directory_uri() . '/images/' . get_theme_mod('bannerimage_setting') . ');}'. \"\\n\";\r\n\t\tif ( get_theme_mod('headerspacing_setting') != '18' ) echo '\t.spacing {height:' . get_theme_mod('headerspacing_setting') . 'em;}'. \"\\n\";\r\n\t\tif ( get_theme_mod('menu_setting') == 'notitle' ) { echo '\t.header {position: fixed;margin-top:0px;}' . \"\\n\" . '\t.admin-bar .header {margin-top:28px;}' . \"\\n\" . '.header h1:first-child, .header h1:first-child i, .header img:first-child {display: none;}' . \"\\n\"; }\r\n\t\tif ( get_theme_mod('menu_setting') == 'bottom' ) { echo '\t.header {position: fixed; bottom:0; top:auto;}' . \"\\n\" . '\t.header h1:first-child, .header h1:first-child i, .header img:first-child {display: none;}' . \"\\n\" . '.header li ul {bottom:2.78em; top:auto;}' . \"\\n\";}\r\n if ( get_theme_mod('border_setting') == 'hidden' ) { echo '\t.contents {border:none; box-shadow:0 0 3px #111;}' . \"\\n\";}\r\n if ( (get_theme_mod('border_setting') != '3px') && (get_theme_mod('border_setting') != 'hidden') ) { echo '\t.contents {border-width:' . get_theme_mod('border_setting') . ';}' . \"\\n\";}\r\n if ( get_theme_mod('bordercolor_setting') != '#4a4646') { echo '\t.contents {border-color:' . get_theme_mod('bordercolor_setting') . ';}' . \"\\n\";}\r\n if ( get_theme_mod('content_bg_setting') != '') { echo ' .contents {background-image:url(' . get_theme_mod('content_bg_setting') . ');}' . \"\\n\";}\r\n \r\n\t\t\r\n\t\tif ( get_theme_mod('titlefontstyle_setting') != 'Default' ) {\r\n\t\t\t$q = get_theme_mod('titlefontstyle_setting');\r\n\t\t\t$q = preg_replace('/[^a-zA-Z0-9]+/', ' ', $q);\r\n\t\t \techo\t\"\t.header h1 {font-family: '\" . $q . \"';}\" . \"\\n\"; }\r\n\r\n\t\tif ( get_theme_mod('taglinefontstyle_setting') != 'Default') {\r\n\t\t\t$x = get_theme_mod('taglinefontstyle_setting');\r\n\t\t\t$x = preg_replace('/[^a-zA-Z0-9]+/', ' ', $x);\r\n\t\t\techo\t\"\t.header h1 i {font-family: '\" . $x . \"';}\" . \"\\n\"; }\r\n\r\n\r\n if ( get_theme_mod('bodyfontstyle_setting') != 'Default' ) {\r\n $xs = get_theme_mod('bodyfontstyle_setting');\r\n $xs = preg_replace('/[^a-zA-Z0-9]+/', ' ', $xs);\r\n echo\t\"\tbody {font-family: '\" . $xs . \"';}\" . \"\\n\"; }\r\n \r\n if ( get_theme_mod('headerfontstyle_setting') != 'Default' ) {\r\n $xd = get_theme_mod('headerfontstyle_setting');\r\n $xd = preg_replace('/[^a-zA-Z0-9]+/', ' ', $xd);\r\n echo\t\"\t.contents h1, .contents h2, .contents h3, .contents h4, .contents h5, .contents h6, aside h1, aside h2, aside h3, aside h4, aside h5, aside h6 {font-family: '\" . $xd . \"';}\" . \"\\n\"; }\r\n \r\n if ( get_theme_mod('linkcolor_setting') != '#0b6492' ) echo '\ta {color:' . get_theme_mod('linkcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('linkcolorhover_setting') != '#FFFFFF' ) echo '\ta:hover {color:' . get_theme_mod('linkcolorhover_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('link_text_shadow_setting') != '' ) echo '\t.contents a {text-shadow:.1em .1em 0 ' . get_theme_mod('link_text_shadow_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('fontcolor_setting') != '#000000' ) echo '\tbody {color:' . get_theme_mod('fontcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('navcolor_setting') != '#CCCCCC' ) echo '\t.header li a {color:' . get_theme_mod('navcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('navcolorhover_setting') != '#0b6492' ) echo '\t.header li a:hover {color:' . get_theme_mod('navcolorhover_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('dropcolor_setting') != '#BBBBBB' ) echo '\t.header li ul li a {color:' . get_theme_mod('dropcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('dropcolorhover_setting') != '#0b6492' ) echo '\t.header li ul li a:hover {color:' . get_theme_mod('dropcolorhover_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('fontsizeadjust_setting') != '1' ) echo '\t.contents, aside {font-size:' . get_theme_mod('fontsizeadjust_setting') . 'em;}' . \"\\n\";\r\n if ( get_theme_mod('removefooter_setting') != 'visible' ) echo '\tfooter {visibility:' . get_theme_mod('removefooter_setting') . ';}' . \"\\n\";;\r\n if ( get_theme_mod('header_image_width_setting') != '20' ) {\r\n $header_margin_percentage = (100 - get_theme_mod('header_image_width_setting')) / 2;\r\n echo '\t.header li.website_logo {margin:0 ' . $header_margin_percentage . '%; width:' . get_theme_mod('header_image_width_setting') . '%;}' . \"\\n\";}\r\n if ( get_theme_mod('custombanner_setting') != '') echo '\t.header {background: bottom url(' . get_theme_mod('custombanner_setting') . ');}' . \"\\n\";\r\n\r\n\t\techo '</style>' . \"\\n\";\r\n\t\techo '<!-- End Custom CSS -->' . \"\\n\";\r\n\t\techo \"\\n\"; }", "public static function getDynamicCSS() {\n\t\tob_start();\n\t\techo apply_filters( 'cmtt_dynamic_css_before', '' );\n\t\t?>\n\n\t\t.tiles ul.glossaryList a { min-width: <?php echo get_option( 'cmtt_glossarySmallTileWidth', '85px' ); ?>; width:<?php echo get_option( 'cmtt_glossarySmallTileWidth', '85px' ); ?>; }\n\t\t.tiles ul.glossaryList span { min-width:<?php echo get_option( 'cmtt_glossarySmallTileWidth', '85px' ); ?>; width:<?php echo get_option( 'cmtt_glossarySmallTileWidth', '85px' ); ?>; }\n\t\t.cm-glossary.tiles.big ul.glossaryList a { min-width:<?php echo get_option( 'cmtt_glossaryBigTileWidth', '179px' ); ?>; width:<?php echo get_option( 'cmtt_glossaryBigTileWidth', '179px' ); ?> }\n\t\t.cm-glossary.tiles.big ul.glossaryList span { min-width:<?php echo get_option( 'cmtt_glossaryBigTileWidth', '179px' ); ?>; width:<?php echo get_option( 'cmtt_glossaryBigTileWidth', '179px' ); ?>; }\n\n\t\tspan.glossaryLink, a.glossaryLink {\n\t\tborder-bottom: <?php echo get_option( 'cmtt_tooltipLinkUnderlineStyle' ); ?> <?php echo get_option( 'cmtt_tooltipLinkUnderlineWidth' ); ?>px <?php echo get_option( 'cmtt_tooltipLinkUnderlineColor' ); ?> !important;\n\t\tcolor: <?php echo get_option( 'cmtt_tooltipLinkColor' ); ?> !important;\n\t\t}\n\t\ta.glossaryLink:hover {\n\t\tborder-bottom: <?php echo get_option( 'cmtt_tooltipLinkHoverUnderlineStyle' ); ?> <?php echo get_option( 'cmtt_tooltipLinkHoverUnderlineWidth' ); ?>px <?php echo get_option( 'cmtt_tooltipLinkHoverUnderlineColor' ); ?> !important;\n\t\tcolor:<?php echo get_option( 'cmtt_tooltipLinkHoverColor' ); ?> !important;\n\t\t}\n\n\t\t<?php\n\t\t$tooltipTextColorOverride = get_option( 'cmtt_tooltipForegroundOverride' );\n\t\t$tooltipTextColor = get_option( 'cmtt_tooltipForeground' );\n\t\tif ( !empty( $tooltipTextColorOverride ) ) :\n\t\t\t?>\n\t\t\t#tt #ttcont *{color: <?php echo $tooltipTextColor; ?> !important}\n\t\t<?php endif; ?>\n\n\t\t<?php\n\t\t$showEmptyLetters = !get_option( 'cmtt_index_showEmpty' );\n\t\tif ( !empty( $showEmptyLetters ) ) :\n\t\t\t?>\n\t\t\t#glossaryList-nav .ln-letters a.ln-disabled {display: none}\n\t\t<?php endif; ?>\n\n\t\t<?php\n\t\t$internalLinkColor = get_option( 'cmtt_tooltipInternalLinkColor' );\n\t\tif ( !empty( $internalLinkColor ) ) :\n\t\t\t?>\n\t\t\t#tt #ttcont a{color: <?php echo $internalLinkColor; ?> !important}\n\t\t<?php endif; ?>\n\n\t\t<?php\n\t\t$internalEditLinkColor = get_option( 'cmtt_tooltipInternalEditLinkColor' );\n\t\tif ( !empty( $internalEditLinkColor ) ) :\n\t\t\t?>\n\t\t\t#tt #ttcont .glossaryItemEditlink a{color: <?php echo $internalEditLinkColor; ?> !important}\n\t\t<?php endif; ?>\n\n\t\t<?php\n\t\t$internalMobileLinkColor = get_option( 'cmtt_tooltipInternalMobileLinkColor' );\n\t\tif ( !empty( $internalMobileLinkColor ) ) :\n\t\t\t?>\n\t\t\t#tt #ttcont .mobile-link a{color: <?php echo $internalMobileLinkColor; ?> !important}\n\t\t<?php endif; ?>\n\n\t\t<?php if ( get_option( 'cmtt_tooltipShadow', 1 ) ) : ?>\n\t\t\t#ttcont {\n\t\t\tbox-shadow: #<?php echo str_replace( '#', '', get_option( 'cmtt_tooltipShadowColor', '666666' ) ); ?> 0px 0px 20px;\n\t\t\t}\n\t\t\t<?php\n\t\tendif;\n\t\techo apply_filters( 'cmtt_dynamic_css_after', '' );\n\t\t$content = ob_get_clean();\n\n\t\t/*\n\t\t * One can use this filter to change/remove the standard styling\n\t\t */\n\t\t$dynamicCSScontent = apply_filters( 'cmtt_dynamic_css', $content );\n\t\treturn trim( $dynamicCSScontent );\n\t}", "public static function wp_slim_styles(){\r\n\t echo '<style> \r\n\t .slim-btn-edit {\r\n\t background-image: url(\"'.plugin_dir_url(__FILE__).'assets/images/edit.png'.'\");\r\n\t } \r\n\t </style>';\r\n\t}", "function hellopro_css_output() {\n\n\t$css = '';\n\n\t$css .= '/* ----------------- // ADD CUSTOM STYLES INLINE // ----------------- */\n\t';\n\n\t$css .= '\t/* CUSTOM FONT SIZES */\n\t\t';\n\t$css .= hello_pro_inline_font_sizes();\n\n\t$css .= '\n\t';\n\n\t$css .= '\t/* APPLY CUSTOMIZER COLORS TO BLOCKS */\n\t\t';\n\t$css .= hello_pro_inline_color_palette();\n\n\t$css .= '\n\t';\n\n\tif ( $css ) {\n\t\twp_add_inline_style( CHILD_THEME_HANDLE, $css );\n\t}\n\n}", "function sp_admin_scripts_style_sc ($hook) {\n\tif( $hook == 'post.php' || $hook == 'post-new.php' ) {\n\twp_register_style( 'shortcode-style', esc_url( get_template_directory_uri() . '/library/shortcode/css/sc-style.css' ) );\n\twp_enqueue_style( 'shortcode-style' );\n\t}\n}", "function gopathemes_save_custom_css(){\n \n if (!function_exists('ot_get_option')) {\n return;\n }\n \n /* CUSTOM COLOR STYLING */\n if (ot_get_option('haira_custom_styling', 'off') == 'on') {\n\n $primary_color = ot_get_option('haira_primary_color','#FFBA00');\n $secondary_color = ot_get_option( 'haira_secondary_color', '#333333' );\n $body_bg = ot_get_option( 'haira_body_background', '#f6f6f6' );\n \n $body_font = ot_get_option('haira_body_font', \n array(\n 'font-family' => \"source-sans-pro, sans-serif\", \n 'font-color' => '#8a8a8a', \n 'font-size' => '14px',\n 'line-height' => '24px',\n 'font-weight' => '400'\n ));\n \n $heading_font = ot_get_option('haira_heading_font', \n array(\n 'font-family' => \"source-sans-pro, sans-serif\", \n 'font-color' => '#333333', \n 'font-weight' => '700'\n ));\n \n $menu_typo = ot_get_option( 'haira_menu_typography',\n array(\n 'font-color' => '#FFFFFF', \n 'font-size' => '13px', \n 'font-weight' => '400', \n 'letter-spacing' => '0.03em', \n 'text-transform' => 'none'\n ));\n \n $submenu_typo = ot_get_option( 'haira_submenu_typography',\n array(\n 'font-color' => '#FFFFFF', \n 'font-size' => '12px', \n 'font-weight' => '400', \n 'line-height' => '45px', \n 'letter-spacing' => '0.03em', \n 'text-transform' => 'none'\n ));\n\n $variables = array(\n 'primary-color' => $primary_color,\n 'second-color' => $secondary_color,\n 'bg-color' => $body_bg,\n \n 'header-bg' => ot_get_option( 'haira_header_bg' ),\n 'header-height' => ot_get_option( 'haira_header_height' ),\n \n 'menu-fs' => $menu_typo['font-size'],\n 'menu-link-color' => $menu_typo['font-color'],\n 'menu-link-color-hover' => ot_get_option( 'haira_menu_link_color_hover' ),\n 'menu-link-bg-hover' => ot_get_option( 'haira_menu_link_bg_hover' ),\n 'menu-link-ls' => $menu_typo['letter-spacing'],\n 'menu-font-weight' => $menu_typo['font-weight'],\n 'menu-text-transform' => $menu_typo['text-transform'],\n \n 'submenu-bg' => ot_get_option( 'haira_submenu_bg' ),\n 'submenu-fs' => $submenu_typo['font-size'],\n 'submenu-link-color' => $submenu_typo['font-color'],\n 'submenu-link-color-hover' => ot_get_option( 'haira_submenu_link_color_on_hover' ),\n 'submenu-link-bg-hover' => ot_get_option( 'haira_submenu_link_bg_on_hover' ),\n 'submenu-link-ls' => $submenu_typo['letter-spacing'],\n 'submenu-font-weight' => $submenu_typo['font-weight'],\n 'submenu-text-transform' => $submenu_typo['text-transform'],\n 'submenu-lh' => $submenu_typo['line-height'],\n \n 'heading-color' => $heading_font['font-color'],\n 'heading-font' => $heading_font['font-family'],\n 'hweight' => $heading_font['font-weight'],\n \n 'text-color' => $body_font['font-color'],\n 'body-font' => $body_font['font-family'],\n 'fsize' => $body_font['font-size'],\n 'lheight' => $body_font['line-height'],\n 'bweight' => $body_font['font-weight']\n );\n\n\n $default_vars = file( get_template_directory().'/scss/_vars.scss' );\n \n gopathemes_compile_css( haira_setup_scss_vars($default_vars, $variables) );\n }\n \n}", "function qodef_core_set_clients_carousel_custom_style_for_vc_shortcodes( $style ) {\n\t\t$current_style = '.wpb_content_element.wpb_qodef_clients_carousel_item > .wpb_element_wrapper { \n\t\t\tbackground-color: #f4f4f4; \n\t\t}';\n\t\t\n\t\t$style .= $current_style;\n\t\t\n\t\treturn $style;\n\t}", "function button_shortcode($atts, $content = NULL) {\n $a = shortcode_atts( array(\n 'class' => ''\n ), $atts );\n $content = '<span class=\"button '.$class.'\">'.$content.'</span>';\n return $content;\n}", "function mod_bbcode_google_css()\n{\n $PHORUM = $GLOBALS['PHORUM'];\n $padding_left = \"5px\";\n $background = \"\";\n\n // Add the Google logo if configured.\n if (! isset($PHORUM[\"mod_bbcode_google\"][\"show_logo\"]) ||\n $PHORUM[\"mod_bbcode_google\"][\"show_logo\"]) {\n $padding_left = \"53px\";\n $background =\n \"background-image: url(\" . GOOGLE_IMG . \");\\n\" .\n \"background-repeat: no-repeat;\\n\" .\n \"background-position: 3px 1px;\";\n }\n\n $css = \"\n .phorum_mod_bbcode_google {\n padding: 0px 5px 1px 5px;\n padding-left: $padding_left;\n background-color: white;\n border: 1px dotted #b0b0b0;\n $background\n }\n \";\n\n return $css;\n}", "protected function _build_custom_css( $rules = array() ){\n\t\t $generated_code = '';\n\t\t $rules = apply_filters( 'yith_wcwl_custom_css_rules', array_merge( array(\n\t\t 'color_add_to_wishlist' => array(\n\t\t 'selector' => '.woocommerce a.add_to_wishlist.button.alt',\n 'rules' => array(\n 'background' => array(\n 'rule' => 'background-color: %1$s; background: %1$s',\n 'default' => '#333333'\n ),\n 'text' => array(\n 'rule' => 'color: %s',\n 'default' => '#ffffff'\n ),\n 'border' => array(\n 'rule' => 'border-color: %s',\n 'default' => '#333333'\n ),\n 'background_hover' => array(\n\t 'rule' => 'background-color: %1$s; background: %1$s',\n\t 'default' => '#4F4F4F',\n 'status' => ':hover'\n ),\n 'text_hover' => array(\n\t 'rule' => 'color: %s',\n\t 'default' => '#ffffff',\n\t 'status' => ':hover'\n ),\n 'border_hover' => array(\n\t 'rule' => 'border-color: %s',\n\t 'default' => '#4F4F4F',\n\t 'status' => ':hover'\n )\n ),\n 'deps' => array(\n 'yith_wcwl_add_to_wishlist_style' => 'button_custom'\n )\n ),\n 'rounded_corners_radius' => array(\n 'selector' => '.woocommerce a.add_to_wishlist.button.alt',\n 'rules' => array(\n 'rule' => 'border-radius: %dpx',\n 'default' => 16\n ),\n 'deps' => array(\n\t 'yith_wcwl_add_to_wishlist_style' => 'button_custom'\n )\n ),\n\t\t 'color_add_to_cart' => array(\n\t\t\t 'selector' => '.woocommerce .wishlist_table a.add_to_cart.button.alt',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#333333'\n\t\t\t\t ),\n\t\t\t\t 'text' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#ffffff'\n\t\t\t\t ),\n\t\t\t\t 'border' => array(\n\t\t\t\t\t 'rule' => 'border-color: %s',\n\t\t\t\t\t 'default' => '#333333'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#4F4F4F',\n 'status' => ':hover'\n\t\t\t\t ),\n\t\t\t\t 'text_hover' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#ffffff',\n 'status' => ':hover'\n\t\t\t\t ),\n\t\t\t\t 'border_hover' => array(\n\t\t\t\t\t 'rule' => 'border-color: %s',\n\t\t\t\t\t 'default' => '#4F4F4F',\n 'status' => ':hover'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_add_to_cart_style' => 'button_custom'\n\t\t\t )\n\t\t ),\n\t\t 'add_to_cart_rounded_corners_radius' => array(\n\t\t\t 'selector' => '.woocommerce .wishlist_table a.add_to_cart.button.alt',\n\t\t\t 'rules' => array(\n\t\t\t\t 'rule' => 'border-radius: %dpx',\n\t\t\t\t 'default' => 16\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_add_to_cart_style' => 'button_custom',\n\t\t\t )\n\t\t ),\n\t\t 'color_button_style_1' => array(\n\t\t\t 'selector' => '.woocommerce .hidden-title-form button,\n .yith-wcwl-wishlist-new .create-wishlist-button,\n .wishlist_manage_table tfoot button.submit-wishlist-changes,\n .yith-wcwl-wishlist-search-form button.wishlist-search-button',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#333333'\n\t\t\t\t ),\n\t\t\t\t 'text' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#ffffff'\n\t\t\t\t ),\n\t\t\t\t 'border' => array(\n\t\t\t\t\t 'rule' => 'border-color: %s',\n\t\t\t\t\t 'default' => '#333333'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#333333',\n 'status' => ':hover'\n\t\t\t\t ),\n\t\t\t\t 'text_hover' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#ffffff',\n 'status' => ':hover'\n\t\t\t\t ),\n\t\t\t\t 'border_hover' => array(\n\t\t\t\t\t 'rule' => 'border-color: %s',\n\t\t\t\t\t 'default' => '#333333',\n 'status' => ':hover'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_add_to_cart_style' => 'button_custom'\n\t\t\t )\n\t\t ),\n\t\t 'color_button_style_2' => array(\n\t\t\t 'selector' => '.woocommerce .wishlist-title a.show-title-form,\n .woocommerce .hidden-title-form a.hide-title-form,\n .wishlist_manage_table tfoot a.create-new-wishlist',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#333333'\n\t\t\t\t ),\n\t\t\t\t 'text' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#ffffff'\n\t\t\t\t ),\n\t\t\t\t 'border' => array(\n\t\t\t\t\t 'rule' => 'border-color: %s',\n\t\t\t\t\t 'default' => '#333333'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#333333',\n 'status' => ':hover'\n\t\t\t\t ),\n\t\t\t\t 'text_hover' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#ffffff',\n\t\t\t\t\t 'status' => ':hover'\n\t\t\t\t ),\n\t\t\t\t 'border_hover' => array(\n\t\t\t\t\t 'rule' => 'border-color: %s',\n\t\t\t\t\t 'default' => '#333333',\n\t\t\t\t\t 'status' => ':hover'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_add_to_cart_style' => 'button_custom'\n\t\t\t )\n\t\t ),\n\t\t 'color_wishlist_table' => array(\n\t\t\t 'selector' => '.woocommerce table.shop_table.wishlist_table',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#FFFFFF'\n\t\t\t\t ),\n\t\t\t\t 'text' => array(\n\t\t\t\t\t 'rule' => 'color: %s',\n\t\t\t\t\t 'default' => '#6D6C6C'\n\t\t\t\t ),\n\t\t\t\t 'border' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#FFFFFF'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_add_to_cart_style' => 'button_custom'\n\t\t\t )\n\t\t ),\n\t\t 'color_headers_background' => array(\n\t\t\t 'selector' => '.wishlist_table thead,\n .wishlist_table tfoot,\n .widget_yith-wcwl-lists ul.dropdown li.current a,\n .widget_yith-wcwl-lists ul.dropdown li a:hover,\n .selectBox-dropdown-menu.selectBox-options li.selectBox-selected a,\n .selectBox-dropdown-menu.selectBox-options li.selectBox-hover a',\n\t\t\t 'rules' => array(\n\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t 'default' => '#F4F4F4'\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_add_to_cart_style' => 'button_custom'\n\t\t\t )\n\t\t ),\n\t\t 'color_share_button' => array(\n\t\t\t 'selector' => '.yith-wcwl-share li a',\n\t\t\t 'rules' => array(\n\t\t\t\t 'color' => array(\n\t\t\t\t\t 'rule' => 'color: %s;',\n\t\t\t\t\t 'default' => '#FFFFFF'\n\t\t\t\t ),\n\t\t\t\t 'color_hover' => array(\n\t\t\t\t\t 'rule' => 'color: %s;',\n\t\t\t\t\t 'status' => ':hover',\n\t\t\t\t\t 'default' => '#FFFFFF'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_enable_share' => 'yes'\n\t\t\t )\n\t\t ),\n\t\t 'color_fb_button' => array(\n\t\t\t 'selector' => '.yith-wcwl-share a.facebook',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#39599E'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'status' => ':hover',\n\t\t\t\t\t 'default' => '#39599E'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_enable_share' => 'yes',\n\t\t\t\t 'yith_wcwl_share_fb' => 'yes',\n\t\t\t )\n\t\t ),\n\t\t 'color_tw_button' => array(\n\t\t\t 'selector' => '.yith-wcwl-share a.twitter',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#45AFE2'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'status' => ':hover',\n\t\t\t\t\t 'default' => '#39599E'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_enable_share' => 'yes',\n\t\t\t\t 'yith_wcwl_share_twitter' => 'yes',\n\t\t\t )\n\t\t ),\n\t\t 'color_pr_button' => array(\n\t\t\t 'selector' => '.yith-wcwl-share a.pinterest',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#AB2E31'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'status' => ':hover',\n\t\t\t\t\t 'default' => '#39599E'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_enable_share' => 'yes',\n\t\t\t\t 'yith_wcwl_share_pinterest' => 'yes',\n\t\t\t )\n\t\t ),\n\t\t 'color_em_button' => array(\n\t\t\t 'selector' => '.yith-wcwl-share a.email',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#FBB102'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'status' => ':hover',\n\t\t\t\t\t 'default' => '#39599E'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_enable_share' => 'yes',\n\t\t\t\t 'yith_wcwl_share_email' => 'yes',\n\t\t\t )\n\t\t ),\n\t\t 'color_wa_button' => array(\n\t\t\t 'selector' => '.yith-wcwl-share a.whatsapp',\n\t\t\t 'rules' => array(\n\t\t\t\t 'background' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'default' => '#00A901'\n\t\t\t\t ),\n\t\t\t\t 'background_hover' => array(\n\t\t\t\t\t 'rule' => 'background: %1$s; background-color: %1$s;',\n\t\t\t\t\t 'status' => ':hover',\n\t\t\t\t\t 'default' => '#39599E'\n\t\t\t\t )\n\t\t\t ),\n\t\t\t 'deps' => array(\n\t\t\t\t 'yith_wcwl_enable_share' => 'yes',\n\t\t\t\t 'yith_wcwl_share_whatsapp' => 'yes',\n\t\t\t )\n\t\t ),\n ), $rules ) );\n\n\t\t if( empty( $rules ) ){\n\t\t return $generated_code;\n }\n\n\t\t // retrieve dependencies\n\t\t\t$deps_list = wp_list_pluck( $rules, 'deps' );\n\t\t\t$dependencies = array();\n\n\t\t\tif( ! empty( $deps_list ) ){\n\t\t\t foreach( $deps_list as $rule => $deps ){\n\t\t\t foreach( $deps as $dep_rule => $dep_value ){\n\t\t\t if( ! isset( $dependencies[ $dep_rule ] ) ){\n\t\t\t\t $dependencies[ $dep_rule ] = get_option( $dep_rule );\n }\n }\n }\n }\n\n\t\t foreach( $rules as $id => $rule ){\n\t\t // check dependencies first\n\t\t if( ! empty( $rule['deps'] ) ){\n\t\t foreach( $rule['deps'] as $dep_rule => $dep_value ){\n\t\t if( ! isset( $dependencies[ $dep_rule ] ) || $dependencies[ $dep_rule ] != $dep_value ){\n\t\t continue 2;\n }\n }\n }\n\n\t\t // retrieve values from db\n\t\t $values = get_option( \"yith_wcwl_{$id}\" );\n\t\t $new_rules = array();\n\t\t\t $rules_code = '';\n\n\t\t // if we have a single-valued option, just search for the rule to apply\n\t\t if( isset( $rule['rules']['rule'] ) ){\n\t\t $status = isset( $rule['rules']['status'] ) ? $rule['rules']['status'] : '';\n\n\t\t if( ! isset( $new_rules[ $status ] ) ){\n\t\t\t $new_rules[ $status ] = array();\n }\n\n\t\t $new_rules[ $status ][] = $this->_build_css_rule( $rule['rules']['rule'], $values, $rule['rules']['default'] );\n }\n\n\t\t // otherwise cycle through rules, and generate CSS code\n\t\t else{\n\t\t foreach( $rule['rules'] as $property => $css ){\n\t\t\t $status = isset( $css['status'] ) ? $css['status'] : '';\n\n\t\t\t if( ! isset( $new_rules[ $status ] ) ){\n\t\t\t\t $new_rules[ $status ] = array();\n\t\t\t }\n\n $new_rules[ $status ][] = $this->_build_css_rule( $css['rule'], isset( $values[ $property ] ) ? $values[ $property ] : false, $css['default'] );\n }\n }\n\n\t\t // if code was generated, prepend selector\n\t\t if( ! empty( $new_rules ) ){\n\t\t foreach( $new_rules as $status => $rules ){\n\t\t\t $selector = $rule['selector'];\n\n\t\t if( ! empty( $status ) ){\n\t\t\t $updated_selector = array();\n\t\t $split_selectors = explode( ',', $rule['selector'] );\n\n\t\t foreach( $split_selectors as $split_selector ){\n\t\t\t $updated_selector[] = $split_selector . $status;\n }\n\n\t\t $selector = implode( ',', $updated_selector );\n }\n\n\t\t\t $rules_code .= $selector . '{' . implode( '', $rules ) . '}';\n\t\t }\n }\n\n\t\t // append new rule to generated CSS\n\t\t $generated_code .= $rules_code;\n }\n\n\t\t return $generated_code;\n }", "function addStyleTags($text) {\n\t// variables used to execute this task\n\t$tag_content_start = 0;\n\t$tag_end = 0;\n\t$strs_final = array(\"color_coded\" => \"\", \"style\" => \"\");\n\t$str_temp = \"\";\n\t$re_key_word = \"/(@[\\w\\t ]+)\\(/i\";\n\t$re_selector = \"/([\\w\\*\\.\\#\\t: ]+)(\\s?[\\{,])/i\";\n\t$re_property = \"/([\\{;\\(]\\s*)([\\w-]+)(\\s*:)/i\";\n\t$re_value = \"/:([^:;]*)([;)])/i\";\n\t$re_value_units = \"/(\\d)(px|%|rem|em|vh|vw|s|ms)/i\";\n\n\t// loop while there are style tags to process\n\twhile (preg_match(\"/\\<style[^\\<]*\\>/i\", $text, $regex_matches, PREG_OFFSET_CAPTURE) !== false && !empty($regex_matches)) {\n\t\t// get the index of the character after this opening tag\n\t\t$tag_content_start = $regex_matches[0][1] + strlen($regex_matches[0][0]);\n\n\t\t// add the text between the last processed tag and the start of this style tag\n\t\t$strs_final[\"color_coded\"] .= substr($text, 0, $regex_matches[0][1]);\n\n\t\t// find the index of the next closing style tag\n\t\t$tag_end = strpos($text, \"</style>\", $tag_content_start);\n\n\t\t// check if a closing style tag was found\n\t\tif ($tag_end === false) {\n\t\t\t// it wasn't\n\t\t\t// assume the tag goes to the end of the text\n\t\t\t$tag_end = strlen($text);\n\t\t}\n\n\t\t// get the text inside this style tag\n\t\t$str_temp = substr($text, $tag_content_start, $tag_end - $tag_content_start);\n\n\t\t// store this tag's content without any color coding tags\n\t\t$strs_final[\"style\"] .= $str_temp;\n\n\t\t// add the keyword spans\n\t\t$str_temp = preg_replace($re_key_word, \"<span class='css_keyword'>$1</span>(\", $str_temp);\n\n\t\t// add the selector spans\n\t\t$str_temp = preg_replace($re_selector, \"<span class='css_selector'>$1</span>$2\", $str_temp);\n\n\t\t// remove any selector span tags that might have been placed inside the property:value area\n\t\t$str_temp = preg_replace_callback(\"/\\{([^{}]+)<span class='css_selector'>([^{}]+)<\\/span>([^{}]+)\\}/i\", function($regex_matches) {\n\t\t\treturn(preg_replace(\"/<span class='css_selector'\\s*>([^\\/]+)<\\/span>/i\", \"$1\", $regex_matches[0]));\n\t\t}, $str_temp);\n\n\t\t// add the property spans\n\t\t$str_temp = preg_replace($re_property, \"$1<span class='css_property'>$2</span>$3\", $str_temp);\n\n\t\t// add the value spans\n\t\t$str_temp = preg_replace($re_value, \":<span class='css_value'>$1</span>$2\", $str_temp);\n\n\t\t// add the units spans\n\t\t$str_temp = preg_replace($re_value_units, \"$1<span class='css_units'>$2</span>\", $str_temp);\n\n\t\t// store this tag's content with the color coding tags\n\t\t$strs_final[\"color_coded\"] .= $str_temp;\n\n\t\t// remove this tag's content from the text to process\n\t\t$text = substr($text, $tag_end + 8);\n\t}\n\n\t// add any text after the last processed style tag to the final string\n\t$strs_final[\"color_coded\"] .= $text;\n\n\t// return the processed strings\n\treturn($strs_final);\n}", "function generate_advanced_css() {\n\t\t$settings = wp_parse_args(\n\t\t\tget_option( 'generate_settings', array() ),\n\t\t\tgenerate_get_color_defaults()\n\t\t);\n\n\t\t$css = new GeneratePress_CSS();\n\n\t\t$css->set_selector( '.top-bar' );\n\t\t$css->add_property( 'background-color', $settings['top_bar_background_color'] );\n\t\t$css->add_property( 'color', $settings['top_bar_text_color'] );\n\n\t\t$css->set_selector( '.top-bar a' );\n\t\t$css->add_property( 'color', $settings['top_bar_link_color'] );\n\n\t\t$css->set_selector( '.top-bar a:hover' );\n\t\t$css->add_property( 'color', $settings['top_bar_link_color_hover'] );\n\n\t\t$css->set_selector( '.site-header' );\n\t\t$css->add_property( 'background-color', $settings['header_background_color'] );\n\t\t$css->add_property( 'color', $settings['header_text_color'] );\n\n\t\t$css->set_selector( '.site-header a' );\n\t\t$css->add_property( 'color', $settings['header_link_color'] );\n\n\t\t$css->set_selector( '.site-header a:hover' );\n\t\t$css->add_property( 'color', $settings['header_link_hover_color'] );\n\n\t\t$css->set_selector( '.main-title a,.main-title a:hover' );\n\t\t$css->add_property( 'color', $settings['site_title_color'] );\n\n\t\t$css->set_selector( '.site-description' );\n\t\t$css->add_property( 'color', $settings['site_tagline_color'] );\n\n\t\tif ( $settings['navigation_background_color'] === $settings['header_background_color'] ) {\n\t\t\t$css->set_selector( '.mobile-menu-control-wrapper .menu-toggle,.mobile-menu-control-wrapper .menu-toggle:hover,.mobile-menu-control-wrapper .menu-toggle:focus,.has-inline-mobile-toggle #site-navigation.toggled' );\n\t\t\t$css->add_property( 'background-color', 'rgba(0, 0, 0, 0.02)' );\n\t\t}\n\n\t\t$css->set_selector( '.main-navigation,.main-navigation ul ul' );\n\t\t$css->add_property( 'background-color', $settings['navigation_background_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li a,.menu-toggle, .main-navigation .menu-bar-items' );\n\t\t$css->add_property( 'color', $settings['navigation_text_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li:hover > a,.main-navigation .main-nav ul li:focus > a, .main-navigation .main-nav ul li.sfHover > a, .main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a' );\n\t\t$css->add_property( 'color', $settings['navigation_text_hover_color'] );\n\t\t$css->add_property( 'background-color', $settings['navigation_background_hover_color'] );\n\n\t\tif ( generate_is_using_flexbox() ) {\n\t\t\t$css->set_selector( 'button.menu-toggle:hover,button.menu-toggle:focus' );\n\t\t} else {\n\t\t\t$css->set_selector( 'button.menu-toggle:hover,button.menu-toggle:focus,.main-navigation .mobile-bar-items a,.main-navigation .mobile-bar-items a:hover,.main-navigation .mobile-bar-items a:focus' );\n\t\t}\n\n\t\t$css->add_property( 'color', $settings['navigation_text_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li[class*=\"current-menu-\"] > a' );\n\t\t$css->add_property( 'color', $settings['navigation_text_current_color'] );\n\t\t$css->add_property( 'background-color', $settings['navigation_background_current_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul li[class*=\"current-menu-\"] > a:hover,.main-navigation .main-nav ul li[class*=\"current-menu-\"].sfHover > a' );\n\t\t$css->add_property( 'color', $settings['navigation_text_current_color'] );\n\t\t$css->add_property( 'background-color', $settings['navigation_background_current_color'] );\n\n\t\t$navigation_search_background = $settings['navigation_background_hover_color'];\n\t\t$navigation_search_text = $settings['navigation_text_hover_color'];\n\n\t\tif ( '' !== $settings['navigation_search_background_color'] ) {\n\t\t\t$navigation_search_background = $settings['navigation_search_background_color'];\n\t\t}\n\n\t\tif ( '' !== $settings['navigation_search_text_color'] ) {\n\t\t\t$navigation_search_text = $settings['navigation_search_text_color'];\n\t\t}\n\n\t\t$css->set_selector( '.navigation-search input[type=\"search\"],.navigation-search input[type=\"search\"]:active, .navigation-search input[type=\"search\"]:focus, .main-navigation .main-nav ul li.search-item.active > a, .main-navigation .menu-bar-items .search-item.active > a' );\n\t\t$css->add_property( 'color', $navigation_search_text );\n\t\t$css->add_property( 'background-color', $navigation_search_background );\n\n\t\tif ( '' !== $settings['navigation_search_background_color'] ) {\n\t\t\t$css->add_property( 'opacity', '1' );\n\t\t}\n\n\t\t$css->set_selector( '.main-navigation ul ul' );\n\t\t$css->add_property( 'background-color', $settings['subnavigation_background_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li a' );\n\t\t$css->add_property( 'color', $settings['subnavigation_text_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li:hover > a,.main-navigation .main-nav ul ul li:focus > a,.main-navigation .main-nav ul ul li.sfHover > a' );\n\t\t$css->add_property( 'color', $settings['subnavigation_text_hover_color'] );\n\t\t$css->add_property( 'background-color', $settings['subnavigation_background_hover_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li[class*=\"current-menu-\"] > a' );\n\t\t$css->add_property( 'color', $settings['subnavigation_text_current_color'] );\n\t\t$css->add_property( 'background-color', $settings['subnavigation_background_current_color'] );\n\n\t\t$css->set_selector( '.main-navigation .main-nav ul ul li[class*=\"current-menu-\"] > a:hover,.main-navigation .main-nav ul ul li[class*=\"current-menu-\"].sfHover > a' );\n\t\t$css->add_property( 'color', $settings['subnavigation_text_current_color'] );\n\t\t$css->add_property( 'background-color', $settings['subnavigation_background_current_color'] );\n\n\t\t$css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header' );\n\t\t$css->add_property( 'color', $settings['content_text_color'] );\n\t\t$css->add_property( 'background-color', $settings['content_background_color'] );\n\n\t\t$css->set_selector( '.inside-article a,.paging-navigation a,.comments-area a,.page-header a' );\n\t\t$css->add_property( 'color', $settings['content_link_color'] );\n\n\t\t$css->set_selector( '.inside-article a:hover,.paging-navigation a:hover,.comments-area a:hover,.page-header a:hover' );\n\t\t$css->add_property( 'color', $settings['content_link_hover_color'] );\n\n\t\t$css->set_selector( '.entry-header h1,.page-header h1' );\n\t\t$css->add_property( 'color', $settings['content_title_color'] );\n\n\t\t$css->set_selector( '.entry-title a' );\n\t\t$css->add_property( 'color', $settings['blog_post_title_color'] );\n\n\t\t$css->set_selector( '.entry-title a:hover' );\n\t\t$css->add_property( 'color', $settings['blog_post_title_hover_color'] );\n\n\t\t$css->set_selector( '.entry-meta' );\n\t\t$css->add_property( 'color', $settings['entry_meta_text_color'] );\n\n\t\t$css->set_selector( '.entry-meta a' );\n\t\t$css->add_property( 'color', $settings['entry_meta_link_color'] );\n\n\t\t$css->set_selector( '.entry-meta a:hover' );\n\t\t$css->add_property( 'color', $settings['entry_meta_link_color_hover'] );\n\n\t\t$css->set_selector( 'h1' );\n\t\t$css->add_property( 'color', $settings['h1_color'] );\n\n\t\t$css->set_selector( 'h2' );\n\t\t$css->add_property( 'color', $settings['h2_color'] );\n\n\t\t$css->set_selector( 'h3' );\n\t\t$css->add_property( 'color', $settings['h3_color'] );\n\n\t\t$css->set_selector( 'h4' );\n\t\t$css->add_property( 'color', $settings['h4_color'] );\n\n\t\t$css->set_selector( 'h5' );\n\t\t$css->add_property( 'color', $settings['h5_color'] );\n\n\t\t$css->set_selector( 'h6' );\n\t\t$css->add_property( 'color', $settings['h6_color'] );\n\n\t\t$css->set_selector( '.sidebar .widget' );\n\t\t$css->add_property( 'color', $settings['sidebar_widget_text_color'] );\n\t\t$css->add_property( 'background-color', $settings['sidebar_widget_background_color'] );\n\n\t\t$css->set_selector( '.sidebar .widget a' );\n\t\t$css->add_property( 'color', $settings['sidebar_widget_link_color'] );\n\n\t\t$css->set_selector( '.sidebar .widget a:hover' );\n\t\t$css->add_property( 'color', $settings['sidebar_widget_link_hover_color'] );\n\n\t\t$css->set_selector( '.sidebar .widget .widget-title' );\n\t\t$css->add_property( 'color', $settings['sidebar_widget_title_color'] );\n\n\t\t$css->set_selector( '.footer-widgets' );\n\t\t$css->add_property( 'color', $settings['footer_widget_text_color'] );\n\t\t$css->add_property( 'background-color', $settings['footer_widget_background_color'] );\n\n\t\t$css->set_selector( '.footer-widgets a' );\n\t\t$css->add_property( 'color', $settings['footer_widget_link_color'] );\n\n\t\t$css->set_selector( '.footer-widgets a:hover' );\n\t\t$css->add_property( 'color', $settings['footer_widget_link_hover_color'] );\n\n\t\t$css->set_selector( '.footer-widgets .widget-title' );\n\t\t$css->add_property( 'color', $settings['footer_widget_title_color'] );\n\n\t\t$css->set_selector( '.site-info' );\n\t\t$css->add_property( 'color', $settings['footer_text_color'] );\n\t\t$css->add_property( 'background-color', $settings['footer_background_color'] );\n\n\t\t$css->set_selector( '.site-info a' );\n\t\t$css->add_property( 'color', $settings['footer_link_color'] );\n\n\t\t$css->set_selector( '.site-info a:hover' );\n\t\t$css->add_property( 'color', $settings['footer_link_hover_color'] );\n\n\t\t$css->set_selector( '.footer-bar .widget_nav_menu .current-menu-item a' );\n\t\t$css->add_property( 'color', $settings['footer_link_hover_color'] );\n\n\t\t$css->set_selector( 'input[type=\"text\"],input[type=\"email\"],input[type=\"url\"],input[type=\"password\"],input[type=\"search\"],input[type=\"tel\"],input[type=\"number\"],textarea,select' );\n\t\t$css->add_property( 'color', $settings['form_text_color'] );\n\t\t$css->add_property( 'background-color', $settings['form_background_color'] );\n\t\t$css->add_property( 'border-color', $settings['form_border_color'] );\n\n\t\t$css->set_selector( 'input[type=\"text\"]:focus,input[type=\"email\"]:focus,input[type=\"url\"]:focus,input[type=\"password\"]:focus,input[type=\"search\"]:focus,input[type=\"tel\"]:focus,input[type=\"number\"]:focus,textarea:focus,select:focus' );\n\t\t$css->add_property( 'color', $settings['form_text_color_focus'] );\n\t\t$css->add_property( 'background-color', $settings['form_background_color_focus'] );\n\t\t$css->add_property( 'border-color', $settings['form_border_color_focus'] );\n\n\t\t$css->set_selector( 'button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"],a.button,a.wp-block-button__link:not(.has-background)' );\n\t\t$css->add_property( 'color', $settings['form_button_text_color'] );\n\t\t$css->add_property( 'background-color', $settings['form_button_background_color'] );\n\n\t\t$css->set_selector( 'button:hover,html input[type=\"button\"]:hover,input[type=\"reset\"]:hover,input[type=\"submit\"]:hover,a.button:hover,button:focus,html input[type=\"button\"]:focus,input[type=\"reset\"]:focus,input[type=\"submit\"]:focus,a.button:focus,a.wp-block-button__link:not(.has-background):active,a.wp-block-button__link:not(.has-background):focus,a.wp-block-button__link:not(.has-background):hover' );\n\t\t$css->add_property( 'color', $settings['form_button_text_color_hover'] );\n\t\t$css->add_property( 'background-color', $settings['form_button_background_color_hover'] );\n\n\t\t$css->set_selector( 'a.generate-back-to-top' );\n\t\t$css->add_property( 'background-color', $settings['back_to_top_background_color'] );\n\t\t$css->add_property( 'color', $settings['back_to_top_text_color'] );\n\n\t\t$css->set_selector( 'a.generate-back-to-top:hover,a.generate-back-to-top:focus' );\n\t\t$css->add_property( 'background-color', $settings['back_to_top_background_color_hover'] );\n\t\t$css->add_property( 'color', $settings['back_to_top_text_color_hover'] );\n\n\t\t$css->start_media_query( generate_get_media_query( 'mobile-menu' ) );\n\t\t$css->set_selector( '.main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a' );\n\t\t$css->add_property( 'background', 'none' );\n\t\t$css->add_property( 'color', $settings['navigation_text_color'] );\n\t\t$css->stop_media_query();\n\n\t\tdo_action( 'generate_colors_css', $css );\n\n\t\treturn apply_filters( 'generate_colors_css_output', $css->css_output() );\n\t}", "public function getStyleMarkup(){ return $this->styles_markup; }", "function get_css() {\n\t\t\t$output = '';\n\t\t\t$this->build_settings_and_styles();\n\n\t\t\t$css = $this->generate_css();\n\t\t\t$css .= $this->generate_responsive_css();\n\t\t\t$css .= $this->global_css;\n\t\t\t$css = apply_filters( 'themify_customizer_css_output', $css, $this );\n\n\t\t\t$custom_css = $this->custom_css();\n\t\t\tif (!empty($css)) {\n\t\t\t\t$output= \"<!--Themify Customize Styling-->\\n<style id=\\\"themify-customize\\\" type=\\\"text/css\\\">\\n$css\\n</style>\\n<!--/Themify Customize Styling-->\";\n\t\t\t}\n\t\t\tif (!empty($custom_css)) {\n\t\t\t\t$output .= \"<!--Themify Custom CSS-->\\n<style id=\\\"themify-customize-customcss\\\" type=\\\"text/css\\\">\\n$custom_css\\n</style>\\n<!--/Themify Custom CSS-->\";\n\t\t\t}\n\n\t\t\treturn $output;\n\t\t}", "function klippe_core_set_full_screen_image_slider_custom_style_for_vc_shortcodes( $style ) {\n\t\t$current_style = '.wpb_content_element.wpb_mkdf_full_screen_image_slider_item > .wpb_element_wrapper {\n\t\t\tbackground-color: #f4f4f4;\n\t\t}';\n\t\t\n\t\t$style .= $current_style;\n\t\t\n\t\treturn $style;\n\t}", "function gwstandard_customize_css() {\n ?>\n <style type=\"text/css\">\n h2 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h2_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h2_weight', '' ) ); ?> \n\t }\n h3 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h3_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h3_weight', '' ) ); ?> \n\t }\n h4 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h4_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h4_weight', '' ) ); ?> \n\t }\n h5 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h5_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h5_weight', '' ) ); ?> \n }\n h6 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h6_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h6_weight', '' ) ); ?> \n\t }\n\t \n\t p{\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_body-font_margin-bottom', '10' )?>px;\n\t }\n\t \n\t li{\n\t\t line-height:<?php echo get_theme_mod( 'fl-body-line-height', '1.4' )?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_body-font_margin-bottom', '10' )?>px;\n\t }\n\t \n\t .gwd_fl-rich-text_intro-text > p,\n\t .gwd_fl-rich-text_intro-text li,\n\t p.intro_text{\n\t\t font-size:<?php echo get_theme_mod( 'gwstandard_intro-text_font-size', '18' )?>px;\n\t\t line-height:<?php echo get_theme_mod( 'gwstandard_intro-text_line-height', '1.6')?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_intro-text_margin-bottom', '18')?>px;\n\t }\n\t \n\t .gwd_fl-rich-text_secondary-intro > p,\n\t .gwd_fl-rich-text_secondary-intro li,\n\t p.intro_text_alt{\n\t\t font-size:<?php echo get_theme_mod( 'gwstandard_secondary-intro_font-size', '20' )?>px;\n\t\t line-height:<?php echo get_theme_mod( 'gwstandard_secondary-intro_line-height', '1.6')?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_secondary-intro_margin-bottom', '20')?>px;\n\t }\n\t \n\t .gwd_fl-rich-text_small-text > p,\n\t .gwd_fl-rich-text_small-text li,\n\t small,\n\t p.small_text{\n\t\t font-size:<?php echo get_theme_mod( 'gwstandard_small-text_font-size', '14' )?>px;\n\t\t line-height:<?php echo get_theme_mod( 'gwstandard_small-text_line-height', '1.2')?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_small-text_margin-bottom', '10')?>px;\n\t }\n </style>\n <?php\n}", "function sb_slideshow_edit_admin_style() {\n\tif (!sb_verify_post_type('slideshow')) return; // verify post type\n?>\n\t<style type=\"text/css\">\n\t\tth.column-id { width:50px; }\n\t\tth.column-shortcode { width:180px; }\n\t\tinput.urlfield { width:155px; }\n\t</style>\n<?php\n}", "function epp_social_icons_shortcode($atts) {\n extract(shortcode_atts(array(\n 'style' => \"TRENDING\",\n 'type_1' => null,\n 'label_1' => \"Like us on Facbook\",\n 'id_1' => \"\",\n 'type_2' => null,\n 'label_2' => \"Check out Twitter\",\n 'id_2' => \"\",\n ), $atts));\n\n\n$outs = '';\nif($style == \"horizontal small\") {\n $outs .= '<div class=\"hs\">';\n}elseif($style == \"horizontal large\"){\n $outs .= '<div class=\"hl\">';\n}elseif($style == \"vertical small\"){\n $outs .= '<div class=\"vs\">';\n}elseif($style == \"vertical large\"){\n $outs .= '<div class=\"vl\">';\n}else{\n $outs .= '<div class=\"trendint\">';\n}\n$outs .= '<h5>'. $style . '</h5>';\n//if(!is_null($type_1)) {\n$outs .= '<div class=\"img_block\">';\n$outs .= '<a href=\"https://www.facebook.com/'. $id_1 . '\" target=\"_blank\">';\n$outs .= '<span class=\"helper\"><img src=\"'. plugins_url() . '/epp_socials/assets/icons/fb.jpg\" width=\"50\" height=\"50\" /></span>';\n$outs .= '</a>';\n$outs .= '<p>'. $label_1 .'</p>';\n$outs .= '</div>';\n//}\n//if(!is_null($type_2)) {\n$outs .= '<div class=\"img_block\">';\n$outs .= '<a href=\"https://twitter.com/'. $id_2 .'\" target=\"_blank\">';\n$outs .= '<span class=\"helper\"><img src=\"'. plugins_url() . '/epp_socials/assets/icons/twitter.jpg\" width=\"50\" height=\"50\" /></span>';\n$outs .= '</a>';\n$outs .= '<p>'. $label_2 .'</p>';\n$outs .= '</div>';\n//}\n$outs .= '</div>'; // - style div\nreturn $outs;\n\n}", "function studiare_inline_style($value) {\n\techo studiare_get_inline_style($value);\n}", "function shortcode_icon_box( $atts, $content = null ) {\n\t\textract( shortcode_atts( array(\n\t\t\t'icon' => '',\n\t\t\t'icon_class' => '', // depreciated\n\t\t\t'style' => '',\n\t\t\t'number' => 0, //only need in style3 case\n\t\t\t'class' => '',\n\t\t), $atts) );\n\n\t\t$class = empty( $class )?'':( ' ' . $class );\n\t\t$icon_class = empty( $icon_class )?'':( ' ' . $icon_class );\n\t\t$icon = $icon . $icon_class;\n\n\t\t$result = '';\n\t\tif ( empty( $style ) ) {\n\t\t\t$result = '<i class=\"' . esc_attr( $icon ) . '\"></i>';\n\t\t\t$result .= do_shortcode( $content );\n\t\t} elseif ( $style == 'style3' ) {\n\t\t\t$result = '<div class=\"icon-box ' . esc_attr( $style ) . ' counters-box' . esc_attr( $class ) . '\"><div class=\"numbers\"><i class=\"' . esc_attr( $icon ) . '\"></i>';\n\t\t\t$result .= '<span class=\"display-counter\" data-value=\"' . esc_attr( $number ) . '\">' . esc_attr( $number ) . '</span></div><div class=\"description\">';\n\t\t\t$result .= do_shortcode( $content );\n\t\t\t$result .= '</div></div>';\n\t\t} elseif ( $style == 'style11' ) {\n\t\t\t$result = '<div class=\"icon-box ' . esc_attr( $style . $class ) . '\"><div class=\"icon-wrapper\"><i class=\"' . esc_attr( $icon ) . '\"></i></div>';\n\t\t\t$result .= '<div class=\"details\"><h4 class=\"m-title\">';\n\t\t\t$result .= do_shortcode( $content );\n\t\t\t$result .= '</h4></div></div>';\n\t\t} elseif ( ( $style == 'style5' ) || ( $style == 'style6' ) || ( $style == 'style7' ) ) {\n\t\t\t$result = '<div class=\"icon-box ' . esc_attr( $style . $class ) . '\"><i class=\"' . esc_attr( $icon ) . '\"></i><div class=\"description\">';\n\t\t\t$result .= do_shortcode( $content );\n\t\t\t$result .= '</div></div>';\n\t\t} else {\n\t\t\t$result = '<div class=\"icon-box ' . esc_attr( $style . $class ) . '\"><i class=\"' . esc_attr( $icon );\n\t\t\t$result .= ( $style == 'style2')?' circle':'';\n\t\t\t$result .= '\"></i>';\n\t\t\t$result .= do_shortcode( $content );\n\t\t\t$result .= '</div>';\n\t\t}\n\t\treturn $result;\n\t}", "function page_link_sc($atts) {\n $output = '';\n \n $atts = shortcode_atts(array(\n 'ids' => '',\n ), $atts );\n \n $ids = array_map('interval', explode(',', $atts['ids']));\n \n if($ids) {\n $output .= '<div class=\"page-link\">';\n \n foreach($ids as $id) {\n $tyle = has_post_thumbnail($id) ? 'style=\"background-image: url(' .wp_get_attachment_image_url(get_post_thumbnail($id), '_page_link'). ');\"' : '';\n \n $output .= '<a href=\"' . get_permalink( $id ) . '\"' . $style . '><span class=\"page-link-title\">' . get_the_title( $id ) . '</span></a>';\n }\n $output .= '</div>';\n }\n \n return $output;\n}", "function vc_testimonial_structure( $atts, $content ) {\n\t$vc_tm_shortcode = shortcode_atts(\n\t\tarray(\n\t\t\t'cname' => '',\n\t\t\t'cdesignation' => '',\n\t\t\t'cimage' => 'cimage',\n\t\t\t'bcolor' => '',\n\t\t\t'ctitle' => '',\n\t\t\t'cdesignationc' => '',\n\t\t\t'cborder' => '',\n\t\t), \n\t$atts );\n\n\t// Shortcode Structure\n\t$client_img_as = explode(',',$vc_tm_shortcode['cimage']);\n\t$return = '<div class=\"tm_body\" style=\"background: '.$vc_tm_shortcode[\"bcolor\"].';\">';\n\t$return\t.=\t'<div class=\"tm_des\">'; \n\t\t\t\t\tforeach( $client_img_as as $client_img ){\n\t\t\t\t\t$tm_client_image = wp_get_attachment_image_src( $client_img, 'client_image' );\n\t\t\t\t\t$return .='<img class=\"tm_client_img\" src=\"'.$tm_client_image[0].'\" alt=\"'.$atts['title'].'\">';\n\t\t\t\t\t$tm_client_image++;\n\t\t\t\t}\n\t$return .=\t\t'<div class=\"tm_content\" style=\"border-color: '.$vc_tm_shortcode[\"cborder\"].';\">';\n\t$return .=\t\t\t'<h3 style=\"color: '.$vc_tm_shortcode[\"ctitle\"].';\">'.$vc_tm_shortcode[\"cname\"].'</h3>';\n\t$return .=\t\t\t'<p style=\"color: '.$vc_tm_shortcode[\"cdesignationc\"].';\">'.$vc_tm_shortcode[\"cdesignation\"].'</p>';\n\t$return .=\t\t'</div>';\n\t$return .=\t'</div>';\n\t$return .= '</div>';\n\treturn $return;\n}", "function shortcode_map() {\r\n\t\t\tif ( !function_exists( 'vc_map' ) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t$base = array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_preset',\r\n\t\t\t\t\t'heading' => __( 'Main Preset', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'preset',\r\n\t\t\t\t\t'tooltip' => MPC_Helper::style_presets_desc(),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'shortcode' => $this->shortcode,\r\n\t\t\t\t\t'description' => __( 'Choose preset or create new one.', 'mpc' ),\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t/* Properties List */\r\n\t\t\t$properties = array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_divider',\r\n\t\t\t\t\t'title' => __( 'List of Properties', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'properties_divider',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_split',\r\n\t\t\t\t\t'heading' => __( 'Properties', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'properties',\r\n\t\t\t\t\t'admin_label' => true,\r\n\t\t\t\t\t'tooltip' => __( 'Define properties values. Each new line will be a separate property.', 'mpc' ),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'dropdown',\r\n\t\t\t\t\t'heading' => __( 'Transform', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'properties_font_transform',\r\n\t\t\t\t\t'tooltip' => __( 'Select properties transform style.', 'mpc' ),\r\n\t\t\t\t\t'value' => array(\r\n\t\t\t\t\t\t'' => '',\r\n\t\t\t\t\t\t__( 'Capitalize', 'mpc' ) => 'capitalize',\r\n\t\t\t\t\t\t__( 'Small Caps', 'mpc' ) => 'small-caps',\r\n\t\t\t\t\t\t__( 'Uppercase', 'mpc' ) => 'uppercase',\r\n\t\t\t\t\t\t__( 'Lowercase', 'mpc' ) => 'lowercase',\r\n\t\t\t\t\t\t__( 'None', 'mpc' ) => 'none',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'std' => '',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-6 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'dropdown',\r\n\t\t\t\t\t'heading' => __( 'Alignment', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'properties_font_align',\r\n\t\t\t\t\t'tooltip' => __( 'Select properties alignment.', 'mpc' ),\r\n\t\t\t\t\t'value' => array(\r\n\t\t\t\t\t\t'' => '',\r\n\t\t\t\t\t\t__( 'Left', 'mpc' ) => 'left',\r\n\t\t\t\t\t\t__( 'Right', 'mpc' ) => 'right',\r\n\t\t\t\t\t\t__( 'Center', 'mpc' ) => 'center',\r\n\t\t\t\t\t\t__( 'Justify', 'mpc' ) => 'justify',\r\n\t\t\t\t\t\t__( 'Default', 'mpc' ) => 'inherit',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'std' => '',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-6 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'colorpicker',\r\n\t\t\t\t\t'heading' => __( 'Color', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'properties_font_color',\r\n\t\t\t\t\t'tooltip' => __( 'Define properties color.', 'mpc' ),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column',\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t$properties_even_background = MPC_Snippets::vc_background( array( 'prefix' => 'prop_even', 'subtitle' => __( 'Even Properties', 'mpc' ) ) );\r\n\r\n\t\t\t$class = MPC_Snippets::vc_class();\r\n\r\n\t\t\t$params = array_merge(\r\n\t\t\t\t$base,\r\n\r\n\t\t\t\t$properties,\r\n\t\t\t\t$properties_even_background,\r\n\t\t\t\t$class\r\n\t\t\t);\r\n\r\n\t\t\treturn array(\r\n\t\t\t\t'name' => __( 'Pricing Legend', 'mpc' ),\r\n\t\t\t\t'description' => __( 'Pricing table legend', 'mpc' ),\r\n\t\t\t\t'base' => 'mpc_pricing_legend',\r\n\t\t\t\t'as_child' => array( 'only' => 'mpc_pricing_box' ),\r\n\t\t\t\t'content_element' => true,\r\n//\t\t\t\t'icon' => mpc_get_plugin_path( __FILE__ ) . '/assets/images/icons/mpc-pricing-box.png',\r\n\t\t\t\t'icon' => 'mpc-shicon-pricing-legend',\r\n\t\t\t\t'category' => __( 'MPC', 'mpc' ),\r\n\t\t\t\t'params' => $params,\r\n\t\t\t);\r\n\t\t}", "function studeon_vc_get_css($css, $colors, $fonts, $scheme='') {\n\t\tif (isset($css['fonts']) && $fonts) {\n\t\t\t$css['fonts'] .= <<<CSS\n.vc_tta.vc_tta-accordion .vc_tta-panel-title .vc_tta-title-text {\n\t{$fonts['p_font-family']}\n}\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar .vc_label {\n\t{$fonts['h5_font-family']}\n}\n\nCSS;\n\t\t}\n\n\t\tif (isset($css['colors']) && $colors) {\n\t\t\t$css['colors'] .= <<<CSS\n\n/* Row and columns */\n.scheme_self.vc_section,\n.scheme_self.wpb_row,\n.scheme_self.wpb_column > .vc_column-inner > .wpb_wrapper,\n.scheme_self.wpb_text_column {\n\tcolor: {$colors['text']};\n}\n.scheme_self.vc_section[data-vc-full-width=\"true\"],\n.scheme_self.wpb_row[data-vc-full-width=\"true\"],\n.scheme_self.wpb_column > .vc_column-inner > .wpb_wrapper,\n.scheme_self.wpb_text_column {\n\tbackground-color: {$colors['bg_color']};\n}\n.scheme_self.vc_row.vc_parallax[class*=\"scheme_\"] .vc_parallax-inner:before {\n\tbackground-color: {$colors['bg_color_08']};\n}\n\n/* Accordion */\n.vc_tta.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon {\n\tcolor: {$colors['inverse_link']};\n\tbackground-color: {$colors['text_dark']};\n}\n.vc_tta.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:before,\n.vc_tta.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:after {\n\tborder-color: {$colors['inverse_link']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel .vc_tta-panel-title > a {\n\tcolor: {$colors['text_dark']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel .vc_tta-panel-title > a:hover {\n\tcolor: {$colors['text_link']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel .vc_tta-panel-title > a:hover .vc_tta-controls-icon {\n\tcolor: {$colors['inverse_link']};\n\tbackground-color: {$colors['text_link']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon:before,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon:after {\n\tborder-color: {$colors['inverse_link']};\n}\n\n/* Tabs */\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tabs-list .vc_tta-tab > a {\n\tcolor: {$colors['inverse_link']};\n\tbackground-color: {$colors['text_dark']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tabs-list .vc_tta-tab > a:hover,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tabs-list .vc_tta-tab.vc_active > a {\n\tcolor: {$colors['inverse_hover']};\n\tbackground-color: {$colors['text_link']};\n}\n\n/* Separator */\n.vc_separator.vc_sep_color_grey .vc_sep_line {\n\tborder-color: {$colors['bd_color']};\n}\n\n/* Progress bar */\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar {\n\tbackground-color: rgba(0,0,0,0.1);\n}\n.vc_progress_bar.vc_progress-bar-color-bar_grey .vc_single_bar .vc_bar {\n\tbackground-color: {$colors['accent2']};\n}\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar .vc_label {\n\tcolor: {$colors['text_dark']};\n}\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar .vc_label .vc_label_units {\n\tcolor: {$colors['text_light']};\n}\n\nCSS;\n\t\t}\n\t\t\n\t\treturn $css;\n\t}", "function first_edition_customize_css() {\n\t$selected_fonts = first_edition_font_list();\n\t$color = get_option( 'first_edition_colors' );\n\t$bgcolor = get_theme_mod( 'background_color' );\n\t$customized_css = '.custom-background { background-color: #' . esc_attr( $bgcolor ) . '; }'\n\t\t. \"\\n\" . 'a { color: #' . $color['link'] . '; }'\n\t\t. \"\\n\" . 'body, a:hover, a:focus, a:active, .main-navigation ul .current_page_item > a { color: #' . esc_attr( $color['text'] ) . '; }'\n\t\t. \"\\n\" . '.comment-form input[type=\"submit\"]:hover { background: #' . esc_attr( $color['text'] ) . '; color: #' . esc_attr( $bgcolor) . '; }';\n\t$font = get_option( 'first_edition_font_pair' );\n\tif ( '' != $font ) {\n\tswitch ( $font ) {\n\t\tcase 'pair1':\n\t\t\twp_enqueue_style( 'lustria', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['lustria'] ) );\n\t\t\twp_enqueue_style( 'lato', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['lato'] ) );\n\t\t\t$customized_css .= \"\\nh1,h2,h3,h4,h5,h6 { font-family: 'Lustria', serif; }\";\n\t\t\t$customized_css .= \"\\nbody { font-family: 'Lato', 'Open Sans', sans-serif; font-weight: 300; }\";\n\t\t\tbreak;\n\n\t\tcase 'pair2':\n\t\t\twp_enqueue_style( 'ubutnu', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['ubutnu'] ) );\n\t\t\twp_enqueue_style( 'lora', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['lora'] ) );\n\t\t\t$customized_css .= \"\\nh1,h2,h3,h4,h5,h6 { font-family: 'Ubuntu', serif; }\";\n\t\t\t$customized_css .= \"\\nbody { font-family: 'Lora', 'Open Sans', sans-serif; }\";\n\t\t\tbreak;\n\n\t\tcase 'pair3':\n\t\t\twp_enqueue_style( 'raleway', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['raleway'] ) );\n\t\t\twp_enqueue_style( 'merriweather', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['merriweather'] ) );\n\t\t\t$customized_css .= \"\\nh1,h2,h3,h4,h5,h6 { font-family: 'Raleway', serif; } \";\n\t\t\t$customized_css .= \"\\nbody { font-family: 'Merriweather', 'Open Sans', sans-serif; font-weight: 300; }\";\n\t\t\tbreak;\n\n\t\tcase 'pair4':\n\t\t\twp_enqueue_style( 'roboto-slab', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['roboto-slab'] ) );\n\t\t\twp_enqueue_style( 'roboto', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['roboto'] ) );\n\t\t\t$customized_css .= \"\\nh1,h2,h3,h4,h5,h6 { font-family: 'Roboto Slab', serif; }\";\n\t\t\t$customized_css .= \"\\nbody { font-family: 'Roboto', 'Open Sans', sans-serif; font-weight: 300; }\";\n\t\t\tbreak;\n\n\t\tcase 'pair5':\n\t\t\twp_enqueue_style( 'quattrocento', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['quattrocento'] ) );\n\t\t\twp_enqueue_style( 'quattrocento-sans', \"//fonts.googleapis.com/css?family=\" . esc_url( $selected_fonts['quattrocento-sans'] ) );\n\t\t\t$customized_css .= \"\\nh1,h2,h3,h4,h5,h6 { font-family: 'Quattrocento', serif; }\";\n\t\t\t$customized_css .= \"\\nbody { font-family: 'Quattrocento Sans', 'Open Sans', sans-serif; font-weight: 300; }\";\n\t\t\tbreak;\n\t} }\n\twp_add_inline_style( 'first-edition-style', $customized_css );\n}", "function sc_component_fullwidth_text_promo($atts) {\n extract( shortcode_atts( array(\n 'body' => 'Promo body text goes here',\n 'bg_color' => 'bg-iu-crimson',\n 'indented' => '',\n ), $atts ));\n\n return render_component('fullwidth-text-promo', [\n 'body' => $body,\n 'bg_color' => $bg_color,\n 'indented' => $indented,\n ]);\n}", "public function css();", "protected function livewireStyleDefinition()\n {\n return <<<'EOF'\n\n@livewireStyles\n\nEOF;\n }", "function my_slide($para, $content){\n \t$para = shortcode_atts(array(\n \t\t'color' => 'red',\n \t\t'font-size' => '30px'\n \t), $para); ob_start(); ?>\n\n \techo '<h2 style=\"color:'.$para['color']'\">'. $content .'</h2>'\n <?php return ob_get_clean(); }", "public function __construct() {\n\n global $canvys;\n\n // Allowed background image settings\n $overlay_opacity_options = array(\n 'none' => __( 'None, do not display an overlay color', 'canvys' ),\n );\n\n for ( $i=10; $i<=90; $i+=10 ) {\n $overlay_opacity_options[$i] = $i . '%';\n }\n\n $min_height_options = array( 'none' => __( 'None, let the content dictate the height', 'canvys' ) );\n for ($i=5;$i<=100;$i+=5 ) {\n $min_height_options[$i] = $i.'%';\n }\n\n $this->config = array(\n\n // Handle will be used to use this shortcode\n 'handle' => 'cv_section',\n\n // Whether or not this is a shortcode composer element\n 'composer_element' => false,\n\n // Whether or not this is a template builder element\n 'builder_element' => true,\n\n // Used by the template builder to determine where module can be dropped\n 'drop_target' => 0,\n\n // Used by the template builder to determine where module can have other\n // modules dropped inside of it\n 'drop_zone' => 1,\n\n // Title will be used to identify this shortcode\n 'title' => __( 'Content Section', 'canvys' ),\n\n // Icon will be used to represent this shortcode in composer/builder\n // List of available icons can be found in icons.json\n 'icon' => 'progress-0',\n\n // Whether or not shortcode is self closing\n 'self_closing' => false,\n\n // If shortcode is not self closing, specify its default content\n 'default_content' => null,\n\n // Specify whether or not content is directly editable\n 'content_editor' => false,\n\n // Specify whether or not the content is composed of another shortcode\n 'content_element' => false,\n\n // Provide an explanation of what this shortcode does\n 'explanation' => __( 'Full screen content sections are the foundation for your pages content, they provide the background images, color schemes, and the perfect way to divide the content of your page and add some organization. Content sections can contain any number or row modules which can be used to further organize your content.', 'canvys' ),\n\n // Array of shortcode settings and their respective attributes\n 'attributes' => array(\n\n new CV_Shortcode_Text_Control( 'id', array(\n 'title' => __( 'Section ID', 'canvys' ),\n 'description' => __( 'Set the ID attribute for this section, this allows you to apply unique styles to this section with CSS or to link to this section in the creation of a one page website.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'color_scheme', array(\n 'title' => __( 'Color Scheme', 'canvys' ),\n 'description' => __( 'This will control the control scheme for the section itself and all of the modules placed inside of it. These different color schemes can be edited by navigating to Appearance > Color Scheme.', 'canvys' ),\n 'default' => 'main',\n 'options' => array(\n 'main' => __( 'Main Content', 'canvys' ),\n 'alternate' => __( 'Alternate Content', 'canvys' ),\n 'header' => __( 'Header', 'canvys' ),\n 'footer' => __( 'Footer', 'canvys' ),\n 'socket' => __( 'Socket', 'canvys' ),\n 'white' => __( 'All White Content (For sections with dark backgrounds)', 'canvys' ),\n 'black' => __( 'All Black Content (For sections with light backgrounds)', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_source', array(\n 'title' => __( 'Background Source', 'canvys' ),\n 'description' => __( 'Specify how the background of this section should be dislayed.', 'canvys' ),\n 'default' => 'default',\n 'options' => array(\n 'default' => __( 'Default background', 'canvys' ),\n 'color' => __( 'Custom color', 'canvys' ),\n 'preset' => __( 'Preset pattern', 'canvys' ),\n 'image' => __( 'Custom image', 'canvys' ),\n 'video' => __( 'HTML5 video', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_BG_Pattern_Control( 'bg_preset_pattern', array(\n 'title' => __( 'Preset Patterns', 'canvys' ),\n 'description' => __( 'Select a preset pattern to use as the background for this section.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Color_Control( 'bg_color', array(\n 'title' => __( 'Background Color', 'canvys' ),\n 'description' => __( 'Specify a custom background color to be used for this section, leave this blank to use the default background color.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Image_Control( 'bg_image', array(\n 'title' => __( 'Background Image', 'canvys' ),\n 'description' => __( 'The background image for this section. This will be displayed on top of the background color.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_style', array(\n 'title' => __( 'Background Image Style', 'canvys' ),\n 'description' => __( 'Whether or not the background image should be tiled, or cover the section completely. Tiled will display the image at its actual size but it will repeat to fill the section. Cover will (potentially) increase or decrease either the width or height of the image to ensure that it will cover the section, please note that the image will be scaled proportionately.', 'canvys' ),\n 'default' => 'cover',\n 'options' => array(\n 'cover' => __( 'Cover', 'canvys' ),\n 'tile' => __( 'Tiled', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_attachment', array(\n 'title' => __( 'Background Image Attachment', 'canvys' ),\n 'description' => __( 'This will dictate how the image should behave as the page is scrolled. Scroll will allow the background image to scroll normally with the rst of the page, while fixed will leave the image fixed in place as the page scrolles for what is commonly reffered to as a \"parrallax\" effect.', 'canvys' ),\n 'default' => 'scroll',\n 'options' => array(\n 'scroll' => __( 'Scroll', 'canvys' ),\n 'fixed' => __( 'Fixed', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Image_Control( 'bg_video_fallback', array(\n 'title' => __( 'HTML5 Video Background Fallback Image', 'canvys' ),\n 'description' => __( 'Select an image to be used as the background on devices that dont fully support HTML5 video elements. Please note that this inlcudes nearly all mobile devices and tablets.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_File_Control( 'bg_video_webm', array(\n 'title' => __( 'HTML5 Video Background .webm file', 'canvys' ),\n 'description' => __( 'Specify the webm file to use for the video background.', 'canvys' ),\n 'file_type' => 'video',\n ) ),\n\n new CV_Shortcode_File_Control( 'bg_video_ogv', array(\n 'title' => __( 'HTML5 Video Background .ogv file', 'canvys' ),\n 'description' => __( 'Specify the ogv file to use for the video background.', 'canvys' ),\n 'file_type' => 'video',\n ) ),\n\n new CV_Shortcode_File_Control( 'bg_video_mp4', array(\n 'title' => __( 'HTML5 Video Background .mp4 file', 'canvys' ),\n 'description' => __( 'Specify the mp4 file to use for the video background.', 'canvys' ),\n 'file_type' => 'video',\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_scrolling', array(\n 'title' => __( 'Scrolling Background Direction', 'canvys' ),\n 'description' => __( 'Enable scrolling background effect for this section. Keep in mind this works best with background images that tile perfectly.', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No scrolling effect', 'canvys' ),\n 'top' => array(\n 'label' => __( 'Upwards', 'canvys' ),\n 'options' => array(\n 'up-left' => __( 'Up Left', 'canvys' ),\n 'up' => __( 'Up', 'canvys' ),\n 'up-right' => __( 'Up Right', 'canvys' ),\n ),\n ),\n 'middle' => array(\n 'label' => __( 'Horizontal', 'canvys' ),\n 'options' => array(\n 'left' => __( 'Left', 'canvys' ),\n 'right' => __( 'Right', 'canvys' ),\n ),\n ),\n 'bottom' => array(\n 'label' => __( 'Downwards', 'canvys' ),\n 'options' => array(\n 'down-left' => __( 'Down Left', 'canvys' ),\n 'down' => __( 'Down', 'canvys' ),\n 'down-right' => __( 'Down Right', 'canvys' ),\n ),\n ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_scrolling_speed', array(\n 'title' => __( 'Scrolling Background Speed', 'canvys' ),\n 'description' => __( 'Specify how quickly the background should scroll.', 'canvys' ),\n 'default' => 'normal',\n 'options' => array(\n 'slow' => __( 'Slow', 'canvys' ),\n 'normal' => __( 'Normal', 'canvys' ),\n 'fast' => __( 'Fast', 'canvys' ),\n 'very-fast' => __( 'very Fast', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'overlay_opacity', array(\n 'title' => __( 'Background Overlay Opacity', 'canvys' ),\n 'description' => __( 'Specify whether or not a color should be overlayed on top of the section background, and at what opacity.', 'canvys' ),\n 'default' => 'none',\n 'options' => $overlay_opacity_options,\n ) ),\n\n new CV_Shortcode_Color_Control( 'overlay_color', array(\n 'title' => __( 'Background Overlay Color', 'canvys' ),\n 'description' => __( 'Specify a color to be overlayed on top of the section background.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'sidebar_layout', array(\n 'title' => __( 'Sidebar Layout', 'canvys' ),\n 'description' => __( 'The layout of this section, if you use either left or right sidebar you will be able to shoose which sidebar is displayed.', 'canvys' ),\n 'default' => 'no-sidebar',\n 'options' => array(\n 'no-sidebar' => __( 'No sidebar', 'canvys' ),\n 'sidebar-right' => __( 'Right Sidebar', 'canvys' ),\n 'sidebar-left' => __( 'Left Sidebar', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Sidebar_Select_Control( 'sidebar', array(\n 'title' => __( 'Sidebar', 'canvys' ),\n 'description' => __( 'The sidebar to be displayed.', 'canvys' ),\n 'default' => 'sidebar',\n ) ),\n\n new CV_Shortcode_Select_Control( 'parallax', array(\n 'title' => __( 'Enable Parallax', 'canvys' ),\n 'description' => __( 'Enable parallax scrolling effect for this sections content', 'canvys' ),\n 'default' => 'false',\n 'options' => array(\n 'false' => __( 'No parallax effect', 'canvys' ),\n 'true' => __( 'Yes, enable parallax scrolling', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'min_height', array(\n 'title' => __( 'Minimum Height', 'canvys' ),\n 'description' => __( 'The mimimun height of the section (if specified) will be based on a percentage of total screen height.', 'canvys' ),\n 'default' => 'none',\n 'options' => $min_height_options,\n ) ),\n\n new CV_Shortcode_Select_Control( 'stretched', array(\n 'title' => __( 'Stretched Content', 'canvys' ),\n 'description' => __( 'Allow the content of this section to stretch to the size of the layout.', 'canvys' ),\n 'default' => 'false',\n 'options' => array(\n 'false' => __( 'No, do not enable stretched content', 'canvys' ),\n 'free' => __( 'yes, stretched with side padding', 'canvys' ),\n 'stretched' => __( 'yes, stretched without side padding', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'border_top', array(\n 'title' => __( 'Top Border', 'canvys' ),\n 'description' => __( 'Specify how the top border should be styled', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No special styling', 'canvys' ),\n 'border' => __( 'Simple line border', 'canvys' ),\n 'shadow' => __( 'Faint inner shadow', 'canvys' ),\n 'shadow-border' => __( 'Line border & shadow', 'canvys' ),\n 'arrow' => __( 'Arrow pointing up', 'canvys' ),\n 'arrow-border' => __( 'Arrow pointing up & border', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'border_bottom', array(\n 'title' => __( 'Bottom Border', 'canvys' ),\n 'description' => __( 'Specify how the bottom border should be styled', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No special styling', 'canvys' ),\n 'border' => __( 'Simple line border', 'canvys' ),\n 'shadow' => __( 'Faint inner shadow', 'canvys' ),\n 'shadow-border' => __( 'Line border & shadow', 'canvys' ),\n 'arrow' => __( 'Arrow pointing down', 'canvys' ),\n 'arrow-border' => __( 'Arrow pointing down & border', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'padding_top', array(\n 'title' => __( 'Top Padding', 'canvys' ),\n 'description' => __( 'The empty space above the content in this section.', 'canvys' ),\n 'default' => 'normal',\n 'options' => array(\n 'none' => __( 'None', 'canvys' ),\n 'less' => __( 'Less', 'canvys' ),\n 'normal' => __( 'Normal', 'canvys' ),\n 'more' => __( 'More', 'canvys' ),\n 'much-more' => __( 'Much More', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'padding_bottom', array(\n 'title' => __( 'Bottom Padding', 'canvys' ),\n 'description' => __( 'The empty space below the content in this section.', 'canvys' ),\n 'default' => 'normal',\n 'options' => array(\n 'none' => __( 'None', 'canvys' ),\n 'less' => __( 'Less', 'canvys' ),\n 'normal' => __( 'Normal', 'canvys' ),\n 'more' => __( 'More', 'canvys' ),\n 'much-more' => __( 'Much More', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'visibility', array(\n 'title' => __( 'Visibility', 'canvys' ),\n 'description' => __( 'Which devices this section should be visible on. This is great for optimizing your website for all devices. Please note that this setting is not applicable when full page content sliding is active.', 'canvys' ),\n 'default' => 'all',\n 'options' => $canvys['visibility_options'],\n ) ),\n\n new CV_Shortcode_Dev_Control( 'forced_height', array(\n 'default' => null,\n ) ),\n\n new CV_Shortcode_Dev_Control( 'class', array(\n 'default' => null,\n ) ),\n\n ),\n );\n }", "function charity_create_stylesheet() {\n $content = \"\\t\";\n $content .= \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"\";\n $content .= get_bloginfo('stylesheet_url');\n $content .= \"\\\" />\";\n $content .= \"\\n\\n\";\n echo apply_filters('charity_create_stylesheet', $content);\n}", "function shortcode ( $content ) {\n return short_code ( $content );\n}", "public function custom_css() {\n\t\t$options = new Services\\Options();\n\t\t\n\t\t// Not working\n\t\t//$customizer = $options->get_option( 'helpful_customizer', array() );\n\t\t$customizer = get_option('helpful_customizer') ?: array();\n\n\t\t// ==== CUSTOM CSS ====\n\n\t\t$css_output = ( is_array( $customizer ) && array_key_exists( 'css', $customizer ) ) ? $customizer['css'] : '';\n\n\t\t// ==== GENERAL ====\n\n\t\tif ( $this->_ake( 'background_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {background: %s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['background_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'heading_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-headline {color: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['heading_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'text_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {color: %1$s !important} .helpful a {color: %1$s !important} .helpful .helpful-feedback-form label {color: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['text_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'border_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {border-color: %s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['border_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'border_style', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {border-style: %s !important}',\n\t\t\t\tsanitize_key( esc_attr( $customizer['border_style'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'border_width', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {border-width: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['border_width'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'border_radius', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {border-radius: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['border_radius'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'margin_top', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {margin-top: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['margin_top'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'margin_bottom', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {margin-bottom: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['margin_bottom'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'padding', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful {padding: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['padding'] ) )\n\t\t\t);\n\t\t}\n\n\t\t// ==== Button ====\n\n\t\tif ( $this->_ake( 'button_background_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button {background: %1$s !important; opacity: 1} .helpful .helpful-button:hover {opacity: 0.75}',\n\t\t\t\tsanitize_hex_color( $customizer['button_background_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'button_text_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button {color: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['button_text_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'button_radius', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button {border-radius: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['button_radius'] ) )\n\t\t\t);\n\t\t}\n\n\t\t// ==== Pro Button ====\n\n\t\tif ( $this->_ake( 'pro_background_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button.helpful-pro {background: %1$s !important; opacity: 1} .helpful .helpful-button.helpful-pro:hover {opacity: 0.75}',\n\t\t\t\tsanitize_hex_color( $customizer['pro_background_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'pro_text_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button.helpful-pro {color: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['pro_text_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'pro_radius', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button.helpful-pro {border-radius: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['pro_radius'] ) )\n\t\t\t);\n\t\t}\n\n\t\t// ==== Contra Button ====\n\n\t\tif ( $this->_ake( 'contra_background_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button.helpful-contra {background: %1$s !important; opacity: 1} .helpful .helpful-button.helpful-contra:hover {opacity: 0.75}',\n\t\t\t\tsanitize_hex_color( $customizer['contra_background_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'contra_text_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button.helpful-contra {color: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['contra_text_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'contra_radius', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-button.helpful-contra {border-radius: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['contra_radius'] ) )\n\t\t\t);\n\t\t}\n\n\t\t// ==== Feedback ====\n\n\t\tif ( $this->_ake( 'feedback_background_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-feedback-form input, .helpful .helpful-feedback-form textarea {background: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['feedback_background_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'feedback_text_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-feedback-form input, .helpful .helpful-feedback-form textarea {color: %1$s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['feedback_text_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'feedback_border_color', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-feedback-form input, .helpful .helpful-feedback-form textarea {border-color: %s !important}',\n\t\t\t\tsanitize_hex_color( $customizer['feedback_border_color'] )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'feedback_border_style', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-feedback-form input, .helpful .helpful-feedback-form textarea {border-style: %s !important}',\n\t\t\t\tsanitize_key( esc_attr( $customizer['feedback_border_style'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'feedback_border_width', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-feedback-form input, .helpful .helpful-feedback-form textarea {border-width: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['feedback_border_width'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( $this->_ake( 'feedback_border_radius', $customizer ) ) {\n\t\t\t$css_output .= sprintf(\n\t\t\t\t'.helpful .helpful-feedback-form input, .helpful .helpful-feedback-form textarea {border-radius: %spx !important}',\n\t\t\t\tintval( esc_attr( $customizer['feedback_border_radius'] ) )\n\t\t\t);\n\t\t}\n\n\t\tif ( '' !== trim( $css_output ) ) {\n\t\t\t$parser = new Vendor\\Css_Parser();\n\t\t\t$parser->load_string( $css_output );\n\t\t\t$parser->parse();\n\t\t\twp_add_inline_style( 'helpful', $parser->glue() );\n\t\t}\n\t}", "public function shortcode() {\n\t\t\treturn \"\";\n\t\t}", "function zilla_custom_css($content) {\n\t\t$zilla_values = get_option( 'zilla_framework_values' );\n\t\tif( array_key_exists( 'style_custom_css', $zilla_values ) && $zilla_values['style_custom_css'] != '' ){\n\t\t\t$content .= '/* Custom CSS */' . \"\\n\";\n\t\t\t\t$content .= stripslashes($zilla_values['style_custom_css']);\n\t\t\t\t$content .= \"\\n\\n\";\n\t\t}\n\t\treturn $content;\n\t\t\n}", "public function getConcatenateCss() {}", "function ag_preset_styles_data($style = '') {\n\t$styles = array();\n\t\n\t\n\t/*** LIGHTS ***/\n\t$styles['l_standard'] = array(\n\t\t'ag_standard_hor_margin' => 5,\n\t\t'ag_standard_ver_margin' => 5,\n\t\t'ag_masonry_margin' => 7,\n\t\t'ag_photostring_margin' => 7,\n\t\t\n\t\t'ag_img_border' => 4,\n\t\t'ag_img_radius' => 4,\n\t\t'ag_img_shadow' => 'outshadow',\n\t\t'ag_img_border_color' => '#FFFFFF',\n\t\t\n\t\t'ag_main_ol_color' => '#ffffff',\n\t\t'ag_main_ol_opacity' => 80,\n\t\t'ag_main_ol_txt_color' => '#222222',\n\t\t'ag_sec_ol_color' => '#555555',\n\t\t'ag_icons_col' => '#fcfcfc',\n\t\t'ag_txt_u_title_color' => '#444444',\n\t\t'ag_txt_u_descr_color' => '#555555',\n\t\t\n\t\t'ag_filters_border_w' => 2,\n\t\t'ag_filters_radius' => 2,\n\t\t\n\t\t'ag_filters_txt_color' => '#666666', \n\t\t'ag_filters_bg_color' => '#ffffff',\n\t\t'ag_filters_border_color' => '#bbbbbb', \n\t\t'ag_filters_txt_color_h' => '#535353', \n\t\t'ag_filters_bg_color_h' => '#fdfdfd', \n\t\t'ag_filters_border_color_h' => '#777777',\n\t\t'ag_filters_txt_color_sel' => '#333333', \n\t\t'ag_filters_bg_color_sel' => '#efefef', \n\t\t'ag_filters_border_color_sel' => '#aaaaaa',\n\t\t\n\t\t'ag_search_txt_color' => '#666666', \n\t\t'ag_search_bg_color' => '#ffffff',\n\t\t'ag_search_border_color' => '#bbbbbb',\n\t\t'ag_search_txt_color_h' => '#333333', \n\t\t'ag_search_bg_color_h' => '#fdfdfd',\n\t\t'ag_search_border_color_h' => '#aaaaaa',\n\t\t\n\t\t'ag_pag_txt_col' => '#666666', \n\t\t'ag_pag_bg_col' => '#ffffff',\n\t\t'ag_pag_border_col' => '#bbbbbb',\n\t\t'ag_pag_txt_col_h' => '#333333', \n\t\t'ag_pag_bg_col_h' => '#efefef',\n\t\t'ag_pag_border_col_h' => '#aaaaaa',\n\t);\n\t\n\t\n\t$styles['l_minimal'] = ag_ps_override_indexes($styles['l_standard'], array(\n\t\t'ag_standard_hor_margin' => 6,\n\t\t'ag_standard_ver_margin' => 6,\n\t\t'ag_masonry_margin' => 8,\n\t\t'ag_photostring_margin' => 8,\n\t\t\n\t\t'ag_img_border' => 4,\n\t\t'ag_img_radius' => 1,\n\t\t'ag_img_shadow' => 'outline',\n\t\t'ag_img_outline_color' => '#bbbbbb', \n\t\t'ag_img_border_color' => 'transparent',\n\t\t\n\t\t'ag_main_ol_color' => '#ffffff',\n\t\t'ag_main_ol_opacity' => 90,\n\t\t'ag_main_ol_txt_color' => '#222222',\n\t\t'ag_sec_ol_color' => '#555555',\n\t\t'ag_icons_col' => '#fefefe',\n\t\t'ag_txt_u_title_color' => '#444444',\n\t\t'ag_txt_u_descr_color' => '#555555',\n\t\t\n\t\t'ag_filters_border_w' => 1,\n\t));\n\t\n\n\t$styles['l_noborder'] = ag_ps_override_indexes($styles['l_standard'], array(\n\t\t'ag_standard_hor_margin' => 5,\n\t\t'ag_standard_ver_margin' => 5,\n\t\t'ag_masonry_margin' => 5,\n\t\t'ag_photostring_margin' => 5,\n\t\t\n\t\t'ag_img_border' => 0,\n\t\t'ag_img_radius' => 2,\n\t\t'ag_img_shadow' => 'outshadow',\n\t\t'ag_img_border_color' => '#FFFFFF',\n\t\t\n\t\t'ag_main_ol_color' => '#FFFFFF',\n\t\t'ag_main_ol_opacity' => 80,\n\t\t'ag_main_ol_txt_color' => '#222222',\n\t\t'ag_sec_ol_color' => '#555555',\n\t\t'ag_icons_col' => '#fcfcfc',\n\t\t'ag_txt_u_title_color' => '#444444',\n\t\t'ag_txt_u_descr_color' => '#555555',\n\t\t\n\t\t'ag_filters_border_w' => 0,\n\t\t\n\t\t'ag_filters_txt_color' => '#606060', \n\t\t'ag_filters_bg_color' => '#f5f5f5',\n\t\t'ag_filters_txt_color_h' => '#4a4a4a', \n\t\t'ag_filters_bg_color_h' => '#fafafa', \n\t\t'ag_filters_txt_color_sel' => '#333333', \n\t\t'ag_filters_bg_color_sel' => '#dfdfdf', \n\t\t\n\t\t'ag_search_txt_color' => '#606060', \n\t\t'ag_search_bg_color' => '#f5f5f5',\n\t\t'ag_search_txt_color_h' => '#333333', \n\t\t'ag_search_bg_color_h' => '#eeeeee',\n\t));\n\t\n\t\n\t$styles['l_photowall'] = ag_ps_override_indexes($styles['l_noborder'], array(\n\t\t'ag_standard_hor_margin' => 0,\n\t\t'ag_standard_ver_margin' => 0,\n\t\t'ag_masonry_margin' => 0,\n\t\t'ag_photostring_margin' => 0,\n\t\t\n\t\t'ag_img_border' => 0,\n\t\t'ag_img_radius' => 0,\n\t\t'ag_img_shadow' => 'outshadow',\n\t\t'ag_img_border_color' => '#CCCCCC',\n\n\t\t'ag_main_ol_color' => '#FFFFFF',\n\t\t'ag_main_ol_opacity' => 80,\n\t\t'ag_main_ol_txt_color' => '#222222',\n\t\t'ag_sec_ol_color' => '#555555',\n\t\t'ag_icons_col' => '#fcfcfc',\n\t\t'ag_txt_u_title_color' => '#444444',\n\t\t'ag_txt_u_descr_color' => '#555555',\n\t));\n\t\n\t\n\t\n\t\n\t\n\t/*** DARKS ***/\n\t$styles['d_standard'] = array(\n\t\t'ag_standard_hor_margin' => 5,\n\t\t'ag_standard_ver_margin' => 5,\n\t\t'ag_masonry_margin' => 7,\n\t\t'ag_photostring_margin' => 7,\n\t\t\n\t\t'ag_img_border' => 4,\n\t\t'ag_img_radius' => 4,\n\t\t'ag_img_shadow' => 'outshadow',\n\t\t'ag_img_border_color' => '#888888',\n\t\t\n\t\t'ag_main_ol_color' => '#141414',\n\t\t'ag_main_ol_opacity' => 90,\n\t\t'ag_main_ol_txt_color' => '#ffffff',\n\t\t'ag_sec_ol_color' => '#bbbbbb',\n\t\t'ag_icons_col' => '#555555',\n\t\t'ag_txt_u_title_color' => '#fefefe',\n\t\t'ag_txt_u_descr_color' => '#f7f7f7',\n\t\t\n\t\t'ag_filters_border_w' => 2,\n\t\t'ag_filters_radius' => 2,\n\t\t\n\t\t'ag_filters_txt_color' => '#eeeeee', \n\t\t'ag_filters_bg_color' => '#4f4f4f',\n\t\t'ag_filters_border_color' => '#4f4f4f', \n\t\t'ag_filters_txt_color_h' => '#ffffff', \n\t\t'ag_filters_bg_color_h' => '#585858', \n\t\t'ag_filters_border_color_h' => '#777777',\n\t\t'ag_filters_txt_color_sel' => '#f3f3f3', \n\t\t'ag_filters_bg_color_sel' => '#6a6a6a', \n\t\t'ag_filters_border_color_sel' => '#6a6a6a',\n\t\t\n\t\t'ag_search_txt_color' => '#eeeeee', \n\t\t'ag_search_bg_color' => '#4f4f4f',\n\t\t'ag_search_border_color' => '#4f4f4f',\n\t\t'ag_search_txt_color_h' => '#f3f3f3', \n\t\t'ag_search_bg_color_h' => '#6a6a6a',\n\t\t'ag_search_border_color_h' => '#6a6a6a',\n\t\t\n\t\t'ag_pag_txt_col' => '#eeeeee', \n\t\t'ag_pag_bg_col' => '#4f4f4f',\n\t\t'ag_pag_border_col' => '#4f4f4f',\n\t\t'ag_pag_txt_col_h' => '#f3f3f3', \n\t\t'ag_pag_bg_col_h' => '#6a6a6a',\n\t\t'ag_pag_border_col_h' => '#6a6a6a',\n\t);\n\t\n\t\n\t$styles['d_minimal'] = ag_ps_override_indexes($styles['d_standard'], array(\n\t\t'ag_standard_hor_margin' => 6,\n\t\t'ag_standard_ver_margin' => 6,\n\t\t'ag_masonry_margin' => 8,\n\t\t'ag_photostring_margin' => 8,\n\t\t\n\t\t'ag_img_border' => 4,\n\t\t'ag_img_radius' => 1,\n\t\t'ag_img_shadow' => 'outline',\n\t\t'ag_img_outline_color' => '#777777', \n\t\t'ag_img_border_color' => 'transparent',\n\t\t\n\t\t'ag_main_ol_color' => '#141414',\n\t\t'ag_main_ol_opacity' => 90,\n\t\t'ag_main_ol_txt_color' => '#ffffff',\n\t\t'ag_sec_ol_color' => '#bbbbbb',\n\t\t'ag_icons_col' => '#555555',\n\t\t'ag_txt_u_title_color' => '#fefefe',\n\t\t'ag_txt_u_descr_color' => '#f7f7f7',\n\t\t\n\t\t'ag_filters_border_w' => 1,\n\t));\n\t\n\t\n\t$styles['d_noborder'] = ag_ps_override_indexes($styles['d_standard'], array(\n\t\t'ag_standard_hor_margin' => 5,\n\t\t'ag_standard_ver_margin' => 5,\n\t\t'ag_masonry_margin' => 5,\n\t\t'ag_photostring_margin' => 5,\n\t\t\n\t\t'ag_img_border' => 0,\n\t\t'ag_img_radius' => 2,\n\t\t'ag_img_shadow' => 'outshadow',\n\t\t'ag_img_border_color' => '#999999',\n\t\t\n\t\t'ag_main_ol_color' => '#141414',\n\t\t'ag_main_ol_opacity' => 90,\n\t\t'ag_main_ol_txt_color' => '#ffffff',\n\t\t'ag_sec_ol_color' => '#bbbbbb',\n\t\t'ag_icons_col' => '#555555',\n\t\t'ag_txt_u_title_color' => '#fefefe',\n\t\t'ag_txt_u_descr_color' => '#f7f7f7',\n\t\t\n\t\t'ag_filters_border_w' => 0,\n\t));\n\n\t\n\t$styles['d_photowall'] = ag_ps_override_indexes($styles['d_noborder'], array(\n\t\t'ag_standard_hor_margin' => 0,\n\t\t'ag_standard_ver_margin' => 0,\n\t\t'ag_masonry_margin' => 0,\n\t\t'ag_photostring_margin' => 0,\n\t\t\n\t\t'ag_img_border' => 0,\n\t\t'ag_img_radius' => 0,\n\t\t'ag_img_shadow' => 'outshadow',\n\t\t'ag_img_border_color' => '#999999',\n\t\t\n\t\t'ag_main_ol_color' => '#141414',\n\t\t'ag_main_ol_opacity' => 90,\n\t\t'ag_main_ol_txt_color' => '#ffffff',\n\t\t'ag_sec_ol_color' => '#bbbbbb',\n\t\t'ag_icons_col' => '#555555',\n\t\t'ag_txt_u_title_color' => '#fefefe',\n\t\t'ag_txt_u_descr_color' => '#f7f7f7',\n\t));\n\n\n\tif(empty($style)) {return $styles;}\n\telse {\n\t\treturn (isset($styles[$style])) ? $styles[$style] : false;\n\t}\t\n}", "public function get_shortcode() {\n\t\t$args = array();\n\t\tforeach ($this->args as $k => $v) {\n\t\t\t// Only include info if it's not the default... save space and easier to read shortcodes\n\t\t\tif (isset($this->defaults[$k]) && $this->defaults[$k] != $v) { // && (!empty($this->defaults[$k]) && !empty($v))) {\n\t\t\t\tif ( !empty($v) ) {\n\t\t\t\t\tif ( is_array($v) ) {\n\t\t\t\t\t\t$args[] = $k.'=\"'.implode(',', $v).'\"';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$args[] = $k.'=\"'.$v.'\"';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Direct filtering on a field\n\t\t\telseif (!isset($this->defaults[$k])) {\n\t\t\t\t$args[] = $k.'=\"'.$v.'\"';\n\t\t\t}\n\t\t}\n\t\t\n\t\t$args = implode(' ', $args);\n\t\tif (!empty($args)) {\n\t\t\t$args = ' '.$args;\n\t\t}\n\t\treturn '[summarize-posts'.$args.']';\n\t}", "function iron_icon_shortcode( $atts ) {\n $a = shortcode_atts( array(\n\t\t'icon' => '',\n\t\t'color' => '',\n\t\t'size' => 24\n ), $atts );\n\t\n\t$icon = explode(':',$a['icon']);\n\tif(empty($icon[1])) {\n\t\t$icon[1] = $icon[0];\n\t\t$icon[0] = 'iron';\n\t} elseif($icon[0] === 'icons')\n\t\t$icon[0] = 'iron';\n\t\t\n\t$icon_svg = plugins_url(\"icons/{$icon[0]}.svg\",__FILE__);\t\n\t$color = empty($a['color']) ? 'currentColor' : $a['color'];\n\t$style = \" style=\\\"fill:{$color}\\\"\";\t\n\t\n\t$size = 0+$a['size'];\n\t$s = $size / 24;\n\t\n\t$uses = \"<use x='0' y='0' transform='scale($s)' xlink:href='{$icon_svg}#{$icon[1]}' $style/>\";\n return \"<svg width='$size' height='$size' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>$uses</svg>\";\n}", "function studioyacine_styles_dropdown($settings)\n {\n $new_styles = array(\n array(\n 'title' => __('Custom Styles', 'studioyacine'),\n 'items' => array(\n array(\n 'title' => __('Button', 'studioyacine'),\n 'selector' => 'p',\n 'classes' => 'button'\n ),\n // array(\n // 'title' => __('Button Red', 'studioyacine'),\n // 'selector' => 'p',\n // 'classes' => 'button-red'\n // ),\n // array(\n // 'title' => __('Large', 'studioyacine'),\n // 'selector' => 'p',\n // 'classes' => 'text-large'\n // ),\n // array(\n // 'title' => __('Medium', 'studioyacine'),\n // 'selector' => 'p',\n // 'classes' => 'text-medium'\n // )\n ),\n ),\n );\n\n // Merge old & new styles\n $settings['style_formats_merge'] = true;\n\n // Add new styles\n $settings['style_formats'] = json_encode($new_styles);\n $settings['block_formats'] = 'Paragraph=p; Header 2=h2; Header 3=h3;';\n\n // Return New Settings\n return $settings;\n }", "abstract public function register_style();", "private function styles_pointer() {\n\t\treturn array(\n\t\t\t'content' => '<h3>' . __( 'Styles', 'formidable' ) . '</h3>'\n\t\t\t . '<p>' . __( 'Want to make changes to the way your forms look? Make all the changes you would like right here, and watch the sample form change before your eyes.', 'formidable' ) . '</p>',\n\t\t\t'prev_page' => 'entries',\n\t\t\t'next_page' => 'import',\n\t\t\t'selector' => '.general-style',\n\t\t\t'position' => array( 'edge' => 'left', 'align' => 'right' ),\n\t\t);\n\t}", "function sj_player_color_css_func($sj_player_color,$sj_player_time_color,$sj_player_shortcode_font_color,$sj_player_widget_font_color,$sj_player_title_font_size,$sj_player_description_font_size,$sj_player_time_font_size){\n echo '<style type=\"text/css\">\n .cp-container{\n margin: 0 auto;\n }\n .cp-progress-1,\n .cp-progress-2 {\n background-color:'.$sj_player_color.';\n }\n .cp-controls .cp-play:hover{\n background-color: '.$sj_player_color.';\n }\n .cp-controls .cp-pause{\n background-color: '.$sj_player_color.';\n }\n\n .jp-current-time,.jp-duration{\n color: '.$sj_player_time_color.';\n font-size: '.$sj_player_time_font_size.'px;\n }\n\n .cp-jplayershortcode{\n color: '.$sj_player_shortcode_font_color.';\n\n }\n .cp-jplayerwidget{\n color: '.$sj_player_widget_font_color.';\n display: inline-block;\n }\n .sj-player-display-title{\n font-size:'.$sj_player_title_font_size.'px;\n }\n\n .sj-player-display-description{\n font-size:'.$sj_player_description_font_size.'px;\n }\n\n .time-duration-holder {\n background: none repeat scroll 0 0;\n height: auto;\n margin-top: 2%;\n padding: 0 0%;\n width: 100%;\n margin-bottom:2%;\n }\n .jp-current-time {\n background: none repeat scroll 0 0 ;\n width: 50%;\n float: left;\n }\n .jp-duration {\n float: right;\n }\n .sj-player-display li p {\n text-align:center;\n }\n </style>';\n\n }", "function block_shortcode($atts) {\r\n extract(shortcode_atts(array(\r\n\t\t'url' \t=> 'https://www.google.com/',\r\n\t\t'image'\t=> get_stylesheet_directory_uri().'/assets/img/feature_img_swf.png',\r\n\t\t'text'\t=> 'Run A Startup',\r\n\t\t'color'\t=> '#186677',\r\n\t\t), $atts, 'block_shortcode'));\r\n\t\r\n return \r\n\t\t\t'<div class=\"col-md-3 col-lg-3 col-sm-6 col-xs-6 cd-block-row\">\r\n\t\t\t\t<a href=\"'.$url.'\">\r\n\t\t\t\t\t<div id=\"cd-block-id\" class=\"cd-block\">\r\n\t\t\t\t\t\t<img id=\"block-img\" src=\"'.$image.'\" alt=\"\" />\r\n\t\t\t\t\t\t<p style=\"color:'.$color.';\">'.$text.'</p>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>\r\n\t\t\t</div>'\r\n\t;\r\n}", "function shortcode_content_boxes( $atts, $content = null ) {\n\t\t$variables = array( 'class' => '', 'style' => 'style1' ); // hover values = (style1|style2|...|style12)\n\t\textract( shortcode_atts( $variables, $atts ) );\n\t\t$class = empty( $class )?'':' ' . $class;\n\t\t$result = '<div class=\"image-box ' . esc_attr( $style . $class ) .'\">';\n\t\t$result .= do_shortcode( $content );\n\t\t$result .= '</div>';\n\t\treturn $result;\n\t}", "function cactus_parse_inlinecss($content, &$used_shortcodes, &$replacements){\r\n\t\t$css = '';\r\n\t\t// check is $content has any shortcode contain a parameter, which value is a CSS string, ex \".class{property:value}\"\r\n\r\n\t\tpreg_match_all( '/' . get_shortcode_regex() . '/', $content, $shortcodes );\r\n\r\n\t\tforeach ( $shortcodes[2] as $index => $tag ) {\r\n\t\t\t\r\n\t\t\t$shortcode = businesshub_get_shortcode_config( $tag );\r\n\r\n\t\t\tif($shortcode){\r\n\t\t\t\t\r\n\t\t\t\t$attr_array = shortcode_parse_atts( trim( $shortcodes[3][ $index ] ) );\r\n\r\n\t\t\t\tif(isset($shortcode['class'])){\r\n\t\t\t\t\t$the_class = $shortcode['class'];\r\n\t\t\t\t\t\r\n\t\t\t\t\t$the_obj = new $the_class($attr_array, $shortcodes[5][ $index ]);\r\n\r\n\t\t\t\t\t$new_css = $the_obj->generate_inline_css();\r\n\t\t\t\t\t\r\n\t\t\t\t\t$css .= $new_css;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// replace the shortcode with new one (having generated id)\r\n\t\t\t\t\t$reg = array($tag . $shortcodes[3][$index], $tag . $the_obj->to_string(true));\r\n\t\t\t\t\tif($new_css != ''){\r\n\t\t\t\t\t\tarray_push($replacements, $reg);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// recursively parse inner content\r\n\t\tforeach ( $shortcodes[5] as $shortcode_content ) {\r\n\t\t\t$css .= $this->cactus_parse_inlinecss ( $shortcode_content, $used_shortcodes, $replacements );\r\n\t\t}\r\n\r\n\t\treturn $css;\r\n\t}", "function scratch_SC_columns( $atts , $content = null ) {\n\t\n\t$output = '';\n\t\n\textract( shortcode_atts(\n\t\tarray(\n\t\t\t'device' => 'sm',\n\t\t\t'size' => '12'\n\t\t),\n\t\t$atts\n\t));\n\t\n\t$output .= '<div class=\"col-' . $device . '-' . $size . '\">';\n\t\t$output .= do_shortcode( $content );\n\t$output .= '</div>';\n\t\n\treturn $output;\n\n}", "function cookieset($atts = []){\n $atts = array_change_key_case((array)$atts, CASE_LOWER);\n \n // override default attributes with user attributes\n $atts = shortcode_atts([\n 'url' => '#',\n ], $atts);\n $output = '<div class=\"catapult-cookie-wrp\">\n <div id=\"catapult-cookie-bar\" class=\"catapult-cookie-bar clearfix\">\n <div class=\"catapult-cookie-topbar\">\n <i><img src=\"'.THEME_URI.'/assets/images/cookie-icon.svg\"></i>\n <strong class=\"catapult-close-btn\">\n <img src=\"'.THEME_URI.'/assets/images/cookie-close-icon.svg\">\n </strong>\n </div>\n <span class=\"ctcc-left-side\">\n <h4>Deze website maakt gebruik van cookies.</h4>\n Phasellus ac tortor mi. Aliquam eget volutpat elit. Duis dapibus dolor sit amet arcu porttitor laoreet. Mauris eget massa nulla. \n <a class=\"ctcc-more-info-link\" tabindex=\"0\" href=\"'.$atts['url'].'\">Meer Info</a>\n </span>\n <span class=\"catapultCookieBtn\">\n \n </span>\n <a role=\"button\" tabindex=\"0\" data-cli_action=\"accept\" id=\"cookie_action_close_header\" class=\"medium cli-plugin-main-button cookie_action_close_header cli_action_button\">ok, bedankt</a>\n </div>\n</div>';\n$output .= '<style>\n#cookie-law-info-bar {\n border: 0;\n font-size: initial;\n margin: 0 auto;\n padding: 0 !important;\n position: inherit;\n width: initial;\n\n box-shadow: transparent;\n}\n.cli-plugin-button, .cli-plugin-button:visited {\n text-decoration: none;\n position: inherit !important;\n background-color: transparent !important;\n display: none !important;\n}\n</style>';\nreturn $output;\n}", "function enqueue_shortcode_scripts() {\r\n\t\t\twp_enqueue_style( 'mpc_pricing_legend-css', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/mpc_pricing_legend/css/mpc_pricing_legend.css', array(), MPC_MASSIVE_VERSION );\r\n\t\t\twp_enqueue_script( 'mpc_pricing_legend-js', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/mpc_pricing_legend/js/mpc_pricing_legend' . MPC_MASSIVE_MIN . '.js', array( 'jquery' ), MPC_MASSIVE_VERSION );\r\n\t\t}", "function get_pc_content_card_style( $cc_style ) {\n\n $cc_styles_arr = array();\n\n\t\tif ( have_rows( $cc_style, 'option' ) ) {\n\n\t\t\twhile ( have_rows( $cc_style, 'option' ) ) {\n\t\t\t\tthe_row();\n\n\t\t\t\techo '<style>';\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-bg.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-radius.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-headline.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-editor.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-line.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-button.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-accordion.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-testimonials.php' );\n\n include ( PCA_DIR . '/column/content-card/pc-content-card-init-form.php' );\n\n include ( PCA_DIR . '/column/content-card/pc-content-card-init-tripdetail.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-more.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-video.php' );\n\n\t\t\t\tinclude ( PCA_DIR . '/column/content-card/pc-content-card-init-gallery.php' );\n\n\t\t\t\techo '</style>';\n\t\t\t}\n\t\t}\n\n\t\treturn $cc_styles_arr;\n}", "function add_shortcode( $atts, $content = null, $name = null ) {\n\n\t\tif ( ! $this->validate_shortcode( $atts, $content, $name ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$options = $this->set_options( $atts );\n\n\t\tob_start();\n\t\t\n\t\t?><div id=\"<?php echo esc_attr($options['selector']); ?>\" class=\"<?php echo esc_attr($options['classes']); ?>\" <?php do_action(\"oxygen_vsb_component_attr\", $options, $this->options['tag']); ?>><iframe scrolling=\"no\" frameborder=\"no\" src=\"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/<?php echo $options[\"soundcloud_track_id\"]; ?>&amp;color=<?php echo urlencode($options[\"soundcloud_color\"]); ?>&amp;auto_play=<?php echo urlencode($options[\"soundcloud_auto_play\"]); ?>&amp;hide_related=<?php echo urlencode($options[\"soundcloud_hide_related\"]); ?>&amp;show_comments=<?php echo urlencode($options[\"soundcloud_show_comments\"]); ?>&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true\"></iframe></div><?php\n\n\t\treturn ob_get_clean();\n\t}", "function dtwp_extract_styles( $contents ) {\n\t\t$contents[ 'contents' ] = str_replace( '}', \"}\\r\\n\", $contents[ 'contents' ] );\n\n\n\t\tpreg_match_all( '#.c(?P<digit>\\d+){(.*?)font-weight:bold(.*?)}#', $contents[ 'contents' ], $boldmatches );\n\t\tpreg_match_all('#.c(?P<digit>\\d+){(.*?)font-style:italic(.*?)}#', $contents[ 'contents' ], $italicmatches);\n\t\t\n\t\tif( !empty( $boldmatches[ 'digit' ] ) ) {\n\t\t\n\t\t\tforeach( $boldmatches[ 'digit' ] as $boldclass ) {\n\t\t\t\t$contents[ 'contents' ] = preg_replace( '#<span class=\"(.*?)c' . $boldclass . '(.*?)\">(.*?)</span>#s', '<span class=\"$1c' . $boldclass . '$2\"><strong>$3</strong></span>', $contents[ 'contents' ] );\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\tif( !empty( $italicmatches[ 'digit' ] ) ) {\n\t\t\n\t\t\tforeach( $italicmatches[ 'digit' ] as $italicclass ) {\n\t\t\t\t$contents[ 'contents' ] = preg_replace( '#<span class=\"(.*?)c' . $italicclass . '(.*?)\">(.*?)</span>#s', '<span class=\"$1c' . $italicclass . '$2\"><em>$3</em>', $contents[ 'contents' ] );\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\treturn $contents;\n\n}", "function add_shortcode( $atts, $content, $name ) {\n\n\t\tif ( ! $this->validate_shortcode( $atts, $content, $name ) ) {\n return '';\n }\n\n\t\t$options = $this->set_options( $atts );\n\n\t\tob_start();\n\n\t\t?><div id=\"<?php echo esc_attr($options['selector']); ?>\" class=\"<?php if(isset($options['classes'])) echo esc_attr($options['classes']); ?>\" <?php do_action(\"oxygen_vsb_component_attr\", $options, $this->options['tag']); ?>><?php echo do_shortcode( $content ); ?></div><?php\n\n\t\treturn ob_get_clean();\n\t}", "function wp_head() {\n\n\t\tif ( ! is_singular() ) return;\n\n\t\t// bail if no colors to show\n\t\t$pairs = get_option( 'color_style_options', false );\n\t\tif ( ! $pairs ) return;\n\n\t\techo \"<style>\\n\";\n\t\tforeach( $pairs as $id => $pair ) {\n\t\t\tlist( $name, $style ) = $pair;\n\t\t\t$color = get_post_meta( get_the_ID(), \"cso_$id\", true );\n\t\t\tif ( empty( $color ) ) continue;\n\t\t\techo str_replace( '%color%', $color, $style ) . \"\\n\";\n\t\t}\n\t\techo \"</style>\\n\";\n\n\t}", "function pt_shortcode( $atts )\n\t\t{\n\t\t\treturn $this->pt_show_blc_front();\n\t\t}", "function DISPLAY_WIDGET_acurax_widget_icons_SC($atts)\r\n{\r\n\tglobal $acx_widget_si_icon_size, $acx_widget_si_sc_id;\r\n\textract(shortcode_atts(array(\r\n\t\"theme\" => '',\r\n\t\"size\" => $acx_widget_si_icon_size,\r\n\t\"autostart\" => 'false'\r\n\t), $atts));\r\n\tif ($theme > ACX_SOCIALMEDIA_WIDGET_TOTAL_THEMES) { $theme = \"\"; }\r\n\tif (!is_numeric($theme)) { $theme = \"\"; }\r\n\tif ($size > 55) { $size = $acx_widget_si_icon_size; }\r\n\tif (!is_numeric($size)) { $size = $acx_widget_si_icon_size; }\r\n\t\t$acx_widget_si_sc_id = $acx_widget_si_sc_id + 1;\r\n\t\tob_start();\r\n\t\techo \"<style>\\n\";\r\n\t\techo \"#short_code_si_icon img \\n {\";\r\n\t\techo \"width:\" . $size . \"px; \\n}\\n\";\r\n\t\techo \".scid-\" . $acx_widget_si_sc_id . \" img \\n{\\n\";\r\n\t\techo \"width:\" . $size . \"px !important; \\n}\\n\";\r\n\t\techo \"</style>\";\r\n\t\techo \"<div id='short_code_si_icon' style='text-align:center;' class='acx_smw_float_fix scid-\" . $acx_widget_si_sc_id . \"'>\";\r\n\t\tacurax_si_widget_simple($theme);\r\n\t\techo \"</div>\";\r\n\t\t$content = ob_get_contents();\r\n\t\tob_end_clean();\r\n\t\treturn $content;\r\n}", "public static function css();", "public function ec_customizer_styles() {\n\t\t?>\n\t\t<style>\n\t\t\tli#customize-control-tribe_customizer-month_week_view-highlight_color,\n\t\t\tli#customize-control-tribe_customizer-photo_view-bg_color,\n\t\t\tli#customize-control-tribe_customizer-single_event-post_title_color {\n\t\t\t\topacity: 0.2;\n\t\t\t\tpointer-events: none;\n\t\t\t\tcursor: not-allowed;\n\t\t\t}\n\t\t</style>\n\t\t<?php\n\t}", "public function customCSS() {\n\n\t if ( isset( $this->options['customCSS'] ) ){\n\n\t \t$content = \"<style type='text/css'>\\n\";\n\t \t$content .= $this->options['customCSS'].\"\\n\";\n\t \t$content .= \"</style>\";\n\n\t \techo $content;\n\t }\n\t}", "function register_my_custom_shortcode( $shortcodes ) {\n\t// Add new shortcode\n\t$shortcodes['heading2'] = array(\n\t\t// Shortcode name\n\t\t'name' => __( 'Heading 2', 'textdomain' ),\n\t\t// Shortcode type. Can be 'wrap' or 'single'\n\t\t// Example: [b]this is wrapped[/b], [this_is_single]\n\t\t'type' => 'wrap',\n\t\t// Shortcode group.\n\t\t// Can be 'content', 'box', 'media' or 'other'.\n\t\t// Groups can be mixed, for example 'content box'\n\t\t'group' => 'content',\n\t\t// List of shortcode params (attributes)\n\t\t'atts' => array(\n\t\t\t// Style attribute\n\t\t\t'style' => array(\n\t\t\t\t// Attribute type.\n\t\t\t\t// Can be 'select', 'color', 'bool' or 'text'\n\t\t\t\t'type' => 'select',\n\t\t\t\t// Available values\n\t\t\t\t'values' => array(\n\t\t\t\t\t'default' => __( 'Default', 'textdomain' ),\n\t\t\t\t\t'small' => __( 'Small', 'textdomain' )\n\t\t\t\t),\n\t\t\t\t// Default value\n\t\t\t\t'default' => 'default',\n\t\t\t\t// Attribute name\n\t\t\t\t'name' => __( 'Style', 'textdomain' ),\n\t\t\t\t// Attribute description\n\t\t\t\t'desc' => __( 'Heading 2 style', 'textdomain' )\n\t\t\t)\n\t\t),\n\t\t// Default content for generator (for wrap-type shortcodes)\n\t\t'content' => __( 'Heading 2 text', 'textdomain' ),\n\t\t// Shortcode description for cheatsheet and generator\n\t\t'desc' => __( 'Styled heading 2', 'textdomain' ),\n\t\t// Custom icon (font-awesome)\n\t\t'icon' => 'plus',\n\t\t// Name of custom shortcode function\n\t\t// IMPORTANT: this is the name of the next function\n\t\t'function' => 'my_custom_shortcode',\n\t);\n\t// Return modified data\n\treturn $shortcodes;\n}", "function dt_sc_icon_box_colored($attrs, $content = null, $shortcodename = \"\") {\n\t\textract ( shortcode_atts ( array (\n\t\t\t\t'type' => '',\n\t\t\t\t'fontawesome_icon' => '',\n\t\t\t\t'custom_icon' => '',\n\t\t\t\t'title' => '',\n\t\t\t\t'bgcolor' => ''\n\t\t), $attrs ) );\n\t\t\n\t\t$content = DTCoreShortcodesDefination::dtShortcodeHelper ( $content );\n\t\t\n\t\t$bgcolor = empty ( $bgcolor ) ? \"\" : \" style='background:{$bgcolor};' \";\n\t\t\n\t\t$type = ( trim($type) === 'type1' ) ? \"no-space\" : \"space\";\n\t\t\n\t\t$out = \"<div class='dt-sc-colored-box {$type}' {$bgcolor}>\";\n\t\t\n\t\t$icon = \"\";\n\t\tif( !empty($fontawesome_icon) ){\n\t\t\t$icon = \"<span class='fa fa-{$fontawesome_icon}'> </span>\";\n\t\t\n\t\t}elseif( !empty($custom_icon) ){\n\t\t\t$icon = \"\";\t\n\t\t}\n\t\t\n\t\t$out .= \"<h5>{$icon}{$title}</h5>\";\n\t\t$out .= $content;\n\t\t$out .= \"</div>\";\n\t\treturn $out;\n\t}", "function shortcode_karaja( $atts, $content = null ) {\n return '<div class=\"lingua-kr\">'.$content.'</div>';\n}", "function output_styles () {\n\t\n\tforeach ($_GET as $key => $value) { \n\t\t$segment \t= explode(\"-\", $key, 2);\n\t\t$selector \t= $segment[0];\n\t\t$property \t= $segment[1];\n\t\t$value\t\t= $value;\n\t\t\n\t\tglobal $abbreviations;\n\n\t\t$selector = $abbreviations[$selector];\n\t\t$property = $abbreviations[$property];\n\n\t\t//DEBUGGING\n\t\t//echo \"<br />\\$selector: \" \t. $selector;\n\t\t//echo \"<br />\\$property: \" \t. $property;\n\t\t//echo \"<br />\\$value: \" \t\t. $value;\n\t\t//echo \"<br />\";\n\n\t\tbuild_styles($selector, $property, $value); //USES build_styles() FUNCTION\n\t}\n\n}", "function getShortFormatCongressBlock($congress)\n{\n $html = \"\n <div class='shortCongressBlockDIV'\";\n \n if ($congress[\"imageURL\"] != \"\")\n {\n $html .= \" style='background-image: linear-gradient(to right, rgba(70, 99, 32, 0.7), rgba(60, 101, 124, 0.7)), url(\\\"\" . CONGRESS_IMAGES_PATH . $congress['imageURL'] . \"\\\");opacity:1;'\";\n }\n \n $html .= \"><a href='\" . HOME . \"?action=\" . POST_VIEW_CONGRESS . \"&congress=\" . $congress['id'] . \"'>\n <div class='shortCongressShortName'>\" . $congress['shortName'] . \"</div>\n <div class='shortCongressFullName'>\" . $congress['name'] . \"</div>\n <div class='shortCongressShortDates'>\" . congressDatesForHtmlShortFormat($congress) . \"</div>\n </a></div>\";\n return $html;\n}", "function stag_header_css() {\n\t?>\n\t<style id=\"stag-custom-css\" type=\"text/css\">\n\t\tbody,\n\t\t.site,\n\t\thr:not(.stag-divider)::before {\n\t\t\tbackground-color: <?php echo stag_theme_mod( 'colors', 'background' ); ?>;\n\t\t}\n\t\tbody, .entry-subtitle {\n\t\t\tfont-family: \"<?php echo stag_theme_mod( 'typography', 'body_font' ); ?>\";\n\t\t}\n\t\ta,\n\t\t.archive-header__title span,\n\t\t.footer-menu a:hover {\n\t\t\tcolor: <?php echo stag_theme_mod( 'colors', 'accent' ); ?>;\n\t\t}\n\t\th1, h2, h3, h4, h5, h6, .button, .stag-button, input[type=\"submit\"], input[type=\"reset\"], .button-secondary, legend, .rcp_subscription_level_name {\n\t\t\tfont-family: \"<?php echo stag_theme_mod( 'typography', 'header_font' ); ?>\";\n\t\t}\n\t\t.post-grid {\n\t\t\tborder-color: <?php echo stag_theme_mod( 'colors', 'background' ); ?>;\n\t\t}\n\t\t<?php echo stag_theme_mod( 'layout_options', 'custom_css' ); ?>\n\t</style>\n\t<?php\n}", "public static function load_dynamic_css() {\n\t\t\tif ( ! isset( $_POST['vc_inline'] ) ) {\n\t\t\t\t\n\t\t\t\t// Custom styles\n\t\t\t\t$name = self::option( 'white_label_theme_name', 'xtra' );\n\t\t\t\t$handle = wp_style_is( 'codevz-plugin' ) ? 'codevz-plugin' : $name;\n\t\t\t\t$extra_css = '';\n\n\t\t\t\t// Dark\n\t\t\t\tif ( self::option( 'dark' ) ) {\n\t\t\t\t\t$extra_css .= \"/* Dark */\" . 'body{background-color:#171717;color:#fff}.layout_1,.layout_2{background:#191919}a,.woocommerce-error, .woocommerce-info, .woocommerce-message{color:#fff}.sf-menu li li a,.sf-menu .cz > h6{color: #000}.cz_quote_arrow blockquote{background:#272727}.search_style_icon_dropdown .outer_search, .cz_cart_items {background: #000;color: #c0c0c0 !important}.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {color: #111}#bbpress-forums li{background:none!important}#bbpress-forums li.bbp-header,#bbpress-forums li.bbp-header,#bbpress-forums li.bbp-footer{background:#141414!important;color:#FFF;padding:10px 20px!important}.bbp-header a{color:#fff}.subscription-toggle,.favorite-toggle{padding: 1px 20px !important;}span#subscription-toggle{color: #000}#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a{background:#1D1E20!important;color:#FFF;opacity:1}#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{padding:10px 20px!important}.bbp-search-form{margin:0 0 12px!important}.bbp-form .submit{margin:0 auto 20px}div.bbp-breadcrumb,div.bbp-topic-tags{line-height:36px}.bbp-breadcrumb-sep{padding:0 6px}#bbpress-forums li.bbp-header ul{font-size:14px}.bbp-forum-title,#bbpress-forums .bbp-topic-title .bbp-topic-permalink{font-size:16px;font-weight:700}#bbpress-forums .bbp-topic-started-by{display:inline-block}#bbpress-forums p.bbp-topic-meta a{margin:0 4px 0 0;display:inline-block}#bbpress-forums p.bbp-topic-meta img.avatar,#bbpress-forums ul.bbp-reply-revision-log img.avatar,#bbpress-forums ul.bbp-topic-revision-log img.avatar,#bbpress-forums div.bbp-template-notice img.avatar,#bbpress-forums .widget_display_topics img.avatar,#bbpress-forums .widget_display_replies img.avatar{margin-bottom:-2px;border:0}span.bbp-admin-links{color:#4F4F4F}span.bbp-admin-links a{color:#7C7C7C}.bbp-topic-revision-log-item *{display:inline-block}#bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log,#bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log,#bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log{border-top:1px dotted #474747;padding:10px 0 0;color:#888282}.bbp-topics,.bbp-replies,.topic{position:relative}#subscription-toggle,#favorite-toggle{float:right;line-height:34px;color:#DFDFDF;display:block;border:1px solid #DFDFDF;padding:0;margin:0;font-size:12px;border:0!important}.bbp-user-subscriptions #subscription-toggle,.bbp-user-favorites #favorite-toggle{position:absolute;top:0;right:0;line-height:20px}.bbp-reply-author br{display:none}#bbpress-forums li{text-align:left}li.bbp-forum-freshness,li.bbp-topic-freshness{width:23%}.bbp-topics-front ul.super-sticky,.bbp-topics ul.super-sticky,.bbp-topics ul.sticky,.bbp-forum-content ul.sticky{background-color:#2C2C2C!important;border-radius:0!important;font-size:1.1em}#bbpress-forums div.odd,#bbpress-forums ul.odd{background-color:#0D0D0D!important}div.bbp-template-notice a{display:inline-block}div.bbp-template-notice a:first-child,div.bbp-template-notice a:last-child{display:inline-block}#bbp_topic_title,#bbp_topic_tags{width:400px}#bbp_stick_topic_select,#bbp_topic_status_select,#display_name{width:200px}#bbpress-forums #bbp-your-profile fieldset span.description{color:#FFF;border:#353535 1px solid;background-color:#222!important;margin:16px 0}#bbpress-forums fieldset.bbp-form{margin-bottom:40px}.bbp-form .quicktags-toolbar{border:1px solid #EBEBEB}.bbp-form .bbp-the-content,#bbpress-forums #description{border-width:1px!important;height:200px!important}#bbpress-forums #bbp-single-user-details{width:100%;float:none;border-bottom:1px solid #080808;box-shadow:0 1px 0 rgba(34,34,34,0.8);margin:0 0 20px;padding:0 0 20px}#bbpress-forums #bbp-user-wrapper h2.entry-title{margin:-2px 0 20px;display:inline-block;border-bottom:1px solid #FF0078}#bbpress-forums #bbp-single-user-details #bbp-user-navigation a{padding:2px 8px}#bbpress-forums #bbp-single-user-details #bbp-user-navigation{display:inline-block}#bbpress-forums #bbp-user-body,.bbp-user-section p{margin:0}.bbp-user-section{margin:0 0 30px}#bbpress-forums #bbp-single-user-details #bbp-user-avatar{margin:0 20px 0 0;width:auto;display:inline-block}#bbpress-forums div.bbp-the-content-wrapper input{width:auto!important}input#bbp_topic_subscription{width:auto;display:inline-block;vertical-align:-webkit-baseline-middle}.widget_display_replies a,.widget_display_topics a{display:inline-block}.widget_display_replies li,.widget_display_forums li,.widget_display_views li,.widget_display_topics li{display:block;border-bottom:1px solid #282828;line-height:32px;position:relative}.widget_display_replies li div,.widget_display_topics li div{font-size:11px}.widget_display_stats dt{display:block;border-bottom:1px solid #282828;line-height:32px;position:relative}.widget_display_stats dd{float:right;margin:-40px 0 0;color:#5F5F5F}#bbpress-forums div.bbp-topic-content code,#bbpress-forums div.bbp-reply-content code,#bbpress-forums div.bbp-topic-content pre,#bbpress-forums div.bbp-reply-content pre{background-color:#FFF;padding:12px 20px;max-width:96%;margin-top:0}#bbpress-forums div.bbp-forum-author img.avatar,#bbpress-forums div.bbp-topic-author img.avatar,#bbpress-forums div.bbp-reply-author img.avatar{border-radius:100%}#bbpress-forums li.bbp-header,#bbpress-forums li.bbp-footer,#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic,div.bbp-forum-header,div.bbp-topic-header,div.bbp-reply-header{border-top:1px solid #252525!important}#bbpress-forums ul.bbp-lead-topic,#bbpress-forums ul.bbp-topics,#bbpress-forums ul.bbp-forums,#bbpress-forums ul.bbp-replies,#bbpress-forums ul.bbp-search-results,#bbpress-forums fieldset.bbp-form,#subscription-toggle,#favorite-toggle{border:1px solid #252525!important}#bbpress-forums div.bbp-forum-header,#bbpress-forums div.bbp-topic-header,#bbpress-forums div.bbp-reply-header{background-color:#1A1A1A!important}#bbpress-forums div.even,#bbpress-forums ul.even{background-color:#161616!important}.bbp-view-title{display:block}div.fixed_contact,i.backtotop,i.fixed_contact,.ajax_search_results{background:#151515}.nice-select{background-color:#fff;color:#000}.nice-select .list{background:#fff}.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,.woocommerce div.product .woocommerce-tabs ul.tabs li a{color: inherit}.woocommerce #reviews #comments ol.commentlist li .comment-text{border-color:rgba(167, 167, 167, 0.2) !important}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:rgba(167, 167, 167, 0.2)}.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}#comments .commentlist li .avatar{box-shadow: 1px 10px 10px rgba(167, 167, 167, 0.1) !important}.cz_line{background:#fff}.xtra-post-title span{color:rgba(255, 255, 255, 0.6)}.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .zoomImg{background-color:#0b0b0b}.cz_popup_in{background:#171717;color:#fff}';\n\t\t\t\t}\n\n\t\t\t\t// Category page custom background\n\t\t\t\tif ( is_category() || is_tag() || is_tax() ) {\n\n\t\t\t\t\tglobal $wp_query;\n\n\t\t\t\t\tif ( ! empty( $wp_query->queried_object->term_id ) ) {\n\n\t\t\t\t\t\t$tax_meta = get_term_meta( $wp_query->queried_object->term_id, 'codevz_cat_meta', true );\n\n\t\t\t\t\t\tif ( ! empty( $tax_meta['_css_page_title'] ) ) {\n\n\t\t\t\t\t\t\t$extra_css .= '.page_title{' . str_replace( ';', ' !important;', $tax_meta['_css_page_title'] ) . '}';\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// Theme styles\n\t\t\t\tif ( is_customize_preview() ) {\n\n\t\t\t\t\twp_add_inline_style( $handle, $extra_css );\n\n\t\t\t\t} else {\n\t\t\t\t\t$ts = self::option( 'css_out' );\n\n\t\t\t\t\t// Fix for old users\n\t\t\t\t\tif ( ! $ts && self::$plugin ) {\n\t\t\t\t\t\t$ts = Codevz_Options::css_out();\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add styles\n\t\t\t\t\twp_add_inline_style( $handle, $extra_css . $ts );\n\n\t\t\t\t\t// Fonts\n\t\t\t\t\tforeach( (array) self::option( 'fonts_out' ) as $font ) {\n\t\t\t\t\t\tself::enqueue_font( $font );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function styles() {\n\twp_register_style(\n\t\t'fontawesome',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/fontawesome/css/font-awesome.min.css\",\n\t\tarray(),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_register_style(\n\t\t'ionicons',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/ionicons/css/ionicons.min.css\",\n\t\tarray(),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_register_style(\n\t\t'bootstrap',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/bootstrap/dist/css/bootstrap.min.css\",\n\t\tarray( 'fontawesome' ),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_register_style(\n\t\t'sanitize',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/sanitize/sanitize.min.css\",\n\t\tarray(),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_enqueue_style(\n\t\t'vincentragosta',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/css/vincentragosta---twenty-seventeen.css\",\n\t\tarray( 'bootstrap', 'fontawesome', 'ionicons', 'sanitize' ),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n}", "private static function get_styles() {\n\n\t\treturn [\n\t\t\t'basic' => esc_html__( 'Basic', 'wpforms' ),\n\t\t\t'compact' => esc_html__( 'Compact', 'wpforms' ),\n\t\t\t'table' => esc_html__( 'Table', 'wpforms' ),\n\t\t\t'table_compact' => esc_html__( 'Table, Compact', 'wpforms' ),\n\t\t];\n\t}", "function ag_set_predefined_style() {\n\tif(!isset($_POST['lcwp_nonce']) || !wp_verify_nonce($_POST['lcwp_nonce'], 'lcwp_nonce')) {die('Cheating?');}\n\tif(!isset($_POST['style'])) {die('data is missing');}\n\n\trequire_once(AG_DIR .'/settings/preset_styles.php');\n\trequire_once(AG_DIR .'/functions.php');\n\t\n\t$style_data = ag_preset_styles_data($_POST['style']);\n\tif(empty($style_data)) {die('Style not found');}\n\t\n\t\n\t// override values\n\tforeach($style_data as $key => $val) {\n\t\tupdate_option($key, $val);\t\t\n\t}\n\n\n\t// if is not forcing inline CSS - create static file\n\tif(!get_option('mg_inline_css')) {\n\t\tag_create_frontend_css();\n\t}\n\t\n\tdie('success');\n}", "function cv_custom_mce_before_init( $settings ) {\n\n $style_formats = array(\n\n /* Dropcaps */\n array(\n 'title' => __( 'Dropcap Small','canvys'),\n 'block' => 'p',\n 'classes' => 'cv-dropcap-small'\n ),\n array(\n 'title' => __( 'Dropcap Medium','canvys'),\n 'block' => 'p',\n 'classes' => 'cv-dropcap-medium'\n ),\n array(\n 'title' => __( 'Dropcap Large','canvys'),\n 'block' => 'p',\n 'classes' => 'cv-dropcap-large'\n ),\n\n /* Highlights */\n array(\n 'title' => __( 'Highlight Yellow','canvys'),\n 'inline' => 'span',\n 'classes' => 'cv-highlight-yellow'\n ),\n array(\n 'title' => __( 'Highlight Blue','canvys'),\n 'inline' => 'span',\n 'classes' => 'cv-highlight-blue'\n ),\n array(\n 'title' => __( 'Highlight Red','canvys'),\n 'inline' => 'span',\n 'classes' => 'cv-highlight-red'\n ),\n array(\n 'title' => __( 'Highlight Green','canvys'),\n 'inline' => 'span',\n 'classes' => 'cv-highlight-green'\n )\n );\n\n $settings['style_formats'] = json_encode( $style_formats );\n\n return $settings;\n\n}", "function shortcodes_xh_version()\n{\n global $pth;\n\n return '<h1>Shortcodes_xh</h1>'.\"\\n\"\n\t. tag('img src=\"'.$pth['folder']['plugins'].'shortcodes_xh/help/ShortCode_XH.png\" style=\"float: left; margin: 0 20px 20px 0\"')\n\t. '<p>This plugin is to use the familiar <a href=\"https://codex.wordpress.org/Shortcode_API\" target=\"_blank\">WordPress shortcode syntax</a> in CMSimple_XH.</p>'\n\t. '<p>Version: '.SHORTCODES_XH_VERSION.'</p>'.\"\\n\"\n\t. '<p>Copyright &copy; 2015 <a href=\"http://cmsimple-jp.org\" target=\"_blank\">cmsimple-jp.org</a></p>'.\"\\n\"\n\t. '<p>Original <a href=\"https://github.com/Badcow/Shortcodes\" target=\"_blank\">Badcow/Shortcodes Latest commit 5 Apr 2015</a></p>'\n\t. '<p style=\"text-align: justify\">'\n\t. '<b>License</b>'. tag('br') . \"\\n\"\n\t. ' Art License Terms : <a href=\"http://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">Creative Commons License </a> . Detail <a href=\"https://github.com/Badcow/Shortcodes\" target=\"_blank\">https://github.com/Badcow/Shortcodes</a>'. tag('br').\"\\n\"\n\t. ' Software License terms : <a href=\"http://www.gnu.org/licenses/\" target=\"_blank\">GPLv3.</a>';\n}", "function sp_three_four_sc( $atts, $content = null ) {\n\n\t\treturn '<div class=\"three_fourth\">' . do_shortcode( $content ) . '</div>';\n\n\t}", "function pm_services_box_shortcode( $atts, $content = null) {\n\textract(shortcode_atts(array(\n\t\t'service_title'\t=> '',\n\t\t'service_desc'\t=> '',\n\t\t'services_icon'\t=> '',\n\t\t'class'\t\t\t=> '',\n\t), $atts));\n\n\t$result = '';\n\n\tob_start(); \n\n\t// Assigning a master css class and hooking into KC\n\t$master_class = apply_filters( 'kc-el-class', $atts );\n\t$master_class[] = 'pm-service';\n\n\t// Retrieving user define classes\n\t$classes = array( 'row' );\n\t(!empty($class)) ? $classes[] = $class : ''; ?>\n\n\t<div class=\"<?php echo esc_attr( implode( ' ', $master_class ) ); ?>\">\n <div class=\"<?php echo esc_attr( implode( ' ', $classes ) ); ?>\">\n\t \t<div class=\"service-list bgrid-third s-bgrid-half mob-bgrid-whole\">\n\t \t\t<div class=\"pm-bgrid\">\n\t <div class=\"icon-part\">\n\t \t<span class=\"<?php echo esc_attr( $services_icon ); ?>\"></span>\n\t </div>\n\t <h3><?php echo esc_html( $service_title ); ?></h3>\n\t <div class=\"service-content\">\t \n\t\t <p> <?php echo esc_html( $service_desc ); ?> </p> \n\t </div> \n\t </div> <!-- /bgrid --> \n\t \t</div> <!-- /service-list -->\n </div> <!-- /row --> \n </div> <!-- /services --> \t\t\n\n\t<?php \n\t$result .= ob_get_clean();\n\treturn $result;\n\n}", "function gen_css($data,$skin){\n\t\t$css = \"<style type=\\\"text/css\\\">\n\t\t\tBODY {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tbackground: $data[BGColor1];\n\t\t\t}\n\t\t\tTD {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t}\n\t\t\t.online_list {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tborder: $data[BorderSize] $data[BorderStyle] $data[BorderColor];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\twidth: 96%;\n\t\t\t\tbackground: $data[BGColor2];\n\t\t\t\theight: 98%;\n\t\t\t\tmargin-left: 1%;\n\t\t\t}\n\t\t\t.menubar {\n\t\t\t\tcolor: $data[FontColor2];\n\t\t\t\tbackground: url(./themes/$skin/button.gif);\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t.menubar_hover {\n\t\t\t\tcolor: $data[FontColor2];\n\t\t\t\tbackground: url(./themes/$skin/button_over.gif);\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t.infobar {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t}\n\t\t\t.box_header {\n\t\t\t\tcolor: $data[FontColor3];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize2];\n\t\t\t\tbackground: $data[HeaderBG];\n\t\t\t\tborder: $data[BorderSize] $data[BorderStyle] $data[BorderColor];\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\t\t\t.box_body {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tbackground: $data[BGColor2];\n\t\t\t\tborder: $data[BorderSize] $data[BorderStyle] $data[BorderColor];\n\t\t\t\tborder-top: none;\n\t\t\t\ttext-align: left;\n\t\t\t}\n\t\t\t.info_box_body {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tbackground: $data[BGColor2];\n\t\t\t\tborder: $data[BorderSize] $data[BorderStyle] $data[BorderColor];\n\t\t\t\ttext-align: left;\n\t\t\t}\n\t\t\t.col_header {\n\t\t\t\tcolor: $data[FontColor3];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize3];\n\t\t\t\tfont-weight: bold;\n\t\t\t\tbackground: $data[ColumnBG];\n\t\t\t\ttext-align: left;\n\t\t\t\tborder: $data[BorderSize] $data[BorderStyle] $data[BorderColor];\n\t\t\t}\n\t\t\t.dark_row {\n\t\t\t\tcolor: $data[FontColor1];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tfont-size: $data[FontSize1];\n\t\t\t\tbackground: $data[BGColor3];\n\t\t\t\ttext-align: left;\n\t\t\t}\n\t\t\t.inside_table {\n\t\t\t\tborder: $data[BorderSize] $data[BorderStyle] $data[BorderColor];\n\t\t\t\tborder-top: none;\n\t\t\t}\n\t\t\tA {\n\t\t\t\tcolor: $data[LinkColor];\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t\tA:HOVER {\n\t\t\t\tcolor: $data[HoverColor];\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t\tA:ACTIVE {\n\t\t\t\tcolor: $data[ActiveColor];\n\t\t\t}\n\t\t\t.text_input{\n\t\t\t\tbackground: $data[FormBG];\n\t\t\t\tborder: $data[FormBorderSize] $data[FormBorderStyle] $data[FormBorderColor];\n\t\t\t\tfont-size: $data[FormFontSize];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tcolor: $data[FormFontColor];\n\t\t\t}\n\t\t\t.button{\n\t\t\t\tbackground: $data[FormBG];\n\t\t\t\tborder: $data[FormBorderSize] $data[FormBorderStyle] $data[FormBorderColor];\n\t\t\t\tfont-size: $data[FormFontSize];\n\t\t\t\tfont-family: $data[FontFamily];\n\t\t\t\tcolor: $data[FormFontColor];\n\t\t\t}\n\t\t</style>\";\n\t\t\n\t\treturn $css;\n\t}", "function pageblock_func( $atts ) {\n\nextract( shortcode_atts( array(\n'pageid' => '{$pageid}',\n'displaytype' => '{$displaytype}',\n'showcontent' => '{$showcontent}',\n'colourthumbs' => '{$colourthumbs}',\n'css' => ''\n), $atts ) );\n$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $atts );\n\n$args = array(\n'page_id' => $pageid,\n);\n$output;\nglobal $post;\n$loop = new WP_Query( $args );\nif ( $loop->have_posts() ) {\n$isinternation = get_post_meta($post->ID, '_internationalPage', true);\n\n\t\n\t$output .= \"<div class='\".esc_attr( $css_class ).\"'>\";\nwhile ( $loop->have_posts() ) : $loop->the_post();\n\nif($isinternation == 1 && !empty(get_post_meta($post->ID, '_subheadtwo', true))) {\n$thetitle = get_post_meta($post->ID, '_subheadtwo', true);\t\n} else {\n$thetitle = get_the_title();\t\n}\n\tif (isset($GLOBALS['styles'])) {\n\t$GLOBALS['styles'] = $GLOBALS['styles'];\n\t } else {\n\t$GLOBALS['styles'] = '';\t\n\t}\n\t\n\t\n\t$colour = get_post_meta($post->ID, '_pagecolour', true);\n\t$GLOBALS['styles'] .= \".media.list.media-\".get_the_ID().\" .cover{ background:\".$colour.\";}\";\n\n\t$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );\n$url = $thumb['0'];\n$GLOBALS['styles'] .= \".media-\".get_post_type().\".media-\".get_the_ID().\" .media-left{ background:url(\".$url.\"); background-size:cover; background-position:center center;}\";\n\nif ('people' == get_post_type() || $displaytype == \"medialist\" ) {\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/media-list.php';\n\t\n} elseif($displaytype == \"medialistnoimage\" ) {\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/media-list-no-image.php';\n\n\t\n} elseif($displaytype == \"list\") { \n\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/list.php';\n\n\n}else {\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/overlay-grid.php';\n\t\t\n}\nendwhile;\n\t$output .= \"</div>\";\n\n}\nreturn $output;\n}" ]
[ "0.7235947", "0.71624273", "0.70923805", "0.6958035", "0.6818216", "0.67238146", "0.66614693", "0.66077405", "0.652039", "0.65153366", "0.6500161", "0.64824", "0.64739734", "0.6471997", "0.645238", "0.6445775", "0.64007074", "0.63460445", "0.6336813", "0.62936187", "0.62854487", "0.6285212", "0.6283462", "0.6280528", "0.6270727", "0.6268144", "0.6227042", "0.62067693", "0.6206668", "0.6197849", "0.61878824", "0.61673176", "0.6155393", "0.6141021", "0.6129292", "0.61184084", "0.6112607", "0.61078656", "0.6105151", "0.6104871", "0.60998523", "0.60988104", "0.60835624", "0.6080818", "0.6075681", "0.60687083", "0.60643697", "0.60589266", "0.6049306", "0.60483634", "0.6045434", "0.60439175", "0.60360456", "0.60338634", "0.6033826", "0.6008483", "0.600517", "0.6000462", "0.59804803", "0.59692776", "0.5968148", "0.5959899", "0.59507847", "0.5947385", "0.5939932", "0.59345895", "0.5933859", "0.59333354", "0.5928798", "0.59232265", "0.5922786", "0.5922648", "0.591978", "0.59139085", "0.5902487", "0.59006405", "0.5894104", "0.5892833", "0.5889272", "0.58876675", "0.5882095", "0.58741343", "0.5871709", "0.5867193", "0.5866974", "0.58662444", "0.5863052", "0.5857385", "0.5857324", "0.58568704", "0.5852885", "0.5852255", "0.5845415", "0.5839808", "0.5828855", "0.58281803", "0.582252", "0.5820498", "0.5818187", "0.5805171" ]
0.7249523
0
/ Map all shortcode options to Visual Composer popup
function shortcode_map() { if ( !function_exists( 'vc_map' ) ) { return; } $base = array( array( 'type' => 'mpc_preset', 'heading' => __( 'Main Preset', 'mpc' ), 'param_name' => 'preset', 'tooltip' => MPC_Helper::style_presets_desc(), 'value' => '', 'shortcode' => $this->shortcode, 'description' => __( 'Choose preset or create new one.', 'mpc' ), ), ); /* Properties List */ $properties = array( array( 'type' => 'mpc_divider', 'title' => __( 'List of Properties', 'mpc' ), 'param_name' => 'properties_divider', ), array( 'type' => 'mpc_split', 'heading' => __( 'Properties', 'mpc' ), 'param_name' => 'properties', 'admin_label' => true, 'tooltip' => __( 'Define properties values. Each new line will be a separate property.', 'mpc' ), 'value' => '', ), array( 'type' => 'dropdown', 'heading' => __( 'Transform', 'mpc' ), 'param_name' => 'properties_font_transform', 'tooltip' => __( 'Select properties transform style.', 'mpc' ), 'value' => array( '' => '', __( 'Capitalize', 'mpc' ) => 'capitalize', __( 'Small Caps', 'mpc' ) => 'small-caps', __( 'Uppercase', 'mpc' ) => 'uppercase', __( 'Lowercase', 'mpc' ) => 'lowercase', __( 'None', 'mpc' ) => 'none', ), 'std' => '', 'edit_field_class' => 'vc_col-sm-6 vc_column mpc-advanced-field', ), array( 'type' => 'dropdown', 'heading' => __( 'Alignment', 'mpc' ), 'param_name' => 'properties_font_align', 'tooltip' => __( 'Select properties alignment.', 'mpc' ), 'value' => array( '' => '', __( 'Left', 'mpc' ) => 'left', __( 'Right', 'mpc' ) => 'right', __( 'Center', 'mpc' ) => 'center', __( 'Justify', 'mpc' ) => 'justify', __( 'Default', 'mpc' ) => 'inherit', ), 'std' => '', 'edit_field_class' => 'vc_col-sm-6 vc_column mpc-advanced-field', ), array( 'type' => 'colorpicker', 'heading' => __( 'Color', 'mpc' ), 'param_name' => 'properties_font_color', 'tooltip' => __( 'Define properties color.', 'mpc' ), 'value' => '', 'edit_field_class' => 'vc_col-sm-4 vc_column', ), ); $properties_even_background = MPC_Snippets::vc_background( array( 'prefix' => 'prop_even', 'subtitle' => __( 'Even Properties', 'mpc' ) ) ); $class = MPC_Snippets::vc_class(); $params = array_merge( $base, $properties, $properties_even_background, $class ); return array( 'name' => __( 'Pricing Legend', 'mpc' ), 'description' => __( 'Pricing table legend', 'mpc' ), 'base' => 'mpc_pricing_legend', 'as_child' => array( 'only' => 'mpc_pricing_box' ), 'content_element' => true, // 'icon' => mpc_get_plugin_path( __FILE__ ) . '/assets/images/icons/mpc-pricing-box.png', 'icon' => 'mpc-shicon-pricing-legend', 'category' => __( 'MPC', 'mpc' ), 'params' => $params, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function shortcode_map() {\r\n\t\t\tif ( ! function_exists( 'vc_map' ) ) {\r\n\t\t\t\treturn '';\r\n\t\t\t}\r\n\r\n\t\t\t$base = array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_preset',\r\n\t\t\t\t\t'heading' => __( 'Style Preset', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'preset',\r\n\t\t\t\t\t'tooltip' => MPC_Helper::style_presets_desc(),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'shortcode' => $this->shortcode,\r\n\t\t\t\t\t'wide_modal' => true,\r\n\t\t\t\t\t'description' => __( 'Choose preset or create new one.', 'mpc' ),\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_content',\r\n\t\t\t\t\t'heading' => __( 'Content Preset', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'content_preset',\r\n\t\t\t\t\t'tooltip' => MPC_Helper::content_presets_desc(),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'shortcode' => $this->shortcode,\r\n\t\t\t\t\t'extended' => true,\r\n\t\t\t\t\t'description' => __( 'Choose preset or create new one.', 'mpc' ),\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'dropdown',\r\n\t\t\t\t\t'heading' => __( 'Style', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'style',\r\n\t\t\t\t\t'admin_label' => true,\r\n\t\t\t\t\t'tooltip' => __( 'Select buttons set style:<br><b>Horizontal</b>: horizontal buttons side by side;<br><b>Vertical</b>: vertical buttons one under the other.', 'mpc' ),\r\n\t\t\t\t\t'value' => array(\r\n\t\t\t\t\t\t__( 'Horizontal', 'mpc' ) => 'horizontal',\r\n\t\t\t\t\t\t__( 'Vertical', 'mpc' ) => 'vertical',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'std' => 'horizontal',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_text',\r\n\t\t\t\t\t'heading' => __( 'Separator Space', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'space',\r\n\t\t\t\t\t'tooltip' => __( 'Define separator space between buttons. Adds additional space on sides of separator to prevent it from overlapping button content.', 'mpc' ),\r\n\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t'addon' => array(\r\n\t\t\t\t\t\t'icon' => 'dashicons dashicons-leftright',\r\n\t\t\t\t\t\t'align' => 'prepend',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'label' => 'px',\r\n\t\t\t\t\t'validate' => true,\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'checkbox',\r\n\t\t\t\t\t'heading' => __( 'Full Width', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'fullwidth',\r\n\t\t\t\t\t'tooltip' => __( 'Check to stretch buttons to 100% width of their container.', 'mpc' ),\r\n\t\t\t\t\t'value' => array( __( 'Enable', 'mpc' ) => 'true' ),\r\n\t\t\t\t\t'std' => '',\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-4 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t$icon_animation = array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'type' => 'mpc_animation',\r\n\t\t\t\t\t'heading' => __( 'Animation Effect', 'mpc' ),\r\n\t\t\t\t\t'param_name' => 'icon_animation',\r\n\t\t\t\t\t'tooltip' => __( 'Choose one of the animation types. You can apply the animation to the preview box on the right with the <b>Refresh</b> button.', 'mpc' ),\r\n\t\t\t\t\t'value' => MPC_Snippets::$animations_loop_list,\r\n\t\t\t\t\t'std' => 'none',\r\n\t\t\t\t\t'group' => __( 'Separator', 'mpc' ),\r\n\t\t\t\t\t'edit_field_class' => 'vc_col-sm-12 vc_column mpc-advanced-field',\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t$margin = MPC_Snippets::vc_margin();\r\n\t\t\t$animation = MPC_Snippets::vc_animation();\r\n\t\t\t$class = MPC_Snippets::vc_class();\r\n\r\n\t\t\t$background = MPC_Snippets::vc_background( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$border = MPC_Snippets::vc_border( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$padding = MPC_Snippets::vc_padding( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$icon_margin = MPC_Snippets::vc_margin( array( 'prefix' => 'icon', 'group' => __( 'Separator', 'mpc' ) ) );\r\n\t\t\t$icon = MPC_Snippets::vc_icon( array( 'group' => __( 'Separator', 'mpc' ) ) );\r\n\r\n\t\t\t$params = array_merge( $base, $margin, $icon, $icon_animation, $background, $border, $padding, $icon_margin, $animation, $class );\r\n\r\n\t\t\treturn array(\r\n\t\t\t\t'name' => __( 'Buttons Set', 'mpc' ),\r\n\t\t\t\t'description' => __( 'Buttons with separator', 'mpc' ),\r\n\t\t\t\t'base' => 'mpc_button_set',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'icon' => 'mpc-shicon-buttons-set',\r\n\t\t\t\t'category' => __( 'MPC', 'mpc' ),\r\n\t\t\t\t'as_parent' => array( 'only' => 'mpc_button, mpc_lightbox' ),\r\n\t\t\t\t'content_element' => true,\r\n\t\t\t\t\"js_view\" => 'VcColumnView',\r\n\t\t\t\t'params' => $params,\r\n\t\t\t);\r\n\t\t}", "function my_shortcode() {\n\n$options = get_option('foodrecipecptplugin_settings');\nreturn \"<p>Recipe Name:\" . $options['foodrecipecptplugin_text_field_0'] . \"</p>\".\"<p>Category: \" . $options['foodrecipecptplugin_text_field_1'].\"</p>\".\"<p>Ingredients: \". $options['foodrecipecptplugin_text_field_2'].\"</p>\".\"<p>Recipe Instructions: \" . $options['foodrecipecptplugin_text_field_3'] . \"</p>\";\n}", "function popup_elements() {\n\t\t\t$this->config['subElements'] = array(\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Shortocode', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Choose woocommerce shortcode', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"oxo_woo_shortocode\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::SELECT,\n\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\"allowedValues\" => array(\n\t\t\t\t\t\t'1' => __( 'Order tracking', 'oxo-core' ),\n\t\t\t\t\t\t'2' => __( 'Product price/cart button', 'oxo-core' ),\n\t\t\t\t\t\t'3' => __( 'Product by SKU/ID', 'oxo-core' ),\n\t\t\t\t\t\t'4' => __( 'Products by SKU/ID', 'oxo-core' ),\n\t\t\t\t\t\t'5' => __( 'Product categories', 'oxo-core' ),\n\t\t\t\t\t\t'6' => __( 'Products by category slug', 'oxo-core' ),\n\t\t\t\t\t\t'7' => __( 'Recent products', 'oxo-core' ),\n\t\t\t\t\t\t'8' => __( 'Featured products', 'oxo-core' ),\n\t\t\t\t\t\t'9' => __( 'Shop Message', 'oxo-core' )\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Shortcode content', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Shortcode will appear here', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"oxo_woo_shortocde_content\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::TEXTAREA,\n\t\t\t\t\t\"value\" => \"[woocommerce_order_tracking]\"\n\t\t\t\t),\n\t\t\t);\n\t\t}", "function evoSE_add_shortcode_options($shortcode_array){\r\n\t\tglobal $evo_shortcode_box;\r\n\t\t\r\n\t\t$new_shortcode_array = array(\r\n\t\t\tarray(\r\n\t\t\t\t'id'=>'s_SE',\r\n\t\t\t\t'name'=>'Single Event',\r\n\t\t\t\t'code'=>'add_single_eventon',\r\n\t\t\t\t'variables'=>array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'name'=>'Event ID',\r\n\t\t\t\t\t\t'type'=>'text',\r\n\t\t\t\t\t\t'placeholder'=>'eg. 234',\r\n\t\t\t\t\t\t'guide'=>'ID of the event you want to show in the box',\r\n\t\t\t\t\t\t'var'=>'id',\r\n\t\t\t\t\t\t'default'=>'0'\r\n\t\t\t\t\t),array(\r\n\t\t\t\t\t\t'name'=>'Show Event Excerpt',\r\n\t\t\t\t\t\t'type'=>'YN',\r\n\t\t\t\t\t\t'guide'=>'Show event excerpt under the single event box',\r\n\t\t\t\t\t\t'var'=>'show_excerpt',\r\n\t\t\t\t\t\t'default'=>'no'\r\n\t\t\t\t\t),array(\r\n\t\t\t\t\t\t'name'=>'Show expanded eventCard',\r\n\t\t\t\t\t\t'type'=>'YN',\r\n\t\t\t\t\t\t'guide'=>'Show single event eventCard expanded on load',\r\n\t\t\t\t\t\t'var'=>'show_exp_evc',\r\n\t\t\t\t\t\t'default'=>'no'\r\n\t\t\t\t\t),array(\r\n\t\t\t\t\t\t'name'=>'Open event as popup (Lightbox)',\r\n\t\t\t\t\t\t'type'=>'YN',\r\n\t\t\t\t\t\t'guide'=>'User click on eventTop open as popup lightbox. IMPORTANT: make sure you DONT select show expanded eventCard for popup lightbox to work',\r\n\t\t\t\t\t\t'var'=>'open_as_popup',\r\n\t\t\t\t\t\t'default'=>'no'\r\n\t\t\t\t\t),\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\treturn array_merge($shortcode_array, $new_shortcode_array);\r\n\t}", "public function print_shortcodes_templates() {\n\n\t\tif ( did_action( 'toolset_action_require_shortcodes_templates_done' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t?>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-gui\">\n\t\t\t<input value=\"{{{data.shortcode}}}\" class=\"toolset-shortcode-gui-shortcode-handle js-toolset-shortcode-gui-shortcode-handle\" type=\"hidden\" />\n\t\t\t<# if ( _.has( data, 'parameters' ) ) {\n\t\t\t\t_.each( data.parameters, function( parameterValue, parameterKey ) {\n\t\t\t\t\t#>\n\t\t\t\t\t<span class=\"toolset-shortcode-gui-attribute-wrapper js-toolset-shortcode-gui-attribute-wrapper js-toolset-shortcode-gui-attribute-wrapper-for-{{{parameterKey}}}\" data-attribute=\"{{{parameterKey}}}\" data-type=\"parameter\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"{{{parameterKey}}}\" value=\"{{{parameterValue}}}\" disabled=\"disabled\" />\n\t\t\t\t\t</span>\n\t\t\t\t\t<#\n\t\t\t\t});\n\t\t\t} #>\n\t\t\t<div id=\"js-toolset-shortcode-gui-dialog-tabs\" class=\"toolset-shortcode-gui-tabs js-toolset-shortcode-gui-tabs\">\n\t\t\t<# if ( _.size( data.attributes ) > 1 ) { #>\n\t\t\t\t<ul class=\"js-toolset-shortcode-gui-tabs-list\">\n\t\t\t\t\t<# _.each( data.attributes, function( attributesGroup, groupKey ) { #>\n\t\t\t\t\t\t<# if (\n\t\t\t\t\t\t\t_.has( attributesGroup, 'fields' )\n\t\t\t\t\t\t\t&& _.size( attributesGroup.fields ) > 0\n\t\t\t\t\t\t) { #>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"#{{{data.shortcode}}}-{{{groupKey}}}\">{{{attributesGroup.header}}}</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<# } #>\n\t\t\t\t\t<# }); #>\n\t\t\t\t</ul>\n\t\t\t<# } #>\n\t\t\t\t<# _.each( data.attributes, function( attributesGroup, groupKey ) { #>\n\t\t\t\t\t<# if (\n\t\t\t\t\t\t_.has( attributesGroup, 'fields' )\n\t\t\t\t\t\t&& _.size( attributesGroup.fields ) > 0\n\t\t\t\t\t) { #>\n\t\t\t\t\t<div id=\"{{{data.shortcode}}}-{{{groupKey}}}\">\n\t\t\t\t\t\t<h2>{{{attributesGroup.header}}}</h2>\n\t\t\t\t\t\t<# _.each( attributesGroup.fields, function( attributeData, attributeKey ) {\n\t\t\t\t\t\t\tif ( _.has( data.templates, 'attributeWrapper' ) ) {\n\t\t\t\t\t\t\t\tattributeData = _.extend( { shortcode: data.shortcode, attribute: attributeKey, templates: data.templates }, attributeData );\n\t\t\t\t\t\t\t\tif ( 'group' == attributeData.type ) {\n\t\t\t\t\t\t\t\t\tprint( data.templates.attributeGroupWrapper( attributeData ) );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprint( data.templates.attributeWrapper( attributeData ) );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}); #>\n\t\t\t\t\t</div>\n\t\t\t\t\t<# } #>\n\t\t\t\t<# }); #>\n\t\t\t</div>\n\t\t\t<div class=\"toolset-shortcode-gui-messages js-toolset-shortcode-gui-messages\"></div>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-wrapper\">\n\t\t\t<#\n\t\t\t\tdata = _.defaults( data, { defaultValue: '', required: false, hidden: false, placeholder: '' } );\n\t\t\t\tdata = _.defaults( data, { defaultForceValue: data.defaultValue } );\n\t\t\t#>\n\t\t\t<div class=\"toolset-shortcode-gui-attribute-wrapper js-toolset-shortcode-gui-attribute-wrapper js-toolset-shortcode-gui-attribute-wrapper-for-{{{data.attribute}}}\" data-attribute=\"{{{data.attribute}}}\" data-type=\"{{{data.type}}}\" data-default=\"{{{data.defaultValue}}}\"<# if ( data.hidden ) { #> style=\"display:none\"<# } #>>\n\t\t\t\t<# if ( _.has( data, 'label' ) ) { #>\n\t\t\t\t\t<h3>{{{data.label}}}</h3>\n\t\t\t\t<# } #>\n\t\t\t\t<# if ( _.has( data, 'pseudolabel' ) ) { #>\n\t\t\t\t\t<strong>{{{data.pseudolabel}}}</strong>\n\t\t\t\t<# } #>\n\t\t\t\t<# if (\n\t\t\t\t\t_.has( data.templates, 'attributes' )\n\t\t\t\t\t&& _.has( data.templates.attributes, data.type )\n\t\t\t\t) {\n\t\t\t\t\tprint( data.templates.attributes[ data.type ]( data ) );\n\t\t\t\t} #>\n\t\t\t\t<# if ( _.has( data, 'description' ) ) { #>\n\t\t\t\t\t<p class=\"description\">{{{data.description}}}</p>\n\t\t\t\t<# } #>\n\t\t\t</div>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-group-wrapper\">\n\t\t\t<div class=\"toolset-shortcode-gui-attribute-group js-toolset-shortcode-gui-attribute-group js-toolset-shortcode-gui-attribute-group-for-{{{data.attribute}}}\" data-type=\"group\" data-group=\"{{{data.attribute}}}\"<# if ( data.hidden ) { #> style=\"display:none\"<# } #>>\n\t\t\t\t<# if ( _.has( data, 'label' ) ) { #>\n\t\t\t\t\t<h3>{{{data.label}}}</h3>\n\t\t\t\t<# } #>\n\t\t\t\t<#\n\t\t\t\tvar columns = _.size( data.fields ),\n\t\t\t\t\tcolumnsWidth = parseInt( 100 / columns );\n\t\t\t\t#>\n\t\t\t\t<ul class=\"toolset-shortcode-gui-dialog-item-group js-toolset-shortcode-gui-dialog-item-group\">\n\t\t\t\t\t<# _.each( data.fields, function( fieldData, fieldAttribute ) { #>\n\t\t\t\t\t\t<li style=\"width:<# print( columnsWidth ); #>%;min-height:1px;float:left;\">\n\t\t\t\t\t\t\t<#\n\t\t\t\t\t\t\tfieldData = _.defaults( fieldData, { shortcode: data.shortcode, templates: data.templates } );\n\t\t\t\t\t\t\tfieldData = _.defaults( fieldData, { defaultValue: '', required: false, hidden: false, placeholder: '' } );\n\t\t\t\t\t\t\tfieldData = _.defaults( fieldData, { defaultForceValue: fieldData.defaultValue } );\n\t\t\t\t\t\t\tfieldData.attribute = fieldAttribute;\n\t\t\t\t\t\t\tprint( data.templates.attributeWrapper( fieldData ) );\n\t\t\t\t\t\t\t#>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t<# }); #>\n\t\t\t\t</ul>\n\t\t\t\t<# if ( _.has( data, 'description' ) ) { #>\n\t\t\t\t\t<p class=\"description\">{{{data.description}}}</p>\n\t\t\t\t<# } #>\n\t\t\t</div>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-information\">\n\t\t\t<div id=\"{{{data.shortcode}}}-{{{data.attribute}}}\" class=\"toolset-alert toolset-alert-info\">\n\t\t\t\t{{{data.content}}}\n\t\t\t</div>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-text\">\n\t\t\t<input id=\"{{{data.shortcode}}}-{{{data.attribute}}}\" data-type=\"text\" class=\"js-shortcode-gui-field large-text<# if ( data.required ) { #> js-toolset-shortcode-gui-required<# } #>\" value=\"{{{data.defaultForceValue}}}\" placeholder=\"{{{data.placeholder}}}\" type=\"text\">\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-radio\">\n\t\t\t<ul id=\"{{{data.shortcode}}}-{{{data.attribute}}}\">\n\t\t\t\t<# _.each( data.options, function( optionLabel, optionKey ) { #>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t<input name=\"{{{data.shortcode}}}-{{{data.attribute}}}\" value=\"{{{optionKey}}}\" class=\"js-shortcode-gui-field\" type=\"radio\"<# if ( optionKey == data.defaultForceValue ) { #> checked=\"checked\"<# } #>>\n\t\t\t\t\t\t\t{{{optionLabel}}}\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t<# }); #>\n\t\t\t</ul>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-select\">\n\t\t\t<select id=\"{{{data.shortcode}}}-{{{data.attribute}}}\" class=\"js-shortcode-gui-field<# if ( data.required ) { #> js-toolset-shortcode-gui-required<# } #>\">\n\t\t\t\t<# _.each( data.options, function( optionLabel, optionKey ) { #>\n\t\t\t\t\t<option value=\"{{{optionKey}}}\"<# if ( optionKey == data.defaultForceValue ) { #> selected=\"selected\"<# } #>>\n\t\t\t\t\t\t{{{optionLabel}}}\n\t\t\t\t\t</option>\n\t\t\t\t<# }); #>\n\t\t\t</select>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-select2\">\n\t\t\t<select id=\"{{{data.shortcode}}}-{{{data.attribute}}}\" class=\"js-shortcode-gui-field js-toolset-shortcode-gui-field-select2<# if ( data.required ) { #> js-toolset-shortcode-gui-required<# } #>\">\n\t\t\t\t<#\n\t\t\t\tif ( _.has( data, 'options' ) ) {\n\t\t\t\t\t_.each( data.options, function( optionLabel, optionKey ) {\n\t\t\t\t\t#>\n\t\t\t\t\t<option value=\"{{{optionKey}}}\"<# if ( optionKey == data.defaultForceValue ) { #> selected=\"selected\"<# } #>>\n\t\t\t\t\t\t{{{optionLabel}}}\n\t\t\t\t\t</option>\n\t\t\t\t\t<#\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t#>\n\t\t\t</select>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-ajaxSelect2\">\n\t\t\t<select\n\t\t\t\tid=\"{{{data.shortcode}}}-{{{data.attribute}}}\"\n\t\t\t\tclass=\"js-shortcode-gui-field js-toolset-shortcode-gui-field-ajax-select2<# if ( data.required ) { #> js-toolset-shortcode-gui-required<# } #>\"\n\t\t\t\tdata-action=\"{{{data.action}}}\"\n\t\t\t\tdata-nonce=\"{{{data.nonce}}}\"\n\t\t\t\tdata-placeholder=\"{{{data.placeholder}}}\"\n\t\t\t\t>\n\t\t\t</select>\n\t\t</script>\n\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-content\">\n\t\t\t<#\n\t\t\t\tdata = _.defaults( data, { defaultValue: '', required: false, hidden: false, placeholder: '' } );\n\t\t\t\tdata = _.defaults( data, { defaultForceValue: data.defaultValue } );\n\t\t\t#>\n\t\t\t<div class=\"toolset-shortcode-gui-attribute-wrapper js-toolset-shortcode-gui-content-wrapper\" <# if ( data.hidden ) { #> style=\"display:none\"<# } #>>\n\t\t\t\t<textarea id=\"toolset-shortcode-gui-content-{{{data.shortcode}}}\" type=\"text\" class=\"large-text js-toolset-shortcode-gui-content\">{{{data.defaultValue}}}</textarea>\n\t\t\t\t<# if ( _.has( data, 'description' ) ) { #>\n\t\t\t\t\t<p class=\"description\">{{{data.description}}}</p>\n\t\t\t\t<# } #>\n\t\t\t</div>\n\t\t</script>\n\n\t\t<?php $toolset_ajax = Toolset_Ajax::get_instance(); ?>\n\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-postSelector\">\n\t\t\t<ul id=\"{{{data.shortcode}}}-{{{data.attribute}}}\">\n\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option\">\n\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id-current\">\n\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-current\" name=\"toolset_shortcode_gui_object_id\" value=\"current\" checked=\"checked\" />\n\t\t\t\t\t\t<?php _e( 'The current post being displayed either directly or in a View loop', 'wpv-views' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\n\t\t\t<?php\n\n\t\t\tglobal $pagenow, $post;\n\t\t\t$current_post_type = null;\n\t\t\tif (\n\t\t\t\tin_array( $pagenow, array( 'post.php' ) )\n\t\t\t\t&& isset( $_GET[\"post\"] )\n\t\t\t) {\n\t\t\t\t$current_post_id = (int) $_GET[\"post\"];\n\t\t\t\t$current_post_type_slug = get_post_type( $current_post_id );\n\t\t\t\t$current_post_type = get_post_type_object( $current_post_type_slug );\n\t\t\t} elseif (\n\t\t\t\tisset( $post )\n\t\t\t\t&& ( $post instanceof WP_Post )\n\t\t\t\t&& ( ! in_array( $post->post_type, array( 'view', 'view-template', 'cred-form', 'cred-user-form', 'dd_layouts' ) ) )\n\t\t\t) {\n\t\t\t\t$current_post_type = get_post_type_object( $post->post_type );\n\t\t\t}\n\t\t\t\n\t\t\t// Current top page when displaying a View loop\n\t\t\tif (\n\t\t\t\tin_array( $pagenow, array( 'admin.php' ) )\n\t\t\t\t&& 'views-editor' === toolset_getget( 'page' )\n\t\t\t) {\n\t\t\t\t?>\n\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option\">\n\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id-current_page\">\n\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-current_page\" name=\"toolset_shortcode_gui_object_id\" value=\"$current_page\" />\n\t\t\t\t\t\t<?php echo __( 'The page where this View is shown', 'wpv-views' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\t\t\t\t<?php\n\t\t\t}\n\n\t\t\t// Poost hierarchical relations\n\t\t\tif (\n\t\t\t\tis_null( $current_post_type )\n\t\t\t\t|| (\n\t\t\t\t\tis_object( $current_post_type )\n\t\t\t\t\t&& isset( $current_post_type->hierarchical )\n\t\t\t\t\t&& $current_post_type->hierarchical\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t?>\n\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option\">\n\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id-parent\">\n\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-parent\" name=\"toolset_shortcode_gui_object_id\" value=\"$parent\" />\n\t\t\t\t\t\t<?php echo __( 'The parent of the current post in the same post type, set by WordPress hierarchical relationship', 'wpv-views' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\t\t\t\t<?php\n\t\t\t}\n\n\n\t\t\t// Types relations\n\t\t\tif ( ! apply_filters( 'toolset_is_m2m_enabled', false ) ) {\n\t\t\t\t// Legacy relationships\n\t\t\t\t$current_post_type_parents = $this->get_legacy_current_post_type_relationships( $current_post_type );\n\t\t\t\t$custom_post_types_relations = get_option( 'wpcf-custom-types', array() );\n\n\t\t\t\tif ( ! empty( $current_post_type_parents ) ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option toolset-shortcode-gui-item-selector-has-related js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id-related\">\n\t\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-related\" name=\"toolset_shortcode_gui_object_id\" value=\"related\" />\n\t\t\t\t\t\t\t<?php echo __( 'The parent of the current post in another post type, set by a Types relationship', 'wpv-views' ); ?>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class=\"toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none\">\n\t\t\t\t\t\t\t<ul class=\"toolset-advanced-setting tolset-mightlong-list\" style=\"padding-top:15px;margin:5px 0 10px;\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t$first = true;\n\t\t\t\t\t\t\tforeach ( $current_post_type_parents as $slug ) {\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<?php echo sprintf( '<label for=\"toolset-shortcode-gui-item-selector-post-relationship-id-%s\">', $slug ); ?>\n\t\t\t\t\t\t\t\t\t<?php echo sprintf(\n\t\t\t\t\t\t\t\t\t\t'<input type=\"radio\" name=\"related_object\" id=\"toolset-shortcode-gui-item-selector-post-relationship-id-%s\" value=\"$%s\" %s />',\n\t\t\t\t\t\t\t\t\t\tesc_attr( $slug ),\n\t\t\t\t\t\t\t\t\t\tesc_attr( $slug ),\n\t\t\t\t\t\t\t\t\t\tchecked( $first, true, false )\n\t\t\t\t\t\t\t\t\t); ?>\n\t\t\t\t\t\t\t\t\t<?php echo esc_html( $custom_post_types_relations[ $slug ]['labels']['singular_name'] ); ?>\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$first = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t// m2m relationships\n\t\t\t\t// Make sure m2m classes are registered in the autoloader\n\t\t\t\tdo_action( 'toolset_do_m2m_full_init' );\n\t\t\t\t$relationship_definitions_per_origin = $this->get_m2m_current_post_type_relationships_per_origin( $current_post_type );\n\t\t\t\t\n\t\t\t\t$relationship_section_title_per_cardinality = array(\n\t\t\t\t\t'one-to-one' => __( '%s (one-to-one relationship)', 'wpv-views' ),\n\t\t\t\t\t'one-to-many' => __( '%s (one-to-many relationship)', 'wpv-views' ),\n\t\t\t\t\t'many-to-many' => __( '%s (many-to-many relationship)', 'wpv-views' ),\n\t\t\t\t);\n\n\t\t\t\tif ( ! empty( $relationship_definitions_per_origin[ Toolset_Relationship_Origin_Wizard::ORIGIN_KEYWORD ] ) ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option toolset-shortcode-gui-item-selector-has-related js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id-related\">\n\t\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-related\" name=\"toolset_shortcode_gui_object_id\" value=\"related\" />\n\t\t\t\t\t\t\t<?php echo __( 'A post related to the current post, set by a Types relationship', 'wpv-views' ); ?>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class=\"toolset-advanced-setting toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tforeach ( $relationship_definitions_per_origin[ Toolset_Relationship_Origin_Wizard::ORIGIN_KEYWORD ] as $relationship_definition ) {\n\t\t\t\t\t\t\t\t$cardinality = $relationship_definition->get_cardinality()->get_type();\n\t\t\t\t\t\t\t\t$relationship_selectors_factory = new Toolset_Shortcode_Attr_Item_Gui_Factory(\n\t\t\t\t\t\t\t\t\t$relationship_definition, $current_post_type, 'related_object'\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$relationship_selectors = $relationship_selectors_factory->get_options();\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<div style=\"margin:5px 0 0;\">\n\t\t\t\t\t\t\t\t<h3><?php echo sprintf(\n\t\t\t\t\t\t\t\t\t$relationship_section_title_per_cardinality[ $cardinality ],\n\t\t\t\t\t\t\t\t\t$relationship_definition->get_display_name()\n\t\t\t\t\t\t\t\t); ?></h3>\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tforeach( $relationship_selectors as $relationship_selector_option ) {\n\t\t\t\t\t\t\t\t\techo '<li style=\"display:inline-block;width:31%;vertical-align:top;margin-right:1%;>' . $relationship_selector_option . '</li>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\n\t\t\t\tif ( ! empty( $relationship_definitions_per_origin[ Toolset_Relationship_Origin_Post_Reference_Field::ORIGIN_KEYWORD ] ) ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option toolset-shortcode-gui-item-selector-has-related js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id-referenced\">\n\t\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-referenced\" name=\"toolset_shortcode_gui_object_id\" value=\"referenced\" />\n\t\t\t\t\t\t\t<?php echo __( 'A post related to the current post, set by a Types post reference field', 'wpv-views' ); ?>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class=\"toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none\">\n\t\t\t\t\t\t\t<ul class=\"toolset-advanced-setting toolset-mightlong-list\" style=\"padding-top:15px;margin:5px 0 10px;\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tforeach ( $relationship_definitions_per_origin[ Toolset_Relationship_Origin_Post_Reference_Field::ORIGIN_KEYWORD ] as $relationship_definition ) {\n\t\t\t\t\t\t\t\t$relationship_selectors_factory = new Toolset_Shortcode_Attr_Item_Gui_Factory(\n\t\t\t\t\t\t\t\t\t$relationship_definition, $current_post_type, 'referenced_object'\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$relationship_selectors = $relationship_selectors_factory->get_options();\n\t\t\t\t\t\t\t\tforeach( $relationship_selectors as $relationship_selector_option ) {\n\t\t\t\t\t\t\t\t\techo '<li>' . $relationship_selector_option . '</li>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t?>\n\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option toolset-shortcode-gui-item-selector-has-related js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-post-id\">\n\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id\" name=\"toolset_shortcode_gui_object_id\" value=\"object_id\" />\n\t\t\t\t\t\t<?php _e( 'A specific post (search by title)', 'wpv-views' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"toolset-advanced-setting toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none;padding-top:10px;\">\n\t\t\t\t\t\t<select id=\"toolset-shortcode-gui-item-selector-post-id-object_id\"\n\t\t\t\t\t\t\tclass=\"js-toolset-shortcode-gui-item-selector_object_id js-toolset-shortcode-gui-field-ajax-select2\"\n\t\t\t\t\t\t\tname=\"specific_object_id\"\n\t\t\t\t\t\t\tdata-action=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_POSTS_BY_TITLE ) ); ?>\"\n\t\t\t\t\t\t\tdata-prefill=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_GET_POST_BY_ID ) ); ?>\"\n\t\t\t\t\t\t\tdata-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_POSTS_BY_TITLE ); ?>\"\n\t\t\t\t\t\t\tdata-prefill-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_GET_POST_BY_ID ); ?>\"\n\t\t\t\t\t\t\tdata-placeholder=\"<?php echo esc_attr( __( 'Search for a post by title', 'wpv-views' ) ); ?>\">\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\n <li class=\"toolset-shortcode-gui-item-selector-option toolset-shortcode-gui-item-selector-has-related js-toolset-shortcode-gui-item-selector-has-related\">\n <label for=\"toolset-shortcode-gui-item-selector-post-id-raw\">\n <input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-post-id-raw\" name=\"toolset_shortcode_gui_object_id\" value=\"object_id_raw\" />\n\t\t\t\t\t\t<?php _e( 'A specific post (set by post ID)', 'wpv-views' ); ?>\n </label>\n <div class=\"toolset-advanced-setting toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none;padding-top:10px;\">\n <input type=\"number\" placeholder=\"<?php echo esc_attr( __( 'Please enter post ID', 'wpv-views' ) ); ?>\" id=\"toolset-shortcode-gui-item-selector-post-id-object_id_raw\" class=\"regular-text js-toolset-shortcode-gui-item-selector_object_id_raw\" name=\"specific_object_id_raw\">\n </div>\n </li>\n\n </ul>\n\t\t\t<p class=\"description\">\n\t\t\t\t<?php echo sprintf(\n\t\t\t\t\t__( 'Learn about displaying content from parent and other posts in the %sdocumentation page%s.', 'wpv-views' ),\n\t\t\t\t\t'<a href=\"https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/\" target=\"_blank\">',\n\t\t\t\t\t'</a>'\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t</script>\n\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-userSelector\">\n\t\t\t<ul id=\"{{{data.shortcode}}}-{{{data.attribute}}}\">\n\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option\">\n\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-user-id-current\">\n\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-user-id-current\" name=\"toolset_shortcode_gui_object_id\" value=\"current\" checked=\"checked\" />\n\t\t\t\t\t\t<?php _e( 'The current user or the one being displayed in a View loop', 'wpv-views' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\n\t\t\t\t<li class=\"toolset-shortcode-gui-item-selector-option toolset-shortcode-gui-item-selector-has-related js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t<label for=\"toolset-shortcode-gui-item-selector-user-id\">\n\t\t\t\t\t\t<input type=\"radio\" class=\"js-toolset-shortcode-gui-item-selector\" id=\"toolset-shortcode-gui-item-selector-user-id\" name=\"toolset_shortcode_gui_object_id\" value=\"object_id\" />\n\t\t\t\t\t\t<?php _e( 'A specific user', 'wpv-views' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"toolset-advanced-setting toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none;padding-top:10px;\">\n\t\t\t\t\t\t<select id=\"toolset-shortcode-gui-item-selector-user-id-object_id\"\n\t\t\t\t\t\t\tclass=\"js-toolset-shortcode-gui-item-selector_object_id js-toolset-shortcode-gui-field-ajax-select2\"\n\t\t\t\t\t\t\tname=\"specific_object_id\"\n\t\t\t\t\t\t\tdata-action=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_USERS ) ); ?>\"\n\t\t\t\t\t\t\tdata-prefill=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_GET_USER_BY_ID ) ); ?>\"\n\t\t\t\t\t\t\tdata-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_USERS ); ?>\"\n\t\t\t\t\t\t\tdata-prefill-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_GET_USER_BY_ID ); ?>\"\n\t\t\t\t\t\t\tdata-placeholder=\"<?php echo esc_attr( __( 'Search for a user', 'wpv-views' ) ); ?>\">\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</script>\n\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-post-selector\">\n\t\t\t<ul id=\"{{data.shortcode}}}-{{data.attribute}}}\">\n\t\t\t\t<li>\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type=\"radio\" name=\"{{{data.shortcode}}}-select-target-post\" class=\"toolset-shortcode-gui-item-selector js-toolset-shortcode-gui-item-selector\" value=\"current\" checked=\"checked\" />\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tisset( $_GET['page'] )\n\t\t\t\t\t\t\t&& in_array( $_GET['page'], array( 'views-editor', 'view-archives-editor' ) )\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t_e( 'The current post in the loop', 'wp-cred' );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t_e( 'The current post', 'wp-cred' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\t\t\t\t<li class=\"js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type=\"radio\" name=\"{{{data.shortcode}}}-select-target-post\" class=\"toolset-shortcode-gui-item-selector js-toolset-shortcode-gui-item-selector\" value=\"object_id\" />\n\t\t\t\t\t\t<?php _e( 'Another post', 'wp-cred' ); ?>\n\t\t\t\t\t\t<div class=\"toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none\">\n\t\t\t\t\t\t\t<select id=\"toolset-shortcode-gui-item-selector-post-id-object_id\"\n\t\t\t\t\t\t\t\tclass=\"js-toolset-shortcode-gui-item-selector_object_id js-toolset-shortcode-gui-field-ajax-select2\"\n\t\t\t\t\t\t\t\tname=\"specific_object_id\"\n\t\t\t\t\t\t\t\tdata-action=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_POSTS_BY_TITLE ) ); ?>\"\n\t\t\t\t\t\t\t\tdata-prefill=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_GET_POST_BY_ID ) ); ?>\"\n\t\t\t\t\t\t\t\tdata-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_POSTS_BY_TITLE ); ?>\"\n\t\t\t\t\t\t\t\tdata-prefill-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_GET_POST_BY_ID ); ?>\"\n\t\t\t\t\t\t\t\tdata-placeholder=\"<?php echo esc_attr( __( 'Search for a post by title', 'wpv-views' ) ); ?>\">\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</script>\n\t\t<script type=\"text/html\" id=\"tmpl-toolset-shortcode-attribute-user-selector\">\n\t\t\t<ul id=\"{{data.shortcode}}}-{{data.attribute}}}\">\n\t\t\t\t<li>\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type=\"radio\" name=\"{{{data.shortcode}}}-select-target-user\" class=\"toolset-shortcode-gui-item-selector js-toolset-shortcode-gui-item-selector\" value=\"current\" checked=\"checked\" />\n\t\t\t\t\t\t<?php _e( 'The current logged in user', 'wp-cred' ); ?>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\t\t\t\t<li class=\"js-toolset-shortcode-gui-item-selector-has-related\">\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type=\"radio\" name=\"{{{data.shortcode}}}-select-target-user\" class=\"toolset-shortcode-gui-item-selector js-toolset-shortcode-gui-item-selector\" value=\"object_id\" />\n\t\t\t\t\t\t<?php _e( 'Another user', 'wp-cred' ); ?>\n\t\t\t\t\t\t<div class=\"toolset-shortcode-gui-item-selector-is-related js-toolset-shortcode-gui-item-selector-is-related\" style=\"display:none\">\n\t\t\t\t\t\t\t<select id=\"toolset-shortcode-gui-item-selector-user-id-object_id\"\n\t\t\t\t\t\t\t\tclass=\"js-toolset-shortcode-gui-item-selector_object_id js-toolset-shortcode-gui-field-ajax-select2\"\n\t\t\t\t\t\t\t\tname=\"specific_object_id\"\n\t\t\t\t\t\t\t\tdata-action=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_USERS ) ); ?>\"\n\t\t\t\t\t\t\t\tdata-prefill=\"<?php echo esc_attr( $toolset_ajax->get_action_js_name( Toolset_Ajax::CALLBACK_GET_USER_BY_ID ) ); ?>\"\n\t\t\t\t\t\t\t\tdata-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_SELECT2_SUGGEST_USERS ); ?>\"\n\t\t\t\t\t\t\t\tdata-prefill-nonce=\"<?php echo wp_create_nonce( Toolset_Ajax::CALLBACK_GET_USER_BY_ID ); ?>\"\n\t\t\t\t\t\t\t\tdata-placeholder=\"<?php echo esc_attr( __( 'Search for a user', 'wpv-views' ) ); ?>\">\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</label>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</script>\n\t\t<?php\n\n\t\tdo_action( 'toolset_action_require_shortcodes_templates_done' );\n\n\t}", "function TS_VCSC_RegisterAllShortcodes() {\r\n\t\t\tif ($this->TS_VCSC_PluginSupport == \"true\") {\r\n\t\t\t\t// Standard Elements\r\n\t\t\t\tforeach ($this->TS_VCSC_Visual_Composer_Elements as $ElementName => $element) {\r\n\t\t\t\t\tif ($this->TS_VCSC_Visual_Composer_Elements[$ElementName]['active'] == \"true\") {\r\n\t\t\t\t\t\tif ($element['type'] == 'internal') {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (($this->TS_VCSC_VCFrontEditMode == \"true\") || (is_admin() == false) || ($this->TS_VCSC_PluginAJAX == \"true\") || ($this->TS_VCSC_PluginAlways == \"true\")) {\r\n\t\t\t\t\t\t\t\trequire_once($this->shortcode_dir.'ts_vcsc_shortcode_' . $element['file'] . '.php');\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Load Inter-Dependent Shortocdes\r\n\t\t\t\tif ((($this->TS_VCSC_Visual_Composer_Elements['TS Icon Info Box']['active'] == \"true\") || ($this->TS_VCSC_Visual_Composer_Elements['TS Panel Flip']['active'] == \"true\")) && ($this->TS_VCSC_Visual_Composer_Elements['TS Creative Link']['active'] == \"false\")) {\r\n\t\t\t\t\tif (($this->TS_VCSC_VCFrontEditMode == \"true\") || (is_admin() == false) || ($this->TS_VCSC_PluginAJAX == \"true\") || ($this->TS_VCSC_PluginAlways == \"true\")) {\r\n\t\t\t\t\t\trequire_once($this->shortcode_dir.'ts_vcsc_shortcode_' . $this->TS_VCSC_Visual_Composer_Elements['TS Creative Link']['file'] . '.php');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t// Demo Elements\r\n\t\t\t\tforeach ($this->TS_VCSC_Visual_Composer_Demos as $ElementName => $element) {\r\n\t\t\t\t\tif ($this->TS_VCSC_Visual_Composer_Demos[$ElementName]['active'] == \"true\") {\r\n\t\t\t\t\t\tif (($this->TS_VCSC_VCFrontEditMode == \"true\") || (is_admin() == false) || ($this->TS_VCSC_PluginAJAX == \"true\") || ($this->TS_VCSC_PluginAlways == \"true\")) {\r\n\t\t\t\t\t\t\trequire_once($this->shortcode_dir.'ts_vcsc_shortcode_' . $element['file'] . '.php');\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t\t// Extended Row + Columns + Iconicum\r\n\t\t\t\tif (($this->TS_VCSC_VCFrontEditMode == \"true\") || (is_admin() == false) || ($this->TS_VCSC_PluginAJAX == \"true\") || ($this->TS_VCSC_PluginAlways == \"true\")) {\r\n\t\t\t\t\t// Extended Row Settings\r\n\t\t\t\t\tif ($this->TS_VCSC_UseExtendedRows == \"true\") {\r\n\t\t\t\t\t\trequire_once($this->shortcode_dir . 'ts_vcsc_shortcode_row.php');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Extended Column Settings\r\n\t\t\t\t\tif ($this->TS_VCSC_UseExtendedColumns == \"true\") {\r\n\t\t\t\t\t\trequire_once($this->shortcode_dir . 'ts_vcsc_shortcode_column.php');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// bbPress Elements\r\n\t\t\t\tif ($this->TS_VCSC_bbPressActive == \"true\") {\r\n\t\t\t\t\t// Shortcodes Defined by bbPress itself\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public function Map_Visual_Composer() {\r\n if (!vcff_allow_field_vc_shortcodes()) { return; }\r\n // Retrieve the focused post id\r\n $vcff_supports = vcff_get_library('vcff_supports');\r\n // Retrieve the list of contexts\r\n $contexts = $vcff_supports->contexts;\r\n // If no contexts were returned\r\n if (!$contexts || !is_array($contexts)) { return; }\r\n // Loop through each mapped field\r\n foreach ($contexts as $_type => $_context) {\r\n // Default vc settings\r\n $vc_params = array(\r\n \"name\" => $_context['title'],\r\n \"icon\" => \"icon-ui-splitter-horizontal\",\r\n \"base\" => $_context['type'],\r\n 'category' => __('Form Controls', VCFF_NS),\r\n );\r\n // Merge the vc params\r\n $vc_params = array_merge_recursive($vc_params,$_context['vc_map']); \r\n // Run the params through a filter\r\n $vc_params = apply_filters('vcff_support_vc_params',$vc_params,$_context);\r\n // Map the field to visual composer\r\n vc_map($vc_params); \r\n }\r\n // Fire the vc init action\r\n do_action('vcff_supports_vc_init',$this);\r\n }", "public function GrJsShortcodes()\n\t{\n\t\t$GrOptionDbPrefix = 'GrIntegrationOptions_';\n\t\t$api_key = get_option($GrOptionDbPrefix . 'api_key');\n\t\t$api_url = get_option($GrOptionDbPrefix . 'api_url');\n\t\t$api_domain = get_option($GrOptionDbPrefix . 'api_domain');\n\n\t\t$webforms = null;\n\t\t$forms = null;\n\t\t$campaingns = null;\n\t\tif ( !empty($api_key))\n\t\t{\n\t\t\t$api = new GetResponseIntegration($api_key, $api_url, $api_domain, is_ssl());\n\t\t\t$webforms = $api->getWebforms(array('sort' => array('name' => 'asc')));\n\t\t\t$forms = $api->getForms(array('sort' => array('name' => 'asc')));\n\t\t\t$api_key = 'true';\n\t\t\t$campaingns = $api->getCampaigns(); // for 3.8 version\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$api_key = 'false';\n\t\t}\n\n\t\tif (strlen($api_domain) > 0)\n\t\t{\n\t\t\t$webforms = $this->setGetResponse360domainToWebFormUrl($webforms, $api_domain);\n\t\t\t$forms = $this->setGetResponse360domainToWebFormUrl($forms, $api_domain);\n\t\t}\n\n\t\t$webforms = json_encode($webforms);\n\t\t$forms = json_encode($forms);\n\t\t$campaingns = json_encode($campaingns); // for 3.8 version\n\t\t?>\n\t\t<script type=\"text/javascript\">\n\t\t\tvar my_webforms = <?php echo $webforms; ?>;\n\t\t\tvar my_forms = <?php echo $forms; ?>;\n\t\t\tvar my_campaigns = <?php echo $campaingns; // for 3.8 version ?>;\n\t\t\tvar text_forms = '<?php echo __('New Forms', 'Gr_Integration'); ?>';\n\t\t\tvar text_webforms = '<?php echo __('Old Web Forms', 'Gr_Integration'); ?>';\n\t\t\tvar text_no_forms = '<?php echo __('No Forms', 'Gr_Integration'); ?>';\n\t\t\tvar text_no_webforms = '<?php echo __('No Web Forms', 'Gr_Integration'); ?>';\n\t\t\tvar api_key = <?php echo $api_key; ?>;\n\t\t</script>\n\t\t<?php\n\t}", "function popup_elements() {\n\n\t\t\t$no_of_columns = OxoHelper::oxo_create_dropdown_data( 1, 6 );\n\t\t\t$choices = OxoHelper::get_shortcode_choices();\n\t\t\t$cats \t\t\t\t\t = $this->get_event_cats();\n\n\t\t\t$this->config['subElements'] = array(\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Categories', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Select a category or leave blank for all', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"cat_slug\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::MULTI,\n\t\t\t\t\t\"value\" => array( '' ),\n\t\t\t\t\t\"allowedValues\" => $cats\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Number of Events', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Select the number of events to display', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"number_posts\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::INPUT,\n\t\t\t\t\t\"value\" => \"4\"\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Maximum Columns', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Select the number of max columns to display.', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"columns\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::SELECT,\n\t\t\t\t\t\"value\" => \"4\",\n\t\t\t\t\t\"allowedValues\" => $no_of_columns\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Picture Size', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'cover = image will scale to cover the container<br />auto = width and height will adjust to the image.', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"picture_size\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::SELECT,\n\t\t\t\t\t\"value\" => \"cover\",\n\t\t\t\t\t\"allowedValues\" => array('cover' => __( 'Cover', 'oxo-core' ), 'auto' => __( 'Auto', 'oxo-core' ))\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'CSS Class', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Add a class to the wrapping HTML element.', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"class\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::INPUT,\n\t\t\t\t\t\"value\" => \"\"\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'CSS ID', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Add an ID to the wrapping HTML element.', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"id\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::INPUT,\n\t\t\t\t\t\"value\" => \"\"\n\t\t\t\t),\n\t\t\t);\n\t\t}", "function options($shortcodes) {\n\n\t\t$custom = array(\n\t\t\t'scrollit' \t\t\t\t\t\t=> array(\n\t\t\t\t'name' \t\t\t\t\t=> 'Scrollit', // name of the component\n\t\t\t\t'type' \t\t\t\t\t=> 'wrap', // single - wrap\n\t\t\t\t'atts' \t\t\t\t\t=> array(\n\t\t\t\t\t'img' => array(\n\t\t\t\t\t\t'type' => 'media_upload',\n\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t'desc' => __( 'Image', 'aesop-core' ),\n\t\t\t\t\t\t'tip' => __( 'Upload a background image for this component.', 'aesop-core' )\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'content' => ''\n\t\t\t)\n\t\t);\n\n\n\t\treturn array_merge( $shortcodes, $custom );\n\n\t}", "function cjpopups_shortcode_form($options){\n\tinclude(sprintf('%s/shortcode_form.php', cjpopups_item_path('includes_dir')));\n\treturn implode(\"\\n\", $display);\n}", "public static function shortcodeUI()\n\t{\n\t\t// Shortcake required\n\t\tif ( ! function_exists( 'shortcode_ui_register_for_shortcode' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// id only\n\t\t// avoids an unchecked Shortcake input checkbox requiring a shortcode output\n\t\tshortcode_ui_register_for_shortcode(\n\t\t\tself::SHORTCODE_TAG,\n\t\t\tarray(\n\t\t\t\t'label' => esc_html( static::featureName() ),\n\t\t\t\t'listItemImage' => 'dashicons-twitter',\n\t\t\t\t'attrs' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'attr' => 'id',\n\t\t\t\t\t\t'label' => 'ID',\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t\t\t'pattern' => '[0-9]+',\n\t\t\t\t\t\t\t'placeholder' => '560070183650213889',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "public function render_template_options_template() { ?>\n\n <script type=\"text/html\" id=\"tmpl-cv-builder-template-options\">\n\n <div class=\"cv-modal-content-padding\">\n\n <a class=\"cv-composer-large-option has-icon\" data-action=\"prepend\">\n <i class=\"icon-up-bold\"></i>\n <strong><?php _e( 'Add Before Existing Content', 'canvys' ); ?></strong>\n <span><?php _e( 'Insert the selected template before the existing page content.', 'canvys' ); ?></span>\n </a>\n <a class=\"cv-composer-large-option has-icon\" data-action=\"replace\">\n <i class=\"icon-stop\"></i>\n <strong><?php _e( 'Replace Existing Content', 'canvys' ); ?></strong>\n <span><?php _e( 'Replace the existing page content with the selected template.', 'canvys' ); ?></span>\n </a>\n <a class=\"cv-composer-large-option has-icon\" data-action=\"append\">\n <i class=\"icon-down-bold\"></i>\n <strong><?php _e( 'Add After Existing Content', 'canvys' ); ?></strong>\n <span><?php _e( 'Insert the selected template after the existing page content.', 'canvys' ); ?></span>\n </a>\n\n </div>\n\n </script>\n\n <?php }", "public function __construct() {\n\n $this->config = array(\n\n // Handle will be used to use this shortcode\n 'handle' => 'cv_button',\n\n // Whether or not this is a shortcode composer element\n 'composer_element' => true,\n\n // Whether or not this is a template builder element\n 'builder_element' => false,\n\n // Used by the template builder to determine where module can be dropped\n 'drop_target' => 2,\n\n // Used by the template builder to determine where module can have other\n // modules dropped inside of it\n 'drop_zone' => false,\n\n // Title will be used to identify this shortcode\n 'title' => __( 'Button', 'canvys' ),\n\n // Icon will be used to represent this shortcode in composer/builder\n // List of available icons can be found in icons.json\n 'icon' => 'link',\n\n // Whether or not shortcode is self closing\n 'self_closing' => true,\n\n // If shortcode is not self closing, specify its default content\n 'default_content' => null,\n\n // Specify whether or not content is directly editable\n 'content_editor' => false,\n\n // Specify whether or not the content is composed of another shortcode\n 'content_element' => false,\n\n // Array of shortcode settings and their respective attributes\n 'attributes' => array(\n\n new CV_Shortcode_Text_Control( 'text', array(\n 'title' => __( 'Text', 'canvys' ),\n 'description' => __( 'Specify the text for this button, if left blank the button will not be displayed.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Link_Control( 'url', array(\n 'title' => __( 'URL', 'canvys' ),\n 'description' => __( 'Specify the URL for this button.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'size', array(\n 'title' => __( 'Size', 'canvys' ),\n 'description' => __( 'Specify the size for this button.', 'canvys' ),\n 'default' => 'standard',\n 'options' => array(\n 'small' => __( 'Small', 'canvys' ),\n 'medium' => __( 'Medium', 'canvys' ),\n 'large' => __( 'Large', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'style', array(\n 'title' => __( 'Style', 'canvys' ),\n 'description' => __( 'Specify the style for this button.', 'canvys' ),\n 'default' => 'ghost',\n 'options' => array(\n 'ghost' => __( 'Ghost', 'canvys' ),\n 'filled' => __( 'Filled', 'canvys' ),\n 'glassy' => __( 'Glassy', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'color', array(\n 'title' => __( 'Color', 'canvys' ),\n 'description' => __( 'Specify the color for this button.', 'canvys' ),\n 'default' => 'content',\n 'options' => array(\n 'theme_colors' => array(\n 'label' => __( 'Theme Colors', 'canvys' ),\n 'options' => array(\n 'content' => __( 'Normal Content', 'canvys' ),\n 'headers' => __( 'Headers', 'canvys' ),\n 'accent' => __( 'Accent', 'canvys' ),\n 'focused' => __( 'Accent Focused', 'canvys' ),\n ),\n ),\n 'preset_colors' => array(\n 'label' => __( 'Preset Colors', 'canvys' ),\n 'options' => array(\n 'green' => __( 'Green', 'canvys' ),\n 'blue' => __( 'Blue', 'canvys' ),\n 'red' => __( 'Red', 'canvys' ),\n ),\n ),\n 'custom_color' => array(\n 'label' => __( 'Select Custom', 'canvys' ),\n 'options' => array(\n 'custom' => __( 'Custom Color', 'canvys' ),\n ),\n ),\n ),\n ) ),\n\n new CV_Shortcode_Color_Control( 'custom_color', array(\n 'title' => __( 'Custom Color', 'canvys' ),\n 'description' => __( 'Specify a custom color to use for this button.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'icon_position', array(\n 'title' => __( 'Icon Position', 'canvys' ),\n 'description' => __( 'Specify whether or not this button should have an icon, and where it should be placed.', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No Icon', 'canvys' ),\n 'after' => __( 'After the button', 'canvys' ),\n 'before' => __( 'Before the button', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Icon_Control( 'icon', array(\n 'title' => __( 'Icon', 'canvys' ),\n 'description' => __( 'Specify an icon to be displayed within this button.', 'canvys' ),\n ) ),\n\n ),\n\n );\n }", "static function get_options(){\n\t\t\t\tglobal $gdlr_core_item_pdb;\n\t\t\t\t\n\t\t\t\treturn array(\n\t\t\t\t\t'general' => array(\n\t\t\t\t\t\t'title' => esc_html__('General', 'goodlayers-core'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'image' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Image', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'upload',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'thumbnail-size' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Thumbnail Size', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t'options' => 'thumbnail-size',\n\t\t\t\t\t\t\t\t'default' => 'full'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'title' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Title', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t'default' => esc_html__('Promo Box Item Title', 'goodlayers-core'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'content' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Content', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'tinymce',\n\t\t\t\t\t\t\t\t'default' => esc_html__('Promo box item sample content', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize'\n\t\t\t\t\t\t\t),\t\n\t\t\t\t\t\t\t'text-align' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Text Align', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'radioimage',\n\t\t\t\t\t\t\t\t'options' => 'text-align',\n\t\t\t\t\t\t\t\t'default' => 'center'\n\t\t\t\t\t\t\t),\t\t\t\t\t\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'frame' => array(\n\t\t\t\t\t\t'title' => esc_html__('Frame Style', 'goodlayers-core'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'enable-frame' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Enable Frame', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t'default' => 'enable'\n\t\t\t\t\t\t\t), \n\t\t\t\t\t\t\t'enable-shadow' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Enable Shadow', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t'default' => 'enable',\n\t\t\t\t\t\t\t\t'condition' => array( 'enable-frame' => 'enable' )\n\t\t\t\t\t\t\t), \n\t\t\t\t\t\t\t'frame-padding' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Frame Padding', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t'item-type' => 'padding',\n\t\t\t\t\t\t\t\t'data-input-type' => 'pixel',\n\t\t\t\t\t\t\t\t'default' => array( 'top'=>'30px', 'right'=>'30px', 'bottom'=>'10px', 'left'=>'30px', 'settings'=>'unlink' ),\n\t\t\t\t\t\t\t\t'condition' => array( 'enable-frame' => 'enable' )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'frame-background-color' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Frame Background Color', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t\t'condition' => array( 'enable-frame' => 'enable' )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'frame-border-width' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Frame Border Width', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t'item-type' => 'padding',\n\t\t\t\t\t\t\t\t'data-input-type' => 'pixel',\n\t\t\t\t\t\t\t\t'default' => array( 'top'=>'0px', 'right'=>'1px', 'bottom'=>'1px', 'left'=>'1px', 'settings'=>'unlink' ),\n\t\t\t\t\t\t\t\t'condition' => array( 'enable-frame' => 'enable' )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'frame-border-color' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Frame Border Color', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t\t'condition' => array( 'enable-frame' => 'enable' )\n\t\t\t\t\t\t\t), \n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'typography' => array(\n\t\t\t\t\t\t'title' => esc_html__('Typography', 'goodlayers-core'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'title-size' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Title Size', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'fontslider',\n\t\t\t\t\t\t\t\t'default' => '14px'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'content-size' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Content Size', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'fontslider',\n\t\t\t\t\t\t\t\t'default' => '14px'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'color' => array(\n\t\t\t\t\t\t'title' => esc_html__('Color', 'goodlayers-core'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'title-color' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Title Color', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'colorpicker'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'content-color' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Content Color', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'colorpicker'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'spacing' => array(\n\t\t\t\t\t\t'title' => esc_html__('Spacing', 'goodlayers-core'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'padding-bottom' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Padding Bottom ( Item )', 'goodlayers-core'),\n\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t'data-input-type' => 'pixel',\n\t\t\t\t\t\t\t\t'default' => $gdlr_core_item_pdb\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}", "function options_page() {\n\t\t$settings = __( 'AdControl Settings', 'adcontrol' );\n\t\t$notice = sprintf(\n\t\t\t__( 'AdControl requires %sJetpack%s to be installed and connected at this time. %sHelp getting started.%s', 'adcontrol' ),\n\t\t\t'<a href=\"https://jetpack.com/\" target=\"_blank\">', '</a>',\n\t\t\t'<a href=\"https://jetpack.com/support/getting-started-with-jetpack/\" target=\"_blank\">', '</a>'\n\t\t);\n\n\t\techo <<<HTML\n\t\t<div class=\"wrap\">\n\t\t\t<div id=\"icon-options-general\" class=\"icon32\"><br></div>\n\t\t\t<h2>$settings</h2>\n\t\t\t<p>$notice</p>\n\t\t</div>\nHTML;\n\t}", "public function vc_map_shortcode() {\n\t\t\tvc_map( array(\n\t\t\t\t'name' => _x( 'Social Icons', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'base' => $this->shortcode_name(),\n\t\t\t\t'category' => _x( 'Content', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'icon' => get_template_directory_uri() . '/vendor/proteusthemes/visual-composer-elements/assets/images/pt.svg',\n\t\t\t\t'as_parent' => array( 'only' => 'pt_vc_social_icon' ),\n\t\t\t\t'content_element' => true,\n\t\t\t\t'js_view' => 'VcColumnView',\n\t\t\t\t'params' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t'heading' => _x( 'Open link in new tab', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'new_tab',\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t) );\n\t\t}", "public function vcMap() {\n\t\tif(function_exists('vc_map')) {\n\n\t\t\tvc_map( array(\n\t\t\t\t\t'name' => esc_html__('Album Player', 'qode-music'),\n\t\t\t\t\t'base' => $this->base,\n\t\t\t\t\t'category' => esc_html__('by QODE MUSIC','qode-music'),\n\t\t\t\t\t'icon' => 'icon-wpb-album-player extended-custom-icon-qode',\n\t\t\t\t\t'allowed_container_element' => 'vc_row',\n\t\t\t\t\t'params' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type'\t\t\t=> 'dropdown',\n\t\t\t\t\t\t\t'heading'\t\t=> esc_html__('Type','qode-music'),\n\t\t\t\t\t\t\t'param_name' \t=> 'type',\n\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\tesc_html__('Standard','qode-music')\t=> 'standard',\n\t\t\t\t\t\t\t\tesc_html__('Compact','qode-music')\t=> 'compact',\n\t\t\t\t\t\t\t\tesc_html__('Simple','qode-music')\t=> 'simple'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'admin_label' \t=> true\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type'\t\t\t=> 'dropdown',\n\t\t\t\t\t\t\t'heading'\t\t=> esc_html__('Album','qode-music'),\n\t\t\t\t\t\t\t'param_name' \t=> 'album',\n\t\t\t\t\t\t\t'value' \t\t=> $this->getAlbums(),\n\t\t\t\t\t\t\t'admin_label' \t=> true,\n\t\t\t\t\t\t\t'save_always' \t=> true\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t 'type' => 'dropdown',\n\t 'heading' => esc_html__('Content In Grid','qode-music'),\n\t 'param_name' => 'full_width_bg',\n\t 'value' => array(\n\t esc_html__('Yes','qode-music') => 'yes',\n\t esc_html__('No','qode-music') => 'no'\n\t ),\n\t 'admin_label' => true,\n\t \t\t\t'save_always' => true\n\t ),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t'heading' => esc_html__('Player Background Color','qode-music'),\n\t\t\t\t\t\t\t'param_name' => 'bg_color',\n 'dependency' => array('element' => 'skin','value'=> 'transparent'),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t'heading' => esc_html__('Play Button Background Color','qode-music'),\n\t\t\t\t\t\t\t'param_name' => 'play_bg_color',\n 'dependency' => array('element' => 'skin','value'=> 'transparent'),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t'heading' => esc_html__('Navigation Buttons Background Color','qode-music'),\n\t\t\t\t\t\t\t'param_name' => 'nav_bg_color',\n 'dependency' => array('element' => 'skin','value'=> 'transparent'),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type'\t\t\t=> 'dropdown',\n\t\t\t\t\t\t\t'heading'\t\t=> esc_html__('Skin','qode-music'),\n\t\t\t\t\t\t\t'param_name' \t=> 'skin',\n\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\tesc_html__('Light','qode-music')\t=> 'light',\n\t\t\t\t\t\t\t\tesc_html__('Dark','qode-music') => 'dark',\n\t\t\t\t\t\t\t\tesc_html__('Transparent','qode-music') => 'transparent'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'admin_label' \t=> true,\n\t\t\t\t\t\t\t'save_always' \t=> true\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "public function vc_map_shortcode() {\n\t\t\tvc_map( array(\n\t\t\t\t'name' => _x( 'Facebook Box', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'base' => $this->shortcode_name(),\n\t\t\t\t'category' => _x( 'Social', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'icon' => get_template_directory_uri() . '/vendor/proteusthemes/visual-composer-elements/assets/images/pt.svg',\n\t\t\t\t'params' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'Title', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'title',\n\t\t\t\t\t\t'value' => 'Facebook',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'FB Page to like', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'description' => _x( 'Input the whole FB page url. Example: https://www.facebook.com/ProteusThemes', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'fb_page_url',\n\t\t\t\t\t\t'value' => 'https://www.facebook.com/ProteusThemes',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'Width', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'description' => _x( 'Input width in pixels. Min: 180, Max: 500', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'width',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'Height', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'description' => _x( 'Input height in pixels. Min: 70', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'height',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t'heading' => _x( 'Options', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'checkbox_options',\n\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t'Hide Cover Photo' => 'hide_cover',\n\t\t\t\t\t\t\t'Hide Friend\\'s Faces' => 'show_facepile',\n\t\t\t\t\t\t\t'Show Page Posts' => 'show_posts',\n\t\t\t\t\t\t\t'Use Small Header' => 'small_header',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t) );\n\t\t}", "public function googleMapsShortcode($atts)\n {\n $atts = shortcode_atts(array(\n 'lat' => null,\n 'lng' => null,\n 'adres' => null,\n 'postcode' => null,\n 'canvas' => 'mapsHeader_canvas',\n 'label' => 'onze locatie',\n 'zoom' => '15',\n 'scrollwheel' => 'false',\n 'disableDefaultUI' => 'true',\n ), $atts);\n\n $script = '<script type=\"text/javascript\">';\n\n // enque the script\n wp_enqueue_script('maps-key', '//maps.googleapis.com/maps/api/js?key=' . MAPS_API_KEY . '&amp;sensor=false', array(), '1.0.0', true);\n\n if ($atts['lat'] != null && $atts['lng'] != null) {\n // use the given lat and long to render the map\n $script .= \"jQuery(document).ready(function($) {\n var gMaps = new GoogleMaps();\n\n gMaps.renderMap('\" . $atts['canvas'] . \"', '\" .\n $atts['lat'] . \"', '\" .\n $atts['lng'] . \"', '\" .\n $atts['label'] . \"', '\" .\n $atts['disableDefaultUI'] . \"', '\" .\n $atts['scrollwheel'] . \"', '\" .\n $atts['zoom'] . \"' );\n });\";\n } else if ($atts['adres'] != null && $atts['postcode'] != null) {\n $script .= \"jQuery(document).ready(function($) {\n var gMaps = new GoogleMaps();\n gMaps.geocode('\" . str_replace(' ', '+', get_option('adres')) . \"', '\" . str_replace(' ', '', get_option('adres')) . \"', '\" . $atts['canvas'] . \"' , '\" . $atts['label'] . \"' , true);\n });\";\n } else {\n // check if lat/lon ar filled in\n if (!get_option('latitude') || !get_option('longitude')) {\n $url = 'https://maps.googleapis.com/maps/api/geocode/json?address=' . str_replace(' ', '+', get_option('adres')) . '+' . str_replace(' ', '+', get_option('postcode')) . '&key=' . MAPS_API_KEY;\n $geocode = file_get_contents($url);\n\n $output = json_decode($geocode);\n\n $lat = $output->results[0]->geometry->location->lat;\n $lng = $output->results[0]->geometry->location->lng;\n update_option('latitude', $lat);\n update_option('longitude', $lng);\n\n //use the lat/lon form the information page\n $script .= \"jQuery(document).ready(function($) {\n var gMaps = new GoogleMaps();\n gMaps.geocode('\" . str_replace(' ', '+', get_option('adres')) . \"', '\" . str_replace(' ', '', get_option('postcode')) . \"', '\" . $atts['canvas'] . \"' , '\" . $atts['label'] . \"' , true);\n });\";\n } else {\n // use the given lat and long to render the map\n $script .= \"jQuery(document).ready(function($) {\n var gMaps = new GoogleMaps();\n gMaps.renderMap('\" .\n $atts['canvas'] . \"', '\" .\n get_option('latitude') . \"', '\" .\n get_option('longitude') . \"', '\" .\n $atts['label'] . \"', '\" .\n $atts['disableDefaultUI'] . \"', '\" .\n $atts['scrollwheel'] . \"', '\" .\n $atts['zoom'] . \"' );\n });\";\n }\n }\n\n $script .= \"</script>\";\n return '<div id=\"mapsHeader_canvas\">Vul de correcte adres gegevens in...</div>' . $script;\n }", "function add_shortcode( $atts, $content = null, $name = null ) {\n\n\t\tif ( ! $this->validate_shortcode( $atts, $content, $name ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$options = $this->set_options( $atts );\n\n\t\tob_start();\n\t\t\n\t\t?><div id=\"<?php echo esc_attr($options['selector']); ?>\" class=\"<?php echo esc_attr($options['classes']); ?>\" <?php do_action(\"oxygen_vsb_component_attr\", $options, $this->options['tag']); ?>><iframe scrolling=\"no\" frameborder=\"no\" src=\"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/<?php echo $options[\"soundcloud_track_id\"]; ?>&amp;color=<?php echo urlencode($options[\"soundcloud_color\"]); ?>&amp;auto_play=<?php echo urlencode($options[\"soundcloud_auto_play\"]); ?>&amp;hide_related=<?php echo urlencode($options[\"soundcloud_hide_related\"]); ?>&amp;show_comments=<?php echo urlencode($options[\"soundcloud_show_comments\"]); ?>&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true\"></iframe></div><?php\n\n\t\treturn ob_get_clean();\n\t}", "public function __construct() {\n\n $this->config = array(\n\n // Handle will be used to use this shortcode\n 'handle' => 'cv_icon_box_child',\n\n // Whether or not this is a shortcode composer element\n 'composer_element' => false,\n\n // Whether or not this is a template builder element\n 'builder_element' => true,\n\n // Used by the template builder to determine where module can be dropped\n 'drop_target' => 3,\n\n // Used by the template builder to determine where module can have other\n // modules dropped inside of it\n 'drop_zone' => false,\n\n // Title will be used to identify this shortcode\n 'title' => __( 'Icon Box', 'canvys' ),\n\n // Icon will be used to represent this shortcode in composer/builder\n // List of available icons can be found in icons.json\n 'icon' => 'info-circled',\n\n // Whether or not shortcode is self closing\n 'self_closing' => false,\n\n // If shortcode is not self closing, specify its default content\n 'default_content' => null,\n\n // Specify whether or not content is directly editable\n 'content_editor' => true,\n\n // Specify whether or not the content is composed of another shortcode\n 'content_element' => false,\n\n // Array of shortcode settings and their respective attributes\n 'attributes' => array(\n\n new CV_Shortcode_Text_Control( 'title', array(\n 'title' => __( 'Title', 'canvys' ),\n 'description' => __( 'Icon Box Title, will default to \"Check this out\" if left blank.', 'canvys' ),\n 'placeholder' => __( 'Check this out', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Link_Control( 'url', array(\n 'title' => __( 'Icon Box Link', 'canvys' ),\n 'description' => __( 'Wrap this icon box in a link. <strong>Do not use this setting if you plan on placing a link within the content of this icon box.</strong>', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Color_Control( 'icon_color', array(\n 'title' => __( 'Icon Color', 'canvys' ),\n 'description' => __( 'Specify a custom color to use for the icon, if none is specified the default color will be used.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Icon_Control( 'icon', array(\n 'title' => __( 'Icon', 'canvys' ),\n 'description' => __( 'Select the icon for this icon box.', 'canvys' ),\n ) ),\n\n ),\n\n );\n }", "public function run(){\n\t\tparent::run();\n\n\t\tadd_shortcode(\"wb_legal_name\", function(){\n\t\t\tob_start();\n\t\t\t$company = empty(\\Waboot\\functions\\get_option($this->name.'_company_name')) ? \"Company Name\" : \\Waboot\\functions\\get_option($this->name.'_company_name');\n\t\t\techo $company;\n\t\t\t$return_string = trim( preg_replace( \"|[\\r\\n\\t]|\", \"\", ob_get_clean() ) );\n\t\t\treturn $return_string;\n\t\t});\n\t\tadd_shortcode(\"wb_legal_address\", function(){\n\t\t\tob_start();\n\t\t\t$address = empty(\\Waboot\\functions\\get_option($this->name.'_address')) ? \"Company Address\" : \\Waboot\\functions\\get_option($this->name.'_address');\n\t\t\techo $address;\n\t\t\t$return_string = trim( preg_replace( \"|[\\r\\n\\t]|\", \"\", ob_get_clean() ) );\n\t\t\treturn $return_string;\n\t\t});\n\t\tadd_shortcode(\"wb_legal_mail\", function(){\n\t\t\tob_start();\n\t\t\t$mail = empty(\\Waboot\\functions\\get_option($this->name.'_mail')) ? \"Company Mail\" : \\Waboot\\functions\\get_option($this->name.'_mail');\n\t\t\techo $mail;\n\t\t\t$return_string = trim( preg_replace( \"|[\\r\\n\\t]|\", \"\", ob_get_clean() ) );\n\t\t\treturn $return_string;\n\t\t});\n\t\tadd_shortcode(\"wb_legal_tel\", function(){\n\t\t\tob_start();\n\t\t\t$tel = empty(\\Waboot\\functions\\get_option($this->name.'_tel')) ? \"Company Tel\" : \\Waboot\\functions\\get_option($this->name.'_tel');\n\t\t\techo $tel;\n\t\t\t$return_string = trim( preg_replace( \"|[\\r\\n\\t]|\", \"\", ob_get_clean() ) );\n\t\t\treturn $return_string;\n\t\t});\n\t\tadd_shortcode(\"wb_legal_siteurl\", function(){\n\t\t\tob_start();\n\t\t\t$siteurl = empty(\\Waboot\\functions\\get_option($this->name.'_siteurl')) ? preg_replace('/http:\\/\\//', '', get_home_url()) : \\Waboot\\functions\\get_option($this->name.'_siteurl');\n\t\t\techo $siteurl;\n\t\t\t$return_string = trim( preg_replace( \"|[\\r\\n\\t]|\", \"\", ob_get_clean() ) );\n\t\t\treturn $return_string;\n\t\t});\n\t\tadd_shortcode(\"wb_legal_rep\", function(){\n\t\t\tob_start();\n\t\t\t$siteurl = empty(\\Waboot\\functions\\get_option($this->name.'_rep')) ? \"Company Legal Representative\" : \\Waboot\\functions\\get_option($this->name.'_rep');\n\t\t\techo $siteurl;\n\t\t\t$return_string = trim( preg_replace( \"|[\\r\\n\\t]|\", \"\", ob_get_clean() ) );\n\t\t\treturn $return_string;\n\t\t});\n\t}", "function add_shortcode() {\n\t\tadd_shortcode( 'contact-form', array( 'Grunion_Contact_Form', 'parse' ) );\n\t\tadd_shortcode( 'contact-field', array( 'Grunion_Contact_Form', 'parse_contact_field' ) );\n\t}", "public function create_shortcodes() {\n \n }", "function short_code_func(){\n\t\t$opt_val = get_option( 'wpCertifications_configData' );\n\n\t\t$savedData = json_decode($opt_val);\n\n\t\t$view_bag['list_id'] = $savedData->list_id;\n\t\t$view_bag['api_key'] = $savedData->api_key;\n\n\t\t$sc = new wpCertifications();\n\t\t$content = $sc->get_render( 'form.php', $view_bag );\n return $content;\n\t}", "function zp_shortcode_label(){\r\n\r\n$zp_shortcode_label = array(\r\n\t// Acccordion \r\n\t'accordion' => array(\r\n\t\t'menu' => __('Accordion','drone' ),\r\n\t\t'header_title' => __( 'Insert Accordion Shortcode','drone'),\r\n\t\t'content' => array()\r\n\t),\r\n\t// Team\r\n\t'team' => array(\r\n\t\t'menu' => __('Team','drone' ),\r\n\t\t'header_title' => __( 'Insert Team Shortcode','drone'),\r\n\t\t'content' => array(\t)\r\n\t),\r\n\t// Blog \r\n\t'blog' => array(\r\n\t\t'menu' => __('Blog','drone' ),\r\n\t\t'header_title' => __( 'Insert Blog Shortcode','drone'),\r\n\t\t'content' => array()\r\n\t),\r\n\t\r\n\t// Buttons \r\n\t'buttons' => array(\r\n\t\t'menu' => __('Button','drone' ),\r\n\t\t'header_title' => __( 'Insert Button Shortcode','drone'),\r\n\t\t'content' => array(\r\n\t\t\t'type' => array(\r\n\t\t\t\t'label' => __( 'Type','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Select type for buttons.','drone' ),\r\n\t\t\t\t'values' => array( 'btn-default', 'btn-primary', 'btn-success', 'btn-info','btn-warning','btn-danger','btn-inverse' )\r\n\t\t\t),\r\n\t\t\t'size' => array(\r\n\t\t\t\t'label' => __( 'Size','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Select button size.','drone' ),\r\n\t\t\t\t'values' => array( 'Large', 'Medium', 'Small','Extra Small' )\r\n\t\t\t),\r\n\t\t\t'outline' => array(\r\n\t\t\t\t'label' => __( 'Outline Style','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Select true if you want to have an outline button.','drone' ),\r\n\t\t\t\t'values' => array( 'True', 'False')\r\n\t\t\t),\r\n\t\t\t'button_link' => array(\r\n\t\t\t\t'label' => __( 'Button Link','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add button link.','drone' )\r\n\t\t\t),\r\n\t\t\t'button_label' => array(\r\n\t\t\t\t'label' => __( 'Button Name','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add button name.','drone' )\r\n\t\t\t),\r\n\t\t\t'button_target' => array(\r\n\t\t\t\t'label' => __( 'Link Target','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Select button link target.','drone' ),\r\n\t\t\t\t'values' => array( '_blank', '_self', '_top', '_parent' )\r\n\t\t\t)\r\n\t\t)\r\n\t),\r\n\t// Portfolio \r\n\t'portfolio' => array(\r\n\t\t'menu' => __('Portfolio','drone' ),\r\n\t\t'header_title' => __( 'Insert Portfolio Shortcode','drone'),\r\n\t\t'content' => array(\r\n\t\t\t'preselect_cat' => array(\r\n\t\t\t\t'label' => __( 'Pre-select Category','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Category that will be loaded first in portfolio section. Leave empty to display all items.','drone' ),\r\n\t\t\t),\r\n\t\t\t'lightbox' => array(\r\n\t\t\t\t'label' => __( 'Enable Lightbox','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Select true to enable portfolio lightbox, false to enable portfolio link.','drone' ),\r\n\t\t\t\t'values' => array( 'True', 'False')\r\n\t\t\t)\r\n\t\t)\r\n\t),\r\n\t// Testimonial \r\n\t'testimonial' => array(\r\n\t\t'menu' => __('Testimonial','drone' ),\r\n\t\t'header_title' => __( 'Insert Testimonial Shortcode','drone'),\r\n\t\t'content' => array()\r\n\t),\r\n\t// Services \r\n\t'services' => array(\r\n\t\t'menu' => __('Service','drone' ),\r\n\t\t'header_title' => __( 'Insert Service Shortcode','drone'),\r\n\t\t'content' => array()\r\n\t),\r\n\t// Progress Bar \r\n\t'progress' => array(\r\n\t\t'menu' => __('Progress Bar','drone' ),\r\n\t\t'header_title' => __( 'Insert Progress Bar Shortcode','drone'),\r\n\t\t'content' => array()\r\n\t),\r\n\t// Columns \r\n\t'columns' => array(\r\n\t\t'menu' => __('Columns','drone' ),\r\n\t\t'header_title' => __( 'Insert column Shortcode','drone'),\r\n\t\t'content' => array(\t),\r\n\t\t'submenu' => array(\r\n\t\t\t'one_half' => __('One Half','drone' ),\r\n\t\t\t'one_third' => __('One Third','drone' ),\r\n\t\t\t'one_fourth' => __('One Fourth','drone' ),\r\n\t\t\t'column_grid_1' => __('Column Grid 1','drone' ),\r\n\t\t\t'column_grid_2' => __('Column Grid 2','drone' ),\r\n\t\t\t'column_grid_3' => __('Column Grid 3','drone' ),\r\n\t\t\t'column_grid_4' => __('Column Grid 4','drone' ),\r\n\t\t\t'column_grid_5' => __('Column Grid 5','drone' ),\r\n\t\t\t'column_grid_6' => __('Column Grid 6','drone' ),\r\n\t\t\t'column_grid_7' => __('Column Grid 7','drone' ),\r\n\t\t\t'column_grid_8' => __('Column Grid 8','drone' ),\r\n\t\t\t'column_grid_9' => __('Column Grid 9','drone' ),\r\n\t\t\t'column_grid_10' => __('Column Grid 10','drone' ),\r\n\t\t\t'column_grid_11' => __('Column Grid 11','drone' ),\r\n\t\t\t'column_grid_12' => __('Column Grid 12','drone' ),\r\n\t\t)\r\n\r\n\t),\r\n\t// Tabs \r\n\t'tab' => array(\r\n\t\t'menu' => __('Tab','drone' ),\r\n\t\t'header_title' => __( 'Insert Tab Shortcode','drone'),\r\n\t\t'content' => array(\r\n\t\t\t'id1' => array(\r\n\t\t\t\t'label' => __( 'First Tab ID','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add first tab ID. This must be unique and one word only.','drone' )\r\n\t\t\t),\r\n\t\t\t'title1' => array(\r\n\t\t\t\t'label' => __( 'First Tab Title','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add first tab title.','drone' )\r\n\t\t\t),\r\n\t\t\t'content1' => array(\r\n\t\t\t\t'label' => __( 'First Tab Content','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add first tab content.','drone' )\r\n\t\t\t),\r\n\t\t\t'id2' => array(\r\n\t\t\t\t'label' => __( 'Second Tab ID','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add second tab ID. This must be unique and one word only.','drone' )\r\n\t\t\t),\r\n\t\t\t'title2' => array(\r\n\t\t\t\t'label' => __( 'Second Tab Title','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add second tab title.','drone' )\r\n\t\t\t),\r\n\t\t\t'content2' => array(\r\n\t\t\t\t'label' => __( 'Second Tab Content','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add second tab content.','drone' )\r\n\t\t\t),\r\n\t\t\t'id3' => array(\r\n\t\t\t\t'label' => __( 'Third Tab ID','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add third tab ID. This must be unique and one word only.','drone' )\r\n\t\t\t),\r\n\t\t\t'title3' => array(\r\n\t\t\t\t'label' => __( 'Third Tab Title','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add third tab title.','drone' )\r\n\t\t\t),\r\n\t\t\t'content3' => array(\r\n\t\t\t\t'label' => __( 'Third Tab Content','drone' ),\r\n\t\t\t\t'tooltip' => __( 'Add third tab content.','drone' )\r\n\t\t\t),\r\n\t\t\t\r\n\t\t)\r\n\t),\r\n\t// Client Carousel\r\n\t'client_carousel' => array(\r\n\t\t'menu' => __('Client Carousel','drone' ),\r\n\t\t'header_title' => __( 'Insert Client Carousel Shortcode','drone'),\r\n\t\t'content' => array(\r\n\t\t\t'name' => array(\r\n\t\t\t\t'label' => __( 'Add Carousel Name','drone' ),\r\n\t\t\t\t'tooltip' => __( 'This serves as carousel ID. It must be unique and avoid using spaces. Ex. \"client_carousel\".','drone' )\r\n\t\t\t)\t\t\t\r\n\t\t)\r\n\t),\r\n\t// Slider\r\n\t'slider' => array(\r\n\t\t'menu' => __('Slider','drone' ),\r\n\t\t'header_title' => __( 'Insert Slider Shortcode','drone'),\r\n\t\t'content' => array(\t)\r\n\t)\r\n);\r\n\r\nreturn $zp_shortcode_label;\r\n}", "function pt_shortcode( $atts )\n\t\t{\n\t\t\treturn $this->pt_show_blc_front();\n\t\t}", "function register_vc_add_on(){\r\n\r\n vc_map( array(\r\n \"name\" => $this->name,\r\n \"base\" => $this->id,\r\n \"icon\" => $this->icon,\r\n \"description\" => $this->description,\r\n \"weight\" => 1,\r\n\r\n \"wrapper_height\"=> 'full',\r\n\r\n \"category\" => __( 'BetterMag Addons', 'better-studio' ),\r\n \"params\" => array(\r\n\r\n array(\r\n \"type\" => 'textfield',\r\n \"admin_label\" => true,\r\n \"heading\" => __( 'Title', 'better-studio' ),\r\n \"param_name\" => 'title',\r\n \"value\" => $this->defaults['title'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"heading\" => __( 'Show Title?', 'better-studio'),\r\n \"param_name\" => 'show_title',\r\n \"value\" => $this->defaults['show_title'],\r\n ),\r\n array(\r\n 'heading' => __( 'Instructions', 'better-studio' ),\r\n 'param_name' => 'help',\r\n 'type' => 'bf_info',\r\n 'value' => __('<ol>\r\n <li>Copy the link to you facebook page</li>\r\n <li>Paste it in the \"Link to you Facebook page\" input box below</li>\r\n </ol>\r\n ', 'better-studio' ),\r\n 'state' => 'open',\r\n 'info-type' => 'help',\r\n 'section_class' => 'widefat',\r\n ),\r\n array(\r\n \"type\" => 'textfield',\r\n \"admin_label\" => true,\r\n \"heading\" => __( 'Link to you Facebook page', 'better-studio' ),\r\n \"param_name\" => 'url',\r\n \"value\" => $this->defaults['url'],\r\n ),\r\n array(\r\n \"type\" => 'bf_select',\r\n \"heading\" => __( 'Style', 'better-studio' ),\r\n \"param_name\" => 'style',\r\n 'section_class' => 'style-floated-left',\r\n \"admin_label\" => true,\r\n \"options\" => array(\r\n 'light' => __( 'Light Schema', 'better-studio' ),\r\n 'dark' => __( 'Style Schema', 'better-studio' ),\r\n ),\r\n \"value\" => $this->defaults['style'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show Posts?', 'better-studio' ),\r\n \"param_name\" => 'show_posts',\r\n \"value\" => $this->defaults['show_posts'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show faces?', 'better-studio' ),\r\n \"param_name\" => 'show_faces',\r\n \"value\" => $this->defaults['show_faces'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show Header?', 'better-studio' ),\r\n \"param_name\" => 'show_header',\r\n \"value\" => $this->defaults['show_header'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show Border?', 'better-studio' ),\r\n \"param_name\" => 'show_border',\r\n \"value\" => $this->defaults['show_border'],\r\n ),\r\n\r\n\r\n )\r\n ) );\r\n\r\n }", "public function __construct() {\n\n $this->config = array(\n\n // Handle will be used to use this shortcode\n 'handle' => 'cv_blog',\n\n // Whether or not this is a shortcode composer element\n 'composer_element' => true,\n\n // Whether or not this is a template builder element\n 'builder_element' => true,\n\n // Used by the template builder to determine where module can be dropped\n 'drop_target' => 1,\n\n // Used by the template builder to determine where module can have other\n // modules dropped inside of it\n 'drop_zone' => false,\n\n // Title will be used to identify this shortcode\n 'title' => __( 'Blog', 'canvys' ),\n\n // Icon will be used to represent this shortcode in composer/builder\n // List of available icons can be found in icons.json\n 'icon' => 'th-list',\n\n // Whether or not shortcode is self closing\n 'self_closing' => true,\n\n // If shortcode is not self closing, specify its default content\n 'default_content' => null,\n\n // Specify whether or not content is directly editable\n 'content_editor' => false,\n\n // Specify whether or not the content is composed of another shortcode\n 'content_element' => false,\n\n // Provide an explanation of what this shortcode does\n 'explanation' => __( 'Display your posts in a complete blog, please note that it is best practice to have onl yone of these elements per page.', 'canvys' ),\n\n // Array of shortcode settings and their respective attributes\n 'attributes' => array(\n\n new CV_Shortcode_Select_Control( 'style', array(\n 'title' => __( 'Blog Style', 'canvys' ),\n 'description' => __( 'Select the style for this blog', 'canvys' ),\n 'default' => 'standard',\n 'options' => array(\n 'standard' => __( 'Standard', 'canvys' ),\n 'boxed' => __( 'Boxed', 'canvys' ),\n 'minimal' => __( 'Minimal', 'canvys' ),\n 'masonry' => __( 'Masonry', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'masonry_columns', array(\n 'title' => __( 'Number of Columns', 'canvys' ),\n 'description' => __( 'Specify how many columns should be used to display your posts.', 'canvys' ),\n 'default' => '3',\n 'options' => array(\n '2' => __( '2 Columns', 'canvys' ),\n '3' => __( '3 Columns', 'canvys' ),\n '4' => __( '4 Columns', 'canvys' ),\n '5' => __( '5 Columns', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Text_Control( 'per_page', array(\n 'title' => __( 'Posts Per Page', 'canvys' ),\n 'description' => __( 'Enter the number of posts to be displayed per page, enter a number only. Default is to display all posts on one page.', 'canvys' ),\n 'placeholder' => 'All Posts',\n ) ),\n\n new CV_Shortcode_Select_Control( 'pagination', array(\n 'title' => __( 'Page Pagination', 'canvys' ),\n 'description' => __( 'Enable pagination when applicable.', 'canvys' ),\n 'default' => 'true',\n 'options' => array(\n 'true' => __( 'yes, enable pagination', 'canvys' ),\n 'false' => __( 'No, disable pagination', 'canvys' ),\n ),\n ) ),\n\n ),\n\n );\n }", "function oneclick_shortcode_easy_content_google_map($atts)\r\r\n{\r\r\n $options_geolocation = get_option('oneclick_geolocation');\r\r\n $atts = shortcode_atts(array(\r\r\n 'lat' => '41.085652',\r\r\n 'long' => '-73.85846839999999',\r\r\n 'zoom' => '13',\r\r\n 'width' => '450',\r\r\n 'height' => '250',\r\r\n 'style' => '',\r\r\n 'icon' => '',\r\r\n 'basicmaptype' => 'ROADMAP',\r\r\n 'zoomcontrol' => 'true',\r\r\n 'zoomcontrolsize' => 'SMALL',\r\r\n 'zoomcontrolposition' => 'RIGHT_TOP',\r\r\n 'maptype' => 'true',\r\r\n 'maptypestyle' => 'HORIZONTAL_BAR',\r\r\n 'maptypeposition' => 'TOP_RIGHT',\r\r\n 'pancontrol' => 'false',\r\r\n 'pancontrolposition' => 'LEFT_TOP',\r\r\n 'streetview' => 'true',\r\r\n 'streetviewposition' => 'TOP_LEFT',\r\r\n 'hue' => '',\r\r\n 'saturation' => '0',\r\r\n 'containerstyle' => '',\r\r\n 'style' => ''\r\r\n ) , $atts, 'wp-samurai-easy-multi-gmap');\r\r\n $gmap_iconizer_latitude = $atts['lat'];\r\r\n $gmap_iconizer_longitude = $atts['long'];\r\r\n $gmap_iconizer_zoom_level = $atts['zoom'];\r\r\n $gmap_iconizer_mapwidth = $atts['width'];\r\r\n $gmap_iconizer_mapheight = $atts['height'];\r\r\n $gmap_iconizer_upload_icon = $atts['icon'];\r\r\n $gmap_iconizer_zoomcontrol = $atts['zoomcontrol'];\r\r\n $gmap_iconizer_zoomcontrolSize = $atts['zoomcontrolsize'];\r\r\n $gmap_iconizer_zoomcontrolPosition = $atts['zoomcontrolposition'];\r\r\n $gmap_iconizer_maptype = $atts['maptype'];\r\r\n $gmap_iconizer_maptypecontrol_style = $atts['maptypestyle'];\r\r\n $gmap_iconizer_maptype_position = $atts['maptypeposition'];\r\r\n $gmap_iconizer_pancontrol = $atts['pancontrol'];\r\r\n $gmap_iconizer_pan_position = $atts['pancontrolposition'];\r\r\n $gmap_iconizer_streetviewcontrol = $atts['streetview'];\r\r\n $gmap_iconizer_streetviewcontrol_position = $atts['streetviewposition'];\r\r\n $gmap_iconizer_basic_map_type = $atts['basicmaptype'];\r\r\n $gmap_iconizer_hue = $atts['hue'];\r\r\n $gmap_iconizer_mapstyle = $atts['style'];\r\r\n $gmap_iconizer_containerstyle = $atts['containerstyle'];\r\r\n $gmap_iconizer_saturation = $atts['saturation'];\r\r\n $map_id = generateRandomString();\r\r\n $options_iconizer = get_option('oneclick');\r\r\n $gmap_iconizer_apikey = $options_iconizer['gmap_iconizer_apikey'];\r\r\n $options_frontend_admin = get_option('oneclick_geolocation');\r\r\n $gmap_iconizer_mapstyle = $atts['style'];\r\r\n $gmap_iconizer_mapcontainerstyle = $options_frontend_admin['gmap_iconizer_mapcontainerstyle'];\r\r\n ob_start();\r\r\n ?>\r\r\n <?php\r\r\n require ('includes/oneclick_google_multimap_frontend.php');\r\r\n ?>\r\r\n <?php\r\r\n return ob_get_clean();\r\r\n}", "public function add_options() {\n\n\t\t\treturn [\n\t\t\t\t'container_shortcode_section' => [\n\t\t\t\t\t'label' => esc_html__( 'Container', 'fusion-builder' ),\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'id' => 'container_shortcode_section',\n\t\t\t\t\t'type' => 'accordion',\n\t\t\t\t\t'icon' => 'fusiona-container',\n\t\t\t\t\t'fields' => [\n\t\t\t\t\t\t'container_padding_default' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Padding for Default Template', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the top/right/bottom/left padding of the container element when using the Default page template. ', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'container_padding_default',\n\t\t\t\t\t\t\t'choices' => [\n\t\t\t\t\t\t\t\t'top' => true,\n\t\t\t\t\t\t\t\t'bottom' => true,\n\t\t\t\t\t\t\t\t'left' => true,\n\t\t\t\t\t\t\t\t'right' => true,\n\t\t\t\t\t\t\t\t'units' => [ 'px', '%' ],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'default' => [\n\t\t\t\t\t\t\t\t'top' => '0px',\n\t\t\t\t\t\t\t\t'bottom' => '0px',\n\t\t\t\t\t\t\t\t'left' => '0px',\n\t\t\t\t\t\t\t\t'right' => '0px',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'spacing',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'container_padding_100' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Padding for 100% Width Template', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the top/right/bottom/left padding of the container element when using the 100% width page template.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'container_padding_100',\n\t\t\t\t\t\t\t'choices' => [\n\t\t\t\t\t\t\t\t'top' => true,\n\t\t\t\t\t\t\t\t'bottom' => true,\n\t\t\t\t\t\t\t\t'left' => true,\n\t\t\t\t\t\t\t\t'right' => true,\n\t\t\t\t\t\t\t\t'units' => [ 'px', '%' ],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'default' => [\n\t\t\t\t\t\t\t\t'top' => '0px',\n\t\t\t\t\t\t\t\t'bottom' => '0px',\n\t\t\t\t\t\t\t\t'left' => '30px',\n\t\t\t\t\t\t\t\t'right' => '30px',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'type' => 'spacing',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'full_width_bg_color' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Background Color', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the background color of the container element.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'full_width_bg_color',\n\t\t\t\t\t\t\t'default' => 'rgba(255,255,255,0)',\n\t\t\t\t\t\t\t'type' => 'color-alpha',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'full_width_gradient_start_color' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Gradient Start Color', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the start color for gradient of the container element.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'full_width_gradient_start_color',\n\t\t\t\t\t\t\t'default' => 'rgba(255,255,255,0)',\n\t\t\t\t\t\t\t'type' => 'color-alpha',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'full_width_gradient_end_color' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Gradient End Color', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the end color for gradient of the container element.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'full_width_gradient_end_color',\n\t\t\t\t\t\t\t'default' => 'rgba(255,255,255,0)',\n\t\t\t\t\t\t\t'type' => 'color-alpha',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'full_width_border_size' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Border Size', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the top and bottom border size of the container element.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'full_width_border_size',\n\t\t\t\t\t\t\t'default' => '0',\n\t\t\t\t\t\t\t'type' => 'slider',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t\t'choices' => [\n\t\t\t\t\t\t\t\t'min' => '0',\n\t\t\t\t\t\t\t\t'max' => '50',\n\t\t\t\t\t\t\t\t'step' => '1',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'full_width_border_color' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container Border Color', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the border color of the container element.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'full_width_border_color',\n\t\t\t\t\t\t\t'default' => '#e2e2e2',\n\t\t\t\t\t\t\t'type' => 'color-alpha',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'container_scroll_nav_bg_color' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container 100% Height Navigation Background Color', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the background colors of the navigation area and name box when using 100% height containers.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'container_scroll_nav_bg_color',\n\t\t\t\t\t\t\t'default' => 'rgba(0,0,0,0.2)',\n\t\t\t\t\t\t\t'type' => 'color-alpha',\n\t\t\t\t\t\t\t'css_vars' => [\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t'name' => '--container_scroll_nav_bg_color',\n\t\t\t\t\t\t\t\t\t'element' => '.fusion-scroll-section-nav',\n\t\t\t\t\t\t\t\t\t'callback' => [ 'sanitize_color' ],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'container_scroll_nav_bullet_color' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container 100% Height Navigation Element Color', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the color of the navigation circles and text name when using 100% height containers.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'container_scroll_nav_bullet_color',\n\t\t\t\t\t\t\t'default' => '#e2e2e2',\n\t\t\t\t\t\t\t'type' => 'color-alpha',\n\t\t\t\t\t\t\t'css_vars' => [\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t'name' => '--container_scroll_nav_bullet_color',\n\t\t\t\t\t\t\t\t\t'element' => '.fusion-scroll-section-link-bullet',\n\t\t\t\t\t\t\t\t\t'callback' => [ 'sanitize_color' ],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'container_hundred_percent_scroll_sensitivity' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container 100% Height Scroll Sensitivity', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Controls the sensitivity of the scrolling transition on 100% height scrolling secitions. In milliseconds.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'container_hundred_percent_scroll_sensitivity',\n\t\t\t\t\t\t\t'default' => '450',\n\t\t\t\t\t\t\t'type' => 'slider',\n\t\t\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t\t\t\t'choices' => [\n\t\t\t\t\t\t\t\t'min' => '200',\n\t\t\t\t\t\t\t\t'max' => '1500',\n\t\t\t\t\t\t\t\t'step' => '10',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'container_hundred_percent_height_mobile' => [\n\t\t\t\t\t\t\t'label' => esc_html__( 'Container 100% Height On Mobile', 'fusion-builder' ),\n\t\t\t\t\t\t\t'description' => esc_html__( 'Turn on to enable the 100% height containers on mobile. Please note, this feature only works when your containers have minimal content. If the container has a lot of content it will overflow the screen height. In many cases, 100% height containers work well on desktop, but will need disabled on mobile.', 'fusion-builder' ),\n\t\t\t\t\t\t\t'id' => 'container_hundred_percent_height_mobile',\n\t\t\t\t\t\t\t'default' => '0',\n\t\t\t\t\t\t\t'type' => 'switch',\n\t\t\t\t\t\t\t'output' => [\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t'element' => 'helperElement',\n\t\t\t\t\t\t\t\t\t'property' => 'dummy',\n\t\t\t\t\t\t\t\t\t'js_callback' => [\n\t\t\t\t\t\t\t\t\t\t'fusionGlobalScriptSet',\n\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\t'globalVar' => 'fusionContainerVars',\n\t\t\t\t\t\t\t\t\t\t\t'id' => 'container_hundred_percent_height_mobile',\n\t\t\t\t\t\t\t\t\t\t\t'trigger' => [ 'resize' ],\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t'sanitize_callback' => '__return_empty_string',\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t];\n\t\t}", "public function vcMap() {\n\t\tif(function_exists('vc_map')) {\n\n\t\t\tvc_map( array(\n\t\t\t\t\t'name' => esc_html__('Album', 'qode-music'),\n\t\t\t\t\t'base' => $this->base,\n\t\t\t\t\t'category' => esc_html__('by QODE MUSIC','qode-music'),\n\t\t\t\t\t'icon' => 'icon-wpb-album extended-custom-icon-qode',\n\t\t\t\t\t'allowed_container_element' => 'vc_row',\n\t\t\t\t\t'params' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type'\t\t\t=> 'dropdown',\n\t\t\t\t\t\t\t'heading'\t\t=> esc_html__('Album','qode-music'),\n\t\t\t\t\t\t\t'param_name' \t=> 'album',\n\t\t\t\t\t\t\t'value' \t\t=> $this->getAlbums(),\n\t\t\t\t\t\t\t'admin_label' \t=> true,\n\t\t\t\t\t\t\t'save_always' \t=> true\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t\t\t'heading' => esc_html__('Album Skin','qode-music'),\n\t\t\t\t\t\t\t'param_name' => 'album_skin',\n\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\tesc_html__('Default','qode-music')\t\t=> '',\n\t\t\t\t\t\t\t\tesc_html__('Dark','qode-music') \t\t=> 'dark',\n\t\t\t\t\t\t\t\tesc_html__('Light','qode-music') \t\t=> 'light'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'admin_label' => true\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t\t\t'heading' => esc_html__('Title Tag','qode-music'),\n\t\t\t\t\t\t\t'param_name' => 'title_tag',\n\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\t'' => '',\n\t\t\t\t\t\t\t\t'h2'\t=> 'h2',\n\t\t\t\t\t\t\t\t'h3'\t=> 'h3',\n\t\t\t\t\t\t\t\t'h4'\t=> 'h4',\n\t\t\t\t\t\t\t\t'h5'\t=> 'h5',\n\t\t\t\t\t\t\t\t'h6'\t=> 'h6'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'admin_label' => true\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "function cpotheme_metadata_showcase()\n{\n $cpotheme_data = array();\n\n $cpotheme_data[] = array(\n 'name' => 'showcase_url',\n 'std' => '',\n 'label' => 'URL',\n 'type' => 'text',\n 'desc' => 'Indica la URL de destino.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'showcase_theme',\n 'std' => '',\n 'label' => 'Theme',\n 'type' => 'select',\n 'option' => cpotheme_metadata_themelist_optional(),\n 'desc' => 'Indica el tema utilizado.'\n );\n\n return $cpotheme_data;\n}", "function modal_shortcode($atts, $content = null)\n\t\t{\n\t\t\t$row_setting = '';\n\t\t\t// enqueue js\n\t\t\t/*\n\t\t\t$ultimate_js = get_option('ultimate_js');\n\t\t\tif($ultimate_js != 'enable')\n\t\t\t\twp_enqueue_script('ultimate-modernizr');\n\t\t\t*/\n\t\t\t//wp_enqueue_script('ultimate-classie');\n\t\t\t//wp_enqueue_script('ultimate-snap-svg');\n\t\t\t//wp_enqueue_script('ultimate-frongloop');\n\t\t\twp_enqueue_script('ultimate-modal-all');\n\n\t\t\t$icon = $modal_on = $modal_contain = $btn_size = $btn_align = $btn_bg_color = $btn_txt_color = $btn_border_color = $button_border_radius = $btn_hover_bg_color = $btn_hover_txt_color = $btn_hover_border_color = $btn_text = $read_text = $txt_color = $modal_title = $modal_size = $el_class = $modal_style = $btn_img = $overlay_bg_color = $overlay_bg_opacity = $modal_on_align = $content_bg_color = $content_text_color = /*$header_bg_color =*/ $header_text_color = $modal_border_style = $modal_border_width = $modal_border_color = $modal_box_shadow_disable = $modal_border_radius = $content_bg_check = '';\n\t\t\t$heading_tag = $heading_typography_type = $main_heading_font_size = $main_heading_font_family = $main_heading_custom_family = $main_heading_style = $main_heading_default_style = $main_heading_default_weight = $main_heading_color = $main_heading_line_height = $main_heading_letter_spacing = $alignment = '';\n\t\t\t$icon_type = $icon = $icon_img = $img_width = $icon_size = $icon_color = $icon_style = $icon_color_bg = $icon_color_border = $icon_border_style = $icon_border_size = $icon_border_radius = $icon_border_spacing = $icon_hover_color = $icon_hover_background = $icon_hover_border_color = $icon_animation = '';\n\t\t\textract(shortcode_atts(array(\n\t\t\t\t'icon_type' => 'none',\n\t\t\t\t'icon' => '',\n\t\t\t\t'icon_img' => '',\n\t\t\t\t'img_width' => '48',\n\t\t\t\t'icon_size' => '32',\t\t\t\t\n\t\t\t\t'icon_color' => '#333333',\n\t\t\t\t'icon_style' => 'none',\n\t\t\t\t'icon_color_bg' => '#ffffff',\n\t\t\t\t'icon_color_border' => '#333333',\t\t\t\n\t\t\t\t'icon_border_style' => '',\n\t\t\t\t'icon_border_size' => '1',\n\t\t\t\t'icon_border_radius' => '50',\n\t\t\t\t'icon_border_spacing' => '50',\n\t\t\t\t'icon_animation' => '',\n//\t\t\t\t'icon_hover_color' => '',\n//\t\t\t\t'icon_hover_background' => '',\n//\t\t\t\t'icon_hover_border_color' => '',\n\t\t\t\t'modal_on' => 'ult-button',\n\t\t\t\t'modal_contain' => 'ult-html',\n\t\t\t\t'onload_delay'=>'2',\n\t\t\t\t'btn_size' => 'sm',\n\t\t\t\t'btn_align' => 'text-left',\n\t\t\t\t'overlay_bg_color' => '#333333',\n\t\t\t\t'overlay_bg_opacity' => '80',\n\t\t\t\t'btn_bg_color' => '',\n\t\t\t\t'btn_txt_color' => '',\n\t\t\t\t'btn_border_color' => '',\n\t\t\t\t'button_border_radius' => '',\n\t\t\t\t'btn_hover_bg_color' => '',\n\t\t\t\t'btn_hover_txt_color' => '',\n\t\t\t\t'btn_hover_border_color' => '',\n\t\t\t\t'btn_text' => '',\t\t\t\t\n\t\t\t\t'read_text' => '',\n\t\t\t\t'txt_color' => '',\n\t\t\t\t'btn_img' => '',\n\t\t\t\t'modal_title' => '',\n\t\t\t\t'heading_tag' => 'h5',\n\t\t\t\t'heading_typography_type' => 'default',\n\t\t\t\t'main_heading_font_size'\t=> \t'',\n\t\t\t\t'main_heading_font_family' => '',\n\t\t\t\t'main_heading_custom_family' => '',\n\t\t\t\t'main_heading_style'\t\t=>\t'',\n\t\t\t\t'main_heading_default_style'\t\t=>\t'normal',\n\t\t\t\t'main_heading_default_weight'\t\t=>\t'400',\n\t\t\t\t'main_heading_color'\t\t=>\t'',\n\t\t\t\t'main_heading_line_height' => '',\n\t\t\t\t'main_heading_letter_spacing' => '',\n\t\t\t\t'alignment' => 'text-center',\n\t\t\t\t'modal_size' => 'small',\n\t\t\t\t'modal_style' => 'overlay-cornerbottomleft',\n\t\t\t\t'content_bg_check' => '',\n\t\t\t\t'content_bg_color' => '',\n\t\t\t\t'content_text_color' => '',\n\t\t\t\t//'header_bg_color' => '',\n\t\t\t\t'header_text_color' => '#333333',\n\t\t\t\t'modal_on_align' => 'center',\n\t\t\t\t'modal_border_style' => '',\n\t\t\t\t'modal_border_width' => '2',\n\t\t\t\t'modal_border_color' => '#333333',\n\t\t\t\t'modal_box_shadow_disable' => '',\n\t\t\t\t'modal_border_radius' => '0',\n\t\t\t\t'el_class' => '',\n\t\t\t\t),$atts,'ultimate_modal'));\n\t\t\t$html = $style = $button_hover_style = $box_icon = $modal_class = $modal_data_class = $uniq = $overlay_bg = $content_style = $header_style = $content_box_style = $main_heading_style_inline = $css = '';\n\t\t\t$uniq = uniqid();\n\t\t\t\n\t\t\tif($modal_on == \"ult-button\"){\n\t\t\t\t$modal_on = \"button\";\n\t\t\t}\n\t\t\tif($heading_tag == '') {\n\t\t\t\t$heading_tag = 'h4';\n\t\t\t}\n\t\t\t/* ---- main heading styles ---- */\n\t\t\tif($main_heading_font_family != '' && strcmp($heading_typography_type, 'google_fonts') === 0) {\n\t\t\t\t$mhfont_family = get_ultimate_font_family($main_heading_font_family);\n\t\t\t\t$main_heading_style_inline .= 'font-family:\\''.esc_attr($mhfont_family).'\\';';\n\t\t\t} elseif(!empty($main_heading_custom_family) && strcmp($heading_typography_type, 'default') === 0) {\n\t\t\t\t$main_heading_style_inline .= 'font-family:\\''.esc_attr($main_heading_custom_family).'\\';';\n\t\t\t}\n\t\t\t// main heading font style\n\t\t\tif(strcmp($heading_typography_type, 'google_fonts') === 0) {\n\t\t\t\t$main_heading_style_inline .= get_ultimate_font_style($main_heading_style);\n\t\t\t}elseif(!empty($main_heading_default_style) && strcmp($heading_typography_type, 'default') === 0) {\n\t\t\t\t$main_heading_style_inline .= 'font-style:'.esc_attr($main_heading_default_style).';';\n\t\t\t}\n\t\t\tif(!empty($main_heading_default_weight) && strcmp($heading_typography_type, 'default') === 0) {\n\t\t\t\t$main_heading_style_inline .= 'font-weight:'.esc_attr($main_heading_default_weight).';';\n\t\t\t}\n\t\t\t//attach font size if set\n\t\t\tif($main_heading_font_size != '') {\n\t\t\t\t$main_heading_style_inline .= 'font-size:'.esc_attr($main_heading_font_size).'px;';\n\t\t\t}\n\t\t\t//attach font color if set\t\n\t\t\tif($main_heading_color != '') {\n\t\t\t\t$main_heading_style_inline .= 'color:'.esc_attr($main_heading_color).';';\n\t\t\t}\n\t\t\t//line height\n\t\t\tif($main_heading_line_height != '') {\n\t\t\t\t$main_heading_style_inline .= 'line-height:'.esc_attr($main_heading_line_height).'px;';\n\t\t\t}\n\t\t\t//letter spacing\n\t\t\tif($main_heading_letter_spacing != '') {\n\t\t\t\t$main_heading_style_inline .= 'letter-spacing:'.esc_attr($main_heading_letter_spacing).'px;';\n\t\t\t}\n\t\t\t// Create style for content text color\n\t\t\tif($content_text_color !== '')\n\t\t\t\t$content_style .= 'color:'.esc_attr($content_text_color).';';\n\t\t\t// Create style for header background color\n\t\t\t/*if($header_bg_color !== '')\n\t\t\t\t$header_style .= 'background:'.$header_bg_color.';';*/\n\t\t\t// Create style for header text color\n\t\t\tif($header_text_color !== '')\n\t\t\t\t$header_style .= 'color:'.esc_attr($header_text_color).';';\n\t\t\t// Create style for content background color\n\t\t\tif($content_bg_color !== '') {\n\t\t\t\t$content_box_style .= 'background:'.esc_attr($content_bg_color).';';\n\t\t\t}\n\t\t\tif($modal_border_style !== ''){\n\t\t\t\t$content_box_style .= 'border-style:'.esc_attr($modal_border_style).';';\n\t\t\t}\n\t\t\tif($modal_border_width !== ''){\n\t\t\t\t$content_box_style .= 'border-width:'.esc_attr($modal_border_width).'px;';\n\t\t\t}\n\t\t\tif($modal_border_radius !== ''){\n\t\t\t\t$content_box_style .= 'border-radius:'.esc_attr($modal_border_radius).'px;';\n\t\t\t}\n\t\t\tif($modal_border_color !== ''){\n\t\t\t\t$content_box_style .= 'border-color:'.esc_attr($modal_border_color).';';\n\t\t\t}\n\t\t\tif(!empty($modal_box_shadow_disable)){\n\t\t\t\t$content_box_style .= 'box-shadow:none;';\n\t\t\t}\n\t\t\t$overlay_bg_opacity = ($overlay_bg_opacity/100);\n\t\t\tif($overlay_bg_color !== ''){\n\t\t\t\tif(strlen($overlay_bg_color) <= 7)\n\t\t\t\t\t$overlay_bg = ultimate_hex2rgb($overlay_bg_color,$overlay_bg_opacity);\n\t\t\t\telse\n\t\t\t\t\t$overlay_bg = $overlay_bg_color;\n\t\t\t\t\t\n\t\t\t\tif($modal_style != 'overlay-show-cornershape' && $modal_style != 'overlay-show-genie' && $modal_style != 'overlay-show-boxes'){\n\t\t\t\t\t$overlay_bg = 'background:'.esc_attr($overlay_bg).';';\n\t\t\t\t} else {\n\t\t\t\t\t$overlay_bg = 'fill:'.esc_attr($overlay_bg).';';\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif($modal_style != 'overlay-show-cornershape' && $modal_style != 'overlay-show-genie' && $modal_style != 'overlay-show-boxes'){\n\t\t\t\t$modal_class = 'overlay-show';\n\t\t\t\t$modal_data_class = 'data-overlay-class=\"'.esc_attr($modal_style).'\"';\n\t\t\t} else {\n\t\t\t\t$modal_class = $modal_style;\n\t\t\t\t$modal_data_class = '';\n\t\t\t}\n\t\t\tif($modal_on == \"button\"){\n\t\t\t\tif($btn_bg_color !== ''){\n\t\t\t\t\t$style .= 'background:'.esc_attr($btn_bg_color).';';\n\t\t\t\t}\n\t\t\t\tif($btn_txt_color !== ''){\n\t\t\t\t\t$style .= 'color:'.esc_attr($btn_txt_color).';';\n\t\t\t\t}\n\t\t\t\tif($btn_border_color !== ''){\n\t\t\t\t\t$style .= 'border-color:'.esc_attr($btn_border_color).';';\n\t\t\t\t}\n\t\t\t\tif($button_border_radius !== ''){\n\t\t\t\t\t$style .= 'border-radius:'.esc_attr($button_border_radius).'px;';\n\t\t\t\t}\n\t\t\t\tif($el_class != '') {\n\t\t\t\t\t$modal_class .= ' '.esc_attr($el_class).'-button ';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($btn_hover_bg_color != '' || $btn_hover_txt_color != '' || $btn_hover_border_color != '') {\n\t\t\t\t\t$button_hover_style .= '<style>#modal-'.esc_attr($uniq).'.btn:hover {';\n\t\t\t\t\tif($btn_hover_bg_color != ''){\n\t\t\t\t\t\t$button_hover_style .= 'background: '.esc_attr($btn_hover_bg_color).' !important;';\n\t\t\t\t\t}\n\n\t\t\t\t\tif($btn_hover_txt_color != '') {\n\t\t\t\t\t\t$button_hover_style .= 'color: '.esc_attr($btn_hover_txt_color).' !important;';\n\t\t\t\t\t}\n\t\t\t\t\tif($btn_hover_border_color != '') {\n\t\t\t\t\t\t$button_hover_style .= 'border-color: '.esc_attr($btn_hover_border_color).' !important;';\n\t\t\t\t\t}\n\t\t\t\t\t$button_hover_style .= '}</style>';\n\t\t\t\t}\n\t\t\t\t$html .= '<button style=\"'.$style.'\" id=\"modal-'.esc_attr($uniq).'\" data-class-id=\"content-'.esc_attr($uniq).'\" class=\"btn btn-primary modal-module-button btn-'.esc_attr($btn_size).' '.esc_attr($btn_align).' '.esc_attr($modal_class).' ult-align-'.esc_attr($modal_on_align).'\" '.$modal_data_class.'>'.$btn_text.'</button>';\n\t\t\t\t$html .= '<script type=\"text/javascript\">(function($){$(\"head\").append(\"'.$button_hover_style.'\");})(jQuery);</script>';\n\t\t\t} elseif($modal_on == \"image\"){\n\t\t\t\tif($btn_img !==''){\n\t\t\t\t\tif($el_class != '')\n\t\t\t\t\t\t$modal_class .= ' '.esc_attr($el_class).'-image ';\n\t\t\t\t\t$img = wp_get_attachment_image_src( $btn_img, 'large');\n\t\t\t\t\t$html .= '<img src=\"'.esc_attr($img[0]).'\" data-class-id=\"content-'.esc_attr($uniq).'\" class=\"ult-modal-img '.esc_attr($modal_class).' ult-align-'.esc_attr($modal_on_align).' ult-modal-image-'.esc_attr($el_class).'\" '.$modal_data_class.'/>';\n\t\t\t\t}\n\t\t\t} elseif($modal_on == 'icon') {\n\t\t\t\t$box_icon = do_shortcode('[just_icon icon_type=\"'.$icon_type.'\" icon=\"'.$icon.'\" icon_img=\"'.$icon_img.'\" img_width=\"'.$img_width.'\" icon_size=\"'.$icon_size.'\" icon_color=\"'.$icon_color.'\" icon_style=\"'.$icon_style.'\" icon_color_bg=\"'.$icon_color_bg.'\" icon_color_border=\"'.$icon_color_border.'\" icon_border_style=\"'.$icon_border_style.'\" icon_border_size=\"'.$icon_border_size.'\" icon_border_radius=\"'.$icon_border_radius.'\" icon_border_spacing=\"'.$icon_border_spacing.'\" icon_animation=\"'.$icon_animation.'\"]');\n//\t\t\t\tif($icon_hover_color != '' || $icon_hover_background != '' || $title_hover_color != '' || $icon_hover_border_color != '') {\n//\t\t\t\t\t$css .= '<style type=\"text/css\">';\n//\t\t\t\t\tif($icon_hover_color != '') {\n//\t\t\t\t\t\t$css .= '#modal-'.esc_attr($uniq).'.aio-icon-component.'.esc_attr($hover_effect).':hover .aio-icon {color: '. esc_attr($icon_hover_color) .' !important;}';\n//\t\t\t\t\t}\n//\t\t\t\t\tif($icon_hover_background != '') {\n//\t\t\t\t\t\t$css .= '#modal-'.esc_attr($uniq).'.aio-icon-component.'.esc_attr($hover_effect).':hover .aio-icon {background: '. esc_attr($icon_hover_background) .' !important;}';\n//\t\t\t\t\t}\n//\t\t\t\t\tif($icon_hover_border_color != '') {\n//\t\t\t\t\t\tif($box_border_color == '' || $box_border_color == '' || $box_border_width == ''){\n//\t\t\t\t\t\t\t$css .= '#modal-'.esc_attr($uniq).'.aio-icon-component.'.esc_attr($hover_effect).' .aio-icon {';\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tif($box_border_color == ''){\n//\t\t\t\t\t\t\t$css .=\"border-color: transparent;\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tif($box_border_style == '') {\n//\t\t\t\t\t\t\t$css .=\"border-style: solid;\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tif($box_border_width == ''){\n//\t\t\t\t\t\t\t$css .=\"border-width: 1px;\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t$css .= '}';\n//\t\t\t\t\t\t$css .= '#modal-'.esc_attr($uniq).'.aio-icon-component.'.esc_attr($hover_effect).':hover .aio-icon {border-color: '. esc_attr($icon_hover_border_color) .' !important;}';\n//\t\t\t\t\t}\n//\t\t\t\t\t$css .= '</style>';\n//\t\t\t\t}\n\t\t\t\t$html .= '<div id=\"modal-'.esc_attr($uniq).'\" data-class-id=\"content-'.esc_attr($uniq).'\" class=\"overlay-show modal-icon\" '.$modal_data_class.'>'.$box_icon.'</div>';\n//\t\t\t\tif($css != '') {\n//\t\t\t\t\t$html .= \"<script type=\\\"text/javascript\\\">\"\n//\t\t\t\t\t\t\t. \"jQuery(document).ready(function() {\"\n//\t\t\t\t\t\t\t\t.\"jQuery('head').append('\".$css.\"');\"\n//\t\t\t\t\t\t\t. \"});\"\n//\t\t\t\t\t\t\t.\"</script>\";\n//\t\t\t\t}\n\t\t\t} elseif($modal_on == \"onload\"){\n\t\t\t\t$html .= '<div data-class-id=\"content-'.esc_attr($uniq).'\" class=\"ult-onload '.esc_attr($modal_class).' \" '.$modal_data_class.' data-onload-delay=\"'.esc_attr($onload_delay).'\"></div>';\n\t\t\t} else {\n\t\t\t\tif($txt_color !== ''){\n\t\t\t\t\t$style .= 'color:'.esc_attr($txt_color).';';\n\t\t\t\t\t$style .= 'cursor:pointer;';\n\t\t\t\t}\n\t\t\t\tif($el_class != '')\n\t\t\t\t\t$modal_class .= ' '.esc_attr($el_class).'-link ';\n\t\t\t\t$html .= '<span style=\"'.$style.'\" data-class-id=\"content-'.esc_attr($uniq).'\" class=\"'.esc_attr($modal_class).' ult-align-'.esc_attr($modal_on_align).'\" '.$modal_data_class.'>'.$read_text.'</span>';\n\t\t\t}\n\t\t\tif($modal_style == 'overlay-show-cornershape') {\n\t\t\t\t$html .= \"\\n\".'<div class=\"ult-overlay overlay-cornershape content-'.esc_attr($uniq).' '.esc_attr($el_class).'\" style=\"display:none\" data-class=\"content-'.esc_attr($uniq).'\" data-path-to=\"m 0,0 1439.999975,0 0,805.99999 -1439.999975,0 z\">';\n \t$html .= \"\\n\\t\".'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 1440 806\" preserveAspectRatio=\"none\">\n \t\t\t\t\t<path class=\"overlay-path\" d=\"m 0,0 1439.999975,0 0,805.99999 0,-805.99999 z\" style=\"'.$overlay_bg.'\"/>\n \t\t\t\t\t</svg>';\n\t\t\t} elseif($modal_style == 'overlay-show-genie') {\n\t\t\t\t$html .= \"\\n\".'<div class=\"ult-overlay overlay-genie content-'.esc_attr($uniq).' '.esc_attr($el_class).'\" style=\"display:none\" data-class=\"content-'.esc_attr($uniq).'\" data-steps=\"m 701.56545,809.01175 35.16718,0 0,19.68384 -35.16718,0 z;m 698.9986,728.03569 41.23353,0 -3.41953,77.8735 -34.98557,0 z;m 687.08153,513.78234 53.1506,0 C 738.0505,683.9161 737.86917,503.34193 737.27015,806 l -35.90067,0 c -7.82727,-276.34892 -2.06916,-72.79261 -14.28795,-292.21766 z;m 403.87105,257.94772 566.31246,2.93091 C 923.38284,513.78233 738.73561,372.23931 737.27015,806 l -35.90067,0 C 701.32034,404.49318 455.17312,480.07689 403.87105,257.94772 z;M 51.871052,165.94772 1362.1835,168.87863 C 1171.3828,653.78233 738.73561,372.23931 737.27015,806 l -35.90067,0 C 701.32034,404.49318 31.173122,513.78234 51.871052,165.94772 z;m 52,26 1364,4 c -12.8007,666.9037 -273.2644,483.78234 -322.7299,776 l -633.90062,0 C 359.32034,432.49318 -6.6979288,733.83462 52,26 z;m 0,0 1439.999975,0 0,805.99999 -1439.999975,0 z\">';\n\t\t\t\t$html .= \"\\n\\t\".'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 1440 806\" preserveAspectRatio=\"none\">\n\t\t\t\t\t\t\t<path class=\"overlay-path\" d=\"m 701.56545,809.01175 35.16718,0 0,19.68384 -35.16718,0 z\" style=\"'.$overlay_bg.'\"/>\n\t\t\t\t\t\t</svg>';\n\t\t\t} elseif($modal_style == 'overlay-show-boxes') {\n\t\t\t\t$html .= \"\\n\".'<div class=\"ult-overlay overlay-boxes content-'.esc_attr($uniq).' '.esc_attr($el_class).'\" style=\"display:none\" data-class=\"content-'.esc_attr($uniq).'\">';\n\t\t\t\t$html .= \"\\n\\t\".'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"101%\" viewBox=\"0 0 1440 806\" preserveAspectRatio=\"none\">';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m0.005959,200.364029l207.551124,0l0,204.342453l-207.551124,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m0.005959,400.45401l207.551124,0l0,204.342499l-207.551124,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m0.005959,600.544067l207.551124,0l0,204.342468l-207.551124,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m205.752151,-0.36l207.551163,0l0,204.342437l-207.551163,0l0,-204.342437z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m204.744629,200.364029l207.551147,0l0,204.342453l-207.551147,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m204.744629,400.45401l207.551147,0l0,204.342499l-207.551147,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m204.744629,600.544067l207.551147,0l0,204.342468l-207.551147,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m410.416046,-0.36l207.551117,0l0,204.342437l-207.551117,0l0,-204.342437z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m410.416046,200.364029l207.551117,0l0,204.342453l-207.551117,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m410.416046,400.45401l207.551117,0l0,204.342499l-207.551117,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m410.416046,600.544067l207.551117,0l0,204.342468l-207.551117,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m616.087402,-0.36l207.551086,0l0,204.342437l-207.551086,0l0,-204.342437z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m616.087402,200.364029l207.551086,0l0,204.342453l-207.551086,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m616.087402,400.45401l207.551086,0l0,204.342499l-207.551086,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m616.087402,600.544067l207.551086,0l0,204.342468l-207.551086,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m821.748718,-0.36l207.550964,0l0,204.342437l-207.550964,0l0,-204.342437z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m821.748718,200.364029l207.550964,0l0,204.342453l-207.550964,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m821.748718,400.45401l207.550964,0l0,204.342499l-207.550964,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m821.748718,600.544067l207.550964,0l0,204.342468l-207.550964,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1027.203979,-0.36l207.550903,0l0,204.342437l-207.550903,0l0,-204.342437z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1027.203979,200.364029l207.550903,0l0,204.342453l-207.550903,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1027.203979,400.45401l207.550903,0l0,204.342499l-207.550903,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1027.203979,600.544067l207.550903,0l0,204.342468l-207.550903,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1232.659302,-0.36l207.551147,0l0,204.342437l-207.551147,0l0,-204.342437z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1232.659302,200.364029l207.551147,0l0,204.342453l-207.551147,0l0,-204.342453z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1232.659302,400.45401l207.551147,0l0,204.342499l-207.551147,0l0,-204.342499z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m1232.659302,600.544067l207.551147,0l0,204.342468l-207.551147,0l0,-204.342468z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\\t\".'<path d=\"m-0.791443,-0.360001l207.551163,0l0,204.342438l-207.551163,0l0,-204.342438z\" style=\"'.$overlay_bg.'\"/>';\n\t\t\t\t$html .= \"\\n\\t\".'</svg>';\n\t\t\t} else {\n\t\t\t\t$html .= \"\\n\".'<div class=\"ult-overlay content-'.esc_attr($uniq).' '.esc_attr($el_class).'\" data-class=\"content-'.esc_attr($uniq).'\" id=\"button-click-overlay-'.esc_attr($uniq).'\" style=\"'.$overlay_bg.' display:none;\">';\n\t\t\t}\n\t\t\t$html .= \"\\n\\t\".'<div class=\"ult_modal ult-fade ult-'.esc_attr($modal_size).'\">';\n\t\t\t$html .= \"\\n\\t\\t\".'<div class=\"ult_modal-content '.esc_attr($content_bg_check).'\" style=\"'.$content_box_style.'\">';\n\t\t\tif($modal_title !== ''){\n\t\t\t\t$html .= \"\\n\\t\\t\\t\".'<div class=\"ult_modal-header\" style=\"'.$header_style.'\">';\n\t\t\t\t$html .= \"\\n\\t\\t\\t\\t\".$box_icon.'<'.esc_attr($heading_tag).' class=\"ult_modal-title '.esc_attr($alignment).'\" style=\"'.$main_heading_style_inline.'\">'.$modal_title.'</'.esc_attr($heading_tag).'>';\n\t\t\t\t$html .= \"\\n\\t\\t\\t\".'</div>';\n\t\t\t}\n\t\t\t$html .= \"\\n\\t\\t\\t\".'<div class=\"ult_modal-body '.esc_attr($modal_contain).'\" style=\"'.$content_style.'\">';\n\t\t\t$html .= \"\\n\\t\\t\\t\".wpb_js_remove_wpautop( $content , true );\n\t\t\t$html .= \"\\n\\t\\t\\t\".'</div>';\n\t\t\t$html .= \"\\n\\t\".'</div>';\n\t\t\t$html .= \"\\n\\t\".'</div>';\n\t\t\t$html .= \"\\n\\t\".'<div class=\"ult-overlay-close\">Close</div>';\n\t\t\t$html .= \"\\n\".'</div>';\n\t\t\treturn $html;\n\t\t}", "function cinerama_edge_generate_icon_pack_options() {\n\t\t$html = '';\n\t\t$icon_pack = isset( $_POST['icon_pack'] ) ? $_POST['icon_pack'] : '';\n\t\t$collections_object = cinerama_edge_icon_collections()->getIconCollection( $icon_pack );\n\n\t\tif ( $collections_object ) {\n\t\t\t$icons = $collections_object->getIconsArray();\n\t\t\tif ( is_array( $icons ) && count( $icons ) ) {\n\t\t\t\tforeach ( $icons as $key => $value ) {\n\t\t\t\t\t$html .= '<option value=\"' . esc_attr( $value ) . '\">' . esc_html( $key ) . '</option>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo wp_kses( $html, array( 'option' => array( 'value' => true ) ) );\n\t}", "function optionsframework_options() {\n\n\t$options = array();\n\t\n\t//GENERAL\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('General', 'wpex'),\n\t\t\"type\" \t=> 'heading',\n\t);\n\t\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Custom Logo', 'wpex'),\n\t\t\"desc\" \t=> __('Upload your custom logo.', 'wpex'),\n\t\t\"std\" \t=> '',\n\t\t\"id\" \t=> 'custom_logo',\n\t\t\"type\" \t=> 'upload',\n\t);\n\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Notification Bar', 'att'),\n\t\t\"desc\" \t=> __('Enter your text for the notification bar.', 'att'),\n\t\t\"std\" \t=> 'This is your notification bar...you can <a href=\"#\">add a link here &rarr;</a> if you want.',\n\t\t\"id\" \t=> 'notification',\n\t\t\"type\" \t=> 'textarea',\n\t);\n\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Custom Excerpt Lenght', 'wpex'),\n\t\t\"desc\" \t=> __('Enter your desired custom excerpt length.', 'wpex'),\n\t\t\"id\" \t=> 'excerpt_length',\n\t\t\"std\" \t=> '17',\n\t\t\"type\" \t=> 'text'\n\t);\n\t\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('AJAX Loading Instead of Pagination?', 'wpex'),\n\t\t\"desc\" \t=> __('Check box to enable the load more button rather then generic 1,2,3 pagination.', 'wpex'),\n\t\t\"id\" \t=> 'ajax_loading',\n\t\t\"std\" \t=> '1',\n\t\t\"type\" \t=> 'checkbox',\n\t);\n\t\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Custom WP Gallery?', 'wpex'),\n\t\t\"desc\" \t=> __('This theme outputs a custom gallery style for the WordPress shortcode, if you don\\'t like it or are using a plugin for this you can unselect the custom functionality here.', 'wpex'),\n\t\t\"id\" \t=> 'custom_wp_gallery',\n\t\t\"std\" \t=> '1',\n\t\t\"type\" \t=> 'checkbox'\n\t);\n\t\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Enable Retina Support', 'wpex'),\n\t\t\"desc\"\t=> __('Check this box to enable retina support for featured images. If enabled for every cropped featured image the theme will create a second one that is retina optimized. So keep disabled to save server space.', 'wpex'),\n\t\t\"id\"\t=> 'enable_retina',\n\t\t\"std\"\t=> '0',\n\t\t\"type\"\t=> 'checkbox'\n\t);\n\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Featured Images For Single Posts', 'wpex'),\n\t\t\"desc\"\t=> __('Check this box to enable the display of featured images in single posts.', 'wpex'),\n\t\t\"id\"\t=> 'single_thumb',\n\t\t\"std\"\t=> '1',\n\t\t\"type\"\t=> 'checkbox'\n\t);\n\t\t\n\t\n\t//HOMEPAGE\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Home', 'wpex'),\n\t\t\"type\" \t=> 'heading',\n\t);\t\n\t\t\n\t$options[] = array(\n\t\t\"name\" \t=> __('Homepage Content', 'att'),\n\t\t\"desc\" \t=> __('Use this field to add content to your homepage area right below the main slider (or instead of the slider if you aren\\'t using it) and right above the latest posts.', 'att'),\n\t\t\"std\" \t=> '',\n\t\t\"id\" \t=> 'homepage_content',\n\t\t\"type\" \t=> 'editor',\n\t);\n\t\t\t\n\t\t\n\t//Slider\n\t$options[] = array(\n\t\t\"name\" \t=> __('Slides', 'att'),\n\t\t\"type\" \t=> 'heading',\n\t);\n\t\t\t\n\t\tif ( class_exists( 'Symple_Slides_Post_Type' ) ) {\n\t\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t\"name\" \t\t=> __('Toggle: Slideshow', 'att'),\n\t\t\t\t\"desc\" \t\t=> __('Check this box to enable automatic slideshow for your slides.', 'att'),\n\t\t\t\t\"id\" \t\t=> \"slides_slideshow\",\n\t\t\t\t\"std\" \t\t=> \"true\",\n\t\t\t\t\"type\" \t\t=> \"select\",\n\t\t\t\t\"options\" \t=> array(\n\t\t\t\t\t'true' \t\t=> 'true',\n\t\t\t\t\t'false' \t=> 'false'\n\t\t\t) );\n\t\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t\"name\" \t\t=> __('Toggle: Randomize', 'att'),\n\t\t\t\t\"desc\" \t\t=> __('Check this box to enable the randomize feature for your slides.', 'att'),\n\t\t\t\t\"id\" \t\t=> \"slides_randomize\",\n\t\t\t\t\"std\" \t\t=> \"false\",\n\t\t\t\t\"type\" \t\t=> \"select\",\n\t\t\t\t\"options\" \t=> array(\n\t\t\t\t\t'true' \t\t=> 'true',\n\t\t\t\t\t'false' \t=> 'false'\n\t\t\t) );\n\t\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t\"name\" \t\t=> __('Animation', 'att'),\n\t\t\t\t\"desc\" \t\t=> __('Select your animation of choice.', 'att'),\n\t\t\t\t\"id\" \t\t=> \"slides_animation\",\n\t\t\t\t\"std\" \t\t=> \"slide\",\n\t\t\t\t\"type\" \t\t=> \"select\",\n\t\t\t\t\"options\" \t=> array(\n\t\t\t\t\t'fade' \t\t=> 'fade',\n\t\t\t\t\t'slide' \t=> 'slide'\n\t\t\t) );\n\t\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t\"name\" \t\t=> __('Direction', 'att'),\n\t\t\t\t\"desc\" \t\t=> __('Select the direction for your slides. Slide animation only & if using the <strong>vertical direction</strong> all slides must have the same height.', 'att'),\n\t\t\t\t\"id\" \t\t=> \"slides_direction\",\n\t\t\t\t\"std\" \t\t=> \"horizontal\",\n\t\t\t\t\"type\" \t\t=> \"select\",\n\t\t\t\t\"options\" \t=> array(\n\t\t\t\t\t'horizontal' \t=> 'horizontal',\n\t\t\t\t\t'vertical' \t\t=> 'vertical'\n\t\t\t) );\n\t\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t\"name\" \t=> __('SlideShow Speed', 'att'),\n\t\t\t\t\"desc\" \t=> __('Enter your preferred slideshow speed in milliseconds.', 'att'),\n\t\t\t\t\"id\" \t=> \"slideshow_speed\",\n\t\t\t\t\"std\" \t=> \"7000\",\n\t\t\t\t\"type\" \t=> \"text\",\n\t\t\t);\n\t\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t\"name\" \t=> __('Animation Speed', 'att'),\n\t\t\t\t\"desc\" \t=> __('Enter your preferred animation speed in milliseconds.', 'att'),\n\t\t\t\t\"id\" \t=> \"animation_speed\",\n\t\t\t\t\"std\" \t=> \"600\",\n\t\t\t\t\"type\" \t=> \"text\",\n\t\t\t);\n\t\t}\n\t\t\t\n\t\t$options[] = array(\n\t\t\t\"name\" \t=> __('Slider Alternative', 'att'),\n\t\t\t\"desc\" \t=> __('If you prefer to use another slider you can enter the <strong>shortcode</strong> here.', 'att'),\n\t\t\t\"id\" \t=> \"slides_alt\",\n\t\t\t\"std\" \t=> \"\",\n\t\t\t\"type\" \t=> \"textarea\",\n\t\t);\n\n\treturn $options;\n}", "function wpeppsubNCX_options($atts) {\r\n\r\n\t// get shortcode id\r\n\t\t$atts = shortcode_atts(array(\r\n\t\t\t'id' \t\t=> '',\r\n\t\t\t'align' \t=> '',\r\n\t\t\t'widget' \t=> ''\r\n\t\t), $atts);\r\n\t\t\t\r\n\t\t$post_id = $atts['id'];\r\n\t\t\r\n\t// check to see if post exists\r\n\t$check_post = get_post($post_id);\r\n\t\r\n\tif (empty($check_post)) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// amount\r\n\t$postAmt = esc_attr(get_post_meta($post_id,'postAmt',true));\r\n\t$postAmt = number_format($postAmt, 2);\r\n\t\r\n\t$wpeppsubNCX_a3 = esc_attr(get_post_meta($post_id,'wpeppsubNCX_a3',true));\r\n\r\n\t// get settings page values\r\n\t$options = get_option('wpeppsubNCX_settingsoptions');\r\n\tforeach ($options as $k => $v ) { $value[$k] = esc_attr($v); }\r\n\t\r\n\t$wpeppsubNCX_button_image = esc_attr(get_post_meta($post_id,'wpeppsubNCX_button_image',true));\r\n\t$button_url = \"\";\r\n\t\r\n\tif($wpeppsubNCX_button_image == 1){\r\n\t\t$button_url = \"https://ssl.nochex.com/Downloads/Nochex%20Payment%20Button/payme4.gif\";\t\r\n\t}elseif($wpeppsubNCX_button_image == 2){\r\n\t\t$button_url = \"https://ssl.nochex.com/Downloads/Nochex%20Payment%20Button/payme.gif\";\t\r\n\t}elseif($wpeppsubNCX_button_image == 3){\r\n\t\t$button_url = \"https://ssl.nochex.com/Downloads/Nochex%20Payment%20Button/nochex_pay.png\";\t\r\n\t}elseif($wpeppsubNCX_button_image == 4){\r\n\t\t$button_url = \"https://ssl.nochex.com/Downloads/Nochex%20Payment%20Button/nochex_checkout.png\";\t\r\n\t}elseif($wpeppsubNCX_button_image == 5){\r\n\t\t$button_url = \"https://ssl.nochex.com/Downloads/Nochex%20Payment%20Button/cardsboth1.gif\";\r\n\t}else{\r\n\t\t$button_url = \"https://ssl.nochex.com/Downloads/Nochex%20Payment%20Button/nochex_pay.png\";\t\r\n\t}\r\n\t\r\n\t$wpeppsubNCX_button_name = esc_attr(get_post_meta($post_id,'wpeppsubNCX_button_name',true));\r\n\t$wpeppsubNCX_button_sku = esc_attr(get_post_meta($post_id,'wpeppsubNCX_button_sku',true));\r\n\r\n\t$account = $value['merchant_id']; \r\n\t\r\n\t$testmode = $value['testmode']; \r\n\t/*$reqBilling = $value['reqBilling']; */\r\n\t$xmlMode = $value['xmlMode']; \r\n\t$hideBilling = $value['hideBillMode'];\r\n\t\t\r\n\t// account\r\n\t$account_a = esc_attr(get_post_meta($post_id,'wpeppsubNCX_button_account',true));\r\n\tif (!empty($account_a)) { $account = $account_a; }\r\n\r\n\t// custom button size\r\n\t$wpeppsubNCX_button_buttonsize = esc_attr(get_post_meta($post_id,'wpeppsubNCX_button_buttonsize',true));\r\n\t\r\n\tif ($wpeppsubNCX_button_buttonsize != \"0\") {\r\n\t\t$value['size'] = $wpeppsubNCX_button_buttonsize;\r\n\t}\r\n\t\t\r\n\t// alignment\r\n\tif ($atts['align'] == \"left\") { $alignment = \"style='float: left;'\"; }\r\n\tif ($atts['align'] == \"right\") { $alignment = \"style='float: right;'\"; }\r\n\tif ($atts['align'] == \"center\") { $alignment = \"style='margin-left: auto;margin-right: auto;width:220px'\"; }\r\n\tif (empty($atts['align'])) { $alignment = \"\"; }\r\n\t\t\r\n\t// spacing above buy button\r\n\t$spacing = \"0\";\r\n\t\r\n\tif ($atts['widget'] == \"true\") {\r\n\t\t$alignment = \"style='margin-left: auto;margin-right: auto;width:220px'\";\r\n\t}\r\n\t\t$item_description = esc_attr(get_post_meta($post_id,'wpeppsubNCX_button_description',true));\r\n\t\t\r\n\t\t\r\n\t$output = \"\";\r\n\t$output .= \"<div class='wpeppsubNCX_wrapper' style=\\\"text-align:center\\\">\";\r\n\t \r\n\t$output .= \"<div><style>.ncx label{min-width: 450px;clear: both;}</style>\r\n\t<form class=\\\"ncx\\\" action='https://secure.nochex.com/default.aspx' method='post'>\";\r\n\t$output .= \"<input type='hidden' name='merchant_id' value='$account'>\"; \r\n\t$output .= \"<label style=\\\"text-align:center;margin:0px 10px;\\\">\r\n\t\t\t\t<ul style=\\\"padding:0px;margin-left:0px;list-style:none\\\">\r\n\t\t\t\t<li style=\\\"text-align:center\\\">Reference: $wpeppsubNCX_button_name<br/><br/></li>\r\n\t\t\t\t<li style=\\\"text-align:center\\\">Item Description: $item_description<br/><br/></li>\r\n\t\t\t\t<li style=\\\"text-align:center\\\">Amount: $wpeppsubNCX_a3</li>\";\r\n\t\t\t\t\r\n\t\t\t\tif($postAmt > 0){\r\n\t\t\t\t\r\n\t$totalAmt = number_format($wpeppsubNCX_a3 + $postAmt, 2);\r\n\t$output .= \"<li style=\\\"text-align:center\\\">Postage: $postAmt<br/></li>\r\n\t\t\t\t<li style=\\\"text-align:center\\\">Total Amount: $totalAmt</li>\";\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t$output .=\t\"</ul></label>\"; \r\n\t\r\nif($testmode == 1){ \r\n\t$output .= \"<input type='hidden' name='test_transaction' value='100'>\"; \r\n}\r\n\r\nif($hideBilling == 1){\r\n\t$output .= \"<input type='hidden' name='hide_billing_details' value='true'>\"; \r\n}\r\n\r\nif (get_post_meta($post_id,'fullname',true) == 1){\r\n\techo \"<style>\r\n\t#billing_fullname{\r\n\t\tdisplay:block;\r\n\t}\r\n\t</style>\";\r\n}else{\r\n\techo \"<style>\r\n\t\t#billing_fullname{\r\n\t\t\tdisplay:none;\r\n\t\t}\r\n\t\t</style>\";\r\n}\r\n\r\nif (get_post_meta($post_id,'address',true) == 1){\r\necho \"<style>\r\n\t#billing_details{\r\n\t\tdisplay:block;\r\n\t}\r\n\t</style>\";\r\n}else{\r\necho \"<style>\r\n\t#billing_details{\r\n\t\tdisplay:none;\r\n\t}\r\n\t</style>\";\r\n}\r\n\r\nif (get_post_meta($post_id,'EmailAd',true) == 1){\r\necho \"<style>\r\n\t#emailaddress{\r\n\t\tdisplay:block;\r\n\t}\r\n\t</style>\";\r\n\r\n}else{\r\n\r\necho \"<style>\r\n\t#emailaddress{\r\n\t\tdisplay:none;\r\n\t}\r\n\t</style>\";\r\n}\r\n\r\n\tif (get_post_meta($post_id,'contactNo',true) == 1){\r\n\techo \"<style>\r\n\t\t #phonenumber{\r\n\t\t\tdisplay:block;\r\n\t\t}\r\n\t\t</style>\";\r\n\t}else{\r\n\techo \"<style>\r\n\t\t #phonenumber{\r\n\t\t\tdisplay:none;\r\n\t\t}\r\n\t\t</style>\";\r\n\t}\r\n\r\n\tif($xmlMode == \"1\"){\r\n\t\t$description = \"Payment for #\" . $post_id;\r\n\t\t$itemCollection = \"<items><item><id></id><name>\".$wpeppsubNCX_button_name.\"</name><description> \". $item_description .\"</description><quantity>1</quantity><price>\" . $wpeppsubNCX_a3 . \"</price></item></items>\";\r\n\t}else{ \r\n\t\t$description = $wpeppsubNCX_button_name . \" - Amount: \" . $wpeppsubNCX_a3 . \", \" . $item_description; \r\n\t\t$itemCollection = \"\";\r\n\t}\r\n \r\n\t$notify_url = add_query_arg( 'wpeppsubNCX-listener', 'IPN', home_url( 'index.php' ) );\r\n\t$success_url = add_query_arg( 'wpeppsubNCX-listener', 'SCS', home_url( 'index.php' ) );\r\n\t\r\n\t$output .= \"<div id='billing_fullname'><label>Billing Fullname: <input type='text' name='billing_fullname' autocomplete='name' value=''></label><br/></div>\"; \r\n\t$output .= \"<div id='billing_details'><label>Billing Address: <input type='text' name='billing_address' autocomplete='address-line1' value=''></label><br/><br/>\"; \r\n\t$output .= \"<label>Billing City: <input type='text' name='billing_city' autocomplete='address-level2' value=''></label><br/><br/>\"; \r\n\t$output .= \"<label>Billing Postcode: <input type='text' name='billing_postcode' autocomplete='postal-code' value=''></label><br/></div>\"; \r\n\t$output .= \"<div id='emailaddress'><label>Email Address: <input type='text' name='email_address' autocomplete='email' value=''></label><br/><br/></div>\"; \r\n\t$output .= \"<div id='phonenumber'><label>Phone Number: <input type='text' name='customer_phone_number' autocomplete='tel-national' value=''></label><br/><br/></div>\"; \t \r\n\t$output .= \"<input type='hidden' name='callback_url' value='$notify_url'>\";\r\n\t$output .= \"<input type='hidden' name='success_url' value='$success_url' />\";\t \t\r\n\t$output .= \"<input type='hidden' name='test_success_url' value='$success_url' />\";\t \r\n\t\r\n\tif($postAmt > 0){\r\n\t\t$output .= \"<input type='hidden' name='postage' value='$postAmt'>\";\r\n\t}\r\n\r\n\t$output .= \"<input type='hidden' name='amount' value='$wpeppsubNCX_a3'>\";\r\n\t$output .= \"<input type='hidden' name='optional_1' value='$post_id' />\";\t\r\n\t$output .= \"<input type='hidden' name='description' value='$description' />\";\r\n\t$output .= \"<input type='hidden' name='xml_item_collection' value='$itemCollection' />\";\r\n\t$output .= \"<label style=\\\"text-align:center;float:none;\\\"> \t\r\n\t\t\t\t<input type='submit' style=\\\"display:none;\\\" name='submit' value='Pay Now'><img src='$button_url' /></input>\t\t\t\r\n\t\t\t\t</label><br/><br/>\";\r\n\t$output .= \"</form></div>\";\r\n\t$output .= \"</div>\";\r\n\r\n\treturn $output;\r\n\t\r\n}", "function dm_contact_info_shortcode($atts, $content = null) {\n\textract(shortcode_atts(array(\n\t\t'title' => 'Contact Us',\n\t), $atts));\n\n\t$contact_info = get_transient('dm_contact_info');\n\n\tif ($contact_info === false) {\n\t\t$contact_info = array(\n\t\t\t'name' => get_option('dm_company_name'),\n\t\t\t'address' => get_option('dm_company_address'),\n\t\t\t'phone_1' => get_option('dm_company_phone_1'),\n\t\t\t'phone_2' => get_option('dm_company_phone_2'),\n\t\t\t'fax' => get_option('dm_company_fax'),\n\t\t\t'map_link' => get_option('dm_company_map_link'),\n\t\t\t'portland_address' => get_option('dm_company_portland_address'),\n\t\t\t'portland_map_link' => get_option('dm_company_portland_map_link'),\n\t\t);\n\t\tset_transient('dm_company_info', $contact_info, 86400);\n\t}\n\n\tob_start();\n?>\n\t<div class=\"sidebar_contact_us\">\n\t\t<h4><?php echo $title; ?></h4>\n\t\t<div class=\"office\">\n\t\t\t<h5><?php echo $contact_info['name']; ?></h5>\n\t\t\t<address>\n\t\t\t\t<?php echo $contact_info['address']; ?>\n\t\t\t</address>\n\t\t\t<div class=\"phone field\">\n\t\t\t\t<div class=\"label\">Phone:</div>\n\t\t\t\t<div class=\"number\"><?php echo $contact_info['phone_1']; ?></div>\n\t\t\t\t<div class=\"clearfix\"></div>\n\t\t\t\t<div class=\"number\"><?php echo $contact_info['phone_2']; ?></div>\n\t\t\t\t<div class=\"clearfix\"></div>\n\t\t\t\t<div class=\"label\">Fax:</div>\n\t\t\t\t<div class=\"number\"><?php echo $contact_info['fax']; ?></div>\n\t\t\t</div>\n\t\t\t<div class=\"clearfix\"></div>\n\t\t\t<a href=\"<?php echo $contact_info['map_link']; ?>\" target=\"_blank\">View Map</a>\n\t\t</div>\n\t\t<div class=\"office\">\n\t\t\t<h5>Portland Office</h5>\n\t\t\t<address>\n\t\t\t\t<?php echo $contact_info['portland_address']; ?>\n\t\t\t</address>\n\t\t\t<a href=\"<?php echo $contact_info['portland_map_link']; ?>\" target=\"_blank\">View Map</a>\n\t\t</div>\n\t</div>\n<?php\n\t$output = ob_get_clean();\n\treturn $output;\n}", "public function wppcShortcode($atts)\n\t\t\t{\n\t\t\t\t// Shortcode default atributes\n\t\t\t\t$atts = shortcode_atts(array('id' => 1), $atts);\n\n\t\t\t\tglobal $wpdb;\n\t\t\t\t$contest = $wpdb->get_row('SELECT * FROM '.WPPC_TABLE_ALL_CONTESTS.' WHERE id='.$atts['id']);\n\t\t\t\t$contestWinners = unserialize($contest->contest_winners);\n\t\t\t\t?>\n\n\t\t\t\t<div id=\"wppc-contest\">\n\t\t\t\t\t<div id=\"wppc-main\">\n\t\t\t\t\t\t<div id=\"contest-tabs\" style=\"display: inline;\">\n\t\t\t\t\t\t\t<ul id=\"contest-nav\" style=\"margin-bottom: 20px; margin-top: 20px;\">\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_about != ''): ?><li style=\"display: inline; margin-right: 2rem;\" <?php if ($contest->start_date > date('Y-m-d h:m:s', time())): ?>class=\"ui-state-default ui-corner-top ui-tabs-active ui-state-active\"<?php endif; ?>><a href=\"#contest-about\">About</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time())): ?><li style=\"display: inline; margin-right: 2rem;\" class=\"ui-state-default ui-corner-top ui-tabs-active ui-state-active\"><a href=\"#contest-photo-gallery\">Photo Gallery</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contestWinners['text'] != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-winners\">Winners</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_rules != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-rules\">Rules</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_prizes != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-prizes\">Prizes</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time()) && date('Y-m-d h:m:s', time()) <= date('Y-m-d', strtotime('+1 day' , strtotime($contest->end_registration)))): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-entry-form\">Entry form</a></li><?php endif; ?>\n\t\t\t\t\t\t\t\t<?php if ($contest->contest_contact != ''): ?><li style=\"display: inline; margin-right: 2rem;\"><a href=\"#contest-contact\">Contact</a></li><?php endif; ?>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<!-- Contest about -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_about != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-about\">';\n\t\t\t\t\t\t\t\t\t<?php echo $this->formatContent($contest->contest_about); ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest photo gallery -->\n\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time())): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-photo-gallery\">\n\t\t\t\t\t\t\t\t\t<?php echo $contest->contest_photo_gallery; ?>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t$totalDays = (strtotime($contest->end_registration) - strtotime($contest->start_date)) / (60*60*24);\n\t\t\t\t\t\t\t\t\t\t$weeks = $totalDays % 7 != 0 ? $totalDays / 7 + 1 : $totalDays / 7;\n\t\t\t\t\t\t\t\t\t?>\n\n\t\t\t\t\t\t\t\t\t<!-- Contest filters -->\n\t\t\t\t\t\t\t\t\t<div id=\"wppc-filters\" class=\"row\" style=\"margin-top:20px; margin-bottom: 20px;\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"<?php echo $contest->id ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t<select name=\"wppc-weeks\" id=\"wppc-weeks\" class=\"form-control wppc-select-filter\">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"week-all\">All weeks</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($week = 1; $week <= $weeks; $week ++)\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<option value=\"week-'.$week.'\">Week '.$week.'</option>';\n\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-md-offset-1\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"<?php echo $contest->id ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t<select name=\"wppc-points\" id=\"wppc-points\" class=\"form-control wppc-select-filter\">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-all\">All points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-0\">0 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-1\">1 point</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-2\">2 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-3\">3 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-4\">4 points</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"point-5\">5 points</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php if ($contest->photos_mobile_allowed > 0): ?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-md-offset-1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"<?php echo $contest->id ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" value=\"mobile-only\" class=\"btn btn-primary\" id=\"wppc-button-filter\">Mobile only</button>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<!-- Contest photos -->\n\t\t\t\t\t\t\t\t\t<div id=\"wppc-photos\">\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t$wpDir = wp_upload_dir();\n\t\t\t\t\t\t\t\t\t\t\t$contestDir = $wpDir['baseurl'].'/wppc-photos/wppc-photos-'.$contest->id.'/';\n\n\t\t\t\t\t\t\t\t\t\t\t// Get all photos for this contest\n\t\t\t\t\t\t\t\t\t\t\t$contestPhotos = $wpdb->get_results('SELECT * FROM '.WPPC_TABLE_CONTESTS_ENTRIES.' WHERE contest_id='.$contest->id.' AND visible=1');\n\n\t\t\t\t\t\t\t\t\t\t\t// Shuffle photos\n\t\t\t\t\t\t\t\t\t\t\tshuffle($contestPhotos);\n\n\t\t\t\t\t\t\t\t\t\t\t// Get points\n\t\t\t\t\t\t\t\t\t\t\t$contestPoints = array($contest->first_point, $contest->second_point, $contest->third_point, $contest->forth_point, $contest->fifth_point);\n\n\t\t\t\t\t\t\t\t\t\t\t$this->displayContestPhotos($contestPhotos, $contest->contest_name, $contest->end_vote, $contestDir, $contestPoints, get_permalink(get_the_id()), $contest->contest_social_description, $this->photosPerPage);\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?> \n\n\t\t\t\t\t\t\t<!-- Contest winners -->\n\t\t\t\t\t\t\t<?php if ($contestWinners['text'] != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-winners\">\n\t\t\t\t\t\t\t\t\t<?php echo $contestWinners['text'] ?>\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2>First prize</h2>\n\t\t\t\t\t\t\t\t\t\t<?php $firstWinner = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$contestWinners['first-winner'], ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $firstWinner['competitor_photo'] ?>\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo $contestDir ?>medium/<?php echo $firstWinner['competitor_photo'] ?>\" alt=\"<?php echo $firstWinner['photo_name'] ?>\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"no-padding-left col-md-6\">\n\t\t\t\t\t\t\t\t\t\t\t<h2>Second prize</h2>\n\t\t\t\t\t\t\t\t\t\t\t<?php $secondWinner = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$contestWinners['second-winner'], ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $secondWinner['competitor_photo'] ?>\" title=\"\" style=\"background-image: url('<?php echo $contestDir ?>medium/<?php echo $secondWinner['competitor_photo'] ?>'); position: relative; float: left; width: 100%; height: 300px; background-position: 50% 50%; background-repeat: no-repeat; background-size: cover;\">\n\t\t\t\t\t\t\t\t\t\t\t\t<!-- <img src=\"<?php echo $contestDir ?>medium/<?php echo $secondWinner['competitor_photo'] ?>\" alt=\"<?php echo $secondWinner['photo_name'] ?>\" /> -->\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"no-padding-right col-md-6\">\n\t\t\t\t\t\t\t\t\t\t\t<h2>Third prize</h2>\n\t\t\t\t\t\t\t\t\t\t\t<?php $thirdWinner = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$contestWinners['third-winner'], ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $thirdWinner['competitor_photo'] ?>\" title=\"\" style=\"background-image: url('<?php echo $contestDir ?>medium/<?php echo $thirdWinner['competitor_photo'] ?>'); position: relative; float: left; width: 100%; height: 300px; background-position: 50% 50%; background-repeat: no-repeat; background-size: cover;\">\n\t\t\t\t\t\t\t\t\t\t\t\t<!-- <img src=\"<?php echo $contestDir ?>medium/<?php echo $thirdWinner['competitor_photo'] ?>\" alt=\"<?php echo $thirdWinner['photo_name'] ?>\" /> -->\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2>Our favorites</h2>\n\t\t\t\t\t\t\t\t\t\t<?php foreach ($contestWinners['our-favorites'] as $photoID): ?>\n\t\t\t\t\t\t\t\t\t\t\t<?php $photo = $wpdb->get_row(\"SELECT * FROM WPPC_TABLE_CONTESTS_ENTRIES WHERE contest_id='\".$atts['id'].\"' AND photo_id=\".$photoID, ARRAY_A); ?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"group1\" href=\"<?php echo $contestDir ?>medium/<?php echo $photo['competitor_photo'] ?>\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo $contestDir ?>thumbs/<?php echo $photo['competitor_photo'] ?>\" alt=\"<?php echo $photo['photo_name'] ?>\" />\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest rules -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_rules != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-rules\">\n\t\t\t\t\t\t\t\t\t<div id=\"rules-tabs\">\n\t\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t\t<li style=\"display: inline; margin-right: 2rem;\"><a href=\"#en-rules\"><img style=\"max-width: 30px;\" src=\"<?php echo WPPC_URI.'img/flags/uk-flag.png' ?>\" /></a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li style=\"display: inline; margin-right: 2rem;\"><a href=\"#ro-rules\"><img style=\"max-width: 30px;\" src=\"<?php echo WPPC_URI.'img/flags/ro-flag.png' ?>\" /></a></li>\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t<?php $rules = unserialize($contest->contest_rules); ?>\n\t\t\t\t\t\t\t\t\t\t<div id=\"en-rules\"><?php echo $rules['en'] ?></div>\n\t\t\t\t\t\t\t\t\t\t<div id=\"ro-rules\"><?php echo $rules['ro'] ?></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest prizes -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_prizes != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-prizes\">\n\t\t\t\t\t\t\t\t\t<?php echo $this->formatContent($contest->contest_prizes); ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest entry form -->\n\t\t\t\t\t\t\t<?php if ($contest->start_date <= date('Y-m-d h:m:s', time()) && date('Y-m-d h:m:s', time()) <= date('Y-m-d', strtotime('+1 day' , strtotime($contest->end_registration)))): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-entry-form\">\n\t\t\t\t\t\t\t\t\t<?php $this->setEntryForm($contest->id, $contest->contest_entry_form); ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t\t\t<!-- Contest contact -->\n\t\t\t\t\t\t\t<?php if ($contest->contest_contact != ''): ?>\n\t\t\t\t\t\t\t\t<div id=\"contest-contact\">\n\t\t\t\t\t\t\t\t\t<?php echo $contest->contest_contact; ?>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t</div> <!-- end contest-tabs -->\n\t\t\t\t\t</div> <!-- end wppc-main -->\n\n\t\t\t\t\t<div id=\"wppc-sidebar\">\n\t\t\t\t\t\t<?php /* Follow us */ setFollowUs(); ?>\n\t\t\t\t\t\t<br/><br/>\n\t\t\t\t\t\t<?php echo $contest->contest_sidebar ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<?php\n\t\t\t}", "function facebook_shortcode() {\n\techo get_option('feed_options_fbcode');\n}", "function shortcode_template( $atts, $content = null ) {\r\n\t\t\tglobal $mpc_ma_options;\r\n\t\t\tif ( ! defined( 'MPC_MASSIVE_FULL' ) || ( defined( 'MPC_MASSIVE_FULL' ) && $mpc_ma_options[ 'single_js_css' ] !== '1' ) ) {\r\n\t\t\t\t$this->enqueue_shortcode_scripts();\r\n\t\t\t}\r\n\r\n\t\t\t$atts = shortcode_atts( array(\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'preset' => '',\r\n\t\t\t\t'content_preset' => '',\r\n\t\t\t\t'style' => 'horizontal',\r\n\t\t\t\t'space' => '',\r\n\t\t\t\t'fullwidth' => '',\r\n\r\n\t\t\t\t'padding_css' => '',\r\n\t\t\t\t'margin_css' => '',\r\n\t\t\t\t'border_css' => '',\r\n\r\n\t\t\t\t'icon_type' => 'icon',\r\n\t\t\t\t'icon' => '',\r\n\t\t\t\t'icon_character' => '',\r\n\t\t\t\t'icon_image' => '',\r\n\t\t\t\t'icon_image_size' => 'thumbnail',\r\n\t\t\t\t'icon_preset' => '',\r\n\t\t\t\t'icon_color' => '#333333',\r\n\t\t\t\t'icon_size' => '',\r\n\r\n\t\t\t\t'icon_margin_css' => '',\r\n\t\t\t\t'icon_animation' => 'none',\r\n\r\n\t\t\t\t'background_type' => 'color',\r\n\t\t\t\t'background_color' => '',\r\n\t\t\t\t'background_image' => '',\r\n\t\t\t\t'background_image_size' => 'large',\r\n\t\t\t\t'background_repeat' => 'no-repeat',\r\n\t\t\t\t'background_size' => 'initial',\r\n\t\t\t\t'background_position' => 'middle-center',\r\n\t\t\t\t'background_gradient' => '#83bae3||#80e0d4||0;100||180||linear',\r\n\r\n\t\t\t\t'animation_in_type' => 'none',\r\n\t\t\t\t'animation_in_duration' => '300',\r\n\t\t\t\t'animation_in_delay' => '0',\r\n\t\t\t\t'animation_in_offset' => '100',\r\n\r\n\t\t\t\t'animation_loop_type' => 'none',\r\n\t\t\t\t'animation_loop_duration' => '1000',\r\n\t\t\t\t'animation_loop_delay' => '1000',\r\n\t\t\t\t'animation_loop_hover' => '',\r\n\t\t\t), $atts );\r\n\r\n\t\t\t$styles = $this->shortcode_styles( $atts );\r\n\t\t\t$css_id = $styles[ 'id' ];\r\n\r\n\t\t\t$icon = MPC_Parser::icon( $atts );\r\n\t\t\t$animation = MPC_Parser::animation( $atts );\r\n\r\n\t\t\t$classes = $animation != '' ? ' mpc-animation' : '';\r\n\t\t\t$classes .= $atts[ 'fullwidth' ] != '' ? ' mpc-fullwidth' : '';\r\n\t\t\t$classes .= $atts[ 'style' ] == 'horizontal' ? ' mpc-style--horizontal' : ' mpc-style--vertical';\r\n\t\t\t$classes .= ' ' . esc_attr( $atts[ 'class' ] );\r\n\r\n\t\t\t$separator_classes = $icon[ 'class' ] == '' && $icon[ 'content' ] == '' ? ' mpc-empty' : '';\r\n\r\n\t\t\tglobal $mpc_button_separator;\r\n\t\t\t$mpc_button_separator = '<span class=\"mpc-button-separator-wrap\"><span class=\"mpc-button-separator-box\"><span class=\"mpc-button-separator ' . $icon[ 'class' ] . $separator_classes . '\">' . $icon[ 'content' ] . '</span></span></span>';\r\n\r\n\t\t\t$return = '<div id=\"' . $css_id . '\" class=\"mpc-button-set mpc-init' . $classes . '\"' . $animation . ( $atts[ 'icon_animation' ] != 'none' ? ' data-animation=\"' . esc_attr( $atts[ 'icon_animation' ] ) . '\"' : '' ) . '>';\r\n\t\t\t\t$return .= do_shortcode( $content );\r\n\t\t\t$return .= '</div>';\r\n\r\n\t\t\t$mpc_button_separator = null;\r\n\r\n\t\t\tglobal $mpc_frontend;\r\n\t\t\tif ( $mpc_frontend ) {\r\n\t\t\t\t$return .= '<style>' . $styles[ 'css' ] . '</style>';\r\n\t\t\t}\r\n\r\n\t\t\treturn $return;\r\n\t\t}", "public static function showWebformShortCode($atts)\n\t{\n\t\t$params = shortcode_atts(array(\n\t\t\t'url' => 'null',\n\t\t\t'css' => 'on',\n\t\t\t'center' => 'off',\n\t\t\t'center_margin' => '200',\n\t\t\t'variant' => ''\n\t\t), $atts);\n\n\t\t$div_start = $div_end = '';\n\t\tif ($params['center'] == 'on')\n\t\t{\n\t\t\t$div_start = '<div style=\"margin-left: auto; margin-right: auto; width: ' . $params['center_margin'] . 'px;\">';\n\t\t\t$div_end = '</div>';\n\t\t}\n\n\t\t$css = ($params['css'] == \"off\") ? htmlspecialchars(\"&css=1\") : \"\";\n\n\t\t$variant_maps = array('A' => 0, 'B' => 1, 'C' => 2, 'D' => 3, 'E' => 4, 'F' => 5, 'G' => 6, 'H' => 7);\n\t\t$params['variant'] = strtoupper($params['variant']);\n\t\t$variant = (in_array($params['variant'], array_keys($variant_maps))) ? htmlspecialchars(\"&v=\" . $variant_maps[$params['variant']]) : \"\";\n\n\t\t$params['url'] = self::replaceHttpsToHttpIfSslOn($params['url']);\n\n\t\treturn $div_start . '<script type=\"text/javascript\" src=\"' . $params['url'] . $css . $variant . '\"></script>' . $div_end;\n\t}", "public static function get_params() {\n\n\t\t\t$params = array(\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Shortcode', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content',\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Bottom Margin', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'bottom_margin',\n\t\t\t\t\t'value' => vcex_margin_choices(),\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_visibility',\n\t\t\t\t\t'heading' => esc_html__( 'Visibility', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'visibility',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Extra class name', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'el_class',\n\t\t\t\t\t'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tvcex_vc_map_add_css_animation(),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Animation Duration', 'total'),\n\t\t\t\t\t'param_name' => 'animation_duration',\n\t\t\t\t\t'description' => esc_html__( 'Enter your custom time in seconds (decimals allowed).', 'total'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Animation Delay', 'total'),\n\t\t\t\t\t'param_name' => 'animation_delay',\n\t\t\t\t\t'description' => esc_html__( 'Enter your custom time in seconds (decimals allowed).', 'total'),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\treturn apply_filters( 'vcex_shortcode_params', $params, 'vcex_shortcode' );\n\n\t\t}", "public function provide_newsletter_options() {\n\t\twp_add_inline_script(\n\t\t\t'civil-first-fleet-admin-js',\n\t\t\tsprintf(\n\t\t\t\t'var civilNewsletterOptions = %1$s;',\n\t\t\t\twp_json_encode( $this->get_newsletter_options_for_gutenberg() )\n\t\t\t)\n\t\t);\n\t}", "public function display_shortcodes_target_dialog() {\n\t\tif (\n\t\t\tself::$can_show_admin_bar_item\n\t\t\t&& self::$target_dialog_added === false\n\t\t) {\n\t\t\t?>\n\t\t\t<div class=\"toolset-dialog-container\" style=\"display:none\">\n\t\t\t\t<div id=\"js-toolset-shortcode-generator-target-dialog\" class=\"toolset-shortcode-gui-dialog-container js-toolset-shortcode-generator-target-dialog\">\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<?php echo __( 'This is the generated shortcode, based on the settings that you have selected:', 'wpv-views' ); ?>\n\t\t\t\t\t</p>\n\t\t\t\t\t<textarea id=\"js-toolset-shortcode-generator-target\" readonly=\"readonly\" style=\"width:100%;resize:none;box-sizing:border-box;font-family:monospace;display:block;padding:5px;background-color:#ededed;border: 1px solid #ccc !important;box-shadow: none !important;\"></textarea>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<?php echo __( 'You can now copy and paste this shortcode anywhere you want.', 'wpv-views' ); ?>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<?php\n\t\t\tself::$target_dialog_added = true;\n\t\t}\n\n\t}", "public function vcMap() {\n vc_map(array(\n 'name' => esc_html__('Audio Playlist', 'mixtapewp'),\n 'base' => $this->base,\n 'category' => esc_html__('by SELECT', 'mixtapewp'),\n 'icon' => 'icon-wpb-audio-playlist extended-custom-icon',\n 'allowed_container_element' => 'vc_row',\n 'params' => array(\n array(\n 'type' => 'dropdown',\n 'heading' => esc_html__('Playlist Type', 'mixtapewp'),\n 'param_name' => 'playlist_type',\n 'value' => array(\n esc_html__('SoundCloud', 'mixtapewp') => 'sound-cloud',\n esc_html__('Spotify', 'mixtapewp') => 'spotify',\n esc_html__('Bandcamp', 'mixtapewp') => 'bandcamp'\n ),\n 'admin_label' => true\n ),\n array(\n 'type' => 'textfield',\n 'heading' => esc_html__('Playlist URL', 'mixtapewp'),\n 'param_name' => 'playlist_url',\n 'admin_label' => true,\n 'dependency' => array('element' => 'playlist_type','value'=>'spotify')\n ),\n array(\n 'type' => 'dropdown',\n 'heading' => esc_html__('Playlist Skin', 'mixtapewp'),\n 'param_name' => 'playlist_skin',\n 'value' => array(\n esc_html__('Dark', 'mixtapewp') => 'dark',\n esc_html__('Light', 'mixtapewp') => 'light'\n ),\n 'admin_label' => true,\n 'dependency' => array('element' => 'playlist_type','value'=>array('spotify','bandcamp'))\n ),\n\n array(\n 'type' => 'textfield',\n 'heading' => esc_html__('Playlist ID', 'mixtapewp'),\n 'param_name' => 'playlist_id',\n 'admin_label' => true,\n 'dependency' => array('element' => 'playlist_type','value'=>array('sound-cloud','bandcamp'))\n ),\n array(\n 'type' => 'colorpicker',\n 'heading' => esc_html__('Playlist Color', 'mixtapewp'),\n 'param_name' => 'playlist_color',\n 'admin_label' => true,\n 'dependency' => array('element' => 'playlist_type','value'=>array('sound-cloud','bandcamp'))\n )\n ), \n ));\n }", "public function vc_map_shortcode() {\n\t\t\tvc_map( array(\n\t\t\t\t'name' => _x( 'Opening Time', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'base' => $this->shortcode_name(),\n\t\t\t\t'category' => _x( 'Content', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'icon' => get_template_directory_uri() . '/vendor/proteusthemes/visual-composer-elements/assets/images/pt.svg',\n\t\t\t\t'params' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'holder' => 'div',\n\t\t\t\t\t\t'heading' => _x( 'Title', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'title',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'lined_textarea',\n\t\t\t\t\t\t'heading' => _x( 'Days and Hours', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'description' => _x( 'Enter values for opening times - <em>opened</em> or <em>closed</em>|<em>opening time</em>|<em>closing time</em>. Divide value sets with linebreak \"Enter\" (Example: opened|8:00|16:00).', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'days_hours',\n\t\t\t\t\t\t'rows' => '7',\n\t\t\t\t\t\t'value' => 'opened|8:00|16:00,opened|11:00|19:00,opened|8:00|16:00,closed,opened|11:00|19:00,closed,closed',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'Separator between hours', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'separator',\n\t\t\t\t\t\t'value' => ' - ',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'Text used for closed days', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'closed',\n\t\t\t\t\t\t'value' => _x( 'CLOSED', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'heading' => _x( 'Text below the timetable for additional info (for example lunch time)', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'text_below',\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t) );\n\t\t}", "public function create_options_page() {\n print '<div class=\"wrap\">';\n screen_icon();\n printf( '<h2>%s</h2>', __( 'Instagram Settings', 'bii-instagram' ) );\n print '<form method=\"post\" action=\"options.php\">';\n settings_fields( 'bii_instagram' );\n do_settings_sections( 'bii-instagram' );\n submit_button();\n print '</form>';\n print '</div>';\n }", "function sh_custom_settings_options_callback(){\n echo 'Add your custom information';\n}", "function wpbs_echo_option()\n {\n include wpbs_advs_plugin_dir . 'admin/view/adminLayout.php';\n }", "function handleShortcode($atts = [], $content = null, $tag = '') {\n\n if (is_admin()){\n return;\n }\n \n $vueRootUrl = plugin_dir_url( __FILE__ ) . 'dist';\n $vueFileRoot = plugin_dir_path( __FILE__) . 'dist';\n\n $jsCore = ['bootstrap.min.js', 'jquery-3.3.1.min.js', 'popper.min.js'];\n\n // Find the build files\n $jsMatches = glob(plugin_dir_path( __FILE__) . 'dist/js/*.*.js');\n $cssMatches = glob(plugin_dir_path( __FILE__) . 'dist/css/*.*.css');\n\n // Bring in core dependencies first\n\n $isLocal = true;\n\n if ($isLocal){\n\n //wp_deregister_script('jquery');\n\n //wp_register_script('actiontracker_vuecore_jquery', $vueRootUrl . '/js/jquery-3.3.1.min.js', false, null, true);\n\n wp_register_script('actiontracker_vuecore_popper', $vueRootUrl . '/js/popper.min.js', false, null, true);\n wp_register_script('actiontracker_vuecore_bootstrap4', $vueRootUrl . '/js/bootstrap.min.js', false, null, true);\n \n foreach ($jsMatches as $i => $jsItem) {\n if (!in_array(basename($jsItem), $jsCore)){\n $url = $vueRootUrl . '/js/' . basename($jsItem);\n $name = \"actiontracker_vuejs_\".$i;\n if (!wp_script_is($name, 'enqueued')){\n //print_r('BUILD JS: ' . $jsItem . '<br/>');\n wp_register_script($name, $url);\n wp_enqueue_script($name); \n }\n }\n }\n \n foreach ($cssMatches as $i => $cssItem) { \n $url = $vueRootUrl . '/css/' . basename($cssItem);\n $name = \"actiontracker_vuecss_\".$i;\n if (!wp_script_is($name, 'enqueued')){\n //print_r('CSS JS: ' . $i . '<br/>');\n wp_register_style($name, $url);\n wp_enqueue_style($name); \n }\n \n }\n\n }\n else {\n\n wp_register_script('actiontracker_vuecore_popper', 'http://app.actiontracker.org/js/popper.min.js', false, null, true);\n wp_register_script('actiontracker_vuecore_bootstrap4', 'http://app.actiontracker.org/js/bootstrap.min.js', false, null, true);\n \n //wp_enqueue_script('actiontracker_vuecore_jquery');\n wp_enqueue_script('actiontracker_vuecore_popper');\n wp_enqueue_script('actiontracker_vuecore_bootstrap4');\n \n }\n\n\n \n \n\n /*\n\n */\n \n // Handle short code params\n\n if (array_key_exists('view', $atts)) {\n $str = \"<div class='actionTrackerVuePlugin' view='\".$atts['view'].\"'>You need Javascript for this feature, sorry.</div>\"; \n }\n else {\n $str = \"<div class='actionTrackerVuePlugin' view='all'>You need Javascript for this feature, sorry.</div>\"; \n }\n\n return $str;\n }", "function wpaddons_shortcode( $atts ) {\n\n\t// Register and enqueues styles\n\tadd_action( 'wp_enqueue_scripts', array( 'WP_Addons_IO', 'enqueue_styles' ) );\n\n\t$atts = shortcode_atts(\n\t\tarray(\n\t\t\t'debug_mode' => 0,\n\t\t\t'plugin' => '',\n\t\t\t'view' => 'cover-grid-third',\n\t\t),\n\t\t$atts,\n\t\t'wpaddons'\n\t);\n\n\t// Load wpAddons SDK\n\t//require_once plugin_dir_path( __FILE__ ) . '/wpaddons-io-sdk/wpaddons-io-sdk.php';\n\n\t// Set addon parameters\n\t$plugin_data = array(\n\t\t'parant_plugin_slug' => $atts['plugin'],\n\t\t'view' => plugin_dir_path( __FILE__ ) . 'wpaddons-io-sdk/view/' . $atts['view'] . '.php',\n\t);\n\n\t// Initiate addons\n\tnew WP_Addons_IO( $plugin_data );\n\n}", "public function __construct() {\n\n global $canvys;\n\n // Allowed background image settings\n $overlay_opacity_options = array(\n 'none' => __( 'None, do not display an overlay color', 'canvys' ),\n );\n\n for ( $i=10; $i<=90; $i+=10 ) {\n $overlay_opacity_options[$i] = $i . '%';\n }\n\n $min_height_options = array( 'none' => __( 'None, let the content dictate the height', 'canvys' ) );\n for ($i=5;$i<=100;$i+=5 ) {\n $min_height_options[$i] = $i.'%';\n }\n\n $this->config = array(\n\n // Handle will be used to use this shortcode\n 'handle' => 'cv_section',\n\n // Whether or not this is a shortcode composer element\n 'composer_element' => false,\n\n // Whether or not this is a template builder element\n 'builder_element' => true,\n\n // Used by the template builder to determine where module can be dropped\n 'drop_target' => 0,\n\n // Used by the template builder to determine where module can have other\n // modules dropped inside of it\n 'drop_zone' => 1,\n\n // Title will be used to identify this shortcode\n 'title' => __( 'Content Section', 'canvys' ),\n\n // Icon will be used to represent this shortcode in composer/builder\n // List of available icons can be found in icons.json\n 'icon' => 'progress-0',\n\n // Whether or not shortcode is self closing\n 'self_closing' => false,\n\n // If shortcode is not self closing, specify its default content\n 'default_content' => null,\n\n // Specify whether or not content is directly editable\n 'content_editor' => false,\n\n // Specify whether or not the content is composed of another shortcode\n 'content_element' => false,\n\n // Provide an explanation of what this shortcode does\n 'explanation' => __( 'Full screen content sections are the foundation for your pages content, they provide the background images, color schemes, and the perfect way to divide the content of your page and add some organization. Content sections can contain any number or row modules which can be used to further organize your content.', 'canvys' ),\n\n // Array of shortcode settings and their respective attributes\n 'attributes' => array(\n\n new CV_Shortcode_Text_Control( 'id', array(\n 'title' => __( 'Section ID', 'canvys' ),\n 'description' => __( 'Set the ID attribute for this section, this allows you to apply unique styles to this section with CSS or to link to this section in the creation of a one page website.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'color_scheme', array(\n 'title' => __( 'Color Scheme', 'canvys' ),\n 'description' => __( 'This will control the control scheme for the section itself and all of the modules placed inside of it. These different color schemes can be edited by navigating to Appearance > Color Scheme.', 'canvys' ),\n 'default' => 'main',\n 'options' => array(\n 'main' => __( 'Main Content', 'canvys' ),\n 'alternate' => __( 'Alternate Content', 'canvys' ),\n 'header' => __( 'Header', 'canvys' ),\n 'footer' => __( 'Footer', 'canvys' ),\n 'socket' => __( 'Socket', 'canvys' ),\n 'white' => __( 'All White Content (For sections with dark backgrounds)', 'canvys' ),\n 'black' => __( 'All Black Content (For sections with light backgrounds)', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_source', array(\n 'title' => __( 'Background Source', 'canvys' ),\n 'description' => __( 'Specify how the background of this section should be dislayed.', 'canvys' ),\n 'default' => 'default',\n 'options' => array(\n 'default' => __( 'Default background', 'canvys' ),\n 'color' => __( 'Custom color', 'canvys' ),\n 'preset' => __( 'Preset pattern', 'canvys' ),\n 'image' => __( 'Custom image', 'canvys' ),\n 'video' => __( 'HTML5 video', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_BG_Pattern_Control( 'bg_preset_pattern', array(\n 'title' => __( 'Preset Patterns', 'canvys' ),\n 'description' => __( 'Select a preset pattern to use as the background for this section.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Color_Control( 'bg_color', array(\n 'title' => __( 'Background Color', 'canvys' ),\n 'description' => __( 'Specify a custom background color to be used for this section, leave this blank to use the default background color.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Image_Control( 'bg_image', array(\n 'title' => __( 'Background Image', 'canvys' ),\n 'description' => __( 'The background image for this section. This will be displayed on top of the background color.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_style', array(\n 'title' => __( 'Background Image Style', 'canvys' ),\n 'description' => __( 'Whether or not the background image should be tiled, or cover the section completely. Tiled will display the image at its actual size but it will repeat to fill the section. Cover will (potentially) increase or decrease either the width or height of the image to ensure that it will cover the section, please note that the image will be scaled proportionately.', 'canvys' ),\n 'default' => 'cover',\n 'options' => array(\n 'cover' => __( 'Cover', 'canvys' ),\n 'tile' => __( 'Tiled', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_attachment', array(\n 'title' => __( 'Background Image Attachment', 'canvys' ),\n 'description' => __( 'This will dictate how the image should behave as the page is scrolled. Scroll will allow the background image to scroll normally with the rst of the page, while fixed will leave the image fixed in place as the page scrolles for what is commonly reffered to as a \"parrallax\" effect.', 'canvys' ),\n 'default' => 'scroll',\n 'options' => array(\n 'scroll' => __( 'Scroll', 'canvys' ),\n 'fixed' => __( 'Fixed', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Image_Control( 'bg_video_fallback', array(\n 'title' => __( 'HTML5 Video Background Fallback Image', 'canvys' ),\n 'description' => __( 'Select an image to be used as the background on devices that dont fully support HTML5 video elements. Please note that this inlcudes nearly all mobile devices and tablets.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_File_Control( 'bg_video_webm', array(\n 'title' => __( 'HTML5 Video Background .webm file', 'canvys' ),\n 'description' => __( 'Specify the webm file to use for the video background.', 'canvys' ),\n 'file_type' => 'video',\n ) ),\n\n new CV_Shortcode_File_Control( 'bg_video_ogv', array(\n 'title' => __( 'HTML5 Video Background .ogv file', 'canvys' ),\n 'description' => __( 'Specify the ogv file to use for the video background.', 'canvys' ),\n 'file_type' => 'video',\n ) ),\n\n new CV_Shortcode_File_Control( 'bg_video_mp4', array(\n 'title' => __( 'HTML5 Video Background .mp4 file', 'canvys' ),\n 'description' => __( 'Specify the mp4 file to use for the video background.', 'canvys' ),\n 'file_type' => 'video',\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_scrolling', array(\n 'title' => __( 'Scrolling Background Direction', 'canvys' ),\n 'description' => __( 'Enable scrolling background effect for this section. Keep in mind this works best with background images that tile perfectly.', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No scrolling effect', 'canvys' ),\n 'top' => array(\n 'label' => __( 'Upwards', 'canvys' ),\n 'options' => array(\n 'up-left' => __( 'Up Left', 'canvys' ),\n 'up' => __( 'Up', 'canvys' ),\n 'up-right' => __( 'Up Right', 'canvys' ),\n ),\n ),\n 'middle' => array(\n 'label' => __( 'Horizontal', 'canvys' ),\n 'options' => array(\n 'left' => __( 'Left', 'canvys' ),\n 'right' => __( 'Right', 'canvys' ),\n ),\n ),\n 'bottom' => array(\n 'label' => __( 'Downwards', 'canvys' ),\n 'options' => array(\n 'down-left' => __( 'Down Left', 'canvys' ),\n 'down' => __( 'Down', 'canvys' ),\n 'down-right' => __( 'Down Right', 'canvys' ),\n ),\n ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'bg_scrolling_speed', array(\n 'title' => __( 'Scrolling Background Speed', 'canvys' ),\n 'description' => __( 'Specify how quickly the background should scroll.', 'canvys' ),\n 'default' => 'normal',\n 'options' => array(\n 'slow' => __( 'Slow', 'canvys' ),\n 'normal' => __( 'Normal', 'canvys' ),\n 'fast' => __( 'Fast', 'canvys' ),\n 'very-fast' => __( 'very Fast', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'overlay_opacity', array(\n 'title' => __( 'Background Overlay Opacity', 'canvys' ),\n 'description' => __( 'Specify whether or not a color should be overlayed on top of the section background, and at what opacity.', 'canvys' ),\n 'default' => 'none',\n 'options' => $overlay_opacity_options,\n ) ),\n\n new CV_Shortcode_Color_Control( 'overlay_color', array(\n 'title' => __( 'Background Overlay Color', 'canvys' ),\n 'description' => __( 'Specify a color to be overlayed on top of the section background.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'sidebar_layout', array(\n 'title' => __( 'Sidebar Layout', 'canvys' ),\n 'description' => __( 'The layout of this section, if you use either left or right sidebar you will be able to shoose which sidebar is displayed.', 'canvys' ),\n 'default' => 'no-sidebar',\n 'options' => array(\n 'no-sidebar' => __( 'No sidebar', 'canvys' ),\n 'sidebar-right' => __( 'Right Sidebar', 'canvys' ),\n 'sidebar-left' => __( 'Left Sidebar', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Sidebar_Select_Control( 'sidebar', array(\n 'title' => __( 'Sidebar', 'canvys' ),\n 'description' => __( 'The sidebar to be displayed.', 'canvys' ),\n 'default' => 'sidebar',\n ) ),\n\n new CV_Shortcode_Select_Control( 'parallax', array(\n 'title' => __( 'Enable Parallax', 'canvys' ),\n 'description' => __( 'Enable parallax scrolling effect for this sections content', 'canvys' ),\n 'default' => 'false',\n 'options' => array(\n 'false' => __( 'No parallax effect', 'canvys' ),\n 'true' => __( 'Yes, enable parallax scrolling', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'min_height', array(\n 'title' => __( 'Minimum Height', 'canvys' ),\n 'description' => __( 'The mimimun height of the section (if specified) will be based on a percentage of total screen height.', 'canvys' ),\n 'default' => 'none',\n 'options' => $min_height_options,\n ) ),\n\n new CV_Shortcode_Select_Control( 'stretched', array(\n 'title' => __( 'Stretched Content', 'canvys' ),\n 'description' => __( 'Allow the content of this section to stretch to the size of the layout.', 'canvys' ),\n 'default' => 'false',\n 'options' => array(\n 'false' => __( 'No, do not enable stretched content', 'canvys' ),\n 'free' => __( 'yes, stretched with side padding', 'canvys' ),\n 'stretched' => __( 'yes, stretched without side padding', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'border_top', array(\n 'title' => __( 'Top Border', 'canvys' ),\n 'description' => __( 'Specify how the top border should be styled', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No special styling', 'canvys' ),\n 'border' => __( 'Simple line border', 'canvys' ),\n 'shadow' => __( 'Faint inner shadow', 'canvys' ),\n 'shadow-border' => __( 'Line border & shadow', 'canvys' ),\n 'arrow' => __( 'Arrow pointing up', 'canvys' ),\n 'arrow-border' => __( 'Arrow pointing up & border', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'border_bottom', array(\n 'title' => __( 'Bottom Border', 'canvys' ),\n 'description' => __( 'Specify how the bottom border should be styled', 'canvys' ),\n 'default' => 'none',\n 'options' => array(\n 'none' => __( 'No special styling', 'canvys' ),\n 'border' => __( 'Simple line border', 'canvys' ),\n 'shadow' => __( 'Faint inner shadow', 'canvys' ),\n 'shadow-border' => __( 'Line border & shadow', 'canvys' ),\n 'arrow' => __( 'Arrow pointing down', 'canvys' ),\n 'arrow-border' => __( 'Arrow pointing down & border', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'padding_top', array(\n 'title' => __( 'Top Padding', 'canvys' ),\n 'description' => __( 'The empty space above the content in this section.', 'canvys' ),\n 'default' => 'normal',\n 'options' => array(\n 'none' => __( 'None', 'canvys' ),\n 'less' => __( 'Less', 'canvys' ),\n 'normal' => __( 'Normal', 'canvys' ),\n 'more' => __( 'More', 'canvys' ),\n 'much-more' => __( 'Much More', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'padding_bottom', array(\n 'title' => __( 'Bottom Padding', 'canvys' ),\n 'description' => __( 'The empty space below the content in this section.', 'canvys' ),\n 'default' => 'normal',\n 'options' => array(\n 'none' => __( 'None', 'canvys' ),\n 'less' => __( 'Less', 'canvys' ),\n 'normal' => __( 'Normal', 'canvys' ),\n 'more' => __( 'More', 'canvys' ),\n 'much-more' => __( 'Much More', 'canvys' ),\n ),\n ) ),\n\n new CV_Shortcode_Select_Control( 'visibility', array(\n 'title' => __( 'Visibility', 'canvys' ),\n 'description' => __( 'Which devices this section should be visible on. This is great for optimizing your website for all devices. Please note that this setting is not applicable when full page content sliding is active.', 'canvys' ),\n 'default' => 'all',\n 'options' => $canvys['visibility_options'],\n ) ),\n\n new CV_Shortcode_Dev_Control( 'forced_height', array(\n 'default' => null,\n ) ),\n\n new CV_Shortcode_Dev_Control( 'class', array(\n 'default' => null,\n ) ),\n\n ),\n );\n }", "function wpmantis_shortcode($atts)\n{\n\t//Get options\n\textract(get_option('wp_mantis_options'));\n\t\n\t//Select Mode\n\tif($atts[0] == 'bugs')\n\t{\n\t\t//Get Attributes\n\t\textract(shortcode_atts(array('proj_id' => 0, 'exclude_stat' => '', 'limit' => 1000000, 'include_stat' => ''), $atts));\n\t\t\n\t\t//Handling of invalid combinations\n\t\tif($proj_id == 0)\n\t\t\treturn __('Error: No project ID specified!', 'wp-mantis');\n\t\t\n\t\tif($exclude_stat != '' && $include_stat != '')\n\t\t\treturn __('Error: Can not specify both include and exclude!', 'wp-mantis');\n\t\t\t\n\t\t$exclude = false; $include = false; //outer scope\n\t\tif($exclude_stat != '')\n\t\t{\n\t\t\t$exclude_stat = explode(',', $exclude_stat);\n\t\t\t$exclude = true;\n\t\t\t$include = false;\n\t\t}\n\t\telse if($include_stat != '')\n\t\t{\n\t\t\t$include_stat = explode(',', $include_stat);\n\t\t\t$exclude = false;\n\t\t\t$include = true;\n\t\t}\n\t\t\n\t\t$client = new SoapClient($mantis_soap_url);\n\t\ttry\n\t\t{\n\t\t\t$results = $client->mc_project_get_issues($mantis_user, $mantis_password, $proj_id, 1, $limit);\n\t\t\t\n\t\t\t$aa_tv = $aa_is = $aa_ws = $aa_vobb = $aa_gen = 0;\n\t\t\t\n\t\t\t//$output = '<table id=\"mantis_bugs\" border=\"1\" style=\"border-collapse:collapse\"><tr><td>' . __('ID #', 'wp-mantis') . '</td><td>' . __('Status', 'wp-mantis') . '</td><td>' . __('Category', 'wp-mantis') . '</td><td>' . __('Details', 'wp-mantis') . '</td></tr>';\n\t\t\t$output_tv = '<table id=\"mantis_bugs\" border=\"1\" style=\"border-collapse:collapse\"><tr style=\"font-weight:bold\"><td>#</td><td>' . __('Issue', 'wp-mantis') . '</td><td>' . __('Status', 'wp-mantis') . '</td></tr>';\n\t\t\t$output_ws = '<table id=\"mantis_bugs\" border=\"1\" style=\"border-collapse:collapse\"><tr style=\"font-weight:bold\"><td>#</td><td>' . __('Issue', 'wp-mantis') . '</td><td>' . __('Status', 'wp-mantis') . '</td></tr>';\n\t\t\t$output_is = '<table id=\"mantis_bugs\" border=\"1\" style=\"border-collapse:collapse\"><tr style=\"font-weight:bold\"><td>#</td><td>' . __('Issue', 'wp-mantis') . '</td><td>' . __('Status', 'wp-mantis') . '</td></tr>';\n\t\t\t$output_vobb = '<table id=\"mantis_bugs\" border=\"1\" style=\"border-collapse:collapse\"><tr style=\"font-weight:bold\"><td>#</td><td>' . __('Issue', 'wp-mantis') . '</td><td>' . __('Status', 'wp-mantis') . '</td></tr>';\n\t\t\t$output_gen = '<table id=\"mantis_bugs\" border=\"1\" style=\"border-collapse:collapse\"><tr style=\"font-weight:bold\"><td>#</td><td>' . __('Category', 'wp-mantis') . '</td><td>' . __('Issue', 'wp-mantis') . '</td><td>' . __('Status', 'wp-mantis') . '</td></tr>';\n\t\t\t\n\t\t\tforeach ($results as $result)\n\t\t\t{\n\t\t\t\t\t$id = $result->id;\n\t\t\t\t\t$title = $result->summary;\n\t\t\t\t\t$category = $result->category;\n\t\t\t\t\t$b_status = $result->status->id;\n\t\t\t\t\t$b_status_name = $mantis_statuses[$b_status];\n\t\t\t\t\t$description = $result->description;\n\t\t\t\t\t//$description = wpmantis_shorten_text($description, $mantis_max_desc_lenght);\n\t\t\t\t\t$description = custom_shorten_text($description, 11);\n\t\t\t\t\t\n\t\t\t\t\tif($exclude && in_array($b_status, $exclude_stat))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if ($include && !in_array($b_status, $include_stat))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t//$output .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\">$id</a></td><td>$b_status_name</td><td>$category</td><td><b>$title</b><br />$description</td></tr>\";\n\t\t\t\t\t\n\t\t\t\t\tswitch ($category) {\n\t\t\t\t\t\tcase \"IPTV\":\n\t\t\t\t\t\t\t$aa_tv++;\n\t\t\t\t\t\t\t$output_tv .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td>$aa_tv</td><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\"><b>$title</b></a><br />$description</td><td>$b_status_name</td></tr>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"Internet\":\n\t\t\t\t\t\t\t$aa_is++;\n\t\t\t\t\t\t\t$output_is .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td>$aa_is</td><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\"><b>$title</b></a><br />$description</td><td>$b_status_name</td></tr>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"Wholesales\":\n\t\t\t\t\t\t\t$aa_ws++;\n\t\t\t\t\t\t\t$output_ws .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td>$aa_ws</td><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\"><b>$title</b></a><br />$description</td><td>$b_status_name</td></tr>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"VoBB\":\n\t\t\t\t\t\t\t$aa_vobb++;\n\t\t\t\t\t\t\t$output_vobb .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td>$aa_vobb</td><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\"><b>$title</b></a><br />$description</td><td>$b_status_name</td></tr>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$aa_gen++;\n\t\t\t\t\t\t\t$output_gen .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td>$aa_gen</td><td>$category</td><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\"><b>$title</b></a><br />$description</td><td>$b_status_name</td></tr>\";\n\t\t\t\t\t}\n\t\t\t\t\t//$output .= \"<tr style=\\\"background: $mantis_colors[$b_status];\\\"><td>$category</td><td><a href=\\\"{$mantis_base_url}view.php?id=$id\\\" target=\\\"_new\\\"><b>$title</b></a><br />$description</td><td>$b_status_name</td></tr>\";\n\t\t\t}\n\n\t\t\t//Close the table\n\t\t\t$output_tv .= '</table>';\n\t\t\t$output_is .= '</table>';\n\t\t\t$output_ws .= '</table>';\n\t\t\t$output_vobb .= '</table>';\n\t\t\t$output_gen .= '</table>';\n\t\t\t\n\t\t\t//Add pagination stuff\n\t\t\t/*if($mantis_enable_pagination)\n\t\t\t{\n\t\t\t\t$output .= '<div id=\"mantis_navigation\"></div>';\n\t\t\t\t$output .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\t\tvar pager = new Pager('mantis_bugs', $mantis_bugs_per_page);\n\t\t\t\t\t\t\tpager.init(); \n\t\t\t\t\t\t\tpager.showPageNav('pager', 'mantis_navigation', '\" . __('Prev', 'wp-mantis') . \"', '\" . __('Next', 'wp-mantis') . \"'); \n\t\t\t\t\t\t\tpager.showPage(1);</script>\";\n\t\t\t}*/\n\t\t\t\n\t\t\tif($mantis_enable_pagination)\n\t\t\t{\n\t\t\t\t$output_tv .= '<div id=\"mantis_navigation_tv\"></div>';\n\t\t\t\t$output_tv .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\t\tvar pager_tv = new Pager('mantis_bugs', $mantis_bugs_per_page);\n\t\t\t\t\t\t\tpager_tv.init(); \n\t\t\t\t\t\t\tpager_tv.showPageNav('pager_tv', 'mantis_navigation_tv', '\" . __('Prev', 'wp-mantis') . \"', '\" . __('Next', 'wp-mantis') . \"'); \n\t\t\t\t\t\t\tpager_tv.showPage(1);</script>\";\n\t\t\t\t\t\t\t\n\t\t\t\t$output_is .= '<div id=\"mantis_navigation_is\"></div>';\n\t\t\t\t$output_is .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\t\tvar pager_is = new Pager('mantis_bugs', $mantis_bugs_per_page);\n\t\t\t\t\t\t\tpager_is.init(); \n\t\t\t\t\t\t\tpager_is.showPageNav('pager_is', 'mantis_navigation_is', '\" . __('Prev', 'wp-mantis') . \"', '\" . __('Next', 'wp-mantis') . \"'); \n\t\t\t\t\t\t\tpager_is.showPage(1);</script>\";\n\t\t\t\t\t\t\t\n\t\t\t\t$output_ws .= '<div id=\"mantis_navigation_ws\"></div>';\n\t\t\t\t$output_ws .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\t\tvar pager_gen = new Pager('mantis_bugs', $mantis_bugs_per_page);\n\t\t\t\t\t\t\tpager_gen.init(); \n\t\t\t\t\t\t\tpager_gen.showPageNav('pager_gen', 'mantis_navigation_ws', '\" . __('Prev', 'wp-mantis') . \"', '\" . __('Next', 'wp-mantis') . \"'); \n\t\t\t\t\t\t\tpager_gen.showPage(1);</script>\";\n\t\t\t\t\t\t\t\n\t\t\t\t$output_vobb .= '<div id=\"mantis_navigation_vobb\"></div>';\n\t\t\t\t$output_vobb .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\t\tvar pager_vobb = new Pager('mantis_bugs', $mantis_bugs_per_page);\n\t\t\t\t\t\t\tpager_vobb.init(); \n\t\t\t\t\t\t\tpager_vobb.showPageNav('pager_vobb', 'mantis_navigation_vobb', '\" . __('Prev', 'wp-mantis') . \"', '\" . __('Next', 'wp-mantis') . \"'); \n\t\t\t\t\t\t\tpager_vobb.showPage(1);</script>\";\n\t\t\t\t\t\t\t\n\t\t\t\t$output_gen .= '<div id=\"mantis_navigation_gen\"></div>';\n\t\t\t\t$output_gen .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\t\tvar pager_gen = new Pager('mantis_bugs', $mantis_bugs_per_page);\n\t\t\t\t\t\t\tpager_gen.init(); \n\t\t\t\t\t\t\tpager_gen.showPageNav('pager_gen', 'mantis_navigation_gen', '\" . __('Prev', 'wp-mantis') . \"', '\" . __('Next', 'wp-mantis') . \"'); \n\t\t\t\t\t\t\tpager_gen.showPage(1);</script>\";\n\t\t\t}\n\t\t\t\n\t\t\t//Create output\n\t\t\t$output = \"\";\n\t\t\tif($aa_tv) {$output .= \"<strong>IPTV Issue List</strong><br />\".$output_tv.\"<br />\";}\n\t\t\tif($aa_is) {$output .= \"<strong>Internet Issue List</strong><br />\".$output_is.\"<br />\";}\n\t\t\tif($aa_ws) {$output .= \"<strong>Wholesales Issue List</strong><br />\".$output_ws.\"<br />\";}\n\t\t\tif($aa_vobb) {$output .= \"<strong>VoBB Issue List</strong><br />\".$output_vobb.\"<br />\";}\n\t\t\tif($aa_gen) {$output .= \"<strong>General Issue List</strong><br />\".$output_gen.\"<br />\";}\n\t\t\t//$output = \"<strong>IPTV Issue List</strong><br />\".$output_tv.\"<br /><strong>Internet Issue List</strong><br />\".$output_is.\"<br /><strong>Wholesales Issue List</strong><br />\".$output_ws.\"<br /><strong>VoBB Issue List</strong><br />\".$output_vobb.\"<br /><strong>General Issue List</strong><br />\".$output_gen.\"<br />\";\n\t\t}\n\t\tcatch(SoapFault $e)\n\t\t{\n\t\t\tif(current_user_can('manage_options')) //display full error message (witch includes the password!) only to the admin\n\t\t\t{\n\t\t\t\t_e('Note: This message is only displayed to admins, dont worry ;)', 'wp-mantis') . '<br /><br />'; //echo since we will produce a fatal error!\n\t\t\t\tthrow $e;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn sprintf(__('Fatal Exception while connecting to Mantis: %s', 'wp-mantis'), $e->getMessage());\n\t\t}\n\t\t\n\t\treturn $output;\n\t}\n\telse if($atts[0] == 'roadmap' || $atts[0] == 'changelog')\n\t{\n\t\textract(shortcode_atts(array('ver_id' => 0, 'proj_id' => 0, 'proj_name' => '', 'ver_name' => ''), $atts));\n\t\t//Handling of invalid combinations\n\t\tif($ver_id == 0 && $proj_id == 0 && $proj_name == '') //Easy: Noting specified, error.\n\t\t\treturn __('Error: No version/project ID or project name specified! See Readme for details.', 'wp-mantis');\n\t\t\n\t\tif($ver_id > 0 && $proj_id > 0) //Too much information: We could prefer one, but its better to throw an error.\n\t\t\treturn __('Error: Cannot specify both version and product ID!', 'wp-mantis');\n\t\t\t\n\t\tif($proj_name != '')\n\t\t{\n\t\t\tif($ver_id > 0)\n\t\t\t\treturn __('Error: Cannot use version ID with project name. See Readme for details.', 'wp-mantis');\n\t\t\t\t\n\t\t\tif($proj_id > 0)\n\t\t\t\treturn __('Error: Cannot specify both project name and ID', 'wp-mantis');\n\t\t\t//Version name is optional!\n\t\t}\n\t\t\n\t\t//Encode username and password, since they could contain an & (or other 'bad' chars)\n\t\t$mantis_user = urlencode($mantis_user);\n\t\t$mantis_password = urlencode($mantis_password);\n\t\t\n\t\t//Select the correct URL\n\t\t$http_body = \"username=$mantis_user&password=$mantis_password&perm_login=0&secure_session=1&return=\";\n\t\t$return_url = $atts[0] . '_page.php?';\n\t\t\n\t\t//no error checking here, because the code above will trigger an error on theese.\n\t\tif($ver_id > 0)\n\t\t\t$return_url .= 'version_id=' . $ver_id . '&';\n\t\t\n\t\tif($proj_id > 0)\n\t\t\t$return_url .= 'project_id=' . $proj_id . '&';\n\t\t\n\t\tif($ver_name != '')\n\t\t\t$return_url .= 'version=' . $ver_name . '&';\n\t\t\t\n\t\tif($proj_name != '')\n\t\t\t$return_url .= 'project=' . $proj_name . '&';\n\t\t\n\t\t$return_url = substr($return_url, 0, -1); //remove last &\n\t\t$http_body .= urlencode($return_url); //return url contains &\n\t\t\n\t\t$fetch_url = $mantis_base_url . 'login.php'; //The url of the login.php, wich will handle the redirecting stuff\n\t\t\n\t\t//snoopy is deprecated, but the HTTP API is buggy, so we suppress the Warning with the at.\n\t\t@require_once(ABSPATH . 'wp-includes/class-snoopy.php');\n\t\t$snoopy = new Snoopy();\n\t\t\n\t\tif(!$snoopy->fetch($fetch_url . '?' . $http_body))\n\t\t{\n\t\t\t//Error!\n\t\t\treturn __('Error in Snoopy: %s', $snoopy->error);\n\t\t}\n\t\t$content = $snoopy->results;\n\t\t\n\t\t$tt = strstrb(strstr($content, '<tt>'), '</tt>') . '</tt>'; //closing tag is cut of\n\t\t\n\t\tif(strlen($tt) < 5) //nothing found, </tt> is ever present!\n\t\t\treturn __('Error while fetching the page from Mantis. The page we got seem no to be a changelog or roadmap.', 'wp-mantis');\n\t\t\n\t\t//Remove all Links\n\t\t$tt = wpmantis_strip_only($tt, 'a');\n\t\t$tt = preg_replace('#<span class=\"bracket-link\">.*<\\/span>#isU', '', $tt);\n\t\t$output = '<p class=\"mantis_roadmap\">';\n\t\t$output .= $tt;\n\t\t$output .= '</p>';\n\n\t\treturn $output;\n\t}\n\telse\n\t\treturn __('Error: No Mode selected.', 'wp-mantis');\n}", "function TS_VCSC_Set_Plugin_Options() {\r\n\t\t// Redirect Option\r\n\t\tadd_option('ts_vcsc_extend_settings_redirect', \t\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_activation', \t\t\t\t\t\t0);\r\n\t\t// Options for Theme Authors\r\n\t\tadd_option('ts_vcsc_extend_settings_posttypes', \t\t\t\t 1);\r\n\t\tadd_option('ts_vcsc_extend_settings_posttypeWidget',\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_posttypeTeam',\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_posttypeTestimonial',\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_posttypeLogo', \t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_posttypeSkillset',\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_additions', \t\t\t\t 1);\r\n\t\tadd_option('ts_vcsc_extend_settings_codeeditors', \t\t\t\t 1);\r\n\t\tadd_option('ts_vcsc_extend_settings_fontimport', \t\t\t\t 1);\r\n\t\tadd_option('ts_vcsc_extend_settings_iconicum', \t\t\t\t \t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_dashboard', \t\t\t\t\t\t1);\r\n\t\t// Options for Custom CSS/JS Editor\r\n\t\tadd_option('ts_vcsc_extend_settings_customCSS',\t\t\t\t\t\t\t'/* Welcome to the Custom CSS Editor! Please add all your Custom CSS here. */');\r\n\t\tadd_option('ts_vcsc_extend_settings_customJS', \t\t\t\t '/* Welcome to the Custom JS Editor! Please add all your Custom JS here. */');\r\n\t\t// Other Options\r\n\t\tadd_option('ts_vcsc_extend_settings_frontendEditor', \t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_buffering', \t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_mainmenu', \t\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_translationsDomain', \t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_previewImages',\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_visualSelector',\t\t\t\t\t1);\r\n add_option('ts_vcsc_extend_settings_nativeSelector',\t\t\t\t\t1);\r\n add_option('ts_vcsc_extend_settings_nativePaginator',\t\t\t\t\t'200');\r\n\t\tadd_option('ts_vcsc_extend_settings_backendPreview',\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_extended', \t\t\t\t 0);\r\n\t\tadd_option('ts_vcsc_extend_settings_systemInfo',\t\t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_socialDefaults', \t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_builtinLightbox', \t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_lightboxIntegration', \t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_allowAutoUpdate', \t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_allowNotification', \t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_allowDeprecated', \t\t\t\t\t0);\r\n\t\t// Font Active / Inactive\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceMedia',\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceIcon',\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceAwesome',\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceBrankic',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCountricons',\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCurrencies',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceElegant',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceEntypo',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceFoundation',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceGenericons',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceIcoMoon',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceMonuments',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceSocialMedia',\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceTypicons',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceFontsAll',\t\t\t\t\t0);\t\t\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceVC_Awesome',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceVC_Entypo',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceVC_Linecons',\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceVC_OpenIconic',\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceVC_Typicons',\t\t\t\t0);\t\t\r\n\t\t// Custom Font Data\r\n\t\tadd_option('ts_vcsc_extend_settings_IconFontSettings',\t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustom',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomArray',\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomJSON',\t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomPath',\t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomPHP', \t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomName',\t\t\t\t\t'Custom User Font');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomAuthor',\t\t\t\t'Custom User');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomCount',\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomDate',\t\t\t\t\t'');\r\n\t\tadd_option('ts_vcsc_extend_settings_tinymceCustomDirectory',\t\t\t'');\r\n\t\t// Row + Column Extensions\r\n\t\tadd_option('ts_vcsc_extend_settings_additionsRows',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_additionsColumns',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_additionsRowEffectsBreak',\t\t\t'600');\r\n\t\tadd_option('ts_vcsc_extend_settings_additionsSmoothScroll',\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_additionsSmoothSpeed',\t\t\t\t'30');\r\n\t\t// Custom Post Types\r\n\t\tadd_option('ts_vcsc_extend_settings_customWidgets',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_customTeam',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_customTestimonial',\t\t\t\t\t0);\t\t\r\n\t\tadd_option('ts_vcsc_extend_settings_customSkillset',\t\t\t\t\t0);\t\t\r\n\t\tadd_option('ts_vcsc_extend_settings_customTimelines', \t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_customLogo', \t\t\t\t\t\t0);\r\n\t\t// tinyMCE Icon Shortcode Generator\r\n\t\tadd_option('ts_vcsc_extend_settings_useIconGenerator',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_useTinyMCEMedia', \t\t\t\t\t1);\r\n\t\t// Standard Elements\r\n\t\tadd_option('ts_vcsc_extend_settings_StandardElements',\t\t\t\t\t'');\r\n\t\t// Demo Elements\r\n\t\tadd_option('ts_vcsc_extend_settings_DemoElements', \t\t\t\t\t\t'');\r\n\t\t// WooCommerce Elements\r\n\t\tadd_option('ts_vcsc_extend_settings_WooCommerceUse',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_WooCommerceElements',\t\t\t\t'');\r\n\t\t// bbPress Elements\r\n\t\tadd_option('ts_vcsc_extend_settings_bbPressUse',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_bbPressElements',\t\t\t\t\t'');\r\n\t\t// Options for External Files\r\n\t\tadd_option('ts_vcsc_extend_settings_loadForcable',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadLightbox', \t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadTooltip', \t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadFonts', \t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadEnqueue',\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadHeader',\t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadjQuery', \t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadModernizr',\t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadWaypoints', \t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadCountTo', \t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadMooTools', \t\t\t\t\t\t1);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadDetector', \t\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_loadHammerNew', \t\t\t\t\t1);\r\n\t\t// Google Font Manager Settings\r\n\t\tadd_option('ts_vcsc_extend_settings_allowGoogleManager', \t\t\t\t1);\r\n\t\t// Single Page Navigator\r\n\t\tadd_option('ts_vcsc_extend_settings_allowPageNavigator', \t\t\t\t0);\r\n\t\t// EnlighterJS - Syntax Highlighter\r\n\t\tadd_option('ts_vcsc_extend_settings_allowEnlighterJS',\t\t\t\t\t0);\r\n\t\tadd_option('ts_vcsc_extend_settings_allowThemeBuilder',\t\t\t\t\t0);\r\n\t\t// Post Type Menu Positions\r\n\t\t$TS_VCSC_Menu_Positions_Defaults_Init = array(\r\n\t\t\t'ts_widgets'\t\t\t\t\t=> 50,\r\n\t\t\t'ts_timeline'\t\t\t\t\t=> 51,\r\n\t\t\t'ts_team'\t\t\t\t\t\t=> 52,\r\n\t\t\t'ts_testimonials'\t\t\t\t=> 53,\r\n\t\t\t'ts_skillsets'\t\t\t\t\t=> 54,\r\n\t\t\t'ts_logos'\t\t\t\t\t\t=> 55,\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_menuPositions',\t\t\t\t\t\t$TS_VCSC_Menu_Positions_Defaults_Init);\r\n\t\t// Row Toggle Settings\r\n\t\t$TS_VCSC_Row_Toggle_Defaults_Init = array(\r\n\t\t\t'Large Devices' => 1200,\r\n\t\t\t'Medium Devices' => 992,\r\n\t\t\t'Small Devices' => 768,\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_rowVisibilityLimits', \t\t\t\t$TS_VCSC_Row_Toggle_Defaults_Init);\r\n\t\t// Language Settings: Countdown\r\n\t\t$TS_VCSC_Countdown_Language_Defaults_Init = array(\r\n\t\t\t'DayPlural' => 'Days',\r\n\t\t\t'DaySingular' => 'Day',\r\n\t\t\t'HourPlural' => 'Hours',\r\n\t\t\t'HourSingular' => 'Hour',\r\n\t\t\t'MinutePlural' => 'Minutes',\r\n\t\t\t'MinuteSingular' => 'Minute',\r\n\t\t\t'SecondPlural' => 'Seconds',\r\n\t\t\t'SecondSingular' => 'Second',\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_translationsCountdown', \t\t\t$TS_VCSC_Countdown_Language_Defaults_Init);\r\n\t\t// Language Settings: Google Maps PLUS\r\n\t\t$TS_VCSC_Google_MapPLUS_Language_Defaults_Init = array(\r\n\t\t\t'ListenersStart' => 'Start Listeners',\r\n\t\t\t'ListenersStop' => 'Stop Listeners',\r\n\t\t\t'MobileShow' => 'Show Google Map',\r\n\t\t\t'MobileHide' => 'Hide Google Map',\r\n\t\t\t'StyleDefault' => 'Google Standard',\r\n\t\t\t'StyleLabel' => 'Change Map Style',\r\n\t\t\t'FilterAll' => 'All Groups',\r\n\t\t\t'FilterLabel' => 'Filter by Groups',\r\n\t\t\t'SelectLabel' => 'Zoom to Location',\r\n\t\t\t'ControlsOSM' => 'Open Street',\r\n\t\t\t'ControlsHome' => 'Home',\r\n\t\t\t'ControlsBounds' => 'Fit All',\r\n\t\t\t'ControlsBike' => 'Bicycle Trails',\r\n\t\t\t'ControlsTraffic' => 'Traffic',\r\n\t\t\t'ControlsTransit' => 'Transit',\r\n\t\t\t'TrafficMiles' => 'Miles per Hour',\r\n\t\t\t'TrafficKilometer' => 'Kilometers per Hour',\r\n\t\t\t'TrafficNone' => 'No Data Available',\r\n\t\t\t'SearchButton' => 'Search Location',\r\n\t\t\t'SearchHolder' => 'Enter address to search for ...',\r\n\t\t\t'SearchGoogle' => 'View on Google Maps',\r\n\t\t\t'SearchDirections' => 'Get Directions',\r\n\t\t\t'OtherLink' => 'Learn More!',\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_translationsGoogleMapPLUS', \t\t$TS_VCSC_Google_MapPLUS_Language_Defaults_Init);\r\n\t\t// Language Settings: Google Maps (Deprecated)\r\n\t\t$TS_VCSC_Google_Map_Language_Defaults_Init = array(\r\n\t\t\t'TextCalcShow' => 'Show Address Input',\r\n\t\t\t'TextCalcHide' => 'Hide Address Input',\r\n\t\t\t'TextDirectionShow' => 'Show Directions',\r\n\t\t\t'TextDirectionHide' => 'Hide Directions',\r\n\t\t\t'TextResetMap' => 'Reset Map',\r\n\t\t\t'PrintRouteText' \t\t\t => 'Print Route',\r\n\t\t\t'TextViewOnGoogle' => 'View on Google',\r\n\t\t\t'TextButtonCalc' => 'Show Route',\r\n\t\t\t'TextSetTarget' => 'Please enter your Start Address:',\r\n\t\t\t'TextGeoLocation' => 'Get My Location',\r\n\t\t\t'TextTravelMode' => 'Travel Mode',\r\n\t\t\t'TextDriving' => 'Driving',\r\n\t\t\t'TextWalking' => 'Walking',\r\n\t\t\t'TextBicy' => 'Bicycling',\r\n\t\t\t'TextWP' => 'Optimize Waypoints',\r\n\t\t\t'TextButtonAdd' => 'Add Stop on the Way',\r\n\t\t\t'TextDistance' => 'Total Distance:',\r\n\t\t\t'TextMapHome' => 'Home',\r\n\t\t\t'TextMapBikes' => 'Bicycle Trails',\r\n\t\t\t'TextMapTraffic' => 'Traffic',\r\n\t\t\t'TextMapSpeedMiles' => 'Miles Per Hour',\r\n\t\t\t'TextMapSpeedKM' => 'Kilometers Per Hour',\r\n\t\t\t'TextMapNoData' => 'No Data Available!',\r\n\t\t\t'TextMapMiles' => 'Miles',\r\n\t\t\t'TextMapKilometes' => 'Kilometers',\r\n\t\t\t'TextMapActivate' => 'Show Google Map',\r\n\t\t\t'TextMapDeactivate' => 'Hide Google Map',\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_translationsGoogleMap', \t\t\t$TS_VCSC_Google_Map_Language_Defaults_Init);\r\n\t\t// Language Settings: Isotope Posts\r\n\t\t$TS_VCSC_Isotope_Posts_Language_Defaults_Init = array(\r\n\t\t\t'ButtonFilter'\t\t => 'Filter Posts', \r\n\t\t\t'ButtonLayout'\t\t => 'Change Layout',\r\n\t\t\t'ButtonSort'\t\t => 'Sort Criteria',\r\n\t\t\t// Standard Post Strings\r\n\t\t\t'Date' \t\t\t\t => 'Post Date', \r\n\t\t\t'Modified' \t\t\t => 'Post Modified', \r\n\t\t\t'Title' \t\t\t => 'Post Title', \r\n\t\t\t'Author' \t\t\t => 'Post Author', \r\n\t\t\t'PostID' \t\t\t => 'Post ID', \r\n\t\t\t'Comments' \t\t\t => 'Number of Comments',\r\n\t\t\t// Layout Strings\r\n\t\t\t'SeeAll'\t\t\t => 'See All',\r\n\t\t\t'Timeline' \t\t\t => 'Timeline',\r\n\t\t\t'Masonry' \t\t\t => 'Centered Masonry',\r\n\t\t\t'FitRows'\t\t\t => 'Fit Rows',\r\n\t\t\t'StraightDown' \t\t => 'Straigt Down',\r\n\t\t\t// WooCommerce Strings\r\n\t\t\t'WooFilterProducts' => 'Filter Products',\r\n\t\t\t'WooTitle' => 'Product Title',\r\n\t\t\t'WooPrice' => 'Product Price',\r\n\t\t\t'WooRating' => 'Product Rating',\r\n\t\t\t'WooDate' => 'Product Date',\r\n\t\t\t'WooModified' => 'Product Modified',\r\n\t\t\t// General Strings\r\n\t\t\t'Categories' => 'Categories',\r\n\t\t\t'Tags' => 'Tags',\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_translationsIsotopePosts', \t\t\t$TS_VCSC_Isotope_Posts_Language_Defaults_Init);\r\n\t\t// Options for Lightbox Settings\r\n\t\t$TS_VCSC_Lightbox_Setting_Defaults_Init = array(\r\n\t\t\t'thumbs' => 'bottom',\r\n\t\t\t'thumbsize' => 50,\r\n\t\t\t'animation' => 'random',\r\n\t\t\t'captions' => 'data-title',\r\n\t\t\t'closer' => 1, // true/false\r\n\t\t\t'duration' => 5000,\r\n\t\t\t'share' => 0, // true/false\r\n\t\t\t'social' \t => 'fb,tw,gp,pin',\r\n\t\t\t'notouch' => 1, // true/false\r\n\t\t\t'bgclose'\t\t\t => 1, // true/false\r\n\t\t\t'nohashes'\t\t\t => 1, // true/false\r\n\t\t\t'keyboard'\t\t\t => 1, // 0/1\r\n\t\t\t'fullscreen'\t\t => 1, // 0/1\r\n\t\t\t'zoom'\t\t\t\t => 1, // 0/1\r\n\t\t\t'fxspeed'\t\t\t => 300,\r\n\t\t\t'scheme'\t\t\t => 'dark',\r\n\t\t\t'removelight' => 0,\r\n\t\t\t'customlight' => 0,\r\n\t\t\t'customcolor'\t\t => '#ffffff',\r\n\t\t\t'backlight' \t\t => '#ffffff',\r\n\t\t\t'usecolor' \t\t => 0, // true/false\r\n\t\t\t'background' => '',\r\n\t\t\t'repeat' => 'no-repeat',\r\n\t\t\t'overlay' => '#000000',\r\n\t\t\t'noise' => '',\r\n\t\t\t'cors' => 0, // true/false\r\n\t\t\t'scrollblock' => 'css',\r\n\t\t);\r\n\t\tadd_option('ts_vcsc_extend_settings_defaultLightboxSettings',\t\t\t$TS_VCSC_Lightbox_Setting_Defaults_Init);\r\n\t\tadd_option('ts_vcsc_extend_settings_defaultLightboxAnimation', \t\t\t'random');\r\n\t\t// Options for Envato Sales Data\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoData', \t\t\t\t\t '');\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoInfo', \t\t\t\t\t '');\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoLink', \t\t\t\t\t '');\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoPrice', \t\t\t\t\t '');\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoRating', \t\t\t\t\t '');\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoSales', \t\t\t\t\t '');\r\n\t\tadd_option('ts_vcsc_extend_settings_envatoCheck', \t\t\t\t\t 0);\r\n\t\t$roles \t\t\t\t\t\t\t\t= get_editable_roles();\r\n\t\tforeach ($GLOBALS['wp_roles']->role_objects as $key => $role) {\r\n\t\t\tif (isset($roles[$key]) && $role->has_cap('edit_pages') && !$role->has_cap('ts_vcsc_extend')) {\r\n\t\t\t\t$role->add_cap('ts_vcsc_extend');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function acf_shortcode($atts)\n{\n}", "function optinpanda_subscription_services_options( $options ) {\r\n \r\n // mailchimp\r\n \r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-mailchimp-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'mailchimp_apikey',\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Key</a>', 'optinpanda' ), 'http://kb.mailchimp.com/accounts/management/about-api-keys#Finding-or-generating-your-API-key' ),\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'hint' => __( 'The API key of your MailChimp account.', 'optinpanda' ),\r\n ),\r\n array(\r\n 'type' => 'checkbox',\r\n 'way' => 'buttons',\r\n 'name' => 'mailchimp_welcome',\r\n 'title' => __( 'Send \"Welcome\" Email', 'optinpanda' ),\r\n 'default' => true,\r\n 'hint' => __( 'Sends the Welcome Email configured in your MailChimp account after subscription (works only if the Single Opt-In set).', 'optinpanda' )\r\n ) \r\n )\r\n );\r\n\r\n // aweber\r\n\r\n if( !get_option('opanda_aweber_consumer_key', false) ) {\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-aweber-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'html',\r\n 'html' => 'opanda_aweber_html'\r\n ),\r\n array(\r\n 'type' => 'textarea',\r\n 'name' => 'aweber_auth_code',\r\n 'title' => __( 'Authorization Code', 'optinpanda' ),\r\n 'hint' => __( 'The authorization code you will see after log in to your Aweber account.', 'optinpanda' )\r\n )\r\n )\r\n ); \r\n\r\n } else {\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-aweber-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'html',\r\n 'html' => 'opanda_aweber_html'\r\n ) \r\n )\r\n );\r\n }\r\n\r\n // getresponse\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-getresponse-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'getresponse_apikey',\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Key</a>', 'optinpanda' ), 'http://support.getresponse.com/faq/where-i-find-api-key' ),\r\n 'hint' => __( 'The API key of your GetResponse account.', 'optinpanda' ),\r\n )\r\n )\r\n );\r\n\r\n // mymail\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-mymail-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n\r\n array(\r\n 'type' => 'html',\r\n 'html' => 'opanda_show_mymail_html'\r\n ),\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'checkbox',\r\n 'way' => 'buttons',\r\n 'name' => 'mymail_redirect',\r\n 'title' => __( 'Redirect To Locker', 'optinpanda' ),\r\n 'hint' => sprintf( __( 'Set On to redirect the user after the email confirmation to the page where the locker located.<br />If Off, the MyMail will redirect the user to the page specified in the option <a href=\"%s\" target=\"_blank\">Newsletter Homepage</a>.', 'optinpanda' ), admin_url('options-general.php?page=newsletter-settings&settings-updated=true#frontend') )\r\n )\r\n )\r\n );\r\n\r\n // mailpoet\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-mailpoet-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'html',\r\n 'html' => 'opnada_show_mailpoet_html'\r\n ) \r\n )\r\n );\r\n\r\n // acumbamail\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-acumbamail-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'acumbamail_customer_id',\r\n 'title' => __( 'Customer ID', 'optinpanda' ),\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get ID & Token</a>', 'optinpanda' ), 'https://acumbamail.com/apidoc/' ),\r\n 'hint' => __( 'The customer ID of your Acumbamail account.', 'optinpanda' )\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'acumbamail_api_token',\r\n 'title' => __( 'API Token', 'optinpanda' ),\r\n 'hint' => __( 'The API token of your Acumbamail account.', 'optinpanda' )\r\n )\r\n )\r\n );\r\n\r\n // knews\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-knews-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'html',\r\n 'html' => 'opanda_show_knews_html'\r\n ),\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'checkbox',\r\n 'way' => 'buttons',\r\n 'name' => 'knews_redirect',\r\n 'title' => __( 'Redirect To Locker', 'optinpanda' ),\r\n 'hint' => __( 'Set On to redirect the user after the email confirmation to the page where the locker located.<br />If Off, the K-news will redirect the user to the home page.', 'optinpanda' )\r\n ) \r\n )\r\n ); \r\n\r\n // freshmail\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-freshmail-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'freshmail_apikey',\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Keys</a>', 'optinpanda' ), 'https://app.freshmail.com/en/settings/integration/' ),\r\n 'hint' => __( 'The API Key of your FreshMail account.', 'optinpanda' )\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'freshmail_apisecret',\r\n 'title' => __( 'API Secret', 'optinpanda' ),\r\n 'hint' => __( 'The API Sercret of your FreshMail account.', 'optinpanda' )\r\n )\r\n )\r\n );\r\n\r\n // sendy\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-sendy-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'sendy_apikey',\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'hint' => __( 'The API key of your Sendy application, available in Settings.', 'optinpanda' ),\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'sendy_url',\r\n 'title' => __( 'Installation', 'optinpanda' ),\r\n 'hint' => __( 'An URL for your Sendy installation, <strong>http://your_sendy_installation</strong>', 'optinpanda' ),\r\n )\r\n )\r\n );\r\n \r\n // smartemailing\r\n \r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-smartemailing-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'smartemailing_username',\r\n 'title' => __( 'Username', 'optinpanda' ),\r\n 'hint' => __( 'Enter your username on SmartEmailing. Usually it is a email.', 'optinpanda' ),\r\n ), \r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'smartemailing_apikey',\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Key</a>', 'optinpanda' ), 'https://app.smartemailing.cz/userinfo/show/api' ),\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'hint' => __( 'The API key of your SmartEmailing account.', 'optinpanda' ),\r\n )\r\n )\r\n );\r\n \r\n // sendinblue\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-sendinblue-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'sendinblue_apikey',\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Key</a>', 'optinpanda' ), 'https://my.sendinblue.com/advanced/apikey' ),\r\n 'hint' => __( 'The API Key (version 2.0) of your Sendinblue account.', 'optinpanda' )\r\n )\r\n )\r\n );\r\n \r\n // activecampaign\r\n\r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-activecampaign-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'activecampaign_apiurl',\r\n 'title' => __( 'API Url', 'optinpanda' ),\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Url</a>', 'optinpanda' ), 'http://www.activecampaign.com/help/using-the-api/' ),\r\n 'hint' => __( 'The API Url of your ActiveCampaign account.', 'optinpanda' )\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'activecampaign_apikey',\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Key</a>', 'optinpanda' ), 'http://www.activecampaign.com/help/using-the-api/' ),\r\n 'hint' => __( 'The API Key of your ActiveCampaign account.', 'optinpanda' )\r\n )\r\n )\r\n ); \r\n \r\n // sendgrid\r\n \r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-sendgrid-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'sendgrid_apikey',\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get API Key</a>', 'optinpanda' ), 'https://app.sendgrid.com/settings/api_keys' ),\r\n 'title' => __( 'API Key', 'optinpanda' ),\r\n 'hint' => __( 'Your SendGrid API key. Grant <strong>Full Access</strong> for <strong>Mail Send</strong> and <strong>Marketing Campaigns</strong> in settings of your API key.', 'optinpanda' ),\r\n ) \r\n )\r\n );\r\n \r\n // sg autorepondeur\r\n \r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-sgautorepondeur-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => array(\r\n\r\n array(\r\n 'type' => 'separator'\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'sg_apikey',\r\n 'after' => sprintf( __( '<a href=\"%s\" class=\"btn btn-default\" target=\"_blank\">Get Code</a>', 'optinpanda' ), 'http://sg-autorepondeur.com/membre_v2/compte-options.php' ),\r\n 'title' => __( 'Activation Code', 'optinpanda' ),\r\n 'hint' => __( 'The Activation Code from your SG Autorepondeur account (<i>Mon compte -> Autres Options -> Informations administratives</i>).', 'optinpanda' ),\r\n ),\r\n array(\r\n 'type' => 'textbox',\r\n 'name' => 'sg_memberid',\r\n 'title' => __( 'Member ID', 'optinpanda' ),\r\n 'hint' => __( 'The Memeber ID of your SG Autorepondeur account (<i>available on the home page below the SG logo, for example, 9059</i>).', 'optinpanda' ),\r\n )\r\n )\r\n );\r\n\r\n return $options;\r\n}", "function shortcode_template( $atts, $content = null ) {\r\n\t\t\tglobal $MPC_Shortcode, $mpc_ma_options;\r\n\t\t\tif ( ! defined( 'MPC_MASSIVE_FULL' ) || ( defined( 'MPC_MASSIVE_FULL' ) && $mpc_ma_options[ 'single_js_css' ] !== '1' ) ) {\r\n\t\t\t\t$this->enqueue_shortcode_scripts();\r\n\t\t\t}\r\n\r\n\t\t\t$atts = shortcode_atts( array(\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'preset' => '',\r\n\r\n\t\t\t\t/* General */\r\n\t\t\t\t'properties' => '',\r\n\t\t\t\t'properties_font_color' => '',\r\n\t\t\t\t'properties_font_align' => '',\r\n\t\t\t\t'properties_font_transform' => '',\r\n\t\t\t\t'prop_padding_css' => '',\r\n\r\n\t\t\t\t'prop_even_background_type' => 'color',\r\n\t\t\t\t'prop_even_background_color' => '',\r\n\t\t\t\t'prop_even_background_image' => '',\r\n\t\t\t\t'prop_even_background_image_size' => 'large',\r\n\t\t\t\t'prop_even_background_repeat' => 'no-repeat',\r\n\t\t\t\t'prop_even_background_size' => 'initial',\r\n\t\t\t\t'prop_even_background_position' => 'middle-center',\r\n\t\t\t\t'prop_even_background_gradient' => '#83bae3||#80e0d4||0;100||180||linear',\r\n ), $atts );\r\n\r\n\t\t\t/* Prepare */\r\n\t\t\t$styles = $this->shortcode_styles( $atts );\r\n\t\t\t$css_id = $styles[ 'id' ];\r\n\t\t\t$MPC_Shortcode[ 'pricing' ][ 'style' ] .= $styles[ 'css' ];\r\n\r\n\t\t\t$animation = MPC_Parser::animation( $atts );\r\n\t\t\t$properties = explode( '|||', $atts[ 'properties' ] );\r\n\r\n\t\t\t/* Fonts Presets */\r\n\t\t\t$title_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'title' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'title' ] : '';\r\n\t\t\t$price_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'price' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'price' ] : '';\r\n\t\t\t$props_classes = $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'prop' ] != '' ? ' mpc-typography--' . $MPC_Shortcode[ 'pricing' ][ 'presets' ][ 'prop' ] : '';\r\n\r\n\t\t\t/* Prepare Parts */\r\n\t\t\t$title = $MPC_Shortcode[ 'pricing' ][ 'disable' ][ 'title' ] == '' ? '<div class=\"mpc-pricing__title' . $title_classes . '\">&nbsp;</div>' : '';\r\n\t\t\t$price = $MPC_Shortcode[ 'pricing' ][ 'disable' ][ 'price' ] == '' ? '<div class=\"mpc-pricing__price' . $price_classes . '\">&nbsp;</div>' : '';\r\n\r\n\t\t\t$props = '<div class=\"mpc-pricing__properties' . $props_classes . '\">';\r\n\t\t\tforeach( $properties as $property ) {\r\n\t\t\t\t$props .= '<div class=\"mpc-pricing__property\">' . $property . '</div>';\r\n\t\t\t}\r\n\t\t\t$props .= '</div>';\r\n\r\n\t\t\t/* Shortcode classes | Animation | Layout */\r\n\t\t\t$classes = $animation != '' ? ' mpc-animation' : '';\r\n\t\t\t$classes .= ' ' . esc_attr( $atts[ 'class' ] );\r\n\r\n\t\t\t/* Shortcode Output */\r\n\t\t\t$return = '<div id=\"' . $css_id . '\" class=\"mpc-pricing-column mpc-pricing-legend' . $classes . '\" ' . $animation . '>';\r\n\t\t\t\t$return .= $title . $price . $props;\r\n\t\t\t$return .= '</div>';\r\n\r\n\t\t\t$MPC_Shortcode[ 'pricing' ][ 'parts' ][ 'legend' ] = $return;\r\n\r\n\t\t\tglobal $mpc_frontend;\r\n\t\t\tif ( $mpc_frontend ) {\r\n\t\t\t\t$css = '<style>' . $styles[ 'css' ] . '</style>';\r\n\r\n\t\t\t\treturn $css;\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}", "function civ_slider_options_page(){\n add_options_page('Civ Slider Options', 'Civ Slider Options', 8, 'civ_slider', 'civ_slider_options');\n}", "public function composerSettings() {\n\n if ( current_user_can('manage_options') && $this->composer->isPlugin()) {\n //add_options_page(__(\"Swift Page Builder Settings\", \"js_composer\"), __(\"Swift Page Builder\", \"js_composer\"), 'install_plugins', \"wpb_vc_settings\", array($this, \"composerSettingsMenuHTML\"));\n }\n }", "public function get_theme_option_args(){\r\n $ad_slots = $this->get_ad_slots();\r\n \r\n $args = array();\r\n \r\n foreach($ad_slots as $slot => $name){\r\n $args = array_merge( $args, array(\r\n array(\r\n 'id' => 'adsense_slot_' . $slot,\r\n 'label' => sprintf(esc_html__('%s - AdSense Ads Slot ID', 'felis'), $name),\r\n 'desc' => sprintf(esc_html__('If you want to display %s, enter Google AdSense Ad Slot ID here. If left empty, \"%s - Custom Code\" will be used', 'felis'), $name, $name),\r\n 'std' => '',\r\n 'type' => 'text',\r\n 'section' => 'advertising'\r\n ),\r\n array(\r\n 'id' => $slot,\r\n 'label' => sprintf(esc_html__('%s - Custom Code', 'felis'), $name),\r\n 'desc' => sprintf(esc_html__('Enter custom code for %s position', 'felis'), $name),\r\n 'std' => '',\r\n 'type' => 'textarea-simple',\r\n 'section' => 'advertising',\r\n 'operator' => 'and'\r\n )\r\n )\r\n );\r\n }\r\n \r\n return $args;\r\n }", "function scorm_get_popup_options_array(){\n global $CFG;\n return array('resizable'=> isset($CFG->scorm_resizable) ? $CFG->scorm_resizable : 0,\n 'scrollbars'=> isset($CFG->scorm_scrollbars) ? $CFG->scorm_scrollbars : 0,\n 'directories'=> isset($CFG->scorm_directories) ? $CFG->scorm_directories : 0,\n 'location'=> isset($CFG->scorm_location) ? $CFG->scorm_location : 0,\n 'menubar'=> isset($CFG->scorm_menubar) ? $CFG->scorm_menubar : 0,\n 'toolbar'=> isset($CFG->scorm_toolbar) ? $CFG->scorm_toolbar : 0,\n 'status'=> isset($CFG->scorm_status) ? $CFG->scorm_status : 0);\n}", "function optionsframework_options() {\r\n\r\n\t// Pull all tags into an array.\r\n\t$tags = array();\r\n\t$tags_obj = get_tags();\r\n\t$tags[''] = __( 'All Tags', 'supernews' );\r\n\tforeach ( $tags_obj as $tag ) {\r\n\t\t$tags[$tag->term_id] = esc_html( $tag->name );\r\n\t}\r\n\r\n\t$options = array();\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'General', 'supernews' ),\r\n\t\t'type' => 'heading'\r\n\t);\r\n\r\n\t$options['supernews_logo'] = array(\r\n\t\t'name' => __( 'Logo', 'supernews' ),\r\n\t\t'desc' => __( 'Upload your custom logo, it will automatically replace the Site Title', 'supernews' ),\r\n\t\t'id' => 'supernews_logo',\r\n\t\t'type' => 'upload'\r\n\t);\r\n\r\n\t$options['supernews_logo_retina'] = array(\r\n\t\t'name' => __( 'Retina Logo', 'supernews' ),\r\n\t\t'desc' => __( 'Upload your retina version of your logo. eg: logo@2x.png', 'supernews' ),\r\n\t\t'id' => 'supernews_logo_retina',\r\n\t\t'type' => 'upload'\r\n\t);\r\n\r\n\t$options['supernews_favicon'] = array(\r\n\t\t'name' => __( 'Favicon', 'supernews' ),\r\n\t\t'desc' => __( 'Your custom favicon. 32x32px recommended.', 'supernews' ),\r\n\t\t'id' => 'supernews_favicon',\r\n\t\t'type' => 'upload'\r\n\t);\r\n\r\n\t$options['supernews_mobile_icon'] = array(\r\n\t\t'name' => __( 'Mobile Icon', 'supernews' ),\r\n\t\t'desc' => __( '144x144 recommended in PNG format. This icon will be used when users add your website as a shortcut on mobile devices like iPhone, iPad, Android etc.', 'supernews' ),\r\n\t\t'id' => 'supernews_mobile_icon',\r\n\t\t'type' => 'upload'\r\n\t);\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'FeedBurner URL', 'supernews' ),\r\n\t\t'desc' => __( 'Enter your full FeedBurner URL. If you wish to use FeedBurner over the standard WordPress feed.', 'supernews' ),\r\n\t\t'id' => 'supernews_feedburner_url',\r\n\t\t'placeholder' => 'http://feeds.feedburner.com/ThemeJunkie',\r\n\t\t'type' => 'text'\r\n\t);\r\n\r\n\t$options['supernews_footer_text'] = array(\r\n\t\t'name' => __( 'Footer Text', 'supernews' ),\r\n\t\t'desc' => __( 'Customize the footer text.', 'supernews' ),\r\n\t\t'id' => 'supernews_footer_text',\r\n\t\t'std' => '&copy; Copyright ' . date( 'Y' ) . ' <a href=\"' . esc_url( home_url() ) . '\">' . esc_attr( get_bloginfo( 'name' ) ) . '</a> &middot; Designed by <a href=\"http://www.theme-junkie.com/\">Theme Junkie</a>',\r\n\t\t'type' => 'editor'\r\n\t);\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'Archive', 'supernews' ),\r\n\t\t'type' => 'heading'\r\n\t);\r\n\r\n\t$options['supernews_archive_layout'] = array(\r\n\t\t'name' => __( 'Archive Page Layout', 'supernews' ),\r\n\t\t'desc' => sprintf( __( 'Choose the archive %1$s(post format, date, month, year)%2$s page layout.', 'supernews' ), '<strong>', '</strong>' ),\r\n\t\t'id' => 'supernews_archive_layout',\r\n\t\t'std' => 'standard',\r\n\t\t'type' => 'select',\r\n\t\t'options' => array(\r\n\t\t\t'standard' => __( 'Standard', 'supernews' ),\r\n\t\t\t'classic' => __( 'Classic', 'supernews' ),\r\n\t\t\t'grid_1' => __( 'Grid Version 1', 'supernews' ),\r\n\t\t\t'grid_2' => __( 'Grid Version 2', 'supernews' ),\r\n\t\t)\r\n\t);\r\n\r\n\t$options['supernews_tag_layout'] = array(\r\n\t\t'name' => __( 'Tag Page Layout', 'supernews' ),\r\n\t\t'desc' => __( 'Choose the tag page layout.', 'supernews' ),\r\n\t\t'id' => 'supernews_tag_layout',\r\n\t\t'std' => 'standard',\r\n\t\t'type' => 'select',\r\n\t\t'options' => array(\r\n\t\t\t'standard' => __( 'Standard', 'supernews' ),\r\n\t\t\t'classic' => __( 'Classic', 'supernews' ),\r\n\t\t\t'grid_1' => __( 'Grid Version 1', 'supernews' ),\r\n\t\t\t'grid_2' => __( 'Grid Version 2', 'supernews' ),\r\n\t\t)\r\n\t);\r\n\r\n\t$options['supernews_author_layout'] = array(\r\n\t\t'name' => __( 'Author Page Layout', 'supernews' ),\r\n\t\t'desc' => __( 'Choose the author page layout.', 'supernews' ),\r\n\t\t'id' => 'supernews_author_layout',\r\n\t\t'std' => 'standard',\r\n\t\t'type' => 'select',\r\n\t\t'options' => array(\r\n\t\t\t'standard' => __( 'Standard', 'supernews' ),\r\n\t\t\t'classic' => __( 'Classic', 'supernews' ),\r\n\t\t\t'grid_1' => __( 'Grid Version 1', 'supernews' ),\r\n\t\t\t'grid_2' => __( 'Grid Version 2', 'supernews' ),\r\n\t\t)\r\n\t);\r\n\r\n\t$options['supernews_search_layout'] = array(\r\n\t\t'name' => __( 'Search Page Layout', 'supernews' ),\r\n\t\t'desc' => __( 'Choose the search page layout.', 'supernews' ),\r\n\t\t'id' => 'supernews_search_layout',\r\n\t\t'std' => 'standard',\r\n\t\t'type' => 'select',\r\n\t\t'options' => array(\r\n\t\t\t'standard' => __( 'Standard', 'supernews' ),\r\n\t\t\t'classic' => __( 'Classic', 'supernews' ),\r\n\t\t\t'grid_1' => __( 'Grid Version 1', 'supernews' ),\r\n\t\t\t'grid_2' => __( 'Grid Version 2', 'supernews' ),\r\n\t\t)\r\n\t);\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'Single Post', 'supernews' ),\r\n\t\t'type' => 'heading'\r\n\t);\r\n\r\n\t$options['supernews_post_author'] = array(\r\n\t\t'name' => __( 'Display author info ', 'supernews' ),\r\n\t\t'desc' => __( 'Enable the author biographical info.', 'supernews' ),\r\n\t\t'id' => 'supernews_post_author',\r\n\t\t'std' => '1',\r\n\t\t'type' => 'checkbox'\r\n\t);\r\n\r\n\t$options['supernews_post_share'] = array(\r\n\t\t'name' => __( 'Display post share', 'supernews' ),\r\n\t\t'desc' => __( 'Enable the post share.', 'supernews' ),\r\n\t\t'id' => 'supernews_post_share',\r\n\t\t'std' => '1',\r\n\t\t'type' => 'checkbox'\r\n\t);\r\n\r\n\t$options['supernews_related_posts'] = array(\r\n\t\t'name' => __( 'Display related posts', 'supernews' ),\r\n\t\t'desc' => __( 'Enable the related posts.', 'supernews' ),\r\n\t\t'id' => 'supernews_related_posts',\r\n\t\t'std' => '1',\r\n\t\t'type' => 'checkbox'\r\n\t);\r\n\r\n\t$options['supernews_newsletter'] = array(\r\n\t\t'name' => __( 'Newsletter Form', 'supernews' ),\r\n\t\t'desc' => __( 'If you want to display a newsletter form on single post. Please add the form here.', 'supernews' ),\r\n\t\t'id' => 'supernews_newsletter',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t$options['supernews_ad_single_before'] = array(\r\n\t\t'name' => __( 'Before Content Advertisement', 'supernews' ),\r\n\t\t'desc' => __( 'Your ad will appear on single post before content.', 'supernews' ),\r\n\t\t'id' => 'supernews_ad_single_before',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t$options['supernews_ad_single_after'] = array(\r\n\t\t'name' => __( 'After Content Advertisement', 'supernews' ),\r\n\t\t'desc' => __( 'Your ad will appear on single post after content.', 'supernews' ),\r\n\t\t'id' => 'supernews_ad_single_after',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'Video', 'supernews' ),\r\n\t\t'type' => 'heading'\r\n\t);\r\n\r\n\t$options['supernews_latest_video'] = array(\r\n\t\t'name' => __( 'Display latest videos', 'supernews' ),\r\n\t\t'desc' => __( 'Enable the latest video post format on home page.', 'supernews' ),\r\n\t\t'id' => 'supernews_latest_video',\r\n\t\t'std' => '1',\r\n\t\t'type' => 'checkbox'\r\n\t);\r\n\r\n\t$options['supernews_latest_video_title'] = array(\r\n\t\t'name' => __( 'Title', 'supernews' ),\r\n\t\t'desc' => __( 'The title of the list of latest video.', 'supernews' ),\r\n\t\t'id' => 'supernews_latest_video_title',\r\n\t\t'std' => __( 'Must See Videos', 'supernews' ),\r\n\t\t'type' => 'text'\r\n\t);\r\n\r\n\tif ( class_exists( 'WooCommerce' ) ) { \r\n\r\n\t\t$options[] = array(\r\n\t\t\t'name' => __( 'Shop', 'supernews' ),\r\n\t\t\t'type' => 'heading'\r\n\t\t);\r\n\r\n\t\t$options['supernews_woo_archive_layout'] = array(\r\n\t\t\t'name' => __( 'Shop Layouts', 'supernews' ),\r\n\t\t\t'desc' => __( 'Choose the layout for WooCommerce archive page.', 'supernews' ),\r\n\t\t\t'id' => 'supernews_woo_archive_layout',\r\n\t\t\t'type' => 'radio',\r\n\t\t\t'std' => 'fullwidth',\r\n\t\t\t'options' => array(\r\n\t\t\t\t'fullwidth' => __( 'Full Width', 'supernews' ),\r\n\t\t\t\t'sidebar' => __( 'With Sidebar', 'supernews' )\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t}\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'Advertisement', 'supernews' ),\r\n\t\t'type' => 'heading'\r\n\t);\r\n\r\n\t$options['supernews_header_ads'] = array(\r\n\t\t'name' => __( 'Header Advertisement', 'supernews' ),\r\n\t\t'desc' => __( 'The ad will appear at the top of your site. Recommended size 728x90', 'supernews' ),\r\n\t\t'id' => 'supernews_header_ads',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t$options['supernews_archive_ads'] = array(\r\n\t\t'name' => __( 'Archive Advertisement', 'supernews' ),\r\n\t\t'desc' => __( 'The ad will appear on archive page. Recommended size 728x90 - THEME SHARED ON W P L O C K E R .C O M', 'supernews' ),\r\n\t\t'id' => 'supernews_archive_ads',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t$options[] = array(\r\n\t\t'name' => __( 'Custom Code', 'supernews' ),\r\n\t\t'type' => 'heading'\r\n\t);\r\n\r\n\t$options['supernews_script_head'] = array(\r\n\t\t'name' => __( 'Header code', 'supernews' ),\r\n\t\t'desc' => __( 'If you need to add custom scripts to your header (meta tag verification, google fonts url), you should enter them in the box. They will be added before &lt;/head&gt; tag', 'supernews' ),\r\n\t\t'id' => 'supernews_script_head',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t$options['supernews_script_footer'] = array(\r\n\t\t'name' => __( 'Footer code', 'supernews' ),\r\n\t\t'desc' => __( 'If you need to add custom scripts to your footer (like google analytic script), you should enter them in the box. They will be added before &lt;/body&gt; tag', 'supernews' ),\r\n\t\t'id' => 'supernews_script_footer',\r\n\t\t'type' => 'textarea'\r\n\t);\r\n\r\n\t/* Return the theme settings data. */\r\n\treturn $options;\r\n}", "public function modalContent() {\n\n $fields = array( __( 'Template Rule Settings', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ) => array() );\n $sKey = key( $fields );\n\n //------------------------------------------------------------------\n // GENERIC PARAM\n //------------------------------------------------------------------\n\n $helpContent = $this->helpContent( __( 'Choose the value of this generic param.', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ),\n __( 'Choose the value of this generic param. It is set only for process flowing, and it is not used anywhere in your WordPress environment.', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ) );\n\n $fields[$sKey][] = array(\n array(\n 'type' => WPDKUIControlType::CUSTOM,\n 'content' => $helpContent\n )\n );\n\n $fields[$sKey][] = array(\n array(\n 'type' => WPDKUIControlType::TEXT,\n 'name' => $this->_model->id() . '-generic-param',\n 'value' => $this->_model->genericParam(),\n 'label' => array(\n 'value' => __( 'Generic Param', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ),\n 'data' => array( 'placement' => 'right' )\n ),\n 'size' => 24,\n 'title' => __( 'Enter the value of this generic param. It is set only for process flowing, and it is not used anywhere in your WordPress environment.', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN )\n )\n );\n\n $layout = new WPDKUIControlsLayout( $fields );\n\n // Build output buffer\n $outputBuffer = '<form name=\"' . $this->_model->id() . '-form\" method=\"POST\" action=\"\">' .\n $layout->html() .\n '</form>';\n\n return $outputBuffer;\n\n }", "function wwm_2015_optionsframework_options() {\r\n\r\n\t$options = array();\r\n\t//Set the Section Tab Title\r\n\t$options[] = array(\r\n\t\t'name' => __('General Options', 'wwm_2015'),\r\n\t\t'type' => 'heading');\r\n\t\t//Logo\r\n\t\t\t$options[] = array(\r\n\t\t\t\t'name' => __('Main Logo', 'wwm_2015'),\r\n\t\t\t\t'desc' => __('Make sure to use a PNG, with a transparent background (the gray that you see above, is coded in...just for visibility purposes).', 'wwm_2015'),\r\n\t\t\t\t'id' => 'main_logo',\r\n\t\t\t\t'type' => 'upload',\r\n\t\t\t\t'class' => 'large-12 medium-12 small-12 columns');\t\t\r\n\t\t//Primary Color\r\n\t\t\t$options[] = array(\r\n\t\t\t\t\t'name' => __('Primary Color?', 'wwm_2015'),\r\n\t\t\t\t\t'desc' => __('The main color in the scheme', 'wwm_2015'),\r\n\t\t\t\t\t'id' => 'primary_color',\r\n\t\t\t\t\t'std' => '#565b7b',\r\n\t\t\t\t\t'default'=>'#565b7b',\r\n\t\t\t\t\t'type' => 'color',\r\n\t\t\t\t\t'class'=>'large-6 medium-12 small-12 columns'\r\n\t\t\t\t);\t\r\n\t\t//Secondary Color\r\n\t\t\t$options[] = array(\r\n\t\t\t\t\t'name' => __('Secondary Color?', 'wwm_2015'),\r\n\t\t\t\t\t'desc' => __('The secondary color in the scheme', 'wwm_2015'),\r\n\t\t\t\t\t'id' => 'secondary_color',\r\n\t\t\t\t\t'std' => '#d3e2f7',\r\n\t\t\t\t\t'default'=>'#d3e2f7',\r\n\t\t\t\t\t'type' => 'color',\r\n\t\t\t\t\t'class'=>'large-6 medium-12 small-12 columns'\r\n\t\t\t\t);\t\t\r\n\treturn $options;\r\n}", "function saju_jukebox_shortcode_jukebox( $atts ) {\n\n\tsaju_jukebox_enqueue_scripts();\n\n\twp_localize_script( 'saju-js', 'saju_js_options', array(\n\t\t'api_url' => admin_url( 'admin-ajax.php?action=wl_sparql&slug=' ),\n\t\t'event_url' => get_option( SAJU_JUKEBOX_SETTINGS_FIELD_EVENT_URL ),\n\t\t'dataset_url' => get_option( SAJU_JUKEBOX_SETTINGS_FIELD_DATASET_URL )\n\t) );\n\n\t// Get the HTML fragment from the file.\n\treturn file_get_contents( dirname( __FILE__ ) . '/html/jukebox.html' );\n\n}", "function gallery_options_page() {\r\n\tadd_options_page('Featured Content Gallery Options', 'Featured Content Gallery', 10, 'featured-content-gallery/options.php');\r\n}", "public static function composerSettingsMenuHTML() {\n /* TODO: Refactor file js_composer_settings_menu.php */\n include_once( self::$config['COMPOSER'] . 'settings/' . 'js_composer_settings_menu.php' );\n }", "public function add_options_html() {\n\n $has_nav = ( count( $this->pre_tabs ) > 1 ) ? true : false;\n $show_all = ( ! $has_nav ) ? ' csf-show-all' : '';\n $ajax_class = ( $this->args['ajax_save'] ) ? ' csf-save-ajax' : '';\n $sticky_class = ( $this->args['sticky_header'] ) ? ' csf-sticky-header' : '';\n $wrapper_class = ( $this->args['framework_class'] ) ? ' '. $this->args['framework_class'] : '';\n\n echo '<div class=\"csf csf-theme-'. $this->args['theme'] .' csf-options'. $wrapper_class .'\" data-slug=\"'. $this->args['menu_slug'] .'\" data-unique=\"'. $this->unique .'\">';\n\n $notice_class = ( ! empty( $this->notice ) ) ? ' csf-form-show' : '';\n $notice_text = ( ! empty( $this->notice ) ) ? $this->notice : '';\n\n echo '<div class=\"csf-form-result csf-form-success'. $notice_class .'\">'. $notice_text .'</div>';\n\n $error_class = ( ! empty( $this->errors ) ) ? ' csf-form-show' : '';\n\n echo '<div class=\"csf-form-result csf-form-error'. $error_class .'\">';\n if( ! empty( $this->errors ) ) {\n foreach ( $this->errors as $error ) {\n echo '<i class=\"csf-label-error\">!</i> '. $error .'<br />';\n }\n }\n echo '</div>';\n\n echo '<div class=\"csf-container\">';\n\n echo '<form method=\"post\" action=\"\" enctype=\"multipart/form-data\" id=\"csf-form\">';\n\n echo '<input type=\"hidden\" class=\"csf-section-id\" name=\"csf_transient[section]\" value=\"1\">';\n wp_nonce_field( 'csf_options_nonce', 'csf_options_nonce' );\n\n echo '<div class=\"csf-header'. esc_attr( $sticky_class ) .'\">';\n echo '<div class=\"csf-header-inner\">';\n\n echo '<div class=\"csf-header-left\">';\n echo '<h1>'. $this->args['framework_title'] .'</h1>';\n echo '</div>';\n\n echo '<div class=\"csf-header-right\">';\n\n echo ( $has_nav && $this->args['show_all_options'] ) ? '<div class=\"csf-expand-all\" title=\"'. esc_html__( 'show all options', 'csf' ) .'\"><i class=\"fa fa-outdent\"></i></div>' : '';\n\n echo ( $this->args['show_search'] ) ? '<div class=\"csf-search\"><input type=\"text\" placeholder=\"'. esc_html__( 'Search option(s)', 'csf' ) .'\" /></div>' : '';\n\n echo '<div class=\"csf-buttons\">';\n echo '<input type=\"submit\" name=\"'. $this->unique .'[_nonce][save]\" class=\"button button-primary csf-save'. $ajax_class .'\" value=\"'. esc_html__( 'Save', 'csf' ) .'\" data-save=\"'. esc_html__( 'Saving...', 'csf' ) .'\">';\n echo ( $this->args['show_reset_section'] ) ? '<input type=\"submit\" name=\"csf_transient[reset_section]\" class=\"button button-secondary csf-reset-section csf-confirm\" value=\"'. esc_html__( 'Reset Section', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset this section options?', 'csf' ) .'\">' : '';\n echo ( $this->args['show_reset_all'] ) ? '<input type=\"submit\" name=\"csf_transient[reset]\" class=\"button button-secondary csf-warning-primary csf-reset-all csf-confirm\" value=\"'. esc_html__( 'Reset All', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset all options?', 'csf' ) .'\">' : '';\n echo '</div>';\n\n echo '</div>';\n\n echo '<div class=\"clear\"></div>';\n echo '</div>';\n echo '</div>';\n\n echo '<div class=\"csf-wrapper'. $show_all .'\">';\n\n if( $has_nav ) {\n echo '<div class=\"csf-nav csf-nav-options\">';\n\n echo '<ul>';\n\n $tab_key = 1;\n\n foreach( $this->pre_tabs as $tab ) {\n\n $tab_error = $this->error_check( $tab );\n $tab_icon = ( ! empty( $tab['icon'] ) ) ? '<i class=\"'. $tab['icon'] .'\"></i>' : '';\n\n if( ! empty( $tab['subs'] ) ) {\n\n echo '<li class=\"csf-tab-depth-0\">';\n\n echo '<a href=\"#tab='. $tab_key .'\" class=\"csf-arrow\">'. $tab_icon . $tab['title'] . $tab_error .'</a>';\n\n echo '<ul>';\n\n foreach ( $tab['subs'] as $sub ) {\n\n $sub_error = $this->error_check( $sub );\n $sub_icon = ( ! empty( $sub['icon'] ) ) ? '<i class=\"'. $sub['icon'] .'\"></i>' : '';\n\n echo '<li class=\"csf-tab-depth-1\"><a id=\"csf-tab-link-'. $tab_key .'\" href=\"#tab='. $tab_key .'\">'. $sub_icon . $sub['title'] . $sub_error .'</a></li>';\n\n $tab_key++;\n }\n\n echo '</ul>';\n\n echo '</li>';\n\n } else {\n\n echo '<li class=\"csf-tab-depth-0\"><a id=\"csf-tab-link-'. $tab_key .'\" href=\"#tab='. $tab_key .'\">'. $tab_icon . $tab['title'] . $tab_error .'</a></li>';\n\n $tab_key++;\n }\n\n }\n\n echo '</ul>';\n\n echo '</div>';\n\n }\n\n echo '<div class=\"csf-content\">';\n\n echo '<div class=\"csf-sections\">';\n\n $section_key = 1;\n\n foreach( $this->pre_sections as $section ) {\n\n $onload = ( ! $has_nav ) ? ' csf-onload' : '';\n $section_icon = ( ! empty( $section['icon'] ) ) ? '<i class=\"csf-icon '. $section['icon'] .'\"></i>' : '';\n\n echo '<div id=\"csf-section-'. $section_key .'\" class=\"csf-section'. $onload .'\">';\n echo ( $has_nav ) ? '<div class=\"csf-section-title\"><h3>'. $section_icon . $section['title'] .'</h3></div>' : '';\n echo ( ! empty( $section['description'] ) ) ? '<div class=\"csf-field csf-section-description\">'. $section['description'] .'</div>' : '';\n\n if( ! empty( $section['fields'] ) ) {\n\n foreach( $section['fields'] as $field ) {\n\n $is_field_error = $this->error_check( $field );\n\n if( ! empty( $is_field_error ) ) {\n $field['_error'] = $is_field_error;\n }\n\n $value = ( ! empty( $field['id'] ) && isset( $this->options[$field['id']] ) ) ? $this->options[$field['id']] : '';\n\n CSF::field( $field, $value, $this->unique, 'options' );\n\n }\n\n } else {\n\n echo '<div class=\"csf-no-option csf-text-muted\">'. esc_html__( 'No option provided by developer.', 'csf' ) .'</div>';\n\n }\n\n echo '</div>';\n\n $section_key++;\n }\n\n echo '</div>';\n\n echo '<div class=\"clear\"></div>';\n\n echo '</div>';\n\n echo '<div class=\"csf-nav-background\"></div>';\n\n echo '</div>';\n\n if( ! empty( $this->args['show_footer'] ) ) {\n\n echo '<div class=\"csf-footer\">';\n\n echo '<div class=\"csf-buttons\">';\n echo '<input type=\"submit\" name=\"csf_transient[save]\" class=\"button button-primary csf-save'. $ajax_class .'\" value=\"'. esc_html__( 'Save', 'csf' ) .'\" data-save=\"'. esc_html__( 'Saving...', 'csf' ) .'\">';\n echo ( $this->args['show_reset_section'] ) ? '<input type=\"submit\" name=\"csf_transient[reset_section]\" class=\"button button-secondary csf-reset-section csf-confirm\" value=\"'. esc_html__( 'Reset Section', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset this section options?', 'csf' ) .'\">' : '';\n echo ( $this->args['show_reset_all'] ) ? '<input type=\"submit\" name=\"csf_transient[reset]\" class=\"button button-secondary csf-warning-primary csf-reset-all csf-confirm\" value=\"'. esc_html__( 'Reset All', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset all options?', 'csf' ) .'\">' : '';\n echo '</div>';\n\n echo ( ! empty( $this->args['footer_text'] ) ) ? '<div class=\"csf-copyright\">'. $this->args['footer_text'] .'</div>' : '';\n\n echo '<div class=\"clear\"></div>';\n echo '</div>';\n\n }\n\n echo '</form>';\n\n echo '</div>';\n\n echo '<div class=\"clear\"></div>';\n\n echo ( ! empty( $this->args['footer_after'] ) ) ? $this->args['footer_after'] : '';\n\n echo '</div>';\n\n }", "function shortcode_insert_button()\n\t\t{\n\t\t\t$this->config['name']\t\t= __('Job Submit Form', 'avia_framework' );\n\t\t\t$this->config['tab']\t\t= __('Plugin Additions', 'avia_framework' );\n\t\t\t$this->config['icon']\t\t= AviaBuilder::$path['imagesURL'].\"sc-comments.png\";\n\t\t\t$this->config['order']\t\t= 2;\n\t\t\t$this->config['target']\t\t= 'avia-target-insert';\n\t\t\t$this->config['shortcode'] \t= 'av_jobs_submit_form';\n\t\t\t$this->config['tooltip'] \t= __('Display the job submission form for WP Job Manager', 'avia_framework' );\n\t\t\t$this->config['drag-level'] = 3;\n\t\t}", "function options_page_html()\n\t\t{\n\t\t\tif (!current_user_can('manage_options')) {\n\t\t\t\twp_die(__('You do not have sufficient permissions to access this page.'));\n\t\t\t}\n\t\t\t\n\t\t\techo '<div class=\"wrap\">';\n\t\t\techo '<h2>';\n\t\t\techo 'Verify Meta Tags Plugin Options';\n\t\t\techo '</h2>';\n\t\t\techo '<form method=\"post\" action=\"options.php\">';\n\t\t\tsettings_fields('vmt-options-page');\n\t\t\tdo_settings_sections('vmt-options-page');\n\t\t\techo '<p class=submit>';\n\t\t\techo '<input type=\"submit\" class=\"button-primary\" value=\"' . __('Save Changes') . '\" />';\n\t\t\techo '</p>';\n\t\t\techo '</form>';\n\t\t\techo '</div>';\n\t\t}", "function htheme_launch_shortcode( $atts ) {\r\n\r\n\t\t#SETUP CONTENT CLASS\r\n\t\t$htheme_data = $this->htheme_content->htheme_get_content_launch($atts);\r\n\r\n\t\t#RETURN DATA/HTML\r\n\t\treturn $htheme_data;\r\n\r\n\t}", "function themesflat_shortcode_register_assets() {\t\t\n\t\twp_enqueue_style( 'vc_extend_shortcode', plugins_url('assets/css/shortcodes.css', __FILE__), array() );\t\n\t\twp_enqueue_style( 'vc_extend_style', plugins_url('assets/css/shortcodes-3rd.css', __FILE__),array() );\n\t\twp_register_script( 'themesflat-carousel', plugins_url('assets/3rd/owl.carousel.js', __FILE__), array(), '1.0', true );\n\t\twp_register_script( 'themesflat-flexslider', plugins_url('assets/3rd/jquery.flexslider-min.js', __FILE__), array(), '1.0', true );\t\t\n\t\twp_register_script( 'themesflat-manific-popup', plugins_url('assets/3rd/jquery.magnific-popup.min.js', __FILE__), array(), '1.0', true );\t\t\n\t\twp_register_script( 'themesflat-counter', plugins_url('assets/3rd/jquery-countTo.js', __FILE__), array(), '1.0', true );\n\t\twp_enqueue_script( 'flat-shortcode', plugins_url('assets/js/shortcodes.js', __FILE__), array(), '1.0', true );\n\t\twp_register_script( 'themesflat-google', 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCIm1AxfRgiI_w36PonGqb_uNNMsVGndKo&v=3.7', array(), '1.0', true );\n\t\twp_register_script( 'themesflat-gmap3', plugins_url('assets/3rd/gmap3.min.js', __FILE__), array(), '1.0', true );\t\n\t}", "function optionsframeproject_options() {\n\n\t// Test data\n\t$test_array = array(\n\t\t'one' => __('One', 'options_frameproject_theme'),\n\t\t'two' => __('Two', 'options_frameproject_theme'),\n\t\t'three' => __('Three', 'options_frameproject_theme'),\n\t\t'four' => __('Four', 'options_frameproject_theme'),\n\t\t'five' => __('Five', 'options_frameproject_theme')\n\t);\n\n\t// Multicheck Array\n\t$multicheck_array = array(\n\t\t'one' => __('French Toast', 'options_frameproject_theme'),\n\t\t'two' => __('Pancake', 'options_frameproject_theme'),\n\t\t'three' => __('Omelette', 'options_frameproject_theme'),\n\t\t'four' => __('Crepe', 'options_frameproject_theme'),\n\t\t'five' => __('Waffle', 'options_frameproject_theme')\n\t);\n\n\t// Multicheck Defaults\n\t$multicheck_defaults = array(\n\t\t'one' => '1',\n\t\t'five' => '1'\n\t);\n\n\t// Background Defaults\n\t$background_defaults = array(\n\t\t'color' => '',\n\t\t'image' => '',\n\t\t'repeat' => 'repeat',\n\t\t'position' => 'top center',\n\t\t'attachment'=>'scroll' );\n\n\t// Typography Defaults\n\t$typography_defaults = array(\n\t\t'size' => '15px',\n\t\t'face' => 'georgia',\n\t\t'style' => 'bold',\n\t\t'color' => '#bada55' );\n\t\t\n\t// Typography Options\n\t$typography_options = array(\n\t\t'sizes' => array( '6','12','14','16','20' ),\n\t\t'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),\n\t\t'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),\n\t\t'color' => false\n\t);\n\n\t// Pull all the categories into an array\n\t$options_categories = array();\n\t$options_categories_obj = get_categories();\n\tforeach ($options_categories_obj as $category) {\n\t\t$options_categories[$category->cat_ID] = $category->cat_name;\n\t}\n\t\n\t// Pull all tags into an array\n\t$options_tags = array();\n\t$options_tags_obj = get_tags();\n\tforeach ( $options_tags_obj as $tag ) {\n\t\t$options_tags[$tag->term_id] = $tag->name;\n\t}\n\n\n\t// Pull all the pages into an array\n\t$options_pages = array();\n\t$options_pages_obj = get_pages('sort_column=post_parent,menu_order');\n\t$options_pages[''] = 'Select a page:';\n\tforeach ($options_pages_obj as $page) {\n\t\t$options_pages[$page->ID] = $page->post_title;\n\t}\n\n\t// If using image radio buttons, define a directory path\n\t$imagepath = get_template_directory_uri() . '/images/';\n\n\t$options = array();\n\n\t$options[] = array(\n\t\t'name' => __('General Settings', 'options_frameproject_theme'),\n\t\t'type' => 'heading');\n\t\n\t$options[] = array(\n\t\t'name' => __('Logo Upload', 'options_frameproject_theme'),\n\t\t'desc' => __('Logo Upload.', 'options_frameproject_theme'),\n\t\t'id' => 'hmk_logo',\n\t\t'type' => 'upload');\n\t\n\t\t\t\n\t$options[] = array(\n\t\t'name' => __('Copyright Text', 'options_frameproject_theme'),\n\t\t'desc' => __('Copyright Text.', 'options_frameproject_theme'),\n\t\t'id' => 'hmk_copyright',\n\t\t'type' => 'textarea');\n\t\n\t$wp_editor_settings = array(\n\t\t'wpautop' => false, // Default\n\t\t'textarea_rows' => 8,\n\t\t'quicktags' => false,\n\t\t'tinymce' => false\n\t);\n\n\t$options[] = array(\n\t\t'name' => __('Google Analytics Code', 'options_frameproject_theme'),\n\t\t'desc' =>'',\n\t\t'id' => 'google_analytics',\n\t\t'type' => 'editor',\n\t\t'settings' => $wp_editor_settings );\n\t\n\t$options[] = array(\n\t\t'name' => __('Homepage', 'options_frameproject_theme'),\n\t\t'type' => 'heading');\n\t\n\t$options[] = array(\n\t\t'name' => __('Homepage Text', 'options_frameproject_theme'),\n\t\t'desc' => __('Homepage Text Below Slider.', 'options_frameproject_theme'),\n\t\t'id' => 'hmk_home_text',\n\t\t'std' => 'Quality is never an accident; it is always the result of high intentions, sincere effort, intelligent direction and skillful execution; It represents the wise choice of many alternatives\" William A. Foster.',\n\t\t'type' => 'textarea');\n\t\n\t$options[] = array(\n\t\t'name' => __('Homepage Feature Boxes', 'options_frameproject_theme'),\n\t\t'desc' => __('', 'options_frameproject_theme'),\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => __('Featured Box 1 Image', 'options_frameproject_theme'),\n\t\t'desc' => __('Logo Upload.', 'options_frameproject_theme'),\n\t\t'id' => 'home_feature1_img',\n\t\t'type' => 'upload');\n\t\n\t$options[] = array(\n\t\t'name' => __('Featured Box 1 Page', 'options_frameproject_theme'),\n\t\t'desc' => __('Featured Box 1 Links to this page', 'options_frameproject_theme'),\n\t\t'id' => 'home_feature1_link',\n\t\t'type' => 'select',\n\t\t'std' => '#',\n\t\t'class' => 'mini',\n\t\t'options' => $options_pages);\n\t\n\t$options[] = array(\n\t\t'name' => __('Featured Box 2 Image', 'options_frameproject_theme'),\n\t\t'desc' => __('Logo Upload.', 'options_frameproject_theme'),\n\t\t'id' => 'home_feature2_img',\n\t\t'type' => 'upload');\n\t\n\t$options[] = array(\n\t\t'name' => __('Featured Box 2 Page', 'options_frameproject_theme'),\n\t\t'desc' => __('Featured Box 2 Links to this page', 'options_frameproject_theme'),\n\t\t'id' => 'home_feature2_link',\n\t\t'type' => 'select',\n\t\t'std' => '#',\n\t\t'class' => 'mini',\n\t\t'options' => $options_pages);\n\t\n\t$options[] = array(\n\t\t'name' => __('Social', 'options_frameproject_theme'),\n\t\t'type' => 'heading');\n\t\t\n\t$options[] = array(\n\t\t'name' => __('Facebook Url', 'options_frameproject_theme'),\n\t\t'desc' => __('Facebook Url.', 'options_frameproject_theme'),\n\t\t'id' => 'hmk_facebook_url',\n\t\t'std' => '#',\n\t\t'type' => 'text');\n\t\n\t$options[] = array(\n\t\t'name' => __('Twitter Url', 'options_frameproject_theme'),\n\t\t'desc' => __('Twitter Url.', 'options_frameproject_theme'),\n\t\t'id' => 'hmk_twitter_url',\n\t\t'std' => '#',\n\t\t'type' => 'text');\n\t\n\t$options[] = array(\n\t\t'name' => __('Linkedin Url', 'options_frameproject_theme'),\n\t\t'desc' => __('Linkedin Url.', 'options_frameproject_theme'),\n\t\t'id' => 'hmk_linkedin_url',\n\t\t'std' => '#',\n\t\t'type' => 'text');\n\t\n\t\n\treturn $options;\n}", "function ci_cptr_plugin_options() {\n\t\n\tif ( !current_user_can('manage_options') )\n\t{\n\t\twp_die( __('You do not have sufficient permissions to access this page.') );\n\t}\n\t?>\n\t<div class=\"wrap\" id=\"cptr-options\">\n\t\t<!--<h2><?php echo sprintf(__('CSSIgniter Custom Post Types Relationships v%s - Settings', 'cptr'), CPTR_VERSION); ?></h2>-->\n\t\t<h2><?php echo sprintf(__('CSSIgniter Custom Post Types Relationships', 'cptr'), CPTR_VERSION); ?></h2>\n\t\t<p><?php _e(\"In this page you can define general options for the Custom Post Types Relationships plugin. All options here can be overridden manually by passing the appropriate parameters to the shortcode or the theme function. If you find yourself making changes here that don't have any effect, it's because your WordPress theme has hardcoded options for you, so check with the theme's developer.\", 'cptr'); ?></p>\n\t\t<p><?php echo sprintf(__('For complete usage instructions, please visit the <a href=\"%s\">plugin\\'s homepage</a>.', 'cptr'), 'http://www.cssigniter.com/ignite/custom-post-types-relationships/'); ?></p>\n\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t<?php settings_fields('ci_cptr_plugin_settings'); ?>\n\t\n\t\t\t<?php\n\t\t\t\t$options = get_option(CI_CPTR_PLUGIN_OPTIONS);\n\t\t\t\t$options = ci_cptr_plugin_settings_validate($options);\n\t\t\t?>\n\n\t\t\t<table class=\"form-table\">\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Max number of displayed related posts:', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[limit]\" type=\"text\" value=\"<?php echo $options['limit']; ?>\" class=\"small-text\" />\n\t\t\t\t\t\t<p><?php _e('Set to 0 for no limit.', 'cptr'); ?></p>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Show the excerpt for each post?', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[excerpt]\" type=\"checkbox\" value=\"1\" <?php checked($options['excerpt'], 1); ?> />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('How many words the excerpt should be?', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[words]\" type=\"text\" value=\"<?php echo $options['words']; ?>\" class=\"small-text\" />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Display the thumbnail?', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[thumb]\" type=\"checkbox\" value=\"1\" <?php checked($options['thumb'], 1); ?> />\n\t\t\t\t\t\t<p><?php _e('The thumbnail will be displayed after the title and before the excerpt.', 'cptr'); ?></p>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Thumbnail size', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<label><?php _e('Width', 'cptr'); ?></label>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[width]\" type=\"text\" value=\"<?php echo $options['width']; ?>\" class=\"small-text\" />\n\t\t\t\t\t\t<label><?php _e('Height', 'cptr'); ?></label>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[height]\" type=\"text\" value=\"<?php echo $options['height']; ?>\" class=\"small-text\" />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><h3><?php _e('Display Options', 'cptr'); ?></h3></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Metabox title', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input name=\"<?php echo CI_CPTR_PLUGIN_OPTIONS; ?>[metabox_name]\" type=\"text\" value=\"<?php echo $options['metabox_name']; ?>\" class=\"regular-text\" />\n\t\t\t\t\t\t<p><?php _e('This is the title of the metabox that the users will see while in the post edit screens.', 'cptr'); ?></p>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Allowed roles', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<p><?php _e('Select the roles that will have access to the plugin (i.e. can create/delete relationships).', 'cptr'); ?></p>\n\t\t\t\t\t\t<fieldset class=\"allowed-roles\">\n\t\t\t\t\t\t\t<?php cptr_checkbox_roles(CI_CPTR_PLUGIN_OPTIONS.'[allowed_roles][]', $options['allowed_roles']); ?>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t<th scope=\"row\"><?php _e('Allowed post types', 'cptr'); ?></th>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<p><?php _e('Select the post types that the plugin will be available to.', 'cptr'); ?></p>\n\t\t\t\t\t\t<fieldset class=\"allowed-post-types\">\n\t\t\t\t\t\t\t<?php cptr_checkbox_post_types(CI_CPTR_PLUGIN_OPTIONS.'[allowed_post_types][]', $options['allowed_post_types']); ?>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t</table>\n\t\n\t\t\t<p class=\"submit\">\n\t\t\t\t<input type=\"submit\" class=\"button-primary\" value=\"<?php _e('Save Changes') ?>\" />\n\t\t\t</p>\n\t\t</form>\n\t</div>\n\t\n\t<?php\n}", "public function team_member_element_html($atts)\n\n {\n // Params extraction\n extract(shortcode_atts(array(\n 'image' => '',\n 'team_members_type' => '',\n 'name' => '',\n 'member_image_switch' => '',\n 'member_border_radius' => '', \n 'member_font_size' => '',\n 'member_text_transform' => '',\n 'member_padding_top' => '',\n 'member_padding_left' => '',\n 'member_use_theme_fonts' => '',\n 'member_google_font_select' => '',\n 'member_font_color' => '',\n 'job_position' => '', \n 'position_font_size' => '',\n 'position_text_transform' => '',\n 'position_padding_top' => '',\n 'position_padding_left' => '',\n 'position_use_theme_fonts' => '',\n 'position_google_font_select' => '',\n 'position_font_color' => '',\n 'desc' => '', \n 'description_font_size' => '',\n 'description_text_transform' => '',\n 'description_padding_top' => '',\n 'description_padding_left' => '',\n 'description_use_theme_fonts' => '',\n 'description_google_font_select' => '',\n 'description_font_color' => '', \n 'social_link_color' => '',\n 'social_icon_color' => '',\n 'social_icon_font_size' => '',\n 'social_link_1' => '',\n 'social_link_2' => '',\n 'social_link_3' => '',\n 'social_link_4' => '',\n 'social_link_5' => '',\n 'social_link_6' => '',\n 'social_link_text_1' => '',\n 'social_link_text_2' => '',\n 'social_link_text_3' => '',\n 'social_link_text_4' => '',\n 'social_link_text_5' => '',\n 'social_link_text_6' => '',\n 'social_link_icon_1' => '',\n 'social_link_icon_2' => '',\n 'social_link_icon_3' => '',\n 'social_link_icon_4' => '',\n 'social_link_icon_5' => '',\n 'social_link_icon_6' => '', \n 'member_avatar_scale' => '',\n 'link' => '',\n 'el_class' => '',\n 'css' => '',\n 'slcr_img_link_template' => '',\n ) , $atts));\n $uid2 = uniqid();\n $inline_name=\"inline_slcr\";\n // get image url\n if ($member_border_radius == \"\") {\n $member_border_radius = \"\";\n }\n else {\n $member_border_radius=apply_filters( 'slcr_value_parameter_filter', $member_border_radius); \n }\n $img_url = wp_get_attachment_image_src($image, \"full\");\n if ('' !== $el_class) {\n $rel_class = ' ' . str_replace('.', '', $el_class);\n }\n else {\n $rel_class = ' ';\n }\n if ($social_icon_font_size == \"\") {\n $rsocial_icon_font_size = \"\";\n }\n else {\n $social_icon_font_size=apply_filters( 'slcr_value_parameter_filter', $social_icon_font_size);\n $rsocial_icon_font_size = \"font-size: \" . $social_icon_font_size . \" !important;\";\n } \n if ($social_icon_color == \"\") {\n $rsocial_icon_color = \"\";\n }\n else {\n $rsocial_icon_color = \"color: \" . $social_icon_color . \" !important;\";\n }\n if ($social_icon_font_size == \"\" && $social_icon_color == \"\") {\n $ricon_css = \"\";\n }\n else {\n $ricon_css = $rsocial_icon_color .' '.$rsocial_icon_font_size;\n } \n // get custom value of member link\n if (!empty($link)) {\n $link = vc_build_link($link);\n $rlink = ' href=\"' . esc_url($link['url']) . '\"' . ($link['target'] ? ' target=\"' . esc_attr($link['target']) . '\"' : '') . ($link['rel'] ? ' rel=\"' . esc_html($link['rel']) . '\"' : '') . ($link['title'] ? ' title=\"' . esc_attr($link['title']) . '\"' : '');\n $olink = '<a ' . $rlink . ' class=\"link\"><i class=\"arrow_right\"></i></a>';\n }\n else {\n $olink = \"\";\n }\n // get custom color for member link\n if (!empty($social_link_color)) {\n $srocial_link_color = 'color: ' . $social_link_color . ';';\n }\n else {\n $srocial_link_color = \"\";\n }\n // get social link for Team Members Type 4\n if ($team_members_type == \"Team_Members_Type_4\") {\n $uid2 = uniqid();\n $slcr_team_members_social_link = '.slcr_team_members_social_link_' . $uid2 . ' { ' . esc_attr($srocial_link_color) . ' }';\n $name_inline_slcr=\"inline_slcr\";\n $value=$slcr_team_members_social_link;\n do_action( 'wp_enqueue_scripts',$value,$name_inline_slcr);\n if (!empty($social_link_1)) {\n $social_link_1 = vc_build_link($social_link_1);\n $social_link_1_out = '<li><a href=\"' . esc_attr($social_link_1['url']) . '\"' . ($social_link_1['target'] ? ' target=\"' . esc_attr($social_link_1['target']) . '\"' : '') . ($social_link_1['rel'] ? ' rel=\"' . esc_attr($social_link_1['rel']) . '\"' : '') . ($social_link_1['title'] ? ' title=\"' . esc_attr($social_link_1['title']) . '\"' : '') . ' class=\"color-theme-main slcr_team_members_social_link_' . $uid2 . '\">' . esc_html($social_link_text_1) . '</a></li>';\n }\n else {\n $social_link_1_out = \"\";\n }\n if (!empty($social_link_2)) {\n $social_link_2 = vc_build_link($social_link_2);\n $social_link_2_out = '<li><a href=\"' . esc_attr($social_link_2['url']) . '\"' . ($social_link_2['target'] ? ' target=\"' . esc_attr($social_link_2['target']) . '\"' : '') . ($social_link_2['rel'] ? ' rel=\"' . esc_attr($social_link_2['rel']) . '\"' : '') . ($social_link_2['title'] ? ' title=\"' . esc_attr($social_link_2['title']) . '\"' : '') . ' class=\"color-theme-main slcr_team_members_social_link_' . $uid2 . '\">' . esc_html($social_link_text_2) . '</a></li>';\n }\n else {\n $social_link_2_out = \"\";\n }\n if (!empty($social_link_3)) {\n $social_link_3 = vc_build_link($social_link_3);\n $social_link_3_out = '<li><a href=\"' . esc_attr($social_link_3['url']) . '\"' . ($social_link_3['target'] ? ' target=\"' . esc_attr($social_link_3['target']) . '\"' : '') . ($social_link_3['rel'] ? ' rel=\"' . esc_attr($social_link_3['rel']) . '\"' : '') . ($social_link_3['title'] ? ' title=\"' . esc_attr($social_link_3['title']) . '\"' : '') . ' class=\"color-theme-main slcr_team_members_social_link_' . $uid2 . '\">' . esc_html($social_link_text_3) . '</a></li>';\n }\n else {\n $social_link_3_out = \"\";\n }\n if (!empty($social_link_4)) {\n $social_link_4 = vc_build_link($social_link_4);\n $social_link_4_out = '<li><a href=\"' . esc_attr($social_link_4['url']) . '\"' . ($social_link_4['target'] ? ' target=\"' . esc_attr($social_link_4['target']) . '\"' : '') . ($social_link_4['rel'] ? ' rel=\"' . esc_attr($social_link_4['rel']) . '\"' : '') . ($social_link_4['title'] ? ' title=\"' . esc_attr($social_link_4['title']) . '\"' : '') . ' class=\"color-theme-main slcr_team_members_social_link_' . $uid2 . '\">' . esc_html($social_link_text_4) . '</a></li>';\n }\n else {\n $social_link_4_out = \"\";\n }\n if (!empty($social_link_5)) {\n $social_link_5 = vc_build_link($social_link_5);\n $social_link_5_out = '<li><a href=\"' . esc_attr($social_link_5['url']) . '\"' . ($social_link_5['target'] ? ' target=\"' . esc_attr($social_link_5['target']) . '\"' : '') . ($social_link_5['rel'] ? ' rel=\"' . esc_attr($social_link_5['rel']) . '\"' : '') . ($social_link_5['title'] ? ' title=\"' . esc_attr($social_link_5['title']) . '\"' : '') . ' class=\"color-theme-main slcr_team_members_social_link_' . $uid2 . '\">' . esc_html($social_link_text_5) . '</a></li>';\n }\n else {\n $social_link_5_out = \"\";\n }\n if (!empty($social_link_6)) {\n $social_link_6 = vc_build_link($social_link_6);\n $social_link_6_out = '<li><a href=\"' . esc_attr($social_link_6['url']) . '\"' . ($social_link_6['target'] ? ' target=\"' . esc_attr($social_link_6['target']) . '\"' : '') . ($social_link_6['rel'] ? ' rel=\"' . esc_attr($social_link_6['rel']) . '\"' : '') . ($social_link_6['title'] ? ' title=\"' . esc_attr($social_link_6['title']) . '\"' : '') . ' class=\"color-theme-main slcr_team_members_social_link_' . $uid2 . '\">' . esc_html($social_link_text_6) . '</a></li>';\n }\n else {\n $social_link_6_out = \"\";\n }\n }\n // get social link for Team Members Type 7\n else {\n $slcr_custom_teammembers_social_css = '.slcr_custom_teammembers_social_' . $uid2 . '{ '.$ricon_css.' }';\n $value=$slcr_custom_teammembers_social_css;\n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n if (!empty($social_link_1)) {\n $social_link_1 = vc_build_link($social_link_1);\n $social_link_1_out = '<li><a href=\"' . esc_attr($social_link_1['url']) . '\"' . ($social_link_1['target'] ? ' target=\"' . esc_attr($social_link_1['target']) . '\"' : '') . ($social_link_1['rel'] ? ' rel=\"' . esc_attr($social_link_1['rel']) . '\"' : '') . ($social_link_1['title'] ? ' title=\"' . esc_attr($social_link_1['title']) . '\"' : '') . ' class=\"color-theme-main slcr_custom_teammembers_social_' . $uid2 . '\"><i class=\"socicon-' . esc_html($social_link_icon_1) . '\"></i></a></li>';\n }\n else {\n $social_link_1_out = \"\";\n }\n if (!empty($social_link_2)) {\n $social_link_2 = vc_build_link($social_link_2);\n $social_link_2_out = '<li><a href=\"' . esc_attr($social_link_2['url']) . '\"' . ($social_link_2['target'] ? ' target=\"' . esc_attr($social_link_2['target']) . '\"' : '') . ($social_link_2['rel'] ? ' rel=\"' . esc_attr($social_link_2['rel']) . '\"' : '') . ($social_link_2['title'] ? ' title=\"' . esc_attr($social_link_2['title']) . '\"' : '') . ' class=\"color-theme-main slcr_custom_teammembers_social_' . $uid2 . '\"><i class=\"socicon-' . esc_html($social_link_icon_2) . '\"></i></a></li>';\n }\n else {\n $social_link_2_out = \"\";\n }\n if (!empty($social_link_3)) {\n $social_link_3 = vc_build_link($social_link_3);\n $social_link_3_out = '<li><a href=\"' . esc_attr($social_link_3['url']) . '\"' . ($social_link_3['target'] ? ' target=\"' . esc_attr($social_link_3['target']) . '\"' : '') . ($social_link_3['rel'] ? ' rel=\"' . esc_attr($social_link_3['rel']) . '\"' : '') . ($social_link_3['title'] ? ' title=\"' . esc_attr($social_link_3['title']) . '\"' : '') . ' class=\"color-theme-main slcr_custom_teammembers_social_' . $uid2 . '\"><i class=\"socicon-' . esc_html($social_link_icon_3) . '\"></i></a></li>';\n }\n else {\n $social_link_3_out = \"\";\n }\n if (!empty($social_link_4)) {\n $social_link_4 = vc_build_link($social_link_4);\n $social_link_4_out = '<li><a href=\"' . esc_attr($social_link_4['url']) . '\"' . ($social_link_4['target'] ? ' target=\"' . esc_attr($social_link_4['target']) . '\"' : '') . ($social_link_4['rel'] ? ' rel=\"' . esc_attr($social_link_4['rel']) . '\"' : '') . ($social_link_4['title'] ? ' title=\"' . esc_attr($social_link_4['title']) . '\"' : '') . ' class=\"color-theme-main slcr_custom_teammembers_social_' . $uid2 . '\"><i class=\"socicon-' . esc_html($social_link_icon_4) . '\"></i></a></li>';\n }\n else {\n $social_link_4_out = \"\";\n }\n if (!empty($social_link_5)) {\n $social_link_5 = vc_build_link($social_link_5);\n $social_link_5_out = '<li><a href=\"' . esc_attr($social_link_5['url']) . '\"' . ($social_link_5['target'] ? ' target=\"' . esc_attr($social_link_5['target']) . '\"' : '') . ($social_link_5['rel'] ? ' rel=\"' . esc_attr($social_link_5['rel']) . '\"' : '') . ($social_link_5['title'] ? ' title=\"' . esc_attr($social_link_5['title']) . '\"' : '') . ' class=\"color-theme-main slcr_custom_teammembers_social_' . $uid2 . '\"><i class=\"socicon-' . esc_html($social_link_icon_5) . '\"></i></a></li>';\n }\n else {\n $social_link_5_out = \"\";\n }\n if (!empty($social_link_6)) {\n $social_link_6 = vc_build_link($social_link_6);\n $social_link_6_out = '<li><a href=\"' . esc_attr($social_link_6['url']) . '\"' . ($social_link_6['target'] ? ' target=\"' . esc_attr($social_link_6['target']) . '\"' : '') . ($social_link_6['rel'] ? ' rel=\"' . esc_attr($social_link_6['rel']) . '\"' : '') . ($social_link_6['title'] ? ' title=\"' . esc_attr($social_link_6['title']) . '\"' : '') . ' class=\"color-theme-main slcr_custom_teammembers_social_' . $uid2 . '\"><i class=\"socicon-' . esc_html($social_link_icon_6) . '\"></i></a></li>';\n }\n else {\n $social_link_6_out = \"\";\n }\n }\n\n // get custom css value\n $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css, ' ') , $this->settings['init'], $atts);\n // **********************************google font for a title *****************************************\n if ($member_use_theme_fonts == \"Yes\") {\n // Build the data array\n $member_font_data = $this->getFontsData($member_google_font_select);\n // Build the inline style\n $member_font_inline_style = $this->googleFontsStyles($member_font_data);\n // Enqueue the right font\n $this->enqueueGoogleFonts($member_font_data);\n }\n else {\n $member_font_inline_style = \"\";\n }\n // get member text transform value\n if ($member_text_transform == \"Default\") {\n $rmember_text_transform = \"\";\n }\n else {\n $rmember_text_transform = $member_text_transform;\n }\n // condition for member text size value\n if ($member_font_size == \"\") {\n $rmember_font_size = \"\";\n }\n else {\n $member_font_size=apply_filters( 'slcr_value_parameter_filter', $member_font_size);\n $rmember_font_size = \" font-size: \" . $member_font_size . \";\";\n }\n // condition for member text color value\n if ($member_font_color == \"\") {\n $rmember_font_color = \"\";\n }\n else {\n $rmember_font_color = \" color: \" . $member_font_color . \" !important;\";\n }\n // condition for member text padding top bottom value\n if ($member_padding_top == \"\") {\n $rmember_padding_top = \"\";\n }\n else {\n $member_padding_top=apply_filters( 'slcr_value_parameter_filter', $member_padding_top);\n $rmember_padding_top = \" padding-top: \" . $member_padding_top . \"; padding-bottom: \" . $member_padding_top . \";\";\n }\n // condition for member text padding left right value\n if ($member_padding_left == \"\") {\n $rmember_padding_left = \"\";\n }\n else {\n $member_padding_left=apply_filters( 'slcr_value_parameter_filter', $member_padding_left);\n $rmember_padding_left = \" padding-left: \" . $member_padding_left . \"; padding-right: \" . $member_padding_left . \";\";\n }\n // condition for member text transform value\n if ($rmember_text_transform == \"\") {\n $r2member_text_transform = \"\";\n }\n else {\n $r2member_text_transform = \" text-transform: \" . $rmember_text_transform . \";\";\n }\n // **********************************google font for a title *****************************************\n if ($position_use_theme_fonts == \"Yes\") {\n // Build the data array\n $position_font_data = $this->getFontsData($position_google_font_select);\n // Build the inline style\n $position_font_inline_style = $this->googleFontsStyles($position_font_data);\n // Enqueue the right font\n $this->enqueueGoogleFonts($position_font_data);\n }\n else {\n $position_font_inline_style = \"\";\n }\n // get position text transform value\n if ($position_text_transform == \"Default\") {\n $rposition_text_transform = \"\";\n }\n else {\n $rposition_text_transform = $position_text_transform;\n }\n // condition for position text size value\n if ($position_font_size == \"\") {\n $rposition_font_size = \"\";\n }\n else {\n $position_font_size=apply_filters( 'slcr_value_parameter_filter', $position_font_size);\n $rposition_font_size = \" font-size: \" . $position_font_size . \";\";\n }\n // condition for position text color value\n if ($position_font_color == \"\") {\n $rposition_font_color = \"\";\n }\n else {\n $rposition_font_color = \" color: \" . $position_font_color . \" !important;\";\n }\n // condition for position text padding top bottom value\n if ($position_padding_top == \"\") {\n $rposition_padding_top = \"\";\n }\n else {\n $position_padding_top=apply_filters( 'slcr_value_parameter_filter', $position_padding_top);\n $rposition_padding_top = \" padding-top: \" . $position_padding_top . \"; padding-bottom: \" . $position_padding_top . \";\";\n }\n // condition for position text padding left right value\n if ($position_padding_left == \"\") {\n $rposition_padding_left = \"\";\n }\n else {\n $position_padding_left=apply_filters( 'slcr_value_parameter_filter', $position_padding_left);\n $rposition_padding_left = \" padding-left: \" . $position_padding_left . \"; padding-right: \" . $position_padding_left . \";\";\n }\n // condition for position text transform value\n if ($rposition_text_transform == \"\") {\n $r2position_text_transform = \"\";\n }\n else {\n $r2position_text_transform = \" text-transform: \" . $rposition_text_transform . \";\";\n }\n // **********************************google font for a title *****************************************\n if ($description_use_theme_fonts == \"Yes\") {\n // Build the data array\n $description_font_data = $this->getFontsData($description_google_font_select);\n // Build the inline style\n $description_font_inline_style = $this->googleFontsStyles($description_font_data);\n // Enqueue the right font\n $this->enqueueGoogleFonts($description_font_data);\n }\n else {\n $description_font_inline_style = \"\";\n }\n // get description text transform value\n if ($description_text_transform == \"Default\") {\n $rdescription_text_transform = \"\";\n }\n else {\n $rdescription_text_transform = $description_text_transform;\n }\n // condition for description text size value\n if ($description_font_size == \"\") {\n $rdescription_font_size = \"\";\n }\n else {\n $description_font_size=apply_filters( 'slcr_value_parameter_filter', $description_font_size);\n $rdescription_font_size = \" font-size: \" . $description_font_size . \";\";\n }\n // condition for description text color value\n if ($description_font_color == \"\") {\n $rdescription_font_color = \"\";\n }\n else {\n $rdescription_font_color = \" color: \" . $description_font_color . \" !important;\";\n }\n // condition for description text padding top bottom value\n if ($description_padding_top == \"\") {\n $rdescription_padding_top = \"\";\n }\n else {\n $description_padding_top=apply_filters( 'slcr_value_parameter_filter', $description_padding_top);\n $rdescription_padding_top = \" padding-top: \" . $description_padding_top . \"; padding-bottom: \" . $description_padding_top . \";\";\n }\n // condition for description text padding left right value\n if ($description_padding_left == \"\") {\n $rdescription_padding_left = \"\";\n }\n else {\n $description_padding_left=apply_filters( 'slcr_value_parameter_filter', $description_padding_left);\n $rdescription_padding_left = \" padding-left: \" . $description_padding_left . \"; padding-right: \" . $description_padding_left . \";\";\n }\n // condition for description text transform value\n if ($rdescription_text_transform == \"\") {\n $r2description_text_transform = \"\";\n }\n else {\n $r2description_text_transform = \" text-transform: \" . $rdescription_text_transform . \";\";\n }\n\n if ($member_avatar_scale == \"Yes\") {\n $rmember_avatar_scale =\"true\";\n }\n else {\n $rmember_avatar_scale =\"false\";\n }\n if(empty($img_url[0])){\n if (!empty($slcr_img_link_template)) {\n if (filter_var($slcr_img_link_template, FILTER_VALIDATE_URL)) { \n $img_url[0] = $slcr_img_link_template; \n } \n } \n }\n // condition for team members type to give html structure according to that\n switch ($team_members_type) {\n case 'Team_Members_Type_2': \n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_' . $uid2 . ' .image_rounded { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' .text h5 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . ' ' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .text p { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style) . ' } ';\n $value=$slcr_custom_teammembers_css;\n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n $html = ' \n <!-- MEMBER -->\n <figure class=\"team__02' . esc_attr($rel_class) . '' . esc_attr($css_class) . ' slcr_custom_teammembers_' . $uid2 . '\" data-avatar-scale=\"' . esc_attr($rmember_avatar_scale) . '\" >\n <img src=\"' . esc_url($img_url[0]) . '\" alt=\"'. esc_attr__('Member','sc-core').'\" class=\"avatar full_image image_rounded\" />\n <div class=\"text\">\n <h5 class=\" gap-10 mb-0\">' . esc_html($name) . '</h5>\n <p class=\"font-reset gap-0\">' . esc_html($job_position) . '</p>\n <ul>' . $social_link_1_out . '' . $social_link_2_out . '' . $social_link_3_out . '' . $social_link_4_out . '' . $social_link_5_out . '' . $social_link_6_out . '</ul>\n </div>\n </figure>';\n break;\n\n case 'Team_Members_Type_3': \n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_' . $uid2 . ' .full_image { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' .overlay { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' .overlay .meta h4 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . ' ' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .overlay .meta h5 { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .overlay .meta p { ' . esc_attr($rdescription_font_size) . '' . esc_attr($rdescription_font_color) . '' . esc_attr($rdescription_padding_top) . '' . esc_attr($rdescription_padding_left) . '' . esc_attr($r2description_text_transform) . ' ' . esc_attr($description_font_inline_style) . ' }';\n $value=$slcr_custom_teammembers_css;\n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n $html = ' \n <!-- MEMBER -->\n <figure class=\"team__03' . esc_attr($rel_class) . '' . esc_attr($css_class) . '\">\n <!-- IMAGE -->\n <div class=\"image slcr_custom_teammembers_' . $uid2 . '\">\n <img src=\"' . esc_url($img_url[0]) . '\" alt=\"'. esc_attr__('Avatar','sc-core').'\" class=\"full_image\" />\n <!-- META -->\n <div class=\"overlay\">\n <div class=\"meta\">\n <h4 class=\"color-white mb-0\">' . esc_html($name) . '</h4>\n <h5 class=\"font-reset color-white gap-0\">' . esc_html($job_position) . '</h5>\n <p class=\"font-reset color-white gap-20 mb-0\">' . esc_html($desc) . '</p>\n ' . $olink . '\n </div>\n </div>\n </div>\n </figure>';\n break;\n\n case 'Team_Members_Type_4':\n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_' . $uid2 . ' .image .full_image { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' .meta h4 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . ' ' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .meta h5 { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .meta p { ' . esc_attr($rdescription_font_size) . '' . esc_attr($rdescription_font_color) . '' . esc_attr($rdescription_padding_top) . '' . esc_attr($rdescription_padding_left) . '' . esc_attr($r2description_text_transform) . ' ' . esc_attr($description_font_inline_style) . ' }';\n $value=$slcr_custom_teammembers_css; \n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n $html = ' \n <!-- MEMBER -->\n <figure class=\"team__04' . esc_attr($rel_class) . '' . esc_attr($css_class) . ' slcr_custom_teammembers_' . $uid2 . '\">\n <!-- IMAGE -->\n <div class=\"image\">\n <img src=\"' . esc_url($img_url[0]) . '\" alt=\"'. esc_attr__('Avatar','sc-core').'\" class=\"full_image\" />\n </div>\n <!-- META -->\n <div class=\"meta\">\n <h4 class=\"mb-0\">' . esc_html($name) . '</h4>\n <h5 class=\"color-secondary\">' . esc_html($job_position) . '</h5>\n <p class=\"font-reset gap-20\">' . esc_html($desc) . '</p>\n <!-- SOCIAL LINKS -->\n <ul>' . $social_link_1_out . '' . $social_link_2_out . '' . $social_link_3_out . '' . $social_link_4_out . '' . $social_link_5_out . '' . $social_link_6_out . '</ul>\n </div>\n </figure>';\n break;\n\n case 'Team_Members_Type_5': \n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_img_' . $uid2 . ' { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' h5 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . ' ' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' p { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style) . ' } ';\n $value=$slcr_custom_teammembers_css; \n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n $html = ' \n <!-- MEMBER -->\n <figure class=\"team__05-wrap' . esc_attr($rel_class) . '' . esc_attr($css_class) . '\">\n <div class=\"team__05\">\n <!-- IMAGE -->\n <div class=\"col-md-4 col-xs-4\">\n <div class=\"row\">\n <img src=\"' . esc_url($img_url[0]) . '\" class=\"avatar full_image slcr_custom_teammembers_img_' . $uid2 . '\" alt=\"'. esc_attr__('Avatar','sc-core').'\" />\n </div>\n </div>\n <!-- META -->\n <div class=\"col-md-8 col-xs-8\">\n <div class=\"row\">\n <div class=\"meta slcr_custom_teammembers_' . $uid2 . '\">\n <h5 class=\"gap-0 mb-0\">' . esc_html($name) . '</h5>\n <p class=\"font-reset\">' . esc_html($job_position) . '</p>\n <ul>' . $social_link_1_out . '' . $social_link_2_out . '' . $social_link_3_out . '' . $social_link_4_out . '' . $social_link_5_out . '' . $social_link_6_out . '</ul>\n </div>\n </div>\n </div>\n </div>\n </figure>';\n break;\n\n case 'Team_Members_Type_6':\n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_img_' . $uid2 . ' { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' h5 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . ' ' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' p { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style) . ' } ';\n $value=$slcr_custom_teammembers_css; \n do_action( 'wp_enqueue_scripts',$value,$inline_name); \n $html = ' \n <!-- MEMBER -->\n <div class=\"team__06 text-center' . esc_attr($rel_class) . '' . esc_attr($css_class) . '\" data-avatar-scale=\"' . $rmember_avatar_scale . '\">\n <!-- IMAGE -->\n <div class=\"image\">\n <img src=\"' . esc_url($img_url[0]) . '\" class=\"avatar full_image slcr_custom_teammembers_img_' . $uid2 . '\" alt=\"'. esc_attr__('Avatar','sc-core').'\" />\n </div>\n <!-- META -->\n <div class=\"meta slcr_custom_teammembers_' . $uid2 . '\">\n <h5 class=\"gap-0 mb-0\">' . esc_html($name) . '</h5>\n <p class=\"gap-0\">' . esc_html($job_position) . '</p>\n <ul>' . $social_link_1_out . '' . $social_link_2_out . '' . $social_link_3_out . '' . $social_link_4_out . '' . $social_link_5_out . '' . $social_link_6_out . '</ul>\n </div>\n </div>\n ';\n break;\n\n case 'Team_Members_Type_7': \n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_img_' . $uid2 . ' { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' .meta h3 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . '' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .meta h5 { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' .meta p { ' . esc_attr($rdescription_font_size) . '' . esc_attr($rdescription_font_color) . '' . esc_attr($rdescription_padding_top) . '' . esc_attr($rdescription_padding_left) . '' . esc_attr($r2description_text_transform) . ' ' . esc_attr($description_font_inline_style) . ' }';\n $value=$slcr_custom_teammembers_css; \n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n $html = ' \n <!-- MEMBER -->\n <figure class=\" team__07 switch-' . esc_attr($member_image_switch) . '' . esc_attr($rel_class) . '' . esc_attr($css_class) . '\">\n <div class=\"row\">\n <!-- IMAGE -->\n <div class=\"col-md-6 col-sm-6\">\n <div class=\"image\">\n <img src=\"' . esc_url($img_url[0]) . '\" class=\"full_image image_rounded slcr_custom_teammembers_img_' . $uid2 . '\" alt=\"'. esc_attr__('Avatar','sc-core').'\" />\n </div>\n </div>\n <!-- META -->\n <div class=\"col-md-5 col-sm-6 slcr_custom_teammembers_' . $uid2 . '\">\n <div class=\"meta\">\n <h3 class=\"mb-0 gap-0\">' . esc_html($name). '</h3>\n <h5 class=\"gap-0 color-secondary\">' . esc_html($job_position) . '</h5>\n <p class=\"gap-20\">' . esc_html($desc) . '</p>\n <ul>' . $social_link_1_out . '' . $social_link_2_out . '' . $social_link_3_out . '' . $social_link_4_out . '' . $social_link_5_out . '' . $social_link_6_out . '</ul>\n </div>\n </div>\n </div>\n </figure>';\n break;\n\n default: \n $slcr_custom_teammembers_css = '.slcr_custom_teammembers_img_' . $uid2 . ' { border-radius: ' . esc_attr($member_border_radius) . ' } .slcr_custom_teammembers_' . $uid2 . ' h5 { ' . esc_attr($rmember_font_size) . '' . esc_attr($rmember_font_color) . '' . esc_attr($rmember_padding_top) . '' . esc_attr($rmember_padding_left) . '' . esc_attr($r2member_text_transform) . ' ' . esc_attr($member_font_inline_style) . ' } .slcr_custom_teammembers_' . $uid2 . ' p { ' . esc_attr($rposition_font_size) . '' . esc_attr($rposition_font_color) . '' . esc_attr($rposition_padding_top) . '' . esc_attr($rposition_padding_left) . '' . esc_attr($r2position_text_transform) . ' ' . esc_attr($position_font_inline_style). ' } ';\n $value=$slcr_custom_teammembers_css; \n do_action( 'wp_enqueue_scripts',$value,$inline_name);\n $html = ' \n <!-- TEAM 01 -->\n <figure class=\"team__01' . esc_attr($rel_class) . '' . esc_attr($css_class) . ' slcr_custom_teammembers_' . $uid2 . '\" data-avatar-scale=\"' . esc_attr($rmember_avatar_scale) . '\" >\n <img src=\"' . esc_url($img_url[0]) . '\" alt=\"'. esc_attr__('Member','sc-core').'\" class=\"avatar full_image image_rounded slcr_custom_teammembers_img_' . $uid2 . '\" />\n <h5 class=\" gap-20 mb-0\">' . esc_html($name) . '</h5>\n <p class=\"font-reset gap-0\">' . esc_html($job_position) . '</p>\n <ul>' . $social_link_1_out . '' . $social_link_2_out . '' . $social_link_3_out . '' . $social_link_4_out . '' . $social_link_5_out . '' . $social_link_6_out . '</ul>\n </figure>';\n break;\n }\n return $html;\n }", "public function get_plugin_settings_page() { ?>\r\n\t\t<p>Configure the default MF-Timeline settings below. You can override these settings when calling the shortcode in your posts or the function in your templates.</p>\r\n\t\r\n\t\t<form action=\"options.php\" method=\"POST\">\r\n\t\t\t<?php\r\n\t\t\t\tglobal $wp_taxonomies, $wp;\r\n\t\t\t\t$nonhierarchical = null;\r\n\t\t\t\t\r\n\t\t\t\tsettings_fields( 'mf_timeline_settings' );\r\n\t\t\t\t$options = get_option( 'mf_timeline' );\r\n\t\t\t?>\r\n\t\t\t<input type=\"hidden\" name=\"mf_timeline[db_version]\" value=\"<?php echo $options['db_version']; ?>\" />\r\n\t\t\t\r\n\t\t\t<h3>General Settings</h3>\r\n\t\t\t<fieldset>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<label for=\"mf_timeline[options][timeline_nav]\"><strong>Timeline Years Menu:</strong></label><br/>\r\n\t\t\t\t\t\t<select name=\"mf_timeline[options][timeline_nav]\" id=\"mf_timeline[options][timeline_nav]\" style=\"width: 100px;\">\r\n\t\t\t\t\t\t\t<option value=\"1\" <?php selected( '1', $options['options']['timeline_nav'] ); ?>>Show</option>\r\n\t\t\t\t\t\t\t<option value=\"0\" <?php selected( '0', $options['options']['timeline_nav'] ); ?>>Hide</option>\r\n\t\t\t\t\t\t</select><br/>\r\n\t\t\t\t\t\t<span class=\"description\">Appears fixed next to the timeline allowing the user to navigate past events more easily.</span>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t</ul>\r\n\t\t\t</fieldset>\r\n\t\t\t<h3>Wordpress Content</h3>\r\n\t\t\t<fieldset>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<h4>Include content from:</h4>\r\n\t\t\t\t\t\t<?php foreach( get_post_types( '', 'object' ) as $key=>$post_type ) :?>\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"mf_timeline[options][wp][content][<?php echo $key;?>]\" id=\"mf_timeline[options][wp][content][<?php echo $key;?>]\" value=\"1\" <?php checked( '1', $options['options']['wp']['content'][$key] ); ?> />\r\n\t\t\t\t\t\t\t<label for=\"mf_timeline[options][wp][content][<?php echo $key;?>]\"><?php _e( $post_type->labels->name ); ?></label><br />\r\n\t\t\t\t\t\t<?php endforeach;?>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<h4>Filter by the following taxonomies:</h4>\r\n\t\t\t\t\t\t<p class=\"description clear\">Leave blank to not filter by taxonomies.</p>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<?php if ( is_array( $wp_taxonomies ) ) : ?>\r\n\t\t\t\t\t\t\t<?php foreach ( $wp_taxonomies as $tax ) :?>\r\n\t\t\t\t\t\t\t\t<?php if ( !in_array( $tax->name, array( 'nav_menu', 'link_category', 'podcast_format' ) ) ) : ?>\r\n\t\t\t\t\t\t\t\t\t<?php if ( !is_taxonomy_hierarchical( $tax->name ) ) : // non-hierarchical ?>\r\n\t\t\t\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t\t\t\t\t$nonhierarchical .= '<p class=\"alignleft\"><label for=\"mf_timeline[options][wp][filter][term][' . esc_attr($tax->name).']\"><strong>' . esc_html( $tax->label ) . ': </strong></label><br />';\r\n\t\t\t\t\t\t\t\t\t\t\t$nonhierarchical .= '<input type=\"text\" name=\"mf_timeline[options][wp][filter][term][' . esc_attr( $tax->name ) . ']\" id=\"mf_timeline[options][wp][filter][term][' . esc_attr( $tax->name ) . ']\" class=\"widefloat\" style=\"margin-right: 2em;\" value=\"' . $options['options']['wp']['filter']['term'][$tax->name] . '\" /></p>';\r\n\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t<?php else: // hierarchical ?>\r\n\t\t\t\t\t\t\t\t\t\t <div class=\"categorychecklistbox\">\r\n\t\t\t\t\t\t\t\t\t\t\t<label><strong><?php echo $tax->label;?></strong><br />\r\n\t\t\t\t\t\t\t\t \t<ul class=\"categorychecklist\">\r\n\t\t\t\t\t\t\t\t\t \t\t<?php $terms = get_terms( $tax->name );?>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t<?php foreach( $terms as $term ) :?>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"mf_timeline[options][wp][filter][taxonomy][<?php echo $term->term_id;?>]\" id=\"mf_timeline[options][wp][filter][taxonomy][<?php echo $term->term_id;?>]\" value=\"1\" <?php checked('1', $options['options']['wp']['filter']['taxonomy'][$term->term_id]); ?> />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"mf_timeline[options][wp][filter][taxonomy][<?php echo esc_html($term->term_id);?>]\"><?php echo $term->name;?></label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<?php endforeach;?>\r\n\t\t\t\t\t\t\t\t\t\t\t</ul> \r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t<?php endif;?>\r\n\t\t\t\t\t\t\t\t<?php endif;?>\r\n\t\t\t\t\t\t\t<?php endforeach; ?>\r\n\t\t\t\t\t\t<?php endif; ?>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li class=\"clear\">\r\n\t\t\t\t\t\t<br /><h4>Filter by the following terms:</h4>\r\n\t\t\t\t\t\t<p class=\"description\">Separate terms with commas. Leave blank to not filter by terms.</p>\r\n\t\t\t\t\t\t<?php echo $nonhierarchical;?>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t</ul>\r\n\t\t\t</fieldset>\r\n\t\t\r\n\t\t\t<h3>Twitter Content</h3>\r\n\t\t\t<fieldset>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<label for=\"mf_timeline[options][twitter][content][username]\"><strong>Twitter Username:</strong></label><br/>\r\n\t\t\t\t\t\t<input type=\"text\" name=\"mf_timeline[options][twitter][content][username]\" id=\"mf_timeline[options][twitter][content][username]\" value=\"<?php echo ( !empty( $options['options']['twitter']['content']['username'] ) ) ? $options['options']['twitter']['content']['username'] : null;?>\" />\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<label for=\"mf_timeline[options][twitter][filter][tags]\"><strong>Filter by the following hashtags:</strong></label><br/>\r\n\t\t\t\t\t\t<input type=\"text\" name=\"mf_timeline[options][twitter][filter][tags]\" id=\"mf_timeline[options][twitter][filter][tags]\" value=\"<?php echo ( !empty( $options['options']['twitter']['filter']['tags']) ) ? $options['options']['twitter']['filter']['tags'] : null;?>\" />\r\n\t\t\t\t\t\t<span class=\"description\">Separate tags with commas. Leave blank to not filter by any tags.</span>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t</ul>\r\n\t\t\t</fieldset>\r\n\t\t\t<p class=\"submit\">\r\n\t\t\t\t<input type=\"submit\" name=\"submit\" id=\"submit\" class=\"button-primary\" value=\"Save Settings\">\r\n\t\t\t</p>\r\n\t\t</form>\r\n\t<?php\r\n\t}", "public function name() {\n\t\treturn __( 'Option Container', 'thrive-cb' );\n\t}", "function cbp_display_options_page() {\n\t?>\n\t<div>\n\t<h2>Chibipaint Integration Settings</h2>\n\tAll fields are required.\n\t<form action=\"options.php\" method=\"post\">\n\t<?php settings_fields('cbp_option_group');\n\tdo_settings_sections('options_cbp');\n\tsubmit_button();\n\t?>\n\t</form></div>\n\n\t<?php\n}", "public function integrateWithVC() {\n if ( ! defined( 'WPB_VC_VERSION' ) ) {\n // Display notice that Visual Compser is required\n add_action('admin_notices', array( $this, 'showVcVersionNotice' ));\n return;\n }\n\n vc_map( array(\n \"name\" => __(\"Responsive Website Preview\", 'responsive_website_preview'),\n \"description\" => __(\"Show your website on a mobile device\", 'responsive_website_preview'),\n \"base\" => \"vc_responsive_website_preview\",\n \"class\" => \"\",\n \"controls\" => \"full\",\n \"category\" => __('Responsive Website Preview', 'responsive_website_preview'),\n \"icon\" => 'vc_extend_rwp',\n \"params\" => array(\n array(\n \"type\" => \"textfield\",\n \"holder\" => \"div\",\n \"class\" => \"\",\n \"heading\" => __(\"URL\", 'responsive_website_preview'),\n \"param_name\" => \"url\",\n \"value\" => '',\n \"description\" => __(\"Specify an URL to load on device\", 'responsive_website_preview'),\n \t),\n array(\n \"type\" => \"dropdown\",\n \"holder\" => \"div\",\n \"class\" => \"\",\n \"heading\" => __(\"Device type\", 'responsive_website_preview'),\n \"param_name\" => \"device\",\n \"value\" => array(\n \t__(\"Select a device\", 'responsive_website_preview') => '',\n \t__(\"iPhone 6\", 'responsive_website_preview') => 'iphone6',\n \t__(\"iPad Air\", 'responsive_website_preview') => 'ipadair',\n ),\n \"description\" => __(\"Please select a device to show\", 'responsive_website_preview'),\n \t),\n array(\n \"type\" => \"textfield\",\n \"holder\" => \"div\",\n \"class\" => \"\",\n \"heading\" => __(\"Scale\", 'responsive_website_preview'),\n \"param_name\" => \"scale\",\n \"value\" => '1',\n \"description\" => __(\"Please specify a scale level. 1 is full-size device, 0.5 is half-size.\", 'responsive_website_preview'),\n \t),\n array(\n \"type\" => \"checkbox\",\n \"holder\" => \"div\",\n \"class\" => \"\",\n \"heading\" => __(\"Disable navigation\", 'responsive_website_preview'),\n \"param_name\" => \"disable-navigation\",\n \"value\" => false,\n \"description\" => __(\"Check if you want to prevent navigation on device.\", 'responsive_website_preview'),\n \t),\n array(\n \"type\" => \"textfield\",\n \"holder\" => \"div\",\n \"class\" => \"\",\n \"heading\" => __(\"Element ID\", 'responsive_website_preview'),\n \"param_name\" => \"id\",\n \"value\" => '',\n \"description\" => __(\"Enter row ID (Note: make sure it is unique and valid according to <a href=\\\"http://www.w3schools.com/tags/att_global_id.asp\\\" target=\\\"_blank\\\">w3c specification</a>\", 'responsive_website_preview'),\n \t),\n array(\n \"type\" => \"textfield\",\n \"holder\" => \"div\",\n \"class\" => \"\",\n \"heading\" => __(\"Extra class name\", 'responsive_website_preview'),\n \"param_name\" => \"class\",\n \"value\" => '',\n \"description\" => __(\"Style particular content element differently - add a class name and refer to it in custom CSS.\", 'responsive_website_preview'),\n \t),\n )\n ) );\n }", "function dblions_general_options() {\n\techo 'Edit general features';\n}", "public function composer_additional_assets() { ?>\n\n <script id=\"cv-builder-cv_button-script\">\n (function($){\n \"use strict\";\n $(document).on( 'cv-composer-load-cv_button', function() {\n var $modal = $('#cv-composer-absolute-container').children().last();\n $modal.find('.control-color select').on( 'change', function() {\n var $this = $(this), val = $this.val(),\n $customColor = $modal.find('.control-custom_color');\n if ( 'custom' === val ) {\n $customColor.fadeIn();\n }\n else {\n $customColor.hide();\n }\n }).trigger('change');\n $modal.find('.control-icon_position select').on( 'change', function() {\n var $this = $(this), val = $this.val(),\n $iconPicker = $modal.find('.control-icon');\n if ( 'none' === val ) {\n $iconPicker.hide();\n }\n else {\n $iconPicker.fadeIn();\n }\n }).trigger('change');\n });\n })(jQuery);\n </script>\n\n <?php }", "public function wpdocs_add_custom_shortcode() {\n\t\t\tadd_shortcode( 'fitts_quiz', array( $this, 'fitts_plugin_shortcode' ) );\n\t\t}", "public function add_short_code()\n {\n add_shortcode('colorYourLife', array($this, 'generate_short_code_content'));\n }", "function callout_box($atts, $content = null){\n\textract(shortcode_atts(array(\n\t\t'animate' => '',\n\t\t'transition' => '',\n\t\t'duration' => '',\n\t\t'delay' => ''\n\t\t), $atts));\n\n\t$animate_class = \"\";\n\t$slideTransition = \"\";\n\t$slideDuration = \"\";\n\t$slideDelay = \"\";\n\n\tif($animate == \"Yes\"){\n\n\t\t$animate_class = ' pix-animate-cre';\n\n\t\t$slideTransition = isset($transition) ? ' data-trans=\"'. esc_attr($transition) .'\"' : '';\n\n\t\t$slideDuration = isset($duration) ? ' data-duration=\"'. $duration .'\"' : '';\n\n\t\t$slideDelay = isset($delay) ? ' data-delay=\"'. $delay .'\"' : '';\n\n\t}\n\t\n\t$output = '<section class=\"callOut newSection'. esc_attr($animate_class) .'\"'. $slideTransition .''. $slideDuration .''. $slideDelay .'>';\n\t$output .= $content;\n\t$output .= '</section>';\n\treturn $output;\n}", "function admin_shortcodes_page(){\n add_menu_page( \n __( 'Theme Short Codes', 'textdomain' ),\n 'Short Codes',\n 'manage_options',\n 'shortcodes',\n 'shortcodes_page',\n 'dashicons-book-alt',\n 3\n ); \n}", "public function register_shortcode_ui() {\n\t\tshortcode_ui_register_for_shortcode( 'hippomundo_results', array(\n\t\t\t'label' => __( 'Hippomundo Results', 'hippomundo' ),\n\t\t\t'listItemImage' => 'dashicons-clipboard',\n\t\t\t'attrs' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'API Key', 'hippomundo' ),\n\t\t\t\t\t'description' => __( 'Your API token, received from Hippomundo personnel.', 'hippomundo' ),\n\t\t\t\t\t'attr' => 'api_key',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t'placeholder' => get_option( 'hippomundo_api_key' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Studbook', 'hippomundo' ),\n\t\t\t\t\t'description' => __( 'The abbreviated name of your studbook. Your API token will be checked against for permissions on this studbook.', 'hippomundo' ),\n\t\t\t\t\t'attr' => 'Studbook',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t'placeholder' => get_option( 'hippomundo_studbook' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Title', 'hippomundo' ),\n\t\t\t\t\t'description' => __( 'Title displayed above the results. Available tags: <code>{days}</code>, <code>{place}</code>.', 'hippomundo' ),\n\t\t\t\t\t'attr' => 'title',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t'placeholder' => get_option( 'hippomundo_title' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Subtitle', 'hippomundo' ),\n\t\t\t\t\t'description' => __( 'Subtitle displayed above the results. Available tags: <code>{days}</code>, <code>{place}</code>.', 'hippomundo' ),\n\t\t\t\t\t'attr' => 'subtitle',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t'placeholder' => get_option( 'hippomundo_subtitle' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Days', 'hippomundo' ),\n\t\t\t\t\t'description' => __( 'Amount of days of sport results to fetch.', 'hippomundo' ),\n\t\t\t\t\t'attr' => 'days',\n\t\t\t\t\t'type' => 'number',\n\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t'placeholder' => 10,\n\t\t\t\t\t\t'min' => 1,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Discipline', 'hippomundo' ),\n\t\t\t\t\t'description' => __( 'The discipline of the results to fetch (all, jumping, eventing, dressage).', 'hippomundo' ),\n\t\t\t\t\t'attr' => 'discipline',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'meta' => array(\n\t\t\t\t\t\t'placeholder' => 'all'\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t) );\n\t}", "public function register_shortcode() {\n add_shortcode( 'reveal', array( &$this, 'do_shortcode' ) );\n }", "function cookieset($atts = []){\n $atts = array_change_key_case((array)$atts, CASE_LOWER);\n \n // override default attributes with user attributes\n $atts = shortcode_atts([\n 'url' => '#',\n ], $atts);\n $output = '<div class=\"catapult-cookie-wrp\">\n <div id=\"catapult-cookie-bar\" class=\"catapult-cookie-bar clearfix\">\n <div class=\"catapult-cookie-topbar\">\n <i><img src=\"'.THEME_URI.'/assets/images/cookie-icon.svg\"></i>\n <strong class=\"catapult-close-btn\">\n <img src=\"'.THEME_URI.'/assets/images/cookie-close-icon.svg\">\n </strong>\n </div>\n <span class=\"ctcc-left-side\">\n <h4>Deze website maakt gebruik van cookies.</h4>\n Phasellus ac tortor mi. Aliquam eget volutpat elit. Duis dapibus dolor sit amet arcu porttitor laoreet. Mauris eget massa nulla. \n <a class=\"ctcc-more-info-link\" tabindex=\"0\" href=\"'.$atts['url'].'\">Meer Info</a>\n </span>\n <span class=\"catapultCookieBtn\">\n \n </span>\n <a role=\"button\" tabindex=\"0\" data-cli_action=\"accept\" id=\"cookie_action_close_header\" class=\"medium cli-plugin-main-button cookie_action_close_header cli_action_button\">ok, bedankt</a>\n </div>\n</div>';\n$output .= '<style>\n#cookie-law-info-bar {\n border: 0;\n font-size: initial;\n margin: 0 auto;\n padding: 0 !important;\n position: inherit;\n width: initial;\n\n box-shadow: transparent;\n}\n.cli-plugin-button, .cli-plugin-button:visited {\n text-decoration: none;\n position: inherit !important;\n background-color: transparent !important;\n display: none !important;\n}\n</style>';\nreturn $output;\n}", "function display_json_shortcode($atts ){\n $a = shortcode_atts( array(\n 'base_uri' => 'https://api.creol.ucf.edu/test.aspx',\n 'group' => 1\n ), $atts );\n\n $result = build_uri_string_directory($a);\n $json_string = curl_url($result);\n $json_obj = jsonifyier($json_string);\n layout_people($json_obj);\n}", "function genesis_extender_custom_options()\n{\n\tglobal $message;\n\t$custom_functions = get_option( 'genesis_extender_custom_functions' );\n\t$custom_js = get_option( 'genesis_extender_custom_js' );\n\t$custom_templates = genesis_extender_get_templates();\n\t$custom_labels = genesis_extender_get_labels();\n\t$custom_conditionals = genesis_extender_get_conditionals();\n\t$custom_widgets = genesis_extender_get_widgets();\n\t$custom_hooks = genesis_extender_get_hooks();\n?>\n\t<div class=\"wrap\">\n\t\t\n\t\t<div id=\"genesis-extender-custom-saved\" class=\"genesis-extender-update-box\"></div>\n\n\t\t<?php\n\t\tif( !empty( $_POST['action'] ) && $_POST['action'] == 'reset' )\n\t\t{\n\t\t\tgenesis_extender_reset_delete_template();\n\t\t\tupdate_option( 'genesis_extender_custom_css', genesis_extender_custom_css_options_defaults() );\n\t\t\tupdate_option( 'genesis_extender_custom_functions', genesis_extender_custom_functions_options_defaults() );\n\t\t\tupdate_option( 'genesis_extender_custom_js', genesis_extender_custom_js_options_defaults() );\n\t\t\tupdate_option( 'genesis_extender_custom_templates', array() );\n\t\t\tupdate_option( 'genesis_extender_custom_labels', array() );\n\t\t\tupdate_option( 'genesis_extender_custom_conditionals', array() );\n\t\t\tupdate_option( 'genesis_extender_custom_widget_areas', array() );\n\t\t\tupdate_option( 'genesis_extender_custom_hook_boxes', array() );\n\n\t\t\tgenesis_extender_get_custom_css( null, $args = array( 'cached' => false, 'array' => false ) );\n\t\t\t$custom_functions = get_option( 'genesis_extender_custom_functions' );\n\t\t\t$custom_js = get_option( 'genesis_extender_custom_js' );\n\t\t\t$custom_templates = genesis_extender_get_templates();\n\t\t\t$custom_labels = genesis_extender_get_labels();\n\t\t\t$custom_conditionals = genesis_extender_get_conditionals();\n\t\t\t$custom_widgets = genesis_extender_get_widgets();\n\t\t\t$custom_hooks = genesis_extender_get_hooks();\n\n\t\t\tgenesis_extender_write_files( $css = true, $ez = false );\n\t\t?>\n\t\t\t<script type=\"text/javascript\">jQuery(document).ready(function($){ $('#genesis-extender-custom-saved').html('Custom Options Reset').css(\"position\", \"fixed\").fadeIn('slow');window.setTimeout(function(){$('#genesis-extender-custom-saved').fadeOut( 'slow' );}, 2222); });</script>\n\t\t<?php\n\t\t}\n\n\t\tif( !empty( $_GET['activetab'] ) )\n\t\t{ ?>\n\t\t\t<script type=\"text/javascript\">jQuery(document).ready(function($) { $('#<?php echo $_GET['activetab']; ?>').click(); });</script>\t\n\t\t<?php\n\t\t} ?>\n\t\t\n\t\t<div id=\"icon-options-general\" class=\"icon32\"></div>\n\t\t\n\t\t<h2 id=\"genesis-extender-admin-heading\"><?php _e( 'Extender - Custom Options', 'extender' ); ?></h2>\n\t\t\n\t\t<div class=\"genesis-extender-css-builder-button-wrap\">\n\t\t\t<span id=\"show-hide-custom-css-builder\" class=\"button\"><?php _e( 'CSS Builder', 'extender' ); ?></span>\n\t\t</div>\n\n\t\t<div class=\"genesis-extender-php-builder-button-wrap\">\n\t\t\t<span id=\"show-hide-custom-php-builder\" class=\"button\"><?php _e( 'PHP Builder', 'extender' ); ?></span>\n\t\t</div>\n\t\t\n\t\t<div id=\"genesis-extender-admin-wrap\">\n\t\t\n\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-css-builder.php' ); ?>\n\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-php-builder.php' ); ?>\n\t\t\t\n\t\t\t<form action=\"/\" id=\"custom-options-form\" name=\"custom-options-form\">\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"genesis_extender_custom_options_save\" />\n\t\t\t\t<input type=\"hidden\" name=\"security\" value=\"<?php echo wp_create_nonce( 'custom-options' ); ?>\" />\n\t\t\t\n\t\t\t\t<div id=\"genesis-extender-floating-save\">\n\t\t\t\t\t<input type=\"submit\" value=\"<?php _e( 'Save Changes', 'extender' ); ?>\" name=\"Submit\" alt=\"Save Changes\" class=\"genesis-extender-save-button button button-primary\"/>\n\t\t\t\t\t<img class=\"genesis-extender-ajax-save-spinner\" src=\"<?php echo site_url() . '/wp-admin/images/spinner-2x.gif'; ?>\" />\n\t\t\t\t\t<span class=\"genesis-extender-saved\"></span>\n\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t<div id=\"genesis-extender-custom-options-nav\" class=\"genesis-extender-admin-nav\">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li id=\"genesis-extender-custom-options-nav-css\" class=\"genesis-extender-options-nav-all genesis-extender-options-nav-active\"><a href=\"#\">CSS</a></li><li id=\"genesis-extender-custom-options-nav-functions\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">Functions</a></li><li id=\"genesis-extender-custom-options-nav-js\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">JS</a></li><li id=\"genesis-extender-custom-options-nav-templates\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">Templates</a></li><li id=\"genesis-extender-custom-options-nav-labels\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">Labels</a></li><li id=\"genesis-extender-custom-options-nav-conditionals\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">Conditionals</a></li><li id=\"genesis-extender-custom-options-nav-widget-areas\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">Widget Areas</a></li><li id=\"genesis-extender-custom-options-nav-hook-boxes\" class=\"genesis-extender-options-nav-all\"><a href=\"#\">Hook Boxes</a></li><li id=\"genesis-extender-custom-options-nav-image-uploader\" class=\"genesis-extender-options-nav-all\"><a class=\"genesis-extender-options-nav-last\" href=\"#\">Images</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class=\"genesis-extender-custom-options-wrap\">\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-css.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-functions.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-js.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-templates.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-labels.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-conditionals.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-widget-areas.php' ); ?>\n\t\t\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-hook-boxes.php' ); ?>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t</form>\n\n\t\t\t<?php require_once( GENEXT_PATH . 'lib/admin/boxes/custom-image-uploader.php' ); ?>\n\n\t\t\t<div id=\"genesis-extender-admin-footer\">\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"http://cobaltapps.com\" target=\"_blank\">CobaltApps.com</a> | <a href=\"http://extenderdocs.cobaltapps.com/\" target=\"_blank\">Docs</a> | <a href=\"http://cobaltapps.com/my-account/\" target=\"_blank\">My Account</a> | <a href=\"http://cobaltapps.com/forum/\" target=\"_blank\">Community Forum</a> | <a href=\"http://cobaltapps.com/affiliates/\" target=\"_blank\">Affiliates</a> &middot;\n\t\t\t\t\t<a><span id=\"show-options-reset\" class=\"genesis-extender-options-reset-button button\" style=\"margin:0; float:none !important;\"><?php _e( 'Custom Options Reset', 'extender' ); ?></span></a><a href=\"http://extenderdocs.cobaltapps.com/article/156-custom-options-reset\" class=\"tooltip-mark\" target=\"_blank\">[?]</a>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div style=\"display:none; width:160px; border:none; background:none; margin:0 auto; padding:0; float:none; position:inherit;\" id=\"show-options-reset-box\" class=\"genesis-extender-custom-fonts-box\">\n\t\t\t\t<form style=\"float:left;\" id=\"genesis-extender-reset-custom-options\" method=\"post\">\n\t\t\t\t\t<input style=\"background:#D54E21; width:160px !important; color:#FFFFFF !important; -webkit-box-shadow:none; box-shadow:none;\" type=\"submit\" value=\"<?php _e( 'Reset Custom Options', 'extender' ); ?>\" class=\"genesis-extender-reset button\" name=\"Submit\" onClick='return confirm(\"<?php _e( 'Are you sure your want to reset your Genesis Extender Custom Options?', 'extender' ); ?>\")'/><input type=\"hidden\" name=\"action\" value=\"reset\" />\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div> <!-- Close Wrap -->\n<?php\n}", "function bg_AddPluginMenuHtml() {\n global $bg_opts_apiKey, $bg_optionGroup, $bg_page;\n\n\tif ( !current_user_can( 'manage_options' ) ) {\n\t\twp_die( __( 'You do not have sufficient permissions to access this page.' ) );\n\t}\n\techo '<div class=\"wrap\">';\n\techo('<h2>BeyondGrammar Settings</h2>');\n\t\t\n\techo('\t<form action=\"options.php\" method=\"post\">');\n\tsettings_fields($bg_optionGroup);\n\tdo_settings_sections($bg_page);\n\techo(\"<input name='Submit' type='submit' class='button-primary' value='Save Changes' />\");\n\techo('</form>');\n\techo '</div>';\n}", "function pizza_metabox_html( $post ) {\n\n\twp_enqueue_style('pizza-options-css');\t\n\twp_enqueue_script('pizza-options-script');\n\n\t$selected_options = unserialize( get_option(\"_pizza_option_{$post->ID}\") );\t\n\t?>\n\t\n\t\n\t<div class=\"option-container\" style=\"padding: 30px;\">\n\t\t<div class=\"option-wrap\" style=\"margin-top: 0\">\n\t\t\t<div class=\"option-content option-metabox\">\t\t\t\n\n\t\t\t\t<div class=\"option-lists option-option\">\n\t\t\t\t\t<?php pizza_options_lists( $selected_options, true ); ?>\n\t\t\t\t</div>\t\t\t\n\t\t\t\t\n\t\t\t</div>\t\t\n\t\t</div>\n\t</div>\n\n\n\t<div class=\"option-override-modal\" data-post=\"<?php echo $post->ID ?>\">\n\t\t<div class=\"option-override-modal-wrap option-override-fields\"></div>\n\t</div>\n\n\n<?php\n}", "function ultimate_modal_init()\n\t\t{\n\t\t\tif ( function_exists('vc_map'))\n\t\t\t{\n\t\t\t\tvc_map( \n\t\t\t\t\tarray(\n\t\t\t\t\t\t\"name\"\t\t=> __(\"Modal Box\", 'dfd'),\n\t\t\t\t\t\t\"base\"\t\t=> \"ultimate_modal\",\n\t\t\t\t\t\t\"icon\"\t\t=> \"vc_modal_box\",\n\t\t\t\t\t\t\"class\"\t => \"modal_box\",\n\t\t\t\t\t\t\"category\" => __(\"Ronneby 1.0\", 'dfd'),\n\t\t\t\t\t\t\"description\" => \"Adds bootstrap modal box in your content\",\n\t\t\t\t\t\t\"controls\" => \"full\",\n\t\t\t\t\t\t\"show_settings_on_create\" => true,\n\t\t\t\t\t\t\"params\" => array(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Display Modal On -\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_on\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Button','dfd') => \"ult-button\",\n\t\t\t\t\t\t\t\t\t__('Image','dfd') => \"image\",\n\t\t\t\t\t\t\t\t\t__('Icon','dfd') => \"icon\",\n\t\t\t\t\t\t\t\t\t__('Text','dfd') => \"text\",\n\t\t\t\t\t\t\t\t\t__('On Page Load','dfd') => \"onload\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"When should the popup be initiated?\", 'dfd')\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Icon to display:\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_type\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('No Icon','dfd') => \"none\",\n\t\t\t\t\t\t\t\t\t__('Font Icon Manager','dfd') => \"selector\",\n\t\t\t\t\t\t\t\t\t__('Custom Image Icon','dfd') => \"custom\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"icon\")),\n\t\t\t\t\t\t\t\t\"description\" => __(\"Use <a href='admin.php?page=font-icon-Manager' target='_blank'>existing font icon</a> or upload a custom image.\", 'dfd')\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"icon_manager\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Select Icon \",'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Click and select icon of your choice. If you can't find the one that suits for your purpose, you can <a href='admin.php?page=AIO_Icon_Manager' target='_blank'>add new here</a>.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_type\",\"value\" => array(\"selector\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"attach_image\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Upload Image Icon:\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_img\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Upload the custom image icon.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_type\",\"value\" => array(\"custom\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Image Width\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"img_width\",\n\t\t\t\t\t\t\t\t\"value\" => 48,\n\t\t\t\t\t\t\t\t\"min\" => 16,\n\t\t\t\t\t\t\t\t\"max\" => 512,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Provide image width\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_type\",\"value\" => array(\"custom\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Size of Icon\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_size\",\n\t\t\t\t\t\t\t\t\"value\" => 32,\n\t\t\t\t\t\t\t\t\"min\" => 12,\n\t\t\t\t\t\t\t\t\"max\" => 72,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"How big would you like it?\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_type\",\"value\" => array(\"selector\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"#333333\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_type\",\"value\" => array(\"selector\")),\t\t\t\t\t\t\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Icon Style\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_style\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Simple','dfd') => \"none\",\n\t\t\t\t\t\t\t\t\t__('Circle Background','dfd') => \"circle\",\n\t\t\t\t\t\t\t\t\t__('Square Background','dfd') => \"square\",\n\t\t\t\t\t\t\t\t\t__('Design your own','dfd') => \"advanced\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_type\",\"value\" => array(\"selector\")),\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"description\" => __(\"We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Background Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_color_bg\",\n\t\t\t\t\t\t\t\t\"value\" => \"#ffffff\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Select background color for icon.\", 'dfd'),\t\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_style\", \"value\" => array(\"circle\",\"square\",\"advanced\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Icon Border Style\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_border_style\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('None','dfd') => \"\",\n\t\t\t\t\t\t\t\t\t__('Solid','dfd')=> \"solid\",\n\t\t\t\t\t\t\t\t\t__('Dashed','dfd') => \"dashed\",\n\t\t\t\t\t\t\t\t\t__('Dotted','dfd') => \"dotted\",\n\t\t\t\t\t\t\t\t\t__('Double','dfd') => \"double\",\n\t\t\t\t\t\t\t\t\t__('Inset','dfd') => \"inset\",\n\t\t\t\t\t\t\t\t\t__('Outset','dfd') => \"outset\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"Select the border style for icon.\",'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_style\", \"value\" => array(\"advanced\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Border Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_color_border\",\n\t\t\t\t\t\t\t\t\"value\" => \"#333333\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Select border color for icon.\", 'dfd'),\t\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_border_style\", \"not_empty\" => true),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Border Width\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_border_size\",\n\t\t\t\t\t\t\t\t\"value\" => 1,\n\t\t\t\t\t\t\t\t\"min\" => 1,\n\t\t\t\t\t\t\t\t\"max\" => 10,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Thickness of the border.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_border_style\", \"not_empty\" => true),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Border Radius\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_border_radius\",\n\t\t\t\t\t\t\t\t\"value\" => 500,\n\t\t\t\t\t\t\t\t\"min\" => 1,\n\t\t\t\t\t\t\t\t\"max\" => 500,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_border_style\", \"not_empty\" => true),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Background Size\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_border_spacing\",\n\t\t\t\t\t\t\t\t\"value\" => 50,\n\t\t\t\t\t\t\t\t\"min\" => 30,\n\t\t\t\t\t\t\t\t\"max\" => 500,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Spacing from center of the icon till the boundary of border / background\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"icon_style\", \"value\" => array(\"advanced\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Animation\",'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"icon_animation\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t \t\t__(\"No Animation\",'dfd') => \"\",\n\t\t\t\t\t\t\t\t\t__(\"Swing\",'dfd') => \"swing\",\n\t\t\t\t\t\t\t\t\t__(\"Pulse\",'dfd') => \"pulse\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In\",'dfd') => \"fadeIn\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Up\",'dfd') => \"fadeInUp\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Down\",'dfd') => \"fadeInDown\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Left\",'dfd') => \"fadeInLeft\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Right\",'dfd') => \"fadeInRight\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Up Long\",'dfd') => \"fadeInUpBig\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Down Long\",'dfd') => \"fadeInDownBig\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Left Long\",'dfd') => \"fadeInLeftBig\",\n\t\t\t\t\t\t\t\t\t__(\"Fade In Right Long\",'dfd') => \"fadeInRightBig\",\n\t\t\t\t\t\t\t\t\t__(\"Slide In Down\",'dfd') => \"slideInDown\",\n\t\t\t\t\t\t\t\t\t__(\"Slide In Left\",'dfd') => \"slideInLeft\",\n\t\t\t\t\t\t\t\t\t__(\"Slide In Left\",'dfd') => \"slideInLeft\",\n\t\t\t\t\t\t\t\t\t__(\"Bounce In\",'dfd') => \"bounceIn\",\n\t\t\t\t\t\t\t\t\t__(\"Bounce In Up\",'dfd') => \"bounceInUp\",\n\t\t\t\t\t\t\t\t\t__(\"Bounce In Down\",'dfd') => \"bounceInDown\",\n\t\t\t\t\t\t\t\t\t__(\"Bounce In Left\",'dfd') => \"bounceInLeft\",\n\t\t\t\t\t\t\t\t\t__(\"Bounce In Right\",'dfd') => \"bounceInRight\",\n\t\t\t\t\t\t\t\t\t__(\"Rotate In\",'dfd') => \"rotateIn\",\n\t\t\t\t\t\t\t\t\t__(\"Light Speed In\",'dfd') => \"lightSpeedIn\",\n\t\t\t\t\t\t\t\t\t__(\"Roll In\",'dfd') => \"rollIn\",\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"Like CSS3 Animations? We have several options for you!\",'dfd')\n\t\t\t\t\t\t \t),\n\t\t\t\t\t\t\t// Modal Title\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"textfield\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Modal Box Title\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_title\",\n\t\t\t\t\t\t\t\t\"admin_label\" => true,\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Provide the title for modal box.\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Modal Box Title Tag\",'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"heading_tag\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__(\"Default\",'dfd') => \"h5\",\n\t\t\t\t\t\t\t\t\t__(\"H1\",'dfd') => \"h1\",\n\t\t\t\t\t\t\t\t\t__(\"H2\",'dfd') => \"h2\",\n\t\t\t\t\t\t\t\t\t__(\"H3\",'dfd') => \"h3\",\n\t\t\t\t\t\t\t\t\t__(\"H4\",'dfd') => \"h4\",\n\t\t\t\t\t\t\t\t\t__(\"H6\",'dfd') => \"h6\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"Default is H5\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"ult_param_heading\",\n\t\t\t\t\t\t\t\t\"text\" => __(\"Modal Box Title Settings\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"main_heading_typograpy\",\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\",\n\t\t\t\t\t\t\t\t\"class\" => \"ult-param-heading\",\n\t\t\t\t\t\t\t\t'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t\t\t\t'class' => '',\n\t\t\t\t\t\t\t\t'heading' => __('Heading type', 'dfd'),\n\t\t\t\t\t\t\t\t'param_name' => 'heading_typography_type',\n\t\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\t\t__('Default', 'dfd')\t=>\t'default',\n\t\t\t\t\t\t\t\t\t__('Google Fonts','dfd')\t\t=>\t'google_fonts',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\",\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"heading_type\", \"value\" => array('customizable')),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"ultimate_google_fonts\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Font Family\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"main_heading_font_family\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Select the font of your choice. You can <a target='_blank' href='\".admin_url('admin.php?page=ultimate-font-manager').\"'>add new in the collection here</a>.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\",\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"heading_typography_type\", \"value\" => array('google_fonts')),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t\t\t'heading' => __( 'Custom font family', 'dfd' ),\n\t\t\t\t\t\t\t\t'param_name' => 'main_heading_custom_family',\n\t\t\t\t\t\t\t\t'holder' => 'div',\n\t\t\t\t\t\t\t\t'value' => '',\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\",\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"heading_typography_type\", \"value\" => array('default')),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"ultimate_google_fonts_style\",\n\t\t\t\t\t\t\t\t\"heading\" \t\t=>\t__(\"Font Style\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\"\t=>\t\"main_heading_style\",\n\t\t\t\t\t\t\t\t//\"description\"\t=>\t__(\"Main heading font style\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"heading_typography_type\", \"value\" => array('google_fonts')),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"heading\" \t\t=>\t__(\"Font Style\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\"\t=>\t\"main_heading_default_style\",\n\t\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\t\t__('Normal', 'dfd')\t=>\t'normal',\n\t\t\t\t\t\t\t\t\t__('Italic','dfd')\t\t=>\t'italic',\n\t\t\t\t\t\t\t\t\t__('Inherit','dfd')\t\t=>\t'inherit',\n\t\t\t\t\t\t\t\t\t__('Initial','dfd')\t\t=>\t'initial',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"heading_typography_type\", \"value\" => array('default')),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"heading\" \t\t=>\t__(\"Font Weight\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\"\t=>\t\"main_heading_default_weight\",\n\t\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\t\t__('Default', 'dfd')\t=>\t'400',\n\t\t\t\t\t\t\t\t\t'100'\t=>\t'100',\n\t\t\t\t\t\t\t\t\t'200'\t=>\t'200',\n\t\t\t\t\t\t\t\t\t'300'\t=>\t'300',\n\t\t\t\t\t\t\t\t\t'500'\t=>\t'500',\n\t\t\t\t\t\t\t\t\t'600'\t=>\t'600',\n\t\t\t\t\t\t\t\t\t'700'\t=>\t'700',\n\t\t\t\t\t\t\t\t\t'800'\t=>\t'800',\n\t\t\t\t\t\t\t\t\t'900'\t=>\t'900',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"heading_typography_type\", \"value\" => array('default')),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"font-size\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Font Size\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"main_heading_font_size\",\n\t\t\t\t\t\t\t\t\"min\" => 10,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t//\"description\" => __(\"Main heading font size\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_title\", \"not_empty\" => true),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Font Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"main_heading_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t//\"description\" => __(\"Main heading color\", 'dfd'),\t\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_title\", \"not_empty\" => true),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Line Height\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"main_heading_line_height\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t//\"description\" => __(\"Main heading color\", 'dfd'),\t\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_title\", \"not_empty\" => true),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Letter spacing\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"main_heading_letter_spacing\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t//\"description\" => __(\"Main heading color\", 'dfd'),\t\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_title\", \"not_empty\" => true),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Alignment\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"alignment\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Center', 'dfd')\t=>\t\"text-center\",\n\t\t\t\t\t\t\t\t\t__('Left', 'dfd')\t\t=>\t\"text-left\",\n\t\t\t\t\t\t\t\t\t__('Right', 'dfd')\t\t=>\t\"text-right\"\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_title\", \"not_empty\" => true),\n\t\t\t\t\t\t\t\t\"group\" => \"Typography\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t// Add some description\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"textarea_html\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Modal Content\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"content\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Content that will be displayed in Modal Popup.\", 'dfd')\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"What's in Modal Popup?\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_contain\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Miscellaneous Things','dfd') => \"ult-html\",\n\t\t\t\t\t\t\t\t\t__('Youtube Video','dfd') => \"ult-youtube\",\n\t\t\t\t\t\t\t\t\t__('Vimeo Video','dfd') => \"ult-vimeo\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => \"\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\"=>\"number\",\n\t\t\t\t\t\t\t\t\"class\"=>'',\n\t\t\t\t\t\t\t\t\"heading\"=>\"Delay in Popup Display\",\n\t\t\t\t\t\t\t\t\"param_name\"=>\"onload_delay\",\n\t\t\t\t\t\t\t\t\"value\"=>\"2\",\n\t\t\t\t\t\t\t\t\"suffix\"=>\"seconds\",\n\t\t\t\t\t\t\t\t\"description\"=>__(\"Time delay before modal popup on page load (in seconds)\",'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\"=>Array(\"element\"=>\"modal_on\",\"value\"=>array(\"onload\"))\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"attach_image\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Upload Image\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_img\",\n\t\t\t\t\t\t\t\t\"admin_label\" => true,\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Upload the custom image / image banner.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"image\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Size\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_size\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Small','dfd') => \"sm\",\n\t\t\t\t\t\t\t\t\t__('Medium','dfd') => \"md\",\n\t\t\t\t\t\t\t\t\t__('Large','dfd') => \"lg\",\n\t\t\t\t\t\t\t\t\t__('Block','dfd') => \"block\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"How big the button would you like?\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Alignment\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_align\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Left','dfd') => \"text-left\",\n\t\t\t\t\t\t\t\t\t__('Right','dfd') => \"text-right\",\n\t\t\t\t\t\t\t\t\t__('Center','dfd') => \"text-center\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"How big the button would you like?\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Background Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_bg_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Text Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_txt_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Border Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_border_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Border Radius\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"button_border_radius\",\n\t\t\t\t\t\t\t\t\"value\" => '',\n\t\t\t\t\t\t\t\t\"min\" => 0,\n\t\t\t\t\t\t\t\t\"max\" => 30,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Button border radius. From 0 to 30px values accepted\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Hover Background Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_hover_bg_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Hover Text Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_hover_txt_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Button Hover Border Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_hover_border_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Alignment\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_on_align\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Center','dfd') => \"center\",\n\t\t\t\t\t\t\t\t\t__('Left','dfd') => \"left\",\n\t\t\t\t\t\t\t\t\t__('Right','dfd') => \"right\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"dependency\"=>Array(\"element\"=>\"modal_on\",\"value\"=>array(\"button\",\"image\",\"text\")),\n\t\t\t\t\t\t\t\t\"description\" => __(\"Selector the alignment of button/text/image\", 'dfd')\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"textfield\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Text on Button\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"btn_text\",\n\t\t\t\t\t\t\t\t\"admin_label\" => true,\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Provide the title for this button.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"ult-button\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t// Custom text for modal trigger\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"textfield\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Enter Text\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"read_text\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Enter the text on which the modal box will be triggered.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"text\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Text Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"txt_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_on\",\"value\" => array(\"text\")),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t// Modal box size\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Modal Size\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_size\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Small','dfd') => \"small\",\n\t\t\t\t\t\t\t\t\t__('Medium','dfd') => \"medium\",\n\t\t\t\t\t\t\t\t\t__('Large','dfd') => \"container\",\n\t\t\t\t\t\t\t\t\t__('Block','dfd') => \"block\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"How big the modal box would you like?\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t// Modal Style\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => \"Modal Box Style\",\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_style\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('Corner Bottom Left','dfd') => \"overlay-cornerbottomleft\",\n\t\t\t\t\t\t\t\t\t__('Corner Bottom Right','dfd') => \"overlay-cornerbottomright\",\n\t\t\t\t\t\t\t\t\t__('Corner Top Left','dfd') => \"overlay-cornertopleft\",\n\t\t\t\t\t\t\t\t\t__('Corner Top Right','dfd') => \"overlay-cornertopright\",\n\t\t\t\t\t\t\t\t\t__('Corner Shape','dfd') => \"overlay-show-cornershape\",\n\t\t\t\t\t\t\t\t\t__('Door Horizontal','dfd') => \"overlay-doorhorizontal\",\n\t\t\t\t\t\t\t\t\t__('Door Vertical','dfd') => \"overlay-doorvertical\",\n\t\t\t\t\t\t\t\t\t__('Fade','dfd') => \"overlay-fade\",\n\t\t\t\t\t\t\t\t\t__('Genie','dfd') => \"overlay-show-genie\",\n\t\t\t\t\t\t\t\t\t__('Little Boxes','dfd') => \"overlay-show-boxes\",\n\t\t\t\t\t\t\t\t\t__('Simple Genie','dfd') => \"overlay-simplegenie\",\n\t\t\t\t\t\t\t\t\t__('Slide Down','dfd') => \"overlay-slidedown\",\n\t\t\t\t\t\t\t\t\t__('Slide Up','dfd') => \"overlay-slideup\",\n\t\t\t\t\t\t\t\t\t__('Slide Left','dfd') => \"overlay-slideleft\",\n\t\t\t\t\t\t\t\t\t__('Slide Right','dfd') => \"overlay-slideright\",\n\t\t\t\t\t\t\t\t\t__('Zoom in','dfd') => \"overlay-zoomin\",\n\t\t\t\t\t\t\t\t\t__('Zoom out','dfd') => \"overlay-zoomout\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Overlay Background Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"overlay_bg_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"#333333\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Overlay Background Opacity\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"overlay_bg_opacity\",\n\t\t\t\t\t\t\t\t\"value\" => 80,\n\t\t\t\t\t\t\t\t\"min\" => 10,\n\t\t\t\t\t\t\t\t\"max\" => 100,\n\t\t\t\t\t\t\t\t\"suffix\" => \"%\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Select opacity of overlay background.\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t\t\t\t'class' => '',\n\t\t\t\t\t\t\t\t'heading' => __('Background Style', 'dfd'),\n\t\t\t\t\t\t\t\t'param_name' => 'content_bg_check',\n\t\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\t\t__('Light background', 'dfd') => '',\n\t\t\t\t\t\t\t\t\t__('Dark background', 'dfd') => 'dfd-background-dark'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'description' => __('Please specify background style for correct shortcodes appearance.', 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Content Background Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"content_bg_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Content Text Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"content_text_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t/*array(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Header Background Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"header_bg_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t),*/\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Header Text Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"header_text_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"#333333\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t// Modal box size\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"dropdown\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Modal Box Border\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_border_style\",\n\t\t\t\t\t\t\t\t\"value\" => array(\n\t\t\t\t\t\t\t\t\t__('None','dfd') => \"\",\n\t\t\t\t\t\t\t\t\t__('Solid','dfd') => \"solid\",\n\t\t\t\t\t\t\t\t\t__('Double','dfd') => \"double\",\n\t\t\t\t\t\t\t\t\t__('Dashed','dfd') => \"dashed\",\n\t\t\t\t\t\t\t\t\t__('Dotted','dfd') => \"dotted\",\n\t\t\t\t\t\t\t\t\t__('Inset','dfd') => \"inset\",\n\t\t\t\t\t\t\t\t\t__('Outset','dfd') => \"outset\",\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\"description\" => __(\"Do you want to give border to the modal content box?\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Border Width\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_border_width\",\n\t\t\t\t\t\t\t\t\"value\" => 2,\n\t\t\t\t\t\t\t\t\"min\" => 1,\n\t\t\t\t\t\t\t\t\"max\" => 25,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Select size of border.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_border_style\",\"not_empty\" => true),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"colorpicker\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Border Color\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_border_color\",\n\t\t\t\t\t\t\t\t\"value\" => \"#333333\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Give it a nice paint!\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_border_style\",\"not_empty\" => true),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"number\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Border Radius\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"modal_border_radius\",\n\t\t\t\t\t\t\t\t\"value\" => 0,\n\t\t\t\t\t\t\t\t\"min\" => 1,\n\t\t\t\t\t\t\t\t\"max\" => 500,\n\t\t\t\t\t\t\t\t\"suffix\" => \"px\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Want to shape the modal content box?.\", 'dfd'),\n\t\t\t\t\t\t\t\t\"dependency\" => Array(\"element\" => \"modal_border_style\",\"not_empty\" => true),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t'class' => '',\n\t\t\t\t\t\t\t\t'heading' => __('Disable shadow','dfd'),\n\t\t\t\t\t\t\t\t'param_name' => 'modal_box_shadow_disable',\n\t\t\t\t\t\t\t\t'value' => array('Yes, please' => 'yes'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t// Customize everything\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"textfield\",\n\t\t\t\t\t\t\t\t\"class\" => \"\",\n\t\t\t\t\t\t\t\t\"heading\" => __(\"Extra Class\", 'dfd'),\n\t\t\t\t\t\t\t\t\"param_name\" => \"el_class\",\n\t\t\t\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\t\t\t\"description\" => __(\"Add extra class name that will be applied to the modal popup, and you can use this class for your customizations.\", 'dfd'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\"type\" => \"heading\",\n\t\t\t\t\t\t\t\t\"sub_heading\" => \"<span style='display: block;'><a href='http://bsf.io/ei2r5' target='_blank'>Watch Video Tutorial &nbsp; <span class='dashicons dashicons-video-alt3' style='font-size:30px;vertical-align: middle;color: #e52d27;'></span></a></span>\",\n\t\t\t\t\t\t\t\t\"param_name\" => \"notification\",\n\t\t\t\t\t\t\t\t'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t) // end params array\n\t\t\t\t\t) // end vc_map array\n\t\t\t\t); // end vc_map\n\t\t\t} // end function check 'vc_map'\n\t\t}", "public function composer_additional_assets() { ?>\n\n <script id=\"cv-builder-cv_section-script\">\n (function($){\n \"use strict\";\n $(document).on( 'cv-composer-load-cv_section', function() {\n var $modal = $('#cv-composer-absolute-container').children().last();\n\n // Show appropriate background controls\n $modal.find('.control-bg_source select').on( 'change', function() {\n var $this = $(this), val = $this.val();\n switch ( val ) {\n case 'default':\n $modal.find('.control-bg_scrolling, .control-bg_preset_pattern, .control-bg_video_fallback, .control-bg_video_webm, .control-bg_video_ogv, .control-bg_video_mp4, .bg_video_poster, .control-bg_color, .control-bg_image, .control-bg_style, .control-bg_attachment, .control-overlay_opacity').hide().find('input, select').trigger('change');\n break;\n case 'color':\n $modal.find('.control-bg_color').fadeIn();\n $modal.find('.control-bg_scrolling, .control-bg_preset_pattern, .control-bg_video_fallback, .control-bg_video_webm, .control-bg_video_ogv, .control-bg_video_mp4, .bg_video_poster, .control-bg_image, .control-bg_style, .control-bg_attachment, .control-overlay_opacity').hide().find('input, select').trigger('change');\n break;\n case 'preset':\n $modal.find('.control-bg_scrolling, .control-bg_preset_pattern, .control-bg_attachment, .control-overlay_opacity').fadeIn().find('input, select').trigger('change');\n $modal.find('.control-bg_video_fallback, .control-bg_video_webm, .control-bg_video_ogv, .control-bg_video_mp4, .bg_video_poster, .control-bg_color, .control-bg_image, .control-bg_style').hide().find('input, select').trigger('change');\n break;\n case 'image':\n $modal.find('.control-bg_scrolling, .control-bg_color, .control-bg_image, .control-bg_style, .control-bg_attachment, .control-overlay_opacity').fadeIn().find('input, select').trigger('change');\n $modal.find('.control-bg_preset_pattern, .control-bg_video_fallback, .control-bg_video_webm, .control-bg_video_ogv, .control-bg_video_mp4, .bg_video_poster').hide();\n break;\n case 'video':\n $modal.find('.control-bg_scrolling, .control-bg_preset_pattern, .control-bg_image, .control-bg_style, .control-bg_attachment').hide().find('input, select').trigger('change');\n $modal.find('.control-bg_color, .control-bg_video_fallback, .control-bg_video_webm, .control-bg_video_ogv, .control-bg_video_mp4, .bg_video_poster, .control-overlay_opacity').fadeIn().find('select, input').trigger('change');\n break;\n }\n }).trigger('change');\n\n // Show / hide sidebar selector\n $modal.find('.control-sidebar_layout select').on( 'change', function() {\n var $this = $(this), val = $this.val(),\n $otherControls = $modal.find('.control-sidebar');\n if ( 'no-sidebar' !== val ) {\n $otherControls.fadeIn();\n }\n else {\n $otherControls.hide();\n }\n }).trigger('change');\n\n // Show / Hide overlay color control\n $modal.find('.control-overlay_opacity select').on( 'change', function() {\n var $this = $(this), val = $this.val(),\n $colorControl = $modal.find('.control-overlay_color'),\n $bgStyleControl = $modal.find('.control-bg_source select');\n if ( 'none' === val ) {\n $colorControl.hide();\n }\n else if ( 'default' != $bgStyleControl.val() && 'color' != $bgStyleControl.val() ) {\n $colorControl.fadeIn();\n }\n else {\n $colorControl.hide();\n }\n }).trigger('change');\n\n // Show / Hide BG scrolling speed control\n $modal.find('.control-bg_scrolling select').on( 'change', function() {\n var $this = $(this), val = $this.val(),\n $speedControl = $modal.find('.control-bg_scrolling_speed'),\n $bgStyleControl = $modal.find('.control-bg_source select');\n if ( 'none' === val ) {\n $speedControl.hide();\n }\n else if ( 'default' != $bgStyleControl.val() && 'color' != $bgStyleControl.val() ) {\n $speedControl.fadeIn();\n }\n else {\n $speedControl.hide();\n }\n }).trigger('change');\n\n });\n })(jQuery);\n </script>\n\n <?php }", "function nflteams_options() {\n\n ?>\n\n <div class=\"wrap\">\n\n <h1>NFL Teams</h1>\n\n <form action=\"options.php\" method=\"post\">\n\n <?php settings_fields( 'nflteams' ); ?>\n <?php do_settings_sections( 'nflteams' ); ?>\n\n <table class=\"form-table\">\n\n <tr>\n <th scope=\"row\"><label for=\"nflteams-apikey\">API Key</label></th>\n <td>\n <input type=\"text\" name=\"nflteams-apikey\" value=\"<?php echo esc_attr( get_option( 'nflteams-apikey' ) ); ?>\">\n <p class=\"description\">Enter in the API Key required to obtain data.</p>\n </td>\n </tr>\n\n </table>\n\n <?php submit_button( 'Save Key' ); ?>\n\n </form>\n\n <h2>How to use</h2>\n\n <p>To use this plugin, use the <code>[nflteams]</code> shortcode within your page content. To change the order the teams appear in you can add a \"sort\" option for either \"team\", division\" or \"conference\". Example: <code>[nflteams sort=\"division\"]</code>. Shortcode defaults to team.</p>\n\n </div>\n\n <?php\n\n}", "function foliamaptool_shortcodes($atts='') {\r\n\t\tglobal $id;\r\n\r\n\t\tif (is_feed())\r\n\t\t\treturn;\r\n\r\n\t\t$map = get_post_meta($id, '_mapp_map', true);\r\n\t\t$pois = get_post_meta($id, '_mapp_pois', true);\r\n\r\n\t\t$result = $this->map($map, $pois, false);\r\n\r\n\t\treturn $result;\r\n\t}", "function TS_VCSC_Extensions_Create_Variables() {\r\n // Create Data Holder Object (window.krautcomposium)\r\n $TS_VCSC_VariablesOutput = array();\r\n $TS_VCSC_VariablesOutput['Releases'] = array();\r\n $TS_VCSC_VariablesOutput['Lightbox'] = array();\r\n $TS_VCSC_VariablesOutput['Other'] = array();\r\n\t\t\techo '<script type=\"text/javascript\">'; \r\n\t\t\t\t// Current Plugin Version\r\n\t\t\t\techo 'var $TS_VCSC_CurrentPluginRelease = \"' . COMPOSIUM_VERSION . '\";';\r\n $TS_VCSC_VariablesOutput['Releases']['Composium'] = COMPOSIUM_VERSION;\r\n\t\t\t\t// Current WP Bakery Page Builder Extensions Addon Version\r\n\t\t\t\techo 'var $TS_VCSC_CurrentComposerRelease = \"' . $this->TS_VCSC_VisualComposer_Version . '\";';\r\n $TS_VCSC_VariablesOutput['Releases']['WPBakeryBuilder'] = $this->TS_VCSC_VisualComposer_Version;\r\n\t\t\t\t// Current Page/Post Title\r\n\t\t\t\tif ((TS_VCSC_IsEditPagePost()) && ($this->TS_VCSC_EditorLivePreview == \"true\") && ($this->TS_VCSC_Visual_Composer_Elements['TS Title Advanced']['active'] == 'true')) {\r\n\t\t\t\t\tglobal $post;\r\n\t\t\t\t\tif ($post) {\r\n\t\t\t\t\t\techo 'var $TS_VCSC_CurrentPageTitle = \"' . get_the_title($post->ID) . '\";';\r\n $TS_VCSC_VariablesOutput['CurrentPageTitle'] = get_the_title($post->ID);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\techo 'var $TS_VCSC_CurrentPageTitle = ' . __( \"Title could not (yet) be retrieved!\", \"ts_visual_composer_extend\" ) . ';';\r\n $TS_VCSC_VariablesOutput['CurrentPageTitle'] = __( \"Title could not (yet) be retrieved!\", \"ts_visual_composer_extend\" );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Lightbox Settings\r\n\t\t\t\tif ($this->TS_VCSC_UseInternalLightbox == \"true\") { \r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Activated = true;';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Activated'] = true;\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Thumbs = \"' . \t\t\t\t\t((array_key_exists('thumbs', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['thumbs'] : $this->TS_VCSC_Lightbox_Setting_Defaults['thumbs']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Thumbnails'] = ((array_key_exists('thumbs', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['thumbs'] : $this->TS_VCSC_Lightbox_Setting_Defaults['thumbs']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Thumbsize = ' . \t\t\t\t((array_key_exists('thumbsize', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['thumbsize'] : $this->TS_VCSC_Lightbox_Setting_Defaults['thumbsize']) . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Thumbsize'] = (int)((array_key_exists('thumbsize', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['thumbsize'] : $this->TS_VCSC_Lightbox_Setting_Defaults['thumbsize']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Animation = \"' . \t\t\t\t((array_key_exists('animation', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['animation'] : $this->TS_VCSC_Lightbox_Setting_Defaults['animation']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Animation'] = ((array_key_exists('animation', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['animation'] : $this->TS_VCSC_Lightbox_Setting_Defaults['animation']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Captions = \"' . \t\t\t\t((array_key_exists('captions', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['captions'] : $this->TS_VCSC_Lightbox_Setting_Defaults['captions']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Captions'] = ((array_key_exists('captions', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['captions'] : $this->TS_VCSC_Lightbox_Setting_Defaults['captions']);\r\n echo 'var $TS_VCSC_Lightbox_Closer = ' . \t\t\t\t\t(((array_key_exists('closer', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['closer'] : $this->TS_VCSC_Lightbox_Setting_Defaults['closer']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Closer'] = (((array_key_exists('closer', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['closer'] : $this->TS_VCSC_Lightbox_Setting_Defaults['closer']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Durations = ' . \t\t\t\t((array_key_exists('duration', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['duration'] : $this->TS_VCSC_Lightbox_Setting_Defaults['duration']) . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Duration'] = (int)((array_key_exists('duration', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['duration'] : $this->TS_VCSC_Lightbox_Setting_Defaults['duration']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Share = ' . \t\t\t\t\t(((array_key_exists('share', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['share'] : $this->TS_VCSC_Lightbox_Setting_Defaults['share']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Share'] = (((array_key_exists('share', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['share'] : $this->TS_VCSC_Lightbox_Setting_Defaults['share']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Save = ' . \t\t\t\t\t\t(((array_key_exists('save', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['save'] : $this->TS_VCSC_Lightbox_Setting_Defaults['save']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Save'] = (((array_key_exists('save', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['save'] : $this->TS_VCSC_Lightbox_Setting_Defaults['save']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_LoadAPIs = ' . \t\t\t\t\t(((array_key_exists('loadapis', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['loadapis'] : $this->TS_VCSC_Lightbox_Setting_Defaults['loadapis']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['LoadAPIs'] = (((array_key_exists('loadapis', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['loadapis'] : $this->TS_VCSC_Lightbox_Setting_Defaults['loadapis']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Social = \"' . \t\t\t\t\t((array_key_exists('social', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['social'] : $this->TS_VCSC_Lightbox_Setting_Defaults['social']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Social'] = ((array_key_exists('social', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['social'] : $this->TS_VCSC_Lightbox_Setting_Defaults['social']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_NoTouch = ' . \t\t\t\t\t(((array_key_exists('notouch', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['notouch'] : $this->TS_VCSC_Lightbox_Setting_Defaults['notouch']) == 1 ? 'false' : 'true') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['NoTouch'] = (((array_key_exists('notouch', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['notouch'] : $this->TS_VCSC_Lightbox_Setting_Defaults['notouch']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_BGClose = ' . \t\t\t\t\t(((array_key_exists('bgclose', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['bgclose'] : $this->TS_VCSC_Lightbox_Setting_Defaults['bgclose']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['BGClose'] = (((array_key_exists('bgclose', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['bgclose'] : $this->TS_VCSC_Lightbox_Setting_Defaults['bgclose']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_NoHashes = ' . \t\t\t\t\t(((array_key_exists('nohashes', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['nohashes'] : $this->TS_VCSC_Lightbox_Setting_Defaults['nohashes']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['NoHashes'] = (((array_key_exists('nohashes', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['nohashes'] : $this->TS_VCSC_Lightbox_Setting_Defaults['nohashes']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Keyboard = ' . \t\t\t\t\t(((array_key_exists('keyboard', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['keyboard'] : $this->TS_VCSC_Lightbox_Setting_Defaults['keyboard']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Keyboard'] = (((array_key_exists('keyboard', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['keyboard'] : $this->TS_VCSC_Lightbox_Setting_Defaults['keyboard']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_FullScreen = ' . \t\t\t\t(((array_key_exists('fullscreen', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['fullscreen'] : $this->TS_VCSC_Lightbox_Setting_Defaults['fullscreen']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['FullScreen'] = (((array_key_exists('fullscreen', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['fullscreen'] : $this->TS_VCSC_Lightbox_Setting_Defaults['fullscreen']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Zoom = ' . \t\t\t\t\t\t(((array_key_exists('zoom', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['zoom'] : $this->TS_VCSC_Lightbox_Setting_Defaults['zoom']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Zoom'] = (((array_key_exists('zoom', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['zoom'] : $this->TS_VCSC_Lightbox_Setting_Defaults['zoom']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_FXSpeed = ' . \t\t\t\t\t((array_key_exists('fxspeed', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['fxspeed'] : $this->TS_VCSC_Lightbox_Setting_Defaults['fxspeed']) . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['FXSpeed'] = (int)((array_key_exists('fxspeed', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['fxspeed'] : $this->TS_VCSC_Lightbox_Setting_Defaults['fxspeed']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Scheme = \"' . \t\t\t\t\t((array_key_exists('scheme', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['scheme'] : $this->TS_VCSC_Lightbox_Setting_Defaults['scheme']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Scheme'] = ((array_key_exists('scheme', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['scheme'] : $this->TS_VCSC_Lightbox_Setting_Defaults['scheme']); \r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Controls = \"' . ((array_key_exists('controls', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['controls'] : $this->TS_VCSC_Lightbox_Setting_Defaults['controls']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Buttons'] = ((array_key_exists('controls', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['controls'] : $this->TS_VCSC_Lightbox_Setting_Defaults['controls']);\r\n echo 'var $TS_VCSC_Lightbox_URLColor = ' . \t\t\t\t\t(((array_key_exists('urlcolorscan', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['urlcolorscan'] : $this->TS_VCSC_Lightbox_Setting_Defaults['urlcolorscan']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['URLColor'] = (((array_key_exists('urlcolorscan', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['urlcolorscan'] : $this->TS_VCSC_Lightbox_Setting_Defaults['urlcolorscan']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Backlight = \"' . \t\t\t\t((array_key_exists('backlight', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['backlight'] : $this->TS_VCSC_Lightbox_Setting_Defaults['backlight']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Backlight'] = ((array_key_exists('backlight', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['backlight'] : $this->TS_VCSC_Lightbox_Setting_Defaults['backlight']);\r\n echo 'var $TS_VCSC_Lightbox_UseColor = ' . \t\t\t\t\t(((array_key_exists('usecolor', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['usecolor'] : $this->TS_VCSC_Lightbox_Setting_Defaults['usecolor']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['UseColor'] = (((array_key_exists('usecolor', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['usecolor'] : $this->TS_VCSC_Lightbox_Setting_Defaults['usecolor']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Overlay = \"' . \t\t\t\t\t((array_key_exists('overlay', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['overlay'] : $this->TS_VCSC_Lightbox_Setting_Defaults['overlay']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Overlay'] = ((array_key_exists('overlay', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['overlay'] : $this->TS_VCSC_Lightbox_Setting_Defaults['overlay']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Background = \"' . \t\t\t\t((array_key_exists('background', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['background'] : $this->TS_VCSC_Lightbox_Setting_Defaults['background']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Background'] = ((array_key_exists('background', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['background'] : $this->TS_VCSC_Lightbox_Setting_Defaults['background']);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Repeat = \"' . \t\t\t\t\t((array_key_exists('repeat', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['repeat'] : $this->TS_VCSC_Lightbox_Setting_Defaults['repeat']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Repeat'] = ((array_key_exists('repeat', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['repeat'] : $this->TS_VCSC_Lightbox_Setting_Defaults['repeat']); \r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Noise = \"' . \t\t\t\t\t((array_key_exists('noise', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['noise'] : $this->TS_VCSC_Lightbox_Setting_Defaults['noise']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Noise'] = ((array_key_exists('noise', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['noise'] : $this->TS_VCSC_Lightbox_Setting_Defaults['noise']); \r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_CORS = ' . \t\t\t\t\t\t(((array_key_exists('cors', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['cors'] : $this->TS_VCSC_Lightbox_Setting_Defaults['cors']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['CORS'] = (((array_key_exists('cors', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['cors'] : $this->TS_VCSC_Lightbox_Setting_Defaults['cors']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Tapping = ' . \t\t\t\t\t(((array_key_exists('tapping', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['tapping'] : $this->TS_VCSC_Lightbox_Setting_Defaults['tapping']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Tapping'] = (((array_key_exists('tapping', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['tapping'] : $this->TS_VCSC_Lightbox_Setting_Defaults['tapping']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_ScrollBlock = \"' . \t\t\t\t((array_key_exists('scrollblock', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['scrollblock'] : $this->TS_VCSC_Lightbox_Setting_Defaults['scrollblock']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['ScrollBlock'] = ((array_key_exists('scrollblock', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['scrollblock'] : $this->TS_VCSC_Lightbox_Setting_Defaults['scrollblock']);\r\n echo 'var $TS_VCSC_Lightbox_Protection = \"' . \t\t\t\t((array_key_exists('protection', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['protection'] : $this->TS_VCSC_Lightbox_Setting_Defaults['protection']) . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Protection'] = ((array_key_exists('protection', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['protection'] : $this->TS_VCSC_Lightbox_Setting_Defaults['protection']);\r\n echo 'var $TS_VCSC_Lightbox_HistoryClose = ' .\t\t\t\t(((array_key_exists('historyclose', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['historyclose'] : $this->TS_VCSC_Lightbox_Setting_Defaults['historyclose']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['HistoryClose'] = (((array_key_exists('historyclose', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['historyclose'] : $this->TS_VCSC_Lightbox_Setting_Defaults['historyclose']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_CustomScroll = ' .\t\t\t\t(((array_key_exists('customscroll', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['customscroll'] : $this->TS_VCSC_Lightbox_Setting_Defaults['customscroll']) == 1 ? 'true' : 'false') . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['CustomScroll'] = (((array_key_exists('customscroll', $this->TS_VCSC_LightboxGlobalSettings)) ? $this->TS_VCSC_LightboxGlobalSettings['customscroll'] : $this->TS_VCSC_Lightbox_Setting_Defaults['customscroll']) == 1 ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_HomeURL = \"' . \t\t\t\t\tget_home_url() . '\";';\r\n $TS_VCSC_VariablesOutput['Lightbox']['HomeURL'] = get_home_url();\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_LastScroll = 0;';\r\n $TS_VCSC_VariablesOutput['Lightbox']['LastScroll'] = 0;\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Showing = false;';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Showing'] = false;\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_PrettyPhoto = ' . \t\t\t\t$this->TS_VCSC_UseLightboxPrettyPhoto . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['PrettyPhoto'] = ((($this->TS_VCSC_UseLightboxPrettyPhoto == \"true\") || ($this->TS_VCSC_UseLightboxPrettyPhoto == true)) ? true : false);\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_AttachAllOther = ' .\t\t\t$this->TS_VCSC_UseLightboxAttachAllOther . ';';\r\n $TS_VCSC_VariablesOutput['Lightbox']['AttachAllOther'] = ((($this->TS_VCSC_UseLightboxAttachAllOther == \"true\") || ($this->TS_VCSC_UseLightboxAttachAllOther == true)) ? true : false);\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo 'var $TS_VCSC_Lightbox_Activated = false;';\r\n $TS_VCSC_VariablesOutput['Lightbox']['Activated'] = false;\r\n\t\t\t\t} \r\n\t\t\t\t// Hammer Version Setting\r\n\t\t\t\techo 'var $TS_VCSC_Hammer_ReleaseNew = ' . $this->TS_VCSC_LoadFrontEndHammerNew . ';';\r\n $TS_VCSC_VariablesOutput['Other']['HammerReleaseNew'] = ((($this->TS_VCSC_LoadFrontEndHammerNew == \"true\") || ($this->TS_VCSC_LoadFrontEndHammerNew == true)) ? true : false);\r\n\t\t\t\t// Extended Row Effects (Breakpoint)\r\n\t\t\t\tif (get_option('ts_vcsc_extend_settings_additionsRows', 0) == 1) {\r\n\t\t\t\t\techo 'var $TS_VCSC_RowEffects_Breakpoint = ' . \t\t\t\tget_option('ts_vcsc_extend_settings_additionsRowEffectsBreak', '600') . ';';\r\n $TS_VCSC_VariablesOutput['Other']['RowsBreakPoint'] = (int)get_option('ts_vcsc_extend_settings_additionsRowEffectsBreak', '600');\r\n\t\t\t\t}\r\n // AJAX Callback URL\r\n $TS_VCSC_VariablesOutput['Other']['AjaxURL'] = admin_url('admin-ajax.php'); \r\n // Output Data Holder Object (window.krautcomposium) \r\n //echo 'window.krautcomposium = ' . json_encode($TS_VCSC_VariablesOutput) . ';';\r\n\t\t\techo '</script>';\r\n\t\t}", "function googlemap_shortcode( $atts ) {\n extract(shortcode_atts(array(\n 'width' => '98%',\n 'height' => '300',\n\t\t'lat' => '',\n\t\t'lng' =>'',\n\t\t'zoom' => '13',\n\t\t'pancontrol' => 'Yes',\n\t\t'zoomcontrol'=> 'Yes',\n\t\t'maptypecontrol'=> 'Yes',\n\t\t'scalecontrol'=> 'Yes',\n\t\t'streetviewcontrol'=> 'Yes',\n\t\t'overviewmapcontrol'=> 'Yes'\n ), $atts));\n\n $pancontrol = ($pancontrol == 'Yes') ? 'true' : '';\n $zoomcontrol = ($zoomcontrol == 'Yes') ? 'true' : '';\n $maptypecontrol = ($maptypecontrol == 'Yes') ? 'true' : '';\n $scalecontrol = ($scalecontrol == 'Yes') ? 'true' : '';\n $streetviewcontrol = ($streetviewcontrol == 'Yes') ? 'true' : '';\n $overviewmapcontrol = ($overviewmapcontrol == 'Yes') ? 'true' : '';\n\n $rand = rand(1,100) * rand(1,100);\n\n return '<script src=\"http://maps.googleapis.com/maps/api/js?key=&sensor=false\" type=\"text/javascript\"></script>\n \n \n <div class=\"map_api\" id=\"map_canvas_'.esc_attr($rand).'\" style=\"width:'. $width .'; height:'. $height .'px\"></div>\n <script type=\"text/javascript\">\n function initialize() {\n var myLatlng = new google.maps.LatLng('.$lat.','. $lng .'); \n var mapOptions = {\n center: myLatlng,\n zoom: '. $zoom .',\n panControl: '. $pancontrol .',\n zoomControl: '. $zoomcontrol .',\n mapTypeControl: '. $maptypecontrol .',\n scaleControl: '. $scalecontrol .',\n streetViewControl: '. $streetviewcontrol .',\n overviewMapControl: '. $overviewmapcontrol .',\n mapTypeId: google.maps.MapTypeId.ROADMAP\n };\n var map = new google.maps.Map(document.getElementById(\"map_canvas_'.$rand.'\"),\n mapOptions);\n var marker = new google.maps.Marker({\n position: myLatlng\n });\n \n marker.setMap(map); \n }initialize();\n </script>\n ';\n\n}" ]
[ "0.7135505", "0.671632", "0.6579036", "0.6555767", "0.653499", "0.65216345", "0.6357039", "0.6339721", "0.6334214", "0.63264453", "0.63230515", "0.6282656", "0.6265347", "0.6261081", "0.6246789", "0.62432057", "0.62255025", "0.62167597", "0.6202139", "0.61946255", "0.6187489", "0.6166015", "0.61572206", "0.61383", "0.610599", "0.6091728", "0.6087554", "0.6083031", "0.60821337", "0.6047886", "0.6040781", "0.6037839", "0.6035887", "0.60342", "0.60328674", "0.6022427", "0.60177743", "0.60157883", "0.6011898", "0.60082006", "0.6004841", "0.5995463", "0.5982795", "0.59769833", "0.5967097", "0.5965713", "0.59561366", "0.5953125", "0.59336126", "0.5928029", "0.59106344", "0.58987856", "0.5889685", "0.58781135", "0.5876762", "0.5869252", "0.5869194", "0.5861161", "0.5859371", "0.5847869", "0.5841587", "0.5827757", "0.58244663", "0.58162415", "0.5815861", "0.58158034", "0.5807382", "0.5807057", "0.58063424", "0.5802983", "0.579891", "0.579514", "0.5791842", "0.57911676", "0.5784292", "0.57796806", "0.5776043", "0.5771134", "0.5768128", "0.57680017", "0.57673156", "0.5767137", "0.5762614", "0.57582706", "0.5757055", "0.5755556", "0.5753242", "0.57490593", "0.5744398", "0.5743574", "0.5741932", "0.5740885", "0.5734918", "0.57330596", "0.57318234", "0.57265186", "0.5722739", "0.57220584", "0.5718737", "0.5713941" ]
0.70013213
1
Bootstrap the application events.
public function boot() { $this->package('indatus/ranger'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n\n Event::listen('pages.menuitem.listTypes', function () {\n return [\n 'portfolio-item' => 'depcore.portfolio::lang.portfolioitem.label' ,\n 'all-portfolio-items' => 'depcore.portfolio::lang.portfolioitems.menu_label',\n ];\n });\n\n Event::listen('pages.menuitem.getTypeInfo', function ($type) {\n if ($type === 'portfolio-item' or $type == 'all-portfolio-items') {\n return PortfolioItem::getMenuTypeInfo($type);\n }\n });\n\n Event::listen('pages.menuitem.resolveItem', function ($type, $item, $url, $theme) {\n if ($type === 'portfolio-item' or $type == 'all-portfolio-items') {\n return PortfolioItem::resolveMenuItem($item, $url, $theme);\n }\n });\n\n }", "public function boot()\n {\n Event::listen(\n AppointmentConfirmed::class,\n [SendConfirmMail::class, 'handle']\n );\n\n Event::listen(\n DoctorAccepted::class,\n [SendDoctorAcceptanceMail::class, 'handle']\n );\n\n Event::listen(\n ClinicAccepted::class,\n [SendClinicAcceptanceMail::class, 'handle']\n );\n \n Event::listen(\n NewRegistered::class,\n [SendCodeMail::class, 'handle']\n );\n }", "public function boot()\n {\n // Observe event\n // For example:\n // User::observe( new UserObserver );\n }", "public function boot()\n {\n Schema::defaultStringLength(191);\n\n Paginator::useBootstrap();\n\n SiteMenu::observe(SiteMenuObserver::class);\n Art::observe(ArtObserver::class);\n }", "public function boot()\n {\n Event::listen(ServingNova::class, function () {\n Nova::script('awesome-nova-tool-actions', dirname(__DIR__) . '/dist/js/actions.js');\n });\n }", "public function boot(): void\n {\n $this->publishAndLoadPackageComponents();\n\n $this->registerAndScheduleCommands();\n\n $this->setPaginatorStyling();\n }", "public function boot()\n {\n $this->bootModulesMenu();\n $this->bootSkinComposer();\n $this->bootCustomBladeDirectives();\n }", "protected function boot()\n {\n //Nothing to do here, but you can override this function in child classes.\n }", "public function boot()\n {\n $this->configuration();\n $this->assets();\n $this->fonts();\n $this->views();\n }", "public function boot()\n {\n $this->setupListeners();\n }", "public function boot()\n\t{\n\t\t$this->setupLogging();\n\t}", "public function boot()\n {\n BelongsTo::setEventDispatcher($this->app['events']);\n HasMany::setEventDispatcher($this->app['events']);\n HasOne::setEventDispatcher($this->app['events']);\n MorphMany::setEventDispatcher($this->app['events']);\n MorphOne::setEventDispatcher($this->app['events']);\n MorphTo::setEventDispatcher($this->app['events']);\n }", "public function boot()\n {\n $this->handleConfig();\n }", "public function boot(): void\n {\n $this->registerEvents();\n $this->registerQueueConnectors();\n }", "public function boot()\n {\n // Event Listeners\n $this->eventListeners($this->events);\n\n // Event Subscriptions\n $this->eventSubscriptions($this->eventSubscribers);\n\n // Observers\n $this->addObservers($this->observers);\n\n // Extensions\n $this->registerExtensions($this->extensions);\n\n // Features\n $this->registerFeatures($this->features);\n\n // Permissions\n $this->registerPermissions($this->permissions);\n }", "public function boot()\n {\n //\n // View::share('assetDir', env('APP_ENV') == 'production' ? 'build/' : '');\n // View::share('assetPath', env('APP_ENV') == 'production' ? 'mix' : 'asset');\n\n // TODO: Model Observer\n// Change::observe(ChangeObserver::class);\n }", "protected static function boot()\n {\n static::addGlobalScope(new EventScope);\n static::addGlobalScope(new ApprovedEventScope);\n parent::boot();\n }", "protected static function boot()\n {\n }", "public function boot()\n {\n Book::observe(BookObserver::class);\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->setupConfig();\n }", "public function boot()\n {\n $this->bootEvents();\n\n $this->bootPublishes();\n\n $this->bootTypes();\n\n $this->bootSchemas();\n\n $this->bootRouter();\n\n $this->bootViews();\n \n $this->bootSecurity();\n }", "public function boot()\n {\n $this->setupConfig($this->app);\n }", "public function boot()\n {\n Senha::observe(new SenhaObserver());\n }", "public function boot()\n {\n $this->dispatch(new SetCoreConnection());\n $this->dispatch(new ConfigureCommandBus());\n $this->dispatch(new ConfigureTranslator());\n $this->dispatch(new LoadStreamsConfiguration());\n\n $this->dispatch(new InitializeApplication());\n $this->dispatch(new AutoloadEntryModels());\n $this->dispatch(new AddAssetNamespaces());\n $this->dispatch(new AddImageNamespaces());\n $this->dispatch(new AddViewNamespaces());\n $this->dispatch(new AddTwigExtensions());\n $this->dispatch(new RegisterAddons());\n }", "public function boot()\n {\n // Load the user's events, tasks, plugins, and configurations\n $this->credentials->syncConnectionCredentials();\n $this->tasks->registerConfiguredEvents();\n }", "public function boot()\n {\n\t\t//\n }", "public function boot(): void\n {\n foreach ($this->observers as $model => $observer) {\n foreach ($observer as $item) {\n $model::observe($item);\n }\n }\n\n foreach ($this->listen as $event => $listeners) {\n foreach (array_unique($listeners, SORT_REGULAR) as $listener) {\n Event::listen($event, $listener);\n }\n }\n }", "public function boot()\n {\n Transaction::observe(TransactionObserver::class);\n Offer::observe(OfferObserver::class);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrations();\n }\n if(config($this->vendorNamespace. '::config.enabled')){\n Livewire::component($this->vendorNamespace . '::login-form', LoginForm::class);\n $this->loadRoutes();\n $this->loadViews();\n $this->loadMiddlewares();\n $this->loadTranslations();\n }\n }", "public function boot()\n\t{\n\t\t$this->package('tlr/l4-cms');\n\n\t\t$this->reassignDefaultViews();\n\n\t\t$this->routes( $this->app['router'], $this->app['events'] );\n\n\t\t$this->adminMenu();\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n\t\t//\n\t}", "public function boot()\n\t{\n $this->composeNavigation();\n $this->composeTags();\n $this->composeRecent();\n $this->composeProducts();\n $this->composeListGroup();\n $this->composeAdsIndex();\n }", "public function boot()\n {\n //Send Menu to wordpress actions hook\n if (is_admin()) {\n $this->app['wp.admin.menu']->send();\n }\n }", "public function boot() {\n \n }", "protected static function boot()\n\t{\n\t\tparent::boot();\n\t}", "public function boot()\r\n {\r\n // Publishing is only necessary when using the CLI.\r\n if ($this->app->runningInConsole()) {\r\n $this->bootForConsole();\r\n }\r\n }", "public function boot()\n {\n // Bootstrap handles\n //$this->routeHandle();\n $this->configHandle();\n $this->langHandle();\n $this->viewHandle();\n $this->assetHandle();\n $this->migrationHandle();\n $this->pulishControllerStub();\n $this->pulishRouteStub();\n \n }", "public function boot()\n {\n View::composer('includes.nav', function ($view) {\n $menus = $this->app->make('App\\Services\\MenuService');\n $view->with('menus',$menus->buildSideMenu());\n });\n // automatically create production after purchase order saved\n SaleOrder::observe(SaleOrderObserver::class);\n }", "public function boot() {\n\n\t\t$this->register_cli_commands();\n\n\t\t$this->register_routes();\n\n\t\t$this->apply_sitemap_optimisations();\n\n\t}", "public function boot()\n {\n Exchange::observe(ExchangeObserver::class);\n Withdrawal::observe(WithdrawalObserver::class);\n Topup::observe(TopupObserver::class);\n }", "public function boot()\n {\n $this->bootSetTimeLocale();\n $this->bootBladeHotelRole();\n $this->bootBladeHotelGuest();\n $this->bootBladeIcon();\n }", "public function boot()\n {\n Event::listen('eloquent.created: *', function($data,$data2) {\n $this->save_event('crear',$data2);\n });\n\n Event::listen('eloquent.updated: *', function($data,$data2) {\n $this->save_event('actualizar',$data2);\n });\n\n Event::listen('eloquent.deleting: *', function($data,$data2) {\n $this->save_event('borrar',$data2);\n });\n }", "public function boot()\n {\n Banner::observe(BannerObserver::class);\n Booking::observe(BookingObserver::class);\n Coupon::observe(CouponObserver::class);\n Customer::observe(CustomerObserver::class);\n Restaurant::observe(RestaurantObserver::class);\n Facility::observe(FacilityObserver::class);\n Gallery::observe(GalleryObserver::class);\n Menu::observe(MenuObserver::class);\n User::observe(UserObserver::class);\n RoomType::observe(RoomTypeObserver::class);\n Paginator::useBootstrap();\n }", "public function boot()\n {\n Schema::defaultStringLength(191);\n\n $this->loadTranslationsFrom(__DIR__ .'/resources/lang', __NAMESPACE__);\n\n Blade::directive('module', function ($modules) {\n return \"<?php if(\\EmilMoe\\Base\\Module::loaded($modules)): ?>\";\n });\n\n Blade::directive('endmodule', function () {\n return '<?php endif; ?>';\n });\n\n $this->app->booted(function () {\n $schedule = $this->app->make(Schedule::class);\n $schedule->command('cleanup')->hourly();\n });\n }", "public function boot()\r\n {\r\n //\r\n }", "public function boot()\r\n {\r\n //\r\n }", "public function boot()\r\n {\r\n //\r\n }", "public function boot()\r\n {\r\n //\r\n }", "protected static function boot()\n {\n parent::boot();\n\t\n\t\tHomeSection::observe(HomeSectionObserver::class);\n\t\t\n static::addGlobalScope(new ActiveScope());\n }", "public function boot() : void\n {\n $eventBus = $this->app->make(EventBus::class);\n\n // The projections config contains a list of class names or projectors.\n // Each of these projectors will be subscribed to the given event bus.\n $projectors = $this->app->config->get('event_sourcing.projectors');\n\n foreach ($projectors as $projector) {\n $eventBus->subscribe(\n $this->app->make($projector)\n );\n }\n\n Reconstitution::reconstituteUsing(\n new ReconstituteUsingInstantiatorAndHydrator(\n new Instantiator(),\n new HydrateUsingReflection()\n )\n );\n }", "public function boot()\n {\n Dictionary::observe(DictionaryObserver::class);\n HouseLevy::observe(HouseLevyObserver::class);\n LandLevy::observe(LandLevyObserver::class);\n Period::observe(PeriodObserver::class);\n }", "public function boot()\n {\n $this->strapRoutes();\n $this->strapViews();\n $this->strapMigrations();\n $this->strapCommands();\n\n $this->registerPolicies();\n }", "public function boot() {\n //\n }", "public function boot() {\n //\n }", "public function boot() {\n //\n }", "public function boot()\n {\n Stripe::setApiKey(env('STRIPE_SECRET'));\n Cashier::useCurrency('eur', '€');\n \n View::composer('front.layout', function (\\Illuminate\\Contracts\\View\\View $view) {\n $view->with('menu_games', $this->getPlatformsWithGames());\n });\n \n User::observe(UploadablesObserver::class);\n Team::observe(UploadablesObserver::class);\n Platform::observe(UploadablesObserver::class);\n Game::observe(UploadablesObserver::class);\n Network::observe(UploadablesObserver::class);\n Map::observe(UploadablesObserver::class);\n }", "public function boot()\n {\n\t $this->composeHubs();//hub list\n\t $this->composeTopMenuDefault();// top menu for default main page\n\t $this->composeTopHubMenu();//top menu for default(overall) hub wise\n\t $this->composeTopmenu();//top menu for hub/country/\n\t \n\t $this->composeSidemenuDefault();\n\t $this->composeSidemenuHub();\n\t $this->composeSidemenu();\n\t $this->composePagemenu();\n }", "public static function boot ()\n {\n parent::boot();\n self::observe(new UIActionObserver());\n }", "public function boot()\n {\n $this->bootViews();\n\n $this->bootPublishedFiles();\n }", "public function boot()\n\t{\n\t\tif(!Menu::instance('sidebar'))\n\t\t{\n\t\t\tMenu::create('sidebar-menu', function ($menu) {\n\t\t\t\t$menu->setPresenter('App\\Presenters\\SidebarMenuPresenter');\n\t\t\t\t$menu->enableOrdering(); // enable ordering\n\t\t\t});\n\t\t}\n\t}", "public function boot()\n {\n parent::boot();\n\n User::observe($this->app->make(UserObserver::class));\n AnalyticsEvent::observe($this->app->make(AnalyticsEventObserver::class));\n }", "public static function boot()\n {\n Session::start();\n\n Env::load();\n \n require_once __DIR__ . '/../../app/Routes/routes.php';\n\n require_once __DIR__ . '/globals.php';\n\n Request::setCurrent();\n\n Router::run();\n }", "public function boot(Dispatcher $events)\n {\n \\URL::forceScheme(parse_url(config('app.url'))['scheme']);\n JetstrapFacade::useAdminLte3();\n\n $this->menu_build($events);\n }", "public function boot()\n {\n Image::observe(ImageObserver::class);\n Section::observe(SectionObserver::class);\n Post::observe(PostObserver::class);\n Virtual_Book::observe(VirtualBookObserver::class);\n Book::observe(BookObserver::class);\n }", "public function boot()\n {\n if ($this->app->isLocal()) {\n Redis::enableEvents();\n }\n\n Image::observe(ImageObserver::class);\n Domain::observe(DomainObserver::class);\n }", "public function boot()\n\t{\n\t\t$ext_translate = new Classes\\Translate();\n\t\t$ext_translate->menu();\n\t}", "public function boot()\n {\n $this->registerResources();\n $this->registerTab();\n $this->registerViewComposer();\n // $this->publishFiles();\n //$this->registerListener();\n }", "public static function boot() \n\t{\n parent::boot();\n \n // AuthorizedEmployee::observe(new AuthorizedEmployeeObserver());\n }", "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n //$this->app->loadDeferredProviders();\n\n if (!$this->commandsLoaded) {\n //$this->commands();\n\n $this->commandsLoaded = true;\n }\n }", "protected function bootstrap()\n {\n }", "public function boot()\n {\n parent::boot();\n User::observe(UserObserver::class);\n Lead::observe(LeadObserver::class);\n Contact::observe(ContactObserver::class);\n Business::observe(BusinessObserver::class);\n Lender::observe(LenderObserver::class);\n Application::observe(ApplicationObserver::class);\n }", "public function boot()\n\t{\n\t\t\n\t}", "public function boot()\n\t{\n\t\t\n\t}", "public function boot() {\n\t\t//\n\t}", "public function boot() {\n\t\t//\n\t}", "public function boot(Dispatcher $events)\n {\n parent::boot($events);\n\n //\n require app_path('Events.php');\n }", "public function boot(): void\n {\n // routes\n $this->loadRoutes();\n // assets\n $this->loadAssets('assets');\n // configuration\n $this->loadConfig('configs');\n // views\n $this->loadViews('views');\n // view extends\n $this->extendViews();\n // translations\n $this->loadTranslates('views');\n // adminer\n $this->loadAdminer('adminer');\n // commands\n $this->loadCommands();\n // gates\n $this->registerGates();\n // listeners\n $this->registerListeners();\n // settings\n $this->applySettings();\n }", "public function boot()\n {\n $this->publishConfig();\n\t\t\n\t\t$this->publishMigration();\n\n $this->registerBladeExtensions();\n }", "public function boot() {\n\t\t// TODO: Implement boot() method.\n\t}", "public function boot()\n {\n //Register Observers\n Employee::observe(EmployeeObserver::class);\n Lead::observe(LeadObserver::class);\n }", "public function boot()\n {\n //\n ChatConversation::observe(ChatConversationsObserver::class); // 호미차감\n }" ]
[ "0.7476131", "0.7449455", "0.74397516", "0.7425866", "0.73787534", "0.73327506", "0.7290027", "0.72789234", "0.7272027", "0.72545135", "0.7238835", "0.72026354", "0.7201436", "0.7192646", "0.7188356", "0.7178903", "0.71773785", "0.7174105", "0.7166155", "0.7162653", "0.7162653", "0.7162653", "0.7162653", "0.7162653", "0.7162653", "0.7162653", "0.7162653", "0.71624017", "0.71610874", "0.7159929", "0.7154877", "0.715156", "0.71493804", "0.71483296", "0.71442264", "0.7142199", "0.7141091", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.71405035", "0.7137912", "0.71378964", "0.7135824", "0.71284986", "0.71266305", "0.71235603", "0.7123048", "0.71180594", "0.71144897", "0.7113977", "0.71083176", "0.71005994", "0.7098269", "0.7094654", "0.7094654", "0.7094654", "0.7094654", "0.70886797", "0.7086045", "0.70854825", "0.7082841", "0.70812273", "0.70812273", "0.70812273", "0.7078593", "0.7075034", "0.7070302", "0.707015", "0.7066857", "0.70637494", "0.7063023", "0.70608765", "0.70583516", "0.70564425", "0.70559597", "0.70522034", "0.70494896", "0.7049413", "0.70470536", "0.7044136", "0.70391154", "0.70391154", "0.70376027", "0.70376027", "0.7036983", "0.70339894", "0.7032443", "0.70301145", "0.70298797", "0.70274645" ]
0.0
-1
Register the service provider.
public function register() { $this->registerViewManager(); $this->registerResponseHandler(); $this->registerHttpMethods(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->app->register(\\Laravel\\Telescope\\TelescopeServiceProvider::class);\n $this->app->register(TelescopeServiceProvider::class);\n }\n }", "public function register()\n {\n\n $this->registerBinding();\n }", "public function register()\n\t{\n\t\t$this->registerCommands();\n\t\t$this->registerHybridAuth();\n\t}", "public function register()\n {\n $this->registerAuthenticator();\n }", "public function register()\n {\n $this->loadHelpers();\n \n $this->passportSetting();\n }", "public function register()\n {\n //Bind service in IoC container\n $this->app->singleton('tenancy', function(){\n return new TenantManager();\n });\n }", "public function register()\n {\n\n $this->app->register(HookProvider::class);\n $this->app->register(RouteProvider::class);\n// $this->app->register(InstallModuleProvider::class);\n }", "public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n //$this->registerMenuService();\n\n //$this->registerReplyService();\n }", "public function register()\n {\n // ...\n }", "public function register()\n {\n // ...\n }", "public function register() {\n $this->registerProviders();\n $this->registerFacades();\n }", "public function register()\n {\n $this->registerServiceProvider();\n\n $this->addAssetNamespaceHint();\n $this->addStreamsNamespaceHint();\n }", "public function register()\n {\n $this->registerRequestHandler();\n $this->registerAuthorizationService();\n $this->registerServices();\n }", "public function register()\n {\n // register its dependencies\n $this->app->register(\\Cviebrock\\EloquentSluggable\\ServiceProvider::class);\n }", "public function register(){\n $this->registerDependencies();\n $this->registerAlias();\n $this->registerServiceCommands();\n }", "public function register()\n {\n $this->registerContracts();\n }", "public function register()\n\t{\n $this->registerApi();\n\t}", "public function register()\n {\n \n $this->registerLoader();\n $this->registerTranslator();\n }", "public function register()\r\n {\r\n Passport::ignoreMigrations();\r\n\r\n $this->app->singleton(\r\n CityRepositoryInterface::class,\r\n CityRepository::class\r\n );\r\n\r\n $this->app->singleton(\r\n BarangayRepositoryInterface::class,\r\n BarangayRepository::class\r\n );\r\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register() {\n //\n }", "public function register()\n {\n $this->registerServiceProviders();\n $this->registerSettingsService();\n $this->registerHelpers();\n }", "public function register()\n {\n /**\n * Register additional service\n * providers if they exist.\n */\n foreach ($this->providers as $provider) {\n if (class_exists($provider)) {\n $this->app->register($provider);\n }\n }\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n $this->registerMetaService();\n $this->registerLabelService();\n $this->registerTypeService();\n $this->registerGroupeService();\n $this->registerActiviteService();\n $this->registerRiiinglinkService();\n $this->registerInviteService();\n $this->registerTagService();\n $this->registerAuthService();\n $this->registerChangeService();\n $this->registerRevisionService();\n $this->registerUploadService();\n //$this->registerTransformerService();\n }", "public function register()\n {\n $this->registerFinite();\n }", "public function register()\n {\n $this->setupConfig();\n\n $this->bindServices();\n }", "public function register()\n {\n $this->registerServices();\n $this->setupStubPath();\n $this->registerProviders();\n }", "public function register()\n {\n $this->app['cache'] = $this->app->share(function($app)\n {\n return new CacheManagerMaster($app);\n });\n\n $this->app['memcached.connector'] = $this->app->share(function()\n {\n return new MemcachedConnector;\n });\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerBrowser();\n\n $this->registerViewFinder();\n }", "public function register()\n {\n $this->registerCacheManager();\n $this->registerCourier();\n }", "public function register()\n {\n $this->app->singleton(Adapter::class, function () {\n\n return new Adapter(config('services.sso.id'), config('services.sso.secret'));\n\n });\n }", "public function register()\n {\n $this->registerRollbar();\n }", "public function register()\n {\n $this->configure();\n }", "public function register()\n {\n $this->registerFactory();\n $this->registerManager();\n }", "public function register(): void\n {\n parent::register();\n\n $this->singleton(RouteViewerContract::class, RouteViewer::class);\n }", "public function register() {\n\n }", "public function register()\n {\n $this->registerFlareFacade();\n $this->registerServiceProviders();\n $this->registerBindings();\n }", "public function register()\n {\n $this->registerBindings();\n $this->registerEventListeners();\n }", "public function register()\n {\n //\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n\n\n\n\n $this->app->register(ResponseMacroServiceProvider::class);\n $this->app->register(TwitterServiceProvider::class);\n }", "public function register()\n {\n $this->app->singleton(Service\\TagsSynchronizer::class, function ($app) {\n return new Service\\TagsSynchronizer();\n });\n }", "public function register() {\n }", "public function register() {\n }", "public function register() {\n }", "public function register() {\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }", "public function register()\n {\n //\n }" ]
[ "0.71774215", "0.7054453", "0.6968271", "0.69677705", "0.6952019", "0.6931252", "0.6926226", "0.6918423", "0.6899592", "0.6894278", "0.68906504", "0.68906504", "0.6883112", "0.6872877", "0.6865099", "0.68640506", "0.68627584", "0.68624485", "0.68491566", "0.6823619", "0.68196595", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.681956", "0.68090034", "0.68089324", "0.6807419", "0.6803942", "0.6802752", "0.679191", "0.67904466", "0.67874974", "0.6785141", "0.6785141", "0.6785141", "0.6780175", "0.67768264", "0.6776666", "0.6770326", "0.6762759", "0.67627436", "0.67611307", "0.6757141", "0.67570823", "0.67548144", "0.6753397", "0.6753232", "0.67504245", "0.67504245", "0.67504245", "0.67504245", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705", "0.6749705" ]
0.6895726
9
Get the services provided by the provider.
public function provides() { return array('ranger'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function getServices()\n {\n if (is_null($this->serviceProviders)) {\n $this->serviceProviders = $this->getServiceProviders();\n }\n\n return $this->serviceProviders;\n }", "protected function getServices()\n {\n return $this->services;\n }", "protected static function getServiceProviders()\n {\n return [];\n }", "public static function get_service_providers(): array {\n\t\treturn self::$service_providers;\n\t}", "public function getServices();", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function services()\n {\n return $this->belongstomany(Service::class);\n }", "public function getServices() {\n return $this->services;\n }", "public function getServices() {\n return $this->services;\n }", "public function getServiceProviders();", "public function getServices() {\n\n return $this->services;\n\n }", "public function getServices()\n {\n return $this->pantonoServices;\n }", "public static function getServices(): array\n {\n return static::$services;\n }", "public static function get_services() {\n return [ \n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class,\n Base\\JsObjectsManager::class,\n Base\\ShortCodesManager::class\n ];\n }", "private function get_services() {\n\t\treturn [\n\t\t\tServices\\Language_Loader::class,\n\t\t\tServices\\Setup_Database::class,\n\t\t\tServices\\Scripts_And_Templates::class,\n\t\t\tServices\\Admin_Pages::class,\n\t\t\tServices\\Setup_Settings_Page::class,\n\t\t\tServices\\Loggers_Loader::class,\n\t\t\tServices\\Dropins_Loader::class,\n\t\t\tServices\\Setup_Log_Filters::class,\n\t\t\tServices\\Setup_Pause_Resume_Actions::class,\n\t\t\tServices\\Setup_Purge_DB_Cron::class,\n\t\t\tServices\\API::class,\n\t\t\tServices\\Dashboard_Widget::class,\n\t\t\tServices\\Network_Menu_Items::class,\n\t\t\tServices\\Plugin_List_Link::class,\n\t\t];\n\t}", "public static function get_services()\n {\n return [\n Pages\\Dashboard::class,\n Base\\Enqueue::class,\n Base\\SettingsLink::class,\n Base\\CustomPostTypeController::class,\n ];\n }", "public static function get_services()\n {\n return [\n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\CustomPostType::class,\n Base\\CustomMetaBox::class,\n Base\\Shortcode::class,\n Base\\Cron::class,\n ];\n }", "public function &getServices(): array {\n return $this->services;\n }", "public function getServiceLocator()\n {\n return $this->services;\n }", "public function getServiceProviderList()\n {\n return $this->providers;\n }", "public function services()\n {\n return $this->getAngularLocation($this->service_path);\n }", "public function provides()\n {\n return [Client::class, Services\\OAuth::class];\n }", "public function getServices(): array;", "public function getServiceProvider();", "public static function get_services()\n {\n\n //підключаємо всі необхідні класи для активації через масив\n return [\n Pages\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class\n ];\n }", "public function provides()\n {\n return [\n SerasaService::class\n ];\n }", "public function serviceProviders(): ?Collection;", "public function getServices()\r\n {\r\n if (is_null($this->_services)) {\r\n if ($this->getConfig('auto')) {\r\n $this->_services = array();\r\n $config = Mage::app()->getConfig();\r\n foreach (array('cache', 'full_page_cache', 'fpc') as $cacheType) {\r\n $node = $config->getXpath('global/' . $cacheType . '[1]');\r\n if (isset($node[0]->backend) && in_array((string)$node[0]->backend, array(\r\n 'Cm_Cache_Backend_Redis',\r\n 'Mage_Cache_Backend_Redis'\r\n ))) {\r\n $this->_services[] = $this->_buildServiceArray(\r\n $this->__(str_replace('_', ' ', uc_words($cacheType))),\r\n $node[0]->backend_options->server,\r\n $node[0]->backend_options->port,\r\n $node[0]->backend_options->password,\r\n $node[0]->backend_options->database\r\n );\r\n }\r\n }\r\n // get session\r\n $node = $config->getXpath('global/redis_session');\r\n if ($node) {\r\n $this->_services[] = $this->_buildServiceArray(\r\n $this->__('Session'),\r\n $node[0]->host,\r\n $node[0]->port,\r\n $node[0]->password,\r\n $node[0]->db\r\n );\r\n }\r\n } else {\r\n $this->_services = unserialize($this->getConfig('manual'));\r\n }\r\n }\r\n return $this->_services;\r\n }", "public function loadServices($providers);", "public static function get_services(): array\n {\n return [\n Base\\SettingsLinks::class,\n Pages\\Admin::class,\n Base\\Enqueue::class,\n CPT\\EmailCpt::class,\n ];\n }", "public function services(): array\n {\n return \\array_merge(\n \\array_keys($this->_services),\n \\array_keys($this->aliases)\n );\n }", "public function get_services() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/services.json\");\n }", "public function getRequestedServices();", "public function getProviders();", "public function getProviders();", "protected function getUserServices()\n\t{\n\t\treturn $this->userServices = new UsersService();\n\t}", "protected function getServices() {\n\t\treturn [\n\t\t\tMessagesService::class,\n\t\t];\n\t}", "public static function get_providers() {\n\t\treturn self::$providers;\n\t}", "public function getRequiredServices();", "public function getModulesServiceProviders()\n {\n $modulesNamespace = ModulesConfig::getModulesNamespace();\n\n foreach (ModulesConfig::getModulesNames() as $moduleName) {\n // get the Module extra service providers (extra service providers are defined in the modules config file)\n foreach (ModulesConfig::getModulesExtraServiceProviders($moduleName) as $provider) {\n $allServiceProviders[] = $provider;\n }\n // append the Module main service provider\n $allServiceProviders[] = ModulesConfig::buildMainServiceProvider($modulesNamespace, $moduleName);\n }\n\n return array_unique($allServiceProviders) ? : [];\n }", "public function provides()\n {\n return [\n RouteServiceProvider::class,\n MenuServiceProvider::class,\n ];\n }", "public function getUsersServices()\r\n {\r\n return $this->usersServices = new UsersService();\r\n }", "public function getServices()\n\t{\n\t\treturn ['card', 'topup_mobile', 'topup_mobile_post', 'topup_game'];\n\t}", "public function providerGet()\n {\n $getList = $this->getMethodsName('get');\n $provider = [];\n\n foreach ($getList as $name) {\n $provider[$name] = [\n 'name' => $name,\n 'arguments' => $this->getArgumentsForMethod($name),\n ];\n }\n\n return $provider;\n }", "public function findServices(): array;", "public static function get_services()\n {\n $ServicesObj = new Services();\n $Services = array();\n try {\n $stmt = $ServicesObj->read();\n $count = $stmt->rowCount();\n if ($count > 0) {\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n extract($row);\n $p = (object) array(\n \"ServiceID\" => (int) $ServiceID,\n \"ServiceName\" => $ServiceName,\n );\n\n array_push($Services, $p);\n }\n }\n return $Services;\n } catch (Exception $e) {\n throw $e;\n }\n }", "protected function otherServiceProviders()\n {\n $providers = [\n \\Collective\\Html\\HtmlServiceProvider::class,\n \\Intervention\\Image\\ImageServiceProvider::class,\n \\Acacha\\AdminLTETemplateLaravel\\Providers\\AdminLTETemplateServiceProvider::class,\n \\Serff\\Cms\\Core\\Providers\\InstallationServiceProvider::class,\n \\Serff\\Cms\\Core\\Providers\\AdminServiceProvider::class,\n ];\n\n $manifestPath = app()->getCachedServicesPath();\n\n (new ProviderRepository(app(), new Filesystem, $manifestPath))\n ->load($providers);\n }", "protected function getProviders() {\n\n\t\treturn $this->providers;\n\t}", "public function provides()\n {\n return [\n 'sm.callback.factory',\n 'sm.event.dispatcher',\n 'sm.factory',\n Debug::class,\n ];\n }", "public function get_providers()\n {\n }", "public function provides()\n {\n return [\n 'freshdesk.factory',\n 'freshdesk',\n 'freshdesk.connection',\n ];\n }", "public function provides()\n {\n return [\\App\\Services\\ApiPlatformProductFactoryService::class];\n }", "public function getServiceProvider($provider);", "public static function getListServices () {\n return self::findByStatus(self::STATUS_ACTIVE);\n }", "protected function registerServiceProviders()\n {\n if ($this->active()->has('providers')) {\n $providers = $this->active()->get('providers');\n\n foreach ($providers as $provider) {\n App::register($provider);\n }\n }\n }", "public function provides()\n\t{\n\t\treturn array(\n\t\t\t'mosms',\n\t\t\t'moclient',\n\t\t\t);\n\t}", "public function provides() {\n $providers = array();\n foreach ($this->providers as $key => $value) {\n $providers[] = $key;\n }\n return $providers;\n }", "public function getLoadedProviders(): array\n {\n return $this->loadServiceProviders;\n }", "public function provides()\n {\n AchieveLogger::info(\"Deferred true and I am here in provides()\");\n return['App\\Services\\Utility\\AchieveLoggerService'];\n }", "public function getModuleServiceProvider()\n {\n return isset($this->config['module']['providers']) ? $this->config['module']['providers'] : [];\n }", "public function provides()\n {\n return [\n CreateService::class,\n CreateInterface::class,\n CreateProvider::class,\n ];\n }", "public function setProviders()\n {\n $services = $this->container['services']??null;\n\n if (is_array($services)) {\n foreach ($services as $service) {\n $service::register($this->container);\n $service::boot($this->container);\n }\n }\n }", "public function provides()\n {\n return [\n ZhyuInfoServiceProvider::class,\n ];\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function services($ignore_cache = false) {\n if ($this->services === null || $ignore_cache) {\n $this->services = StatusBoard_Service::allForSite($this);\n }\n \n return $this->services;\n }", "public function getProviders(): array\n {\n return $this->providers;\n }", "public function getProviders(): array\n {\n return $this->providers;\n }", "public function get_service() {\n\n\t\treturn $this->provider_instance;\n\t}", "public function provides()\n {\n return [\n 'digitalocean.adapterfactory',\n 'digitalocean.factory',\n 'digitalocean',\n 'digitalocean.connection',\n ];\n }", "public function provides()\n {\n return [\n 'dubbo_cli',\n 'dubbo_cli.factory',\n ];\n }", "public static function getSubscribedServices()\r\n {\r\n return [\r\n MDHelper::class,\r\n LoggerInterface::class\r\n ];\r\n }", "public function getDependencies()\n {\n return array(\n MongoServiceProvider::SERVICE_NAME\n );\n }", "protected function getAuth_Provider_Oauth_ServiceCollectionService()\n {\n $this->services['auth.provider.oauth.service_collection'] = $instance = new \\phpbb\\di\\service_collection($this);\n\n $instance->add('auth.provider.oauth.service.bitly');\n $instance->add('auth.provider.oauth.service.facebook');\n $instance->add('auth.provider.oauth.service.google');\n $instance->add('auth.provider.oauth.service.twitter');\n\n return $instance;\n }", "public function provides()\n {\n return [CardService::class];\n }", "public function getServices()\n {\n $services = InvoiceService::where('office_id', request('office_id'))->where('name', 'like', '%' . request('q') . '%')->get();\n\n return $services;\n }", "public function provides()\n {\n return [\n 'auth',\n 'Permit\\CurrentUser\\ContainerInterface',\n 'Permit\\Access\\CheckerInterface',\n 'Permit\\CurrentUser\\LoginValidatorInterface'\n ];\n }", "public function getProviders($provider)\n {\n $name = is_string($provider) ? $provider : getClass($provider, true);\n \n return Arr::where($this->serviceProviders, function ($value) use ($name) {\n return $value instanceof $name;\n });\n }", "public function getServiceCheckProviders(): array\n {\n return $this->serviceCheckProviders;\n }", "public static function getDeferredServices(){\n return \\Illuminate\\Foundation\\Application::getDeferredServices();\n }", "abstract public function getProviders();", "private function providers()\n {\n $this->register(new CorsServiceProvider());\n $this->register(new HmacServiceProvider());\n }", "public function getDeferredServices(): array\n {\n return $this->deferredServices;\n }", "public function services(){\n\n $facades = Array(\n 'Cache' => 'Disco\\classes\\Cache',\n 'Crypt' => 'Disco\\classes\\Crypt',\n 'Data' => 'Disco\\classes\\Data',\n 'DB' => 'Disco\\classes\\DB',\n 'Email' => 'Disco\\classes\\Email',\n 'Event' => 'Disco\\classes\\Event',\n 'Html' => 'Disco\\classes\\Html',\n 'Form' => 'Disco\\classes\\Form',\n 'Model' => 'Disco\\classes\\ModelFactory',\n 'Queue' => 'Disco\\classes\\Queue',\n 'Session' => 'Disco\\classes\\Session',\n 'Template' => 'Disco\\classes\\Template',\n 'View' => 'Disco\\classes\\View'\n );\n\n foreach($facades as $facade=>$v){\n $this->make($facade,$v);\n }//foreach\n\n $this->as_factory('Router',function(){\n return new \\Disco\\classes\\Router::$base;\n });\n\n }", "public function provides()\n {\n return [\n EventDispatcher::class,\n Repository::class,\n ];\n }", "public function getServiceProvider(): Provider\n {\n return $this->serviceProvider;\n }", "protected function getPuntoAtencionServices()\n {\n return $this->container->get('snc.services.puntoatencion');\n }", "public function get_services($settings = FALSE)\n\t{\t\n\t\treturn parent::get_objects(array(\n\t\t\t'settings' => $settings\n\t\t));\n\t}", "public function provides()\n {\n return [\n Factory::class,\n 'flipbox.sdk',\n ];\n }", "public function provides()\n {\n return array(\n 'icsconfig',\n 'icsview',\n 'icsmessage',\n 'icspdf'\n );\n }", "public function getAvailableServices();", "public function provides()\n {\n return [\n ZhyuAuthServiceProvider::class,\n ];\n }", "public function getServices() {\n $serviceNames = $this->getServiceNames($this->serviceFolderPaths);\n $ret = $ret1 = array();\n// require_once AMFPHP_ROOTPATH.'Plugins/AmfphpDiscovery/CReflection.php';\n foreach ($serviceNames as $serviceName) {\n/* $methods = array();\n $objC = new CReflection(APP_PATH.'/app/controllers/'.$serviceName.'.php');\n $objComment = $objC->getDocComment();\n $arrMethod = $objC->getMethods();\n foreach ($arrMethod as $objMethods)\n {\n $methodComment = $objMethods->getDocComment();\n $parsedMethodComment = $this->parseMethodComment($methodComment);\n $arrParamenter = $objMethods->getParameters();\n foreach ($arrParamenter as $Paramenter)\n {\n $parameterInfo = new AmfphpDiscovery_ParameterDescriptor($Paramenter, '');\n $parameters[] = $parameterInfo;\n }\n $methods[$objMethods->_name] = new AmfphpDiscovery_MethodDescriptor($objMethods->_name, $parameters, $methodComment, $parsedMethodComment['return']);\n }\n\n $ret[$serviceName] = new AmfphpDiscovery_ServiceDescriptor($serviceName, $methods, $objComment); */\n $ret1[] = array('label'=>$serviceName,'date'=>'');\n }\n// var_dump($ret);exit();\n //note : filtering must be done at the end, as for example excluding a Vo class needed by another creates issues\n foreach ($ret as $serviceName => $serviceObj) {\n foreach (self::$excludePaths as $excludePath) {\n if (strpos($serviceName, $excludePath) !== false) {\n unset($ret[$serviceName]);\n break;\n }\n }\n }\n return $ret1;\n }", "public function providers()\n {\n return $this->request('get', '/api/teams/'.Helpers::config('team').'/providers');\n }", "public function get_registered_services() {\n\t\t$data = [];\n\t\t$res = self::$dbo->query( 'SELECT storage_service FROM snapshot_storage_credentials' );\n\t\twhile ( $row = $res->fetchArray() ) {\n\t\t\t$data[] = $row['storage_service'];\n\t\t}\n\n\t\treturn $data;\n\t}", "protected function getPayrollServices()\n\t{\n\t\treturn $this->payrollServices = new PayrollServices();\n\t}", "public function provides()\n {\n return ['shppcart_service'];\n }", "public function provides()\n {\n return ['vk_service'];\n }", "public function provides() {\n\t\treturn array();\n\t}" ]
[ "0.79039633", "0.7667588", "0.76229626", "0.75573224", "0.7470691", "0.7423859", "0.7423859", "0.7423859", "0.7409516", "0.736475", "0.736475", "0.7363987", "0.7322196", "0.71889", "0.7162814", "0.71509963", "0.7137116", "0.70622355", "0.7047945", "0.70362085", "0.70213807", "0.69303095", "0.6916005", "0.689161", "0.6809766", "0.6804473", "0.6777694", "0.67695314", "0.67489713", "0.6727971", "0.6722673", "0.6699434", "0.66944385", "0.6651968", "0.6645622", "0.66324407", "0.66324407", "0.6616089", "0.6613961", "0.6610317", "0.66008735", "0.6567814", "0.6562319", "0.6529889", "0.6500722", "0.6480351", "0.64535", "0.645232", "0.6418372", "0.6416018", "0.6413331", "0.6397339", "0.63955915", "0.63899195", "0.6379133", "0.63766354", "0.63379693", "0.63369566", "0.63356155", "0.6335485", "0.6318311", "0.6316751", "0.63084865", "0.62963986", "0.6278965", "0.6264424", "0.6264424", "0.62581587", "0.6252555", "0.6252555", "0.62434787", "0.62404764", "0.623751", "0.62194616", "0.6210146", "0.6203944", "0.62002736", "0.6197869", "0.61938506", "0.6188146", "0.61726904", "0.6170289", "0.6163297", "0.61600006", "0.61570746", "0.6152867", "0.6147815", "0.6147383", "0.61295825", "0.6126574", "0.6124758", "0.61204225", "0.6100293", "0.60957974", "0.6073751", "0.6072919", "0.60692966", "0.6069216", "0.60561067", "0.604959", "0.60481" ]
0.0
-1
Register custom layout metabox
public function add_layout_box() { $args = $this->layout_settings; add_meta_box( 'kopa_custom_layout', __( 'Custom Layout', kopa_get_domain() ), array( $this, 'output_fields' ), $args['screen'], 'normal', 'default', $args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function registerMetaBoxes() {}", "public function register_metaboxes(){\n\t\tif ($this->options('use_metabox')){\n\t\t\t$metabox = $this->metabox();\n\t\t\tadd_meta_box(\n\t\t\t\t$metabox['id'],\n\t\t\t\t$metabox['title'],\n\t\t\t\t'show_meta_boxes',\n\t\t\t\t$metabox['page'],\n\t\t\t\t$metabox['context'],\n\t\t\t\t$metabox['priority']\n\t\t\t);\n\t\t}\n\t}", "public static function createMetaBox() {\r\n add_meta_box( \r\n \\WPDisablePage\\Setup::PLUGIN_ID, // Metabox ID\r\n \\WPDisablePage\\Setup::PLUGIN_NAME, // Metabox Name\r\n array( __CLASS__, 'createView' ), // Metabox Callback\r\n apply_filters( strtolower( \\WPDisablePage\\Setup::PLUGIN_ID ) . '__post_types', self::POST_TYPES ), // Metabox Post Types\r\n self::POSITION, // Metabox Position\r\n self::PRIORITY // Metabox Priority\r\n );\r\n }", "public function register_meta_box() {\n\n\t\t\tadd_meta_box($this->slug, $this->options['title'], array($this, 'setup_meta_box'), $this->screen, $this->options['context'], $this->options['priority']);\n\t\t\tremove_meta_box('postcustom', $this->screen, 'normal');\n\t\t}", "public function addCustomBox() {\n add_meta_box( \n $this->post_type . '_meta',\n __( self::getLabel($this->post_type) . ' Meta', $this->post_type . '_meta' ),\n array($this, 'innerCustomBox'),\n $this->post_type,\n $this->fields_location, \n $this->fields_priority\n ); \n }", "public function register_meta_boxes()\n {\n }", "public function register()\n\t\t{\n\t\t\tif( empty($this->_postType) ) {\n\t\t\t\twp_die( 'Empty metabox post type.' );\n\t\t\t}\n\n\t\t\t$all_empty = true;\n\n\t\t\tforeach( $this->getTabs() as $tab ) {\n\t\t\t\tif ( ! $this->_alwaysDisplay && $tab->getContainers()->size() == 0 ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tforeach ( $tab->getContainers() as $container ) {\n\t\t\t\t\tif ( ! $this->_alwaysDisplay && $container->getFields()->size() == 0 ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$all_empty = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( $all_empty ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->_id = \"metabox_{$this->_postType}_{$this->_slug}\";\n\n\t\t\tadd_meta_box(\n\t\t\t\t$this->_id,\n\t\t\t\t$this->_title,\n\t\t\t\tarray($this, 'render'),\n\t\t\t\t$this->_postType,\n\t\t\t\t$this->_position,\n\t\t\t\t$this->_priority\n\t\t\t);\n\n\t\t\tadd_action( 'admin_head', array($this, 'disableHideMetaboxes') );\n\t\t}", "public function register_meta() {\r\n\t\t\tforeach($this->customFields as $customField){\r\n\t\t\t\tadd_meta_box( 'ecf-'.$customField['name'], __( $customField['title'], 'exlist' ), $customField['callback'], $postTypes , 'advanced', 'high', $type = array($customField['name'], $customField['title'], $customField['type']) );\r\n\t\t\t}\r\n }", "function register_metabox( $_genesis_theme_settings_pagehook ) {\n\t\tadd_meta_box( 'be-title-toggle', __( 'Title Toggle', 'genesis-title-toggle' ), array( $this, 'create_sitewide_metabox' ), $_genesis_theme_settings_pagehook, 'main', 'high' );\n\t}", "function add_metabox() {\n\tadd_meta_box(\n\t\t'external-connection-groups',\n\t\t__( 'External Connection Groups', 'distributor' ),\n\t\t__NAMESPACE__ . '\\render_metabox',\n\t\t\\Distributor\\Waves\\get_distributable_custom_post_types(),\n\t\t'side',\n\t\t'high'\n\t);\n\n}", "public function registerMetaBox() {\n\n add_meta_box(\n 'post-clone',\n 'Clone',\n array($this, 'buildForm'),\n self::$post_types,\n 'side',\n 'low');\n }", "function cnew_custom_metabox_add() {\r\n add_meta_box(\r\n 'cnew_custom_metabox_workshop', \r\n __( 'Informações da Oficina', 'cnew' ), \r\n 'cnew_workshop_custom_metabox_callback', \r\n 'cnew_workshop', \r\n 'normal',\r\n 'high'\r\n );\r\n\r\n add_meta_box(\r\n 'cnew_custom_metabox_registration', \r\n __( 'Formulário de Inscrição', 'cnew' ), \r\n 'cnew_registration_custom_metabox_callback', \r\n 'cnew_registration', \r\n 'normal',\r\n 'high'\r\n );\r\n }", "public static function add_metaboxes(){}", "public function register_meta_box() {\r\n add_meta_box( self::POST_TYPE . '-meta', 'Downloadable Resource URL', array ($this, 'meta_box_html'), self::POST_TYPE, 'side', 'default', '');\r\n }", "public static function add_meta_box() {\n add_meta_box( \"CBMTheme\", \"CBM Theme Meta Box\", \"CBMAdmin::posts_page\" );\n }", "public function register_metabox() {\n\t\t$fm = new Fieldmanager_Group( [\n\t\t\t'name' => 'hero_fields', // \"name\" id deceiving, used as the key/ID.\n\t\t\t'serialize_data' => false,\n\t\t\t'add_to_prefix' => false,\n\t\t\t'children' => [\n\t\t\t\t'_headline' => new Fieldmanager_RichTextArea( 'Main Headline', [\n\t\t\t\t\t'buttons_1' => [ 'bold', 'italic', 'strikethrough' ],\n\t\t\t\t\t'editor_settings' => [\n\t\t\t\t\t\t'media_buttons' => false,\n\t\t\t\t\t],\n\t\t\t\t] ),\n\t\t\t\t'_subheadline' => new Fieldmanager_RichTextArea( 'Sub Headline', [\n\t\t\t\t\t'buttons_1' => [ 'bold', 'italic', 'strikethrough' ],\n\t\t\t\t\t'editor_settings' => [\n\t\t\t\t\t\t'media_buttons' => false,\n\t\t\t\t\t],\n\t\t\t\t] ),\n\t\t\t],\n\t\t] );\n\n\t\t/**\n\t\t * Initiate the metabox\n\t\t */\n\t\t$fm->add_meta_box( 'Hero', 'page' );\n\t}", "static function add_custom_box() {\n\n // A meta box para os dados\n add_meta_box(\n 'agenda_data',\n 'Dados da Agenda',\n array( __CLASS__,'inner_custom_box_callback_function' ),\n 'agenda', // em que post type eles entram?\n 'side' // onde? side, normal, advanced\n //,'default' // 'high', 'core', 'default' or 'low'\n //,array('variáve' => 'valor') // variaveis que serão passadas para o callback\n );\n\n\n // A meta box que replica a taxonomia 'agenda_tipo', mas com radio buttons\n\t\tadd_meta_box(\n\t\t\t'agenda_tipo',\n\t\t\t_x( 'Tipo da Agenda', 'tipo do evento da agenda', 'panamazonica' ),\n\t\t\tarray( __CLASS__, 'agenda_tipo_callback_function' ),\n\t\t\t'agenda',\n\t\t\t'side',\n\t\t\t'core'\n\t\t);\n\n }", "public function addMetaboxes() {}", "public function create_meta_box() {\n\t\tadd_meta_box( 'slider_meta', 'Example metabox', array( $this, 'slider_meta_fields_callback' ), [ 'Page', 'post' ] );\n\n\t}", "public function kiwip_add_meta_box(){\t\t\t\n\t\tadd_meta_box(\n\t\t\t$this->id,\n\t\t\t$this->title,\n\t\t\tarray(&$this, 'kiwip_metabox_callback'),\n\t\t\t$this->cpt_name,\n\t\t\t$this->context,\n\t\t\t$this->priority\n\t\t);\n\t}", "public function register()\n {\n add_meta_box($this->id, $this->title, array( $this, 'render' ), $this->screens );\n }", "function register_metaboxes() {\n\n\t\t$this->metaboxes = array(\n\t\t\t'example-metabox' => array(\n\t\t\t\t'title' => 'Example Post Type Metabox',\n\t\t\t\t'context' => 'normal',\n\t\t\t\t'priority' => 'high',\n\t\t\t\t'fields' => array(\n\t\t\t\t\t'description',\n\t\t\t\t\t'date'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\tparent::register_metaboxes();\n\n\t}", "function responsive_add_layout_meta_box( $post ) {\n\tglobal $post, $wp_meta_boxes;\n\n\t$context = apply_filters( 'responsive_layout_meta_box_context', 'side' ); // 'normal', 'side', 'advanced'\n\t$priority = apply_filters( 'responsive_layout_meta_box_priority', 'default' ); // 'high', 'core', 'low', 'default'\n\n add_meta_box(\n\t\t'responsive_layout',\n\t\t__( 'Layout', 'responsive' ),\n\t\t'responsive_layout_meta_box',\n\t\t'post',\n\t\t$context,\n\t\t$priority\n\t);\n}", "public function setup_meta_box() {\n\t\t\tadd_meta_box( 'add-shortcode-section', __( 'Shortcode', IFLANG ), array( $this, 'meta_box' ), 'nav-menus', 'side', 'high' );\n\t\t}", "function create_meta_box() {\n\tif ( function_exists('add_meta_box') ) {\n\t\tadd_meta_box( 'new-meta-boxes', '<div class=\"icon-small\"></div> '.PEXETO_THEMENAME.' PAGE SETTINGS', 'new_meta_boxes', 'page', 'normal', 'high' );\n\t}\n}", "public static function create_meta_box() {\n\t\t$content_types_array = self::_get_active_content_types();\n\t\tforeach ( $content_types_array as $content_type ) {\n\t\t\tadd_meta_box( 'custom-content-type-mgr-custom-fields'\n\t\t\t\t, __('Custom Fields', CCTM::txtdomain )\n\t\t\t\t, 'StandardizedCustomFields::print_custom_fields'\n\t\t\t\t, $content_type\n\t\t\t\t, 'normal'\n\t\t\t\t, 'high'\n\t\t\t\t, $content_type \n\t\t\t);\n\t\t}\n\t}", "public function add_metabox() {\n\t\tadd_meta_box(\n\t\t\t'Word linkages',\n\t\t\t'Word linkages',\n\t\t\tarray(\n\t\t\t\t$this,\n\t\t\t\t'linkages_meta_box',\n\t\t\t),\n\t\t\t'questions',\n\t\t\t'side',\n\t\t\t'high'\n\t\t);\n\n\t\tadd_meta_box(\n\t\t\t'Answers',\n\t\t\t'Answers',\n\t\t\tarray(\n\t\t\t\t$this,\n\t\t\t\t'answers_meta_box',\n\t\t\t),\n\t\t\t'questions',\n\t\t\t'side',\n\t\t\t'high'\n\t\t);\n\t}", "public function registerMetaBoxes()\n\t {\n\t \t$dataMetas = self::getDataMetas();\n\n\t \tif ( !empty($dataMetas) ) {\n\t \t\tforeach ($dataMetas as $key => $meta) {\n\t \t\t\t/* CHECK IF HAS PAGES */\n\t \t\t\tif ( isset($meta[\"_pages\"]) && !empty($meta[\"_pages\"][0]) ) {\n\t \t\t\t\tself::createMetasPages($meta);\n\t \t\t\t}\n\n\t \t\t\t/* POSTS TYPES REGISTER METAS */\n\t \t\t\tif ( isset($meta[\"_posts_types\"]) && !empty($meta[\"_posts_types\"][0]) ) {\n\t \t\t\t\tself::createMetasPostTypes($meta);\n\t \t\t\t}\n\n\t \t\t\t/* CHECK IF ALL POSTS IS true */\n\t \t\t\tif ( isset($meta[\"_all_posts\"]) && $meta['_all_posts'] == 'yes' ) {\n\t \t\t\t\tself::createMetasPosts($meta);\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\n\t }", "function carrousel_metaboxes(){\n add_meta_box(\"MonCarrousel\", \"lien\", \"carrousel_metabox\");\n}", "function tower_register_meta_boxes() {\n foreach (TOWER_CUSTOM_POSTS as $key => $custom_type) {\n $meta = $custom_type['meta'];\n add_meta_box(\n $meta['handle'],\n $meta['title'],\n $meta['callback'],\n $key\n );\n }\n}", "function blokco_register_menu_meta_box() {\n if (!class_exists('RW_Meta_Box'))\n return;\n $prefix = 'blokco_';\n $meta_box = array(\n 'id' => 'template-one-page',\n 'title' => esc_html__(\"One Page Menu\", 'blokco'),\n 'pages' => array('page'),\n\t\t\t'show' => array(\n\t\t\t\t'template' => array( 'template-onepage.php' ),\n\t\t\t),\n 'context' => 'normal',\n 'fields' => array(\n array(\n 'name' => esc_html__('Select Menu from list','blokco'),\n 'id' => $prefix . 'select_menu_from_list',\n 'desc' => esc_html__('Select the menu from the list to use as this One Page menu. Your primary menu will be replaced by this selected menu on this page only and will be used as one page scroller. The pages added to the selected menu will be used as content of the one page website.', 'blokco'),\n 'type' => 'select',\n 'options' => blokco_get_all_menus(),\n ),\n )\n );\n new RW_Meta_Box($meta_box);\n }", "public static function registerMetaBoxes() {\n add_meta_box( 'mail_settings', __('Email Settings', WPXTREME_TEXTDOMAIN ), array( __CLASS__, 'display_mail_settings' ), WPXTREME_MAIL_CPT_KEY, 'normal', 'high');\n }", "function myplugin_add_custom_box() {\n\t\t add_meta_box( \n\t\t 'myplugin_sectionid',\n\t\t __( 'My Post Section Title', 'myplugin_textdomain' ),\n\t\t 'myplugin_inner_custom_box',\n\t\t 'wpflexslider' \n\t\t );\n\t\t add_meta_box(\n\t\t 'myplugin_sectionid',\n\t\t __( 'My Post Section Title', 'myplugin_textdomain' ), \n\t\t 'myplugin_inner_custom_box',\n\t\t 'page'\n\t\t );\n\t\t add_meta_box('wpt_events_location', 'Event Location', 'wpt_events_location', 'events', 'side', 'default');\n\t\t}", "function ilusix_my_custom_meta_box() {\n global $myMetaBoxPostTypes;\n\n foreach($myMetaBoxPostTypes as $postType) {\n add_meta_box(\n 'my_custom_meta_box_identifier' . '-' . $postType,\n 'Meta box title',\n 'ilusix_my_custom_meta_box_callback',\n $postType,\n 'normal',\n 'default'\n );\n }\n}", "function pz_add_custom_meta_box()\n{\n add_meta_box(\n 'custom_meta_box',\n 'Custom Image Metabox',\n 'pz_custom_meta_box_callbacks',\n 'page', // page, post etc.\n 'normal',\n 'high');\n}", "public function add_meta_box() {\r\n\r\n\t\tif( ! is_wp_error( $this->tax_obj ) && isset($this->tax_obj->object_type ) ) foreach ( $this->tax_obj->object_type as $post_type ):\r\n\t\t\t$label = $this->tax_obj->labels->name;\r\n\t\t\t$id = ! is_taxonomy_hierarchical( $this->taxonomy ) ? 'radio-tagsdiv-'.$this->taxonomy : 'radio-' .$this->taxonomy .'div' ;\r\n\t\t\tadd_meta_box( $id, $label ,array( $this,'metabox' ), $post_type ,'side','core', array( 'taxonomy'=>$this->taxonomy ) );\r\n\t\tendforeach;\r\n\t}", "function add_meta_boxes()\n {\n }", "private function initMetaBox(){\n\t\t$path = get_template_directory() . '/sub/customfield/';\n\t\tif(function_exists('of_get_option')){\n\t\t\tif(of_get_option('is-seo',true)){\n\t\t\t\tnew WPO_MetaBox(array(\n\t\t\t\t 'id' => 'wpo_seo',\n\t\t\t\t 'title' => $this->l('SEO Fields'),\n\t\t\t\t 'types' => array('page','portfolio','post','video'),\n\t\t\t\t 'priority' => 'high',\n\t\t\t\t 'template' => $path . 'seo.php',\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_template',\n\t\t 'title' => $this->l('Advanced Configuration'),\n\t\t 'types' => array('page'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'page-advanced.php'\n\t\t));\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_pageconfig',\n\t\t 'title' => $this->l('Page Configuration'),\n\t\t 'types' => array('page'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'page.php',\n\t\t));\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_post',\n\t\t 'title' => $this->l('Embed Options'),\n\t\t 'types' => array('post','video'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'post.php',\n\t\t));\n\t}", "function portfolioism_add_custom_metabox() {\n add_meta_box(\n 'portfolioism_meta',\n 'Artwork',\n 'portfolioism_meta_callback',\n 'artwork'\n );\n }", "function mustsee_register_theme_settings_metaboxes( $_genesis_theme_settings_pagehook ) {\n\tadd_meta_box('mustsee-social-settings', 'Social Links and Contact Info', 'mustsee_social_settings_box', $_genesis_theme_settings_pagehook, 'main', 'high');\n}", "function rng_METANAME_metabox_init() {\n}", "function kurama_custom_meta() {\n add_meta_box( 'kurama_meta', __( 'Display Options', 'kurama' ), 'kurama_meta_callback', 'page','side','high' );\n}", "function formulize_meta_box() {\n\t\tadd_meta_box('formulize_sectionid',\n\t __('Formulize', 'formulize_textlabel'),\n\t 'formulize_inner_custom_box',\n\t 'page'\n\t\t);\n}", "public function apb_add_meta_boxes() {\r\n\t}", "function add_your_fields_meta_box(){\r\nadd_meta_box(\r\n'your_fields_meta_box',// $id\r\n'Auteur',// $title\r\n'show_your_fields_meta_box',// $callback\r\n'Livre',// $screen\r\n'normal',// $context\r\n'high'// $priority\r\n);\r\n}", "function responsive_layout_meta_box() {\n\tglobal $post;\n\t$custom = ( get_post_custom( $post->ID ) ? get_post_custom( $post->ID ) : false );\n\t$layout = ( isset( $custom['_responsive_layout'][0] ) ? $custom['_responsive_layout'][0] : 'default' );\n\t$valid_layouts = responsive_get_valid_layouts();\n\t?>\n\t<p>\n\t<input type=\"radio\" name=\"_responsive_layout\" <?php checked( 'default' == $layout ); ?> value=\"default\" />\n\t<label><?php _e( 'Default', 'responsive' ); ?></label><br />\n\t<?php foreach ( $valid_layouts as $slug => $name ) { ?>\n\t\t<input type=\"radio\" name=\"_responsive_layout\" <?php checked( $slug == $layout ); ?> value=\"<?php echo $slug; ?>\" />\n\t\t<label><?php echo $name; ?></label><br />\n\t<?php } ?>\n\t</p>\n\t<?php\n}", "function action_custom_box()\n {\n add_meta_box(\n $this->plugin->config['meta']['box-name'],\n 'Protect Content',\n [$this, 'custom_box_html'],\n ['page', 'post'],\n 'normal',\n 'high'\n );\n }", "public function add_meta_boxes()\n {\n\n $this->_add_bitly_meta_box();\n\n }", "public function add_metaboxes() {\n\t\tadd_meta_box(\n\t\t\t'pblw-requirements',\n\t\t\t__( 'Requirements', 'pblw_reqs' ),\n\t\t\tarray( $this, 'render_metabox' ),\n\t\t\t'download',\n\t\t\t'normal',\n\t\t\t'core'\n\t\t);\n\t}", "function add_group_metabox() {\r\n\r\n\t\tadd_meta_box( 'bp_group_events', _x( 'Group Events', 'group admin edit screen', 'bp-simple-events' ), array( $this, 'show_group_metabox'), get_current_screen()->id, 'side' );\r\n\r\n\t}", "public function register_metabox(){\n add_filter( 'attachment_fields_to_edit', array($this, 'add_metabox'), 10, 2 );\n /* Saves the field value*/\n add_action( 'edit_attachment', array($this->meta_field, 'save_metabox'), 20, 2 );\n }", "public function add_meta_boxes() {\n\t\t// init tooltips here since at this time the meta-box pre-registration is done,\n\t\t// we already know the current screen and the 'condition()' has been checked\n\t\t$this->init_tooltips();\n\n\t\t// Avoid appearance own meta fields on the standard Custom Fields metabox.\n\t\tadd_filter( 'is_protected_meta', array( $this, 'is_protected_meta' ), 10, 2 );\n\t}", "function greater_jackson_habitat_extra_metabox_content() {\n\t\n\tgreater_jackson_habitat_do_field_textarea( array(\n\t\t'name' => 'gjh_extra',\n\t\t'group' => 'gjh_extra',\n\t\t'wysiwyg' => true,\n\t) );\n\t\n\tgreater_jackson_habitat_init_field_group( 'gjh_extra' );\n\t\n}", "function axiom_init_pagebuilder_meta_box(){\n // add custom sidebar metabox to following types\n $types = array('page', 'axi_product', 'portfolio', 'service', 'staff');\n \n foreach ($types as $key => $value) {\n add_meta_box(\"axiom_pagebuilder_metabox\", \n __(\"Smart Page Builder\", 'default'), \n \"axiom_display_pagebuilder_meta\", \n $value, \n \"normal\", \n \"high\");\n }\n \n // Save custom sidebar meta\n add_action('save_post', 'axiom_save_pagebuilder_data');\n \n}", "function add_metaboxes() \n {\n // add a metabox to the Event using the callback add_time_date_metabox \n add_meta_box( \n \"bbquotations-source\",\n __(\"Quote source url\", $this->localization_domain),\n array(&$this, \"add_source_metabox\"), $this->custom_post_type_name, \"normal\", \"high\"\n );\n\n add_meta_box( \n \"bbquotations-cheatsheet\",\n __(\"Quotes usage cheatsheet\", $this->localization_domain),\n array(&$this, \"add_cheatsheet_metabox\"), $this->custom_post_type_name, \"side\", \"high\"\n );\n }", "public function add_meta_boxes()\n \t{\n\n \t\t// Add this metabox to every selected post\n \t\tadd_meta_box( \n \t\t\tsprintf('WP_Custom_Login_Profile_%s_section', self::POST_TYPE),\n \t\t\tsprintf('%s Information', ucwords(str_replace(\"_\", \" \", self::POST_TYPE))),\n \t\t\tarray(&$this, 'add_inner_meta_boxes'),\n \t\t\tself::POST_TYPE\n \t );\t\n\n \t}", "public function add_meta_boxes()\n \t{\n \t\t// Add this metabox to every selected post\n \t\tadd_meta_box( \n \t\t\tsprintf('wp_plugin_template_%s_section', self::POST_TYPE),\n \t\t\tsprintf('%s Information', ucwords(str_replace(\"_\", \" \", self::POST_TYPE))),\n \t\t\tarray($this, 'add_inner_meta_boxes'),\n \t\t\tself::POST_TYPE\n \t );\t\t\t\t\t\n \t}", "function add_custom_box() {\n $screens = [ 'post', 'packages', 'wporg_cpt' ];\n foreach ( $screens as $screen ) {\n add_meta_box(\n 'tour-package-info', // Unique ID\n 'Tour Package Info', // Box title\n 'custom_box_html', // Content callback, must be of type callable\n $screen // Post type\n );\n }\n}", "function pg_add_custom_box() {\r\n\tif( function_exists( 'add_meta_box' )) {\r\n\t\tadd_meta_box( 'pg_custom_box_1', __( 'Edit Photocrati Galleries / Albums', 'photocrati' ), 'pg_inner_custom_box_1', 'page', 'normal', 'high' );\r\n\t\tadd_meta_box( 'pg_custom_box_2', __( 'Edit Photocrati Galleries / Albums', 'photocrati' ), 'pg_inner_custom_box_1', 'post', 'normal', 'high' );\r\n\t}\r\n}", "public function add_meta_boxes() {\n\t\tadd_meta_box(\n\t\t\t$this->plugin_slug . '-post-metabox',\n\t\t\tesc_html__( 'Review Settings', $this->plugin_slug ),\n\t\t\tarray( $this, 'review_settings_view' ),\n\t\t\t'post',\n\t\t\t'normal',\n\t\t\t'core'\n \t \t);\n\t}", "function mmdyk_add_custom_box() {\n\n if( function_exists( 'add_meta_box' )) {\n add_meta_box( 'mmdyk_sectionid', __( 'Did You Know?', 'mmdyk_textdomain' ), \n 'mmdyk_inner_custom_box', 'post', 'advanced', 'high' );\n add_meta_box( 'mmdyk_sectionid', __( 'Did You Know?', 'mmdyk_textdomain' ), \n 'mmdyk_inner_custom_box', 'page', 'advanced', 'high' );\n }\n}", "function yourfitness_do_register_post_meta() {\n\n\t// Get layout option without default for the count.\n\t$options = yourfitness_get_layouts_for_options();\n\n\t// Stop here if there is less than two layouts options.\n\tif ( count( $options ) < 2 )\n\t\treturn;\n\n\t$fields = array(\n\t\tarray(\n\t\t\t'id' => 'yourfitness_layout',\n\t\t\t'label' => esc_attr_x( 'Layout', 'post meta', 'your-fitness' ),\n\t\t\t'type' => 'radio',\n\t\t\t'default' => 'default_fallback',\n\t\t\t'options' => yourfitness_get_layouts_for_options( true )\n\t\t)\n\t);\n\n\tyourfitness_register_post_meta( $fields, array( 'post', 'page' ), 'your-fitness', array( 'title' => esc_html__( 'Post Options', 'your-fitness' ) ) );\n\n}", "function coolRahulSoni_meta_box_add()\n{\n add_meta_box( 'my-meta-box-id', 'My First Meta Box', 'cd_meta_box_cb', 'post', 'normal', 'high' );\n}", "public function add_meta_boxes() {\r\n\t\tadd_meta_box( 'zakra-page-setting', esc_html__( 'Page Settings', 'zakra' ), 'Zakra_Meta_Box_Page_Settings::render', array(\r\n\t\t\t'post',\r\n\t\t\t'page',\r\n\t\t) );\r\n\t}", "function slider_metabox() {\n add_meta_box('slider_detail_metabox', __('Slider Details', 'calibrefx'), 'slider_detail_metabox', 'slider', 'normal', 'high');\n}", "public function add_metabox() {\r\n\t\tadd_meta_box(\r\n\t\t\t'stats', // ID\r\n\t\t\t'Stats', // Title\r\n\t\t\tarray(\r\n\t\t\t\t$this,\r\n\t\t\t\t'meta_box', // Callback to method to display HTML\r\n\t\t\t),\r\n\t\t\t'spam-stats', // Post type\r\n\t\t\t'normal', // Context, choose between 'normal', 'advanced', or 'side'\r\n\t\t\t'core' // Position, choose between 'high', 'core', 'default' or 'low'\r\n\t\t);\r\n\t}", "public function addMetaBox()\r\n {\r\n add_meta_box($this->id, esc_html__($this->title, 'firalabs-tv-show'), array(\r\n $this,\r\n 'render'\r\n ), 'firalabs_tv_show', $this->context, 'default');\r\n }", "public function add_metabox() {\n add_meta_box(\n 'customer_info',\n __( 'Customer Info', 'textdomain' ),\n array( $this, 'render_metabox' ),\n 'customer',\n 'advanced',\n 'default'\n );\n\n }", "function bnk_create_slide_metabox() {\r\n\tglobal $slide_meta;\r\n \r\n\tadd_meta_box($slide_meta['id'], $slide_meta['title'], 'bnk_build_slide_metabox', $slide_meta['page'], $slide_meta['context'], $slide_meta['priority']);\r\n}", "function yourfitness_do_register_term_meta() {\n\n\t// Get layout option without default for the count.\n\t$options = yourfitness_get_layouts_for_options();\n\n\t// Stop here if there is less than two layouts options.\n\tif ( count( $options ) < 2 )\n\t\treturn;\n\n\t$fields = array(\n\t\tarray(\n\t\t\t'id' => 'yourfitness_layout',\n\t\t\t'label' => esc_attr_x( 'Layout', 'term meta', 'your-fitness' ),\n\t\t\t'type' => 'radio',\n\t\t\t'default' => 'default_fallback',\n\t\t\t'options' => yourfitness_get_layouts_for_options( true )\n\t\t)\n\t);\n\n\tyourfitness_register_term_meta( $fields, array( 'category', 'post_tag' ), 'your-fitness' );\n\n}", "protected function init()\n {\n $this->setTitle('core_layout.edit_layout');\n $this->addElement([\n 'plugin' => 'hidden',\n 'name' => 'base_script',\n 'value' => 'view'\n ]);\n $this->addElement([\n 'plugin' => 'hidden',\n 'name' => 'item_script',\n 'value' => 'view',\n ]);\n }", "function ppc_add_custom_metaboxes(){\n add_meta_box('my_meta_box_id','Post Submission Actions','ppc_post_submission','ppclps','normal','high');\n}", "function blokco_register_meta_box() {\n if (!class_exists('RW_Meta_Box'))\n return;\n $prefix = 'blokco_';\n $meta_box = array(\n 'id' => 'template-sidebar1',\n 'title' => esc_html__(\"Select Sidebar\", 'blokco'),\n 'pages' => array('post', 'page', 'imi_projects', 'imi_team', 'imi_services','eventer'),\n 'context' => 'normal',\n 'fields' => array(\n array(\n 'name' => esc_html__('Select Sidebar from list','blokco'),\n 'id' => $prefix . 'select_sidebar_from_list',\n 'desc' => esc_html__(\"Select Sidebar from list, if using page builder then please add sidebar from element only.\", 'blokco'),\n 'type' => 'select',\n 'options' => blokco_get_all_sidebars(),\n ),\n array(\n 'name' => esc_html__('Show no sidebar','blokco'),\n 'id' => $prefix . 'strict_no_sidebar',\n 'desc' => esc_html__(\"This will dishonour page sidebar chosen at Theme Options as well.\", 'blokco'),\n 'type' => 'checkbox',\n\t\t\t\t\t'default' => 0\n ),\n array(\n 'name' => esc_html__('Select Sidebar Position','blokco'),\n 'id' => $prefix . 'select_sidebar_position',\n 'desc' => esc_html__(\"Select Sidebar Postion\", 'blokco'),\n 'type' => 'radio',\n 'options' => array(\n\t\t\t\t\t\t'2' => esc_html__('Left','blokco'),\n\t\t\t\t\t\t'1' => esc_html__('Right','blokco')\n\t\t\t\t\t),\n\t\t\t\t\t'default' => '1'\n ),\n\t\t\t\tarray(\n\t\t\t\t\t'name' => esc_html__('Sidebar Width', 'blokco'),\n\t\t\t\t\t'id' => $prefix . 'sidebar_columns_layout',\n\t\t\t\t\t'desc' => esc_html__(\"Select width of the page sidebar\", 'blokco'),\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t'4' => esc_html__('One Third','blokco'),\n\t\t\t\t\t\t'3' => esc_html__('One Fourth', 'blokco'),\n\t\t\t\t\t\t'6' => esc_html__('Half','blokco'),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t'default' => '4',\n\t\t\t),\n )\n );\n new RW_Meta_Box($meta_box);\n }", "function sp_add_custom_box() {\n\tif( function_exists( 'add_meta_box' )) {\n\t\tadd_meta_box( 'sp_custom_box_1', __( 'General Property Info', 'sp' ), 'sp_inner_custom_box_1', 'post', 'normal', 'high' );\n\t\tadd_meta_box( 'sp_custom_box_2', __( 'Property Details', 'sp' ), 'sp_inner_custom_box_2', 'post', 'normal', 'high' );\n\t\tadd_meta_box( 'sp_custom_box_3', __( 'Property Photos', 'sp' ), 'sp_inner_custom_box_3', 'post', 'normal', 'high' );\n\t}\n}", "function liblynx_add_meta_box()\n{\n $screens = array('post', 'page');\n\n foreach ($screens as $screen) {\n add_meta_box(\n 'liblynx_metabox',\n __('LibLynx Connect', 'liblynx_metabox'),\n 'liblynx_meta_box_callback',\n $screen\n );\n }\n}", "function wpbm_shortcode_usage_metabox(){\n add_meta_box( 'wpbm_shortcode_usage_option', __( 'WP Blog Manager Usage', WPBM_TD ), array( $this, 'wpbm_shortcode_usage' ), 'wpblogmanager', 'side', 'default' );\n }", "public function add_metaboxes() {\n\t\tadd_meta_box(\n\t\t\t'codes',\n\t\t\t__( 'Codes' ),\n\t\t\tarray( $this, 'render_codes_metabox' )\n\t\t);\n\n\t\tadd_meta_box(\n\t\t\t'edit-codes',\n\t\t\t__( 'Edit codes' ),\n\t\t\tarray( $this, 'render_edit_metabox' )\n\t\t);\n\t}", "function wp_register_layout_support($block_type)\n {\n }", "function rs_meta_box()\n{\n add_meta_box('rs_focus', 'Destaque na home', 'rs_focus', 'post', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'post', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'post_region', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'event', 'side');\n}", "public function initLayout();", "function register()\n {\n // Incluimos el widget en el panel control de Widgets\n wp_register_sidebar_widget( 'widget_ultimosp', 'Últimos post por autor', array( 'Widget_ultimosPostPorAutor', 'widget' ) );\n\n // Formulario para editar las propiedades de nuestro Widget\n wp_register_widget_control('widget_ultimos_autor', 'Últimos post por autor', array( 'Widget_ultimosPostPorAutor', 'control' ) );\n }", "private function initializeMetabox()\n {\n\n $this->_metabox = new \\RWC\\Metabox( $this->get_library(), array(\n 'renderer' => 'vertical-tabs',\n 'id' => 'rwc-fundraiser-metabox',\n 'title' => 'Fundraiser Options',\n 'post_types' => array( self::POST_TYPE ),\n 'sections' => array(\n array(\n 'id' => 'payment',\n 'name' => 'Payment'\n ),\n array(\n 'id' => 'customer',\n 'name' => 'Customer Details'\n ),\n array(\n 'id' => 'dates',\n 'name' => 'Open/Close Dates'\n ),\n array(\n 'id' => 'products',\n 'name' => 'Products'\n )\n ),\n 'fields' => array(\n\n 'customer-name' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Customer Name'\n ),\n\n 'customer-business' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Business Name'\n ),\n\n 'address1' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Address 1'\n ),\n\n 'address2' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Address 2'\n ),\n\n 'city' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'City'\n ),\n\n 'state' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'State'\n ),\n\n 'zipcode' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Zipcode'\n ),\n\n 'paypal-api-username' => array(\n 'type' => 'text',\n 'section' => 'payment',\n 'name' => 'PayPal API Username',\n 'description' => 'The email address associated with ' .\n 'the PayPal account that should receive payment ' .\n 'for this fundraiser.'\n ),\n 'paypal-api-key' => array(\n 'type' => 'text',\n 'section' => 'payment',\n 'name' => 'PayPal API Key',\n 'description' => 'The account\\'s PayPal API password.'\n ),\n 'paypal-api-signature' => array(\n 'type' => 'text',\n 'section' => 'payment',\n 'name' => 'PayPal API Signature',\n 'description' => 'The account\\'s PayPal API signature.'\n ),\n\n 'start-date' => array(\n 'type' => 'date',\n 'section' => 'dates',\n 'name' => 'Start Date',\n ),\n\n 'end-date' => array(\n 'type' => 'date',\n 'section' => 'dates',\n 'name' => 'End Date',\n ),\n\n 'products' => array(\n 'type' => 'fundraiser-products',\n 'section' => 'products',\n 'name' => 'Product Setup'\n )\n )\n ));\n }", "function idem_pop_up_add_meta_box()\n{\n add_meta_box(\n 'idem-pop-up-meta-box', // id, used as the html id att\n __( 'Idem Pop Up' ), // meta box title, like \"Page Attributes\"\n 'idem_pop_up_meta_box_cb', // callback function, spits out the content\n 'page', // post type or page. We'll add this to pages only\n 'side', // context (where on the screen)\n 'high' // priority, where should this go in the context?\n );\n}", "function socialtoaster_add_custom_box()\n {\n if( function_exists( 'add_meta_box' )) {\n\n add_meta_box( 'socialtoaster_sectionid', get_option('socialtoaster_name') . \" Options\",\n 'socialtoaster_post_options', 'post', 'normal', 'high' );\n\n } else {\n\n // Otherwise just use the old functions\n add_action( 'simple_edit_form', 'socialtoaster_post_options' );\n\n }\n }", "function create_meta_post_box() {\n\tif ( function_exists('add_meta_box') ) {\n\t\tadd_meta_box( 'new-meta-post-boxes', '<div class=\"icon-small\"></div> '.PEXETO_THEMENAME.' POST SETTINGS', 'new_meta_post_boxes', 'post', 'normal', 'high' );\n\t}\n}", "function myplugin_add_meta_box()\r\n{\r\n\r\n $screens = array('dp_template');\r\n\r\n foreach ($screens as $screen) {\r\n\r\n add_meta_box(\r\n 'dp_template_id',\r\n __('My Post Section Title', DP_TEXTDOMAN),\r\n 'dp_template_meta_box_callback',\r\n $screen\r\n );\r\n }\r\n}", "function custom_register_widget()\n{\n register_widget('oferta_widget');\n register_widget('events_widget');\n register_widget('group_list_widget');\n}", "function mixtape_qodef_woocommerce_add_meta_box() {\n\t\t$meta_box = mixtape_qodef_add_meta_box(array(\n\t\t\t'scope' => 'product',\n\t\t\t'title' => esc_html__('Product Masonry Settings','mixtapewp'),\n\t\t\t'name' => 'product-settings-meta-box'\n\t\t));\n\n\t\tmixtape_qodef_add_meta_box_field(array(\n\t\t\t'name' => 'shop_masonry_dimensions',\n\t\t\t'type' => 'select',\n\t\t\t'label' => esc_html__('Dimensions for Masonry','mixtapewp'),\n\t\t\t'description' => esc_html__('Choose image dimensions for Masonry Shop list','mixtapewp'),\n\t\t\t'parent' => $meta_box,\n\t\t\t'options' => array(\n\t\t\t\t'default' => esc_html__('Default','mixtapewp'),\n\t\t\t\t'large_width' => esc_html__('Large width','mixtapewp'),\n\t\t\t\t'large_height' => esc_html__('Large height','mixtapewp'),\n\t\t\t\t'large_width_height' => esc_html__('Large width/height','mixtapewp')\n\t\t\t)\n\t\t));\n\t}", "function load_meta_box(){\n\t\tadd_action('add_meta_boxes', array($this, 'meta_box_hook'));\n\t}", "function Add_Shortcode_metabox() \n{\n add_meta_box('shortcode_metabox_id', 'Shordcode', 'Display_Shortcode_metabox', 'Flipbox');\n}", "function wck_settings_page_add_meta_boxes() {\r\n global $post;\r\n\t\tdo_action( 'add_meta_boxes', $this->hookname, $post );\r\n\t}", "public static function add_meta_box() {\n add_meta_box(\n 'link_meta', // Unique ID\n 'Properties', // Box title\n [self::class, 'meta_html'], // Content callback, must be of type callable\n \"link\" // Post type\n );\n }", "function ois_load_widgets() {\r\n register_widget( 'OptinSkin_Widget' );\r\n}", "function abc_load_widget()\n{\n register_widget('awesome_bmi_widget');\n}", "function add_meta_box() {\n\t\t \tadd_meta_box( 'woocommerce-product-addons', __('Product Add-ons', 'wc_product_addons'), array(&$this, 'meta_box'), 'product', 'side', 'default' );\n\t\t }", "public function add_metabox() {\n\t\tadd_meta_box(\n\t\t\t'Translation',\n\t\t\t'Translation',\n\t\t\tarray(\n\t\t\t\t$this,\n\t\t\t\t'meta_box',\n\t\t\t),\n\t\t\t'words',\n\t\t\t'side',\n\t\t\t'high'\n\t\t);\n\t}", "function add_meta_box($id, $title, $callback, $screen = \\null, $context = 'advanced', $priority = 'default', $callback_args = \\null)\n {\n }", "public static function add_meta_box() {\n\t\tadd_meta_box( 'sponsor-meta', __( 'Sponsor Meta', self::$text_domain ), array( __CLASS__, 'do_meta_box' ), self::$post_type_name , 'normal', 'high' );\n\t}", "function dupeoff_add_custom_box() {\n\tadd_meta_box( \n\t'dupeoff',\n\t__( 'DupeOff - Plagiarism and Duplicate Content Report', 'dupeoff_textdomain' ),\n\t'dupeoff_inner_custom_box',\n\t'post' \n\t);\n\tadd_meta_box( \n\t'dupeoff',\n\t__( 'DupeOff - Plagiarism and Duplicate Content Report', 'dupeoff_textdomain' ),\n\t'dupeoff_inner_custom_box',\n\t'page' \n\t);\n}", "function add_custom_meta_box() { \nglobal $post, $post_type;\n\n\t// specific template\n\t//if('page-templatename.php' == get_post_meta($post->ID, '_wp_page_template', true)) {\n \tadd_meta_box( \n \t'custom_meta_box', // $id \n\t\t\t'More Stuff!', // $title \n\t\t\t'show_custom_meta_box', // $callback \n\t\t\t'post', // $page \n\t\t\t'normal', // $context \n\t\t\t'high'\n\t\t); // $priority \n\t//}\n\t\n\t//specific post-type\n\t/*if('custom post type' == $post_type) {\n \tadd_meta_box( \n \t'custom_meta_box', // $id \n\t\t\t'Options', // $title \n\t\t\t'show_custom_meta_box', // $callback \n\t\t\t'custom post type', // $page \n\t\t\t'normal', // $context \n\t\t\t'high'\n\t\t); // $priority \n\t}*/\n}" ]
[ "0.6779176", "0.65957713", "0.646455", "0.6424012", "0.640724", "0.6407124", "0.6373848", "0.6341987", "0.6327199", "0.6287252", "0.62678033", "0.6266202", "0.6249893", "0.62292683", "0.61956966", "0.61872715", "0.6186757", "0.61791867", "0.61736614", "0.61671835", "0.61437404", "0.6086989", "0.6080369", "0.6077634", "0.60735494", "0.60687125", "0.60558414", "0.6053464", "0.60434747", "0.6042322", "0.6035986", "0.60287476", "0.60170794", "0.6004437", "0.5995264", "0.5984526", "0.5983462", "0.5980175", "0.59780806", "0.59716094", "0.5953118", "0.5918579", "0.591539", "0.59054947", "0.59037054", "0.58900446", "0.58834505", "0.5879663", "0.58775556", "0.58740383", "0.5838944", "0.5838158", "0.58360636", "0.58354104", "0.5827974", "0.5823939", "0.58194745", "0.5808832", "0.58050555", "0.57980067", "0.5797797", "0.57972705", "0.57969403", "0.5795562", "0.578093", "0.57806873", "0.57798547", "0.5774151", "0.5753767", "0.5753137", "0.57517123", "0.57474744", "0.57439077", "0.57437724", "0.5738776", "0.57340765", "0.5733698", "0.5727781", "0.5724177", "0.572407", "0.5705233", "0.5701426", "0.5696816", "0.569212", "0.5689685", "0.5689216", "0.5687034", "0.56666297", "0.56639695", "0.5660742", "0.56582737", "0.565697", "0.56566447", "0.5652844", "0.56452703", "0.5642058", "0.563991", "0.56316036", "0.56311977", "0.56301486" ]
0.6762525
1
Callback function to get custom layout meta data and print custom layout metabox
public function output_fields( $post, $metabox ) { $settings = $this->layout_settings; $layout = $settings['layout']; $option_value = array(); $use_custom_layout = 0; $value = Kopa_Admin_Settings::get_option_arguments( $layout ); $metas = get_theme_mod( '_custom_layout_posts' ); $meta = isset( $metas[ $post->ID ] ) ? $metas[ $post->ID ] : array(); if ( ! empty( $meta['data'] ) ) { $option_value = apply_filters( 'kopa_get_option_layout_manager', $meta['data'], $value ); } else { $option_value = Kopa_Admin_Settings::get_option( $layout ); } $option_value = array_map( 'stripslashes_deep', (array) $option_value ); if ( ! empty( $meta['use'] ) ) { $use_custom_layout = $meta['use']; } parent::output( $use_custom_layout, $option_value, $value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function responsive_layout_meta_box() {\n\tglobal $post;\n\t$custom = ( get_post_custom( $post->ID ) ? get_post_custom( $post->ID ) : false );\n\t$layout = ( isset( $custom['_responsive_layout'][0] ) ? $custom['_responsive_layout'][0] : 'default' );\n\t$valid_layouts = responsive_get_valid_layouts();\n\t?>\n\t<p>\n\t<input type=\"radio\" name=\"_responsive_layout\" <?php checked( 'default' == $layout ); ?> value=\"default\" />\n\t<label><?php _e( 'Default', 'responsive' ); ?></label><br />\n\t<?php foreach ( $valid_layouts as $slug => $name ) { ?>\n\t\t<input type=\"radio\" name=\"_responsive_layout\" <?php checked( $slug == $layout ); ?> value=\"<?php echo $slug; ?>\" />\n\t\t<label><?php echo $name; ?></label><br />\n\t<?php } ?>\n\t</p>\n\t<?php\n}", "public function add_layout_box() {\n\t\t$args = $this->layout_settings;\n\n\t\tadd_meta_box( \n\t\t\t'kopa_custom_layout', \n\t\t\t__( 'Custom Layout', kopa_get_domain() ), \n\t\t\tarray( $this, 'output_fields' ),\n\t\t\t$args['screen'],\n\t\t\t'normal',\n\t\t\t'default',\n\t\t\t$args\n\t\t);\n\t}", "public static function registerMetaBoxes() {}", "function cs_meta_layout(){\n\tglobal $cs_xmlObject;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_layout) ) $cs_layout = \"\"; else $cs_layout = $cs_xmlObject->sidebar_layout->cs_layout;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_sidebar_left) ) $cs_sidebar_left = \"\"; else $cs_sidebar_left = $cs_xmlObject->sidebar_layout->cs_sidebar_left;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_sidebar_right) ) $cs_sidebar_right = \"\"; else $cs_sidebar_right = $cs_xmlObject->sidebar_layout->cs_sidebar_right;\n ?>\n\t<div class=\"elementhidden\">\n <div class=\"clear\"></div>\n \t<div class=\"opt-head\">\n <h4>Layout Options</h4>\n <div class=\"clear\"></div>\n </div>\n <ul class=\"form-elements\">\n <li class=\"to-label\">\n <label>Select Layout</label>\n </li>\n <li class=\"to-field\">\n <div class=\"meta-input\">\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"none\")echo \"checked\"?> onclick=\"show_sidebar('none')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"none\" id=\"radio_1\" />\n <label for=\"radio_1\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/1.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"none\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/1-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"right\")echo \"checked\"?> onclick=\"show_sidebar('right')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"right\" id=\"radio_2\" />\n <label for=\"radio_2\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/2.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"right\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/2-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"left\")echo \"checked\"?> onclick=\"show_sidebar('left')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"left\" id=\"radio_3\" />\n <label for=\"radio_3\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/3.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"left\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/3-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n </div>\n </li>\n </ul>\n <ul class=\"form-elements meta-body\" style=\" <?php if($cs_sidebar_left == \"\"){echo \"display:none\";}else echo \"display:block\";?>\" id=\"sidebar_left\" >\n <li class=\"to-label\">\n <label>Select Left Sidebar</label>\n </li>\n <li class=\"to-field\">\n <select name=\"cs_sidebar_left\" class=\"select_dropdown\" id=\"page-option-choose-left-sidebar\">\n <?php\n $cs_theme_option = get_option('cs_theme_option');\n if ( isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0 ) {\n foreach ( $cs_theme_option['sidebar'] as $sidebar ){\n ?>\n <option <?php if ($cs_sidebar_left==$sidebar)echo \"selected\";?> ><?php echo $sidebar;?></option>\n <?php\n }\n }\n ?>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements meta-body\" style=\" <?php if($cs_sidebar_right == \"\"){echo \"display:none\";}else echo \"display:block\";?>\" id=\"sidebar_right\" >\n <li class=\"to-label\">\n <label>Select Right Sidebar</label>\n </li>\n <li class=\"to-field\">\n <select name=\"cs_sidebar_right\" class=\"select_dropdown\" id=\"page-option-choose-right-sidebar\">\n <?php\n if ( isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0 ) {\n foreach ( $cs_theme_option['sidebar'] as $sidebar ){\n ?>\n <option <?php if ($cs_sidebar_right==$sidebar)echo \"selected\";?> ><?php echo $sidebar;?></option>\n <?php\n }\n }\n ?>\n </select>\n <input type=\"hidden\" name=\"cs_orderby[]\" value=\"meta_layout\" />\n </li>\n </ul>\n\t</div>\n\t<div class=\"clear\"></div>\n<?php\t\n}", "function kurama_custom_meta() {\n add_meta_box( 'kurama_meta', __( 'Display Options', 'kurama' ), 'kurama_meta_callback', 'page','side','high' );\n}", "public function render_screen_meta()\n {\n }", "public function display_meta_box() {\n\t\t\n\t\tinclude_once( 'views/q-and-a-admin.php' );\n }", "function education_information_meta_box() {\n\t// P1: CSS id\n\t// P2: mata box title\n\t// P3: callback function\n\t// P4: post type this meta box is associated with\n\t// P5: priority level (optional)\n\t// P6: callback function arguments (optional)\n add_meta_box( 'education-information-meta-box', 'Education Information', 'education_information_meta_box_callback', 'education' );\n}", "abstract function buildShowLayout(): void;", "function myplugin_add_meta_box()\r\n{\r\n\r\n $screens = array('dp_template');\r\n\r\n foreach ($screens as $screen) {\r\n\r\n add_meta_box(\r\n 'dp_template_id',\r\n __('My Post Section Title', DP_TEXTDOMAN),\r\n 'dp_template_meta_box_callback',\r\n $screen\r\n );\r\n }\r\n}", "function create_meta_box() {\n\tif ( function_exists('add_meta_box') ) {\n\t\tadd_meta_box( 'new-meta-boxes', '<div class=\"icon-small\"></div> '.PEXETO_THEMENAME.' PAGE SETTINGS', 'new_meta_boxes', 'page', 'normal', 'high' );\n\t}\n}", "public function render()\r\n\t{\r\n\t\tif( $this->_layout && file_exists($this->_layout) )\r\n\t\t{\r\n\t\t\t$this->_layout = apply_filters( 'tp_event_meta_box_layout', $this->_layout, $this->_id );\r\n\t\t\tdo_action( 'tp_event_before_metabox', $this->_id );\r\n\t\t\trequire_once $this->_layout;\r\n\t\t\tdo_action( 'tp_event_after_metabox', $this->_id );\r\n\t\t}\r\n\t}", "private function initMetaBox(){\n\t\t$path = get_template_directory() . '/sub/customfield/';\n\t\tif(function_exists('of_get_option')){\n\t\t\tif(of_get_option('is-seo',true)){\n\t\t\t\tnew WPO_MetaBox(array(\n\t\t\t\t 'id' => 'wpo_seo',\n\t\t\t\t 'title' => $this->l('SEO Fields'),\n\t\t\t\t 'types' => array('page','portfolio','post','video'),\n\t\t\t\t 'priority' => 'high',\n\t\t\t\t 'template' => $path . 'seo.php',\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_template',\n\t\t 'title' => $this->l('Advanced Configuration'),\n\t\t 'types' => array('page'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'page-advanced.php'\n\t\t));\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_pageconfig',\n\t\t 'title' => $this->l('Page Configuration'),\n\t\t 'types' => array('page'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'page.php',\n\t\t));\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_post',\n\t\t 'title' => $this->l('Embed Options'),\n\t\t 'types' => array('post','video'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'post.php',\n\t\t));\n\t}", "function thd_re_info_show_box() {\n\tthd_meta_box_callback(thd_re_meta_box_fields(), 'page');\n}", "public function register_meta() {\r\n\t\t\tforeach($this->customFields as $customField){\r\n\t\t\t\tadd_meta_box( 'ecf-'.$customField['name'], __( $customField['title'], 'exlist' ), $customField['callback'], $postTypes , 'advanced', 'high', $type = array($customField['name'], $customField['title'], $customField['type']) );\r\n\t\t\t}\r\n }", "function _custom_meta_boxes() {\n\n $saved_settings = get_option( 'option_tree_settings', array() );\n\n $current_sliders = get_option( 'cp_sliders');\n\n// Iterate over the sliders\n if($current_sliders) {\n foreach($current_sliders as $key => $item) {\n $cpsliders[] = array(\n 'label' => $item->name,\n 'value' => $item->slug\n );\n }\n} else {\n $cpsliders[] = array(\n 'label' => 'No Sliders Found',\n 'value' => ''\n );\n}\n /**\n * Create a custom meta boxes array that we pass to\n * the OptionTree Meta Box API Class.\n */\n $meta_box_layout = array(\n 'id' => 'pp_metabox_sidebar',\n 'title' => 'Layout',\n 'desc' => 'If you choose the sidebar layout, please choose a sidebar from the list below. Sidebars can be created in the Theme Options and configured in the Theme Widgets.',\n 'pages' => array( 'post' ),\n 'context' => 'normal',\n 'priority' => 'high',\n 'fields' => array(\n array(\n 'id' => 'pp_sidebar_layout',\n 'label' => 'Layout',\n 'desc' => '',\n 'std' => ot_get_option('pp_blog_layout','left-sidebar'),\n 'type' => 'radio_image',\n 'class' => '',\n 'choices' => array(\n array(\n 'value' => 'left-sidebar',\n 'label' => 'Left Sidebar',\n 'src' => OT_URL . '/assets/images/layout/left-sidebar.png'\n ),\n array(\n 'value' => 'right-sidebar',\n 'label' => 'Right Sidebar',\n 'src' => OT_URL . '/assets/images/layout/right-sidebar.png'\n )\n ),\n ),\n array(\n 'id' => 'pp_sidebar_set',\n 'label' => 'Sidebar',\n 'desc' => '',\n 'std' => '',\n 'type' => 'sidebar-select',\n 'class' => '',\n\n )\n )\n );\n\n$meta_box_layout_page = array(\n 'id' => 'pp_metabox_sidebar',\n 'title' => 'Layout',\n 'desc' => 'If you choose the sidebar layout, please choose a sidebar from the list below. Sidebars can be created in the Theme Options and configured in the Theme Widgets.',\n 'pages' => array( 'page' ),\n 'context' => 'normal',\n 'priority' => 'high',\n 'fields' => array(\n array(\n 'id' => 'pp_sidebar_layout',\n 'label' => 'Layout',\n 'desc' => '',\n 'std' => ot_get_option('pp_blog_layout','left-sidebar'),\n 'type' => 'radio_image',\n 'class' => '',\n 'choices' => array(\n array(\n 'value' => 'left-sidebar',\n 'label' => 'Left Sidebar',\n 'src' => OT_URL . '/assets/images/layout/left-sidebar.png'\n ),\n array(\n 'value' => 'right-sidebar',\n 'label' => 'Right Sidebar',\n 'src' => OT_URL . '/assets/images/layout/right-sidebar.png'\n ),\n array(\n 'value' => 'full-width',\n 'label' => 'Full Width (no sidebar)',\n 'src' => OT_URL . '/assets/images/layout/full-width.png'\n )\n ),\n ),\n array(\n 'id' => 'pp_sidebar_set',\n 'label' => 'Sidebar',\n 'desc' => '',\n 'std' => '',\n 'type' => 'sidebar-select',\n 'class' => '',\n ),\n array(\n 'label' => 'Select slider',\n 'id' => 'pp_slider_select',\n 'type' => 'select',\n 'desc' => 'Don\\'t forget to choose Page Template: Page with Slider',\n 'choices' => $cpsliders,\n 'std' => 'true',\n 'rows' => '',\n 'post_type' => '',\n 'taxonomy' => '',\n 'class' => '',\n 'section' => 'slider'\n ),\n )\n);\n\n$post_options = array(\n 'id' => 'pp_metabox_featue',\n 'title' => 'Post options',\n 'desc' => 'Select post display options (Option depends on Post\\'s Format, so be sure to select one.',\n 'pages' => array( 'post' ),\n 'context' => 'normal',\n 'priority' => 'high',\n 'fields' => array(\n array(\n 'label' => 'Gallery slider (use when Post Type is set to Gallery)',\n 'id' => 'pp_gallery_slider',\n 'type' => 'gallery',\n 'desc' => 'Click Create Slider to create your gallery for slider.',\n 'post_type' => 'post',\n ),\n array(\n 'id' => 'pp_video_link',\n 'label' => 'Link to Video',\n 'desc' => 'Just link, not embed code, this field uses oEmbed.',\n 'std' => '',\n 'type' => 'text',\n 'class' => '',\n ),\n array(\n 'id' => 'pp_video_embed',\n 'label' => 'Embed code for Video',\n 'desc' => 'Place here embed code for videos services that do not support oEmbed',\n 'std' => '',\n 'type' => 'textarea',\n 'class' => '',\n ),\n )\n );\n\n\n\n$gallerypage = array(\n 'id' => 'pp_metabox_gallerypage',\n 'title' => 'Gallery slider',\n 'desc' => 'If you want to use flexslider gallery like on Portfolio item, just create gallery using button below',\n 'pages' => array( 'page' ),\n 'context' => 'normal',\n 'priority' => 'high',\n 'fields' => array(\n array(\n 'label' => 'Gallery slider (use when Post Type is set to Gallery)',\n 'id' => 'pp_gallery_slider',\n 'type' => 'gallery',\n 'desc' => 'Click Create Slider to create your gallery for slider.',\n 'post_type' => 'post',\n ),\n )\n );\n\n\n /**\n * Register our meta boxes using the\n * ot_register_meta_box() function.\n */\n ot_register_meta_box( $meta_box_layout );\n ot_register_meta_box( $meta_box_layout_page );\n ot_register_meta_box( $post_options );\n ot_register_meta_box( $gallerypage );\n\n\n}", "public function render_meta_boxes_preferences()\n {\n }", "function add_custom_box() {\n $screens = [ 'post', 'packages', 'wporg_cpt' ];\n foreach ( $screens as $screen ) {\n add_meta_box(\n 'tour-package-info', // Unique ID\n 'Tour Package Info', // Box title\n 'custom_box_html', // Content callback, must be of type callable\n $screen // Post type\n );\n }\n}", "function tower_register_meta_boxes() {\n foreach (TOWER_CUSTOM_POSTS as $key => $custom_type) {\n $meta = $custom_type['meta'];\n add_meta_box(\n $meta['handle'],\n $meta['title'],\n $meta['callback'],\n $key\n );\n }\n}", "function idem_pop_up_add_meta_box()\n{\n add_meta_box(\n 'idem-pop-up-meta-box', // id, used as the html id att\n __( 'Idem Pop Up' ), // meta box title, like \"Page Attributes\"\n 'idem_pop_up_meta_box_cb', // callback function, spits out the content\n 'page', // post type or page. We'll add this to pages only\n 'side', // context (where on the screen)\n 'high' // priority, where should this go in the context?\n );\n}", "function idem_pop_up_inner_add_meta_box()\n{\n add_meta_box(\n 'idem-pop-up-inner-meta-box', // id, used as the html id att\n __( 'Idem Pop Up Inner Meta Box' ), // meta box title, like \"Page Attributes\"\n 'idem_pop_up_inner_meta_box_cb', // callback function, spits out the content\n 'idem_pop_up', // post type or page. We'll add this to pages only\n 'side', // context (where on the screen)\n 'low' // priority, where should this go in the context?\n );\n}", "function my_meta_init()\n{\n // http://codex.wordpress.org/Function_Reference/wp_enqueue_script\n // http://codex.wordpress.org/Function_Reference/wp_enqueue_style\n \n //wp_enqueue_script('my_meta_js', MY_THEME_PATH . '/custom/meta.js', array('jquery'));\n wp_enqueue_style('my_meta_css', MY_THEME_PATH . '/custom/shop-meta.css');\n \n // review the function reference for parameter details\n // http://codex.wordpress.org/Function_Reference/add_meta_box\n \n // add a meta box for each of the wordpress page types: posts and pages\n foreach (array('product') as $type) \n {\n add_meta_box('my_all_meta', 'Prezzo e Descrizione Prodotto', 'my_meta_setup', $type, 'normal', 'high');\n }\n \n // add a callback function to save any data a user enters in\n add_action('save_post','my_meta_save');\n}", "public function register_meta_box() {\r\n add_meta_box( self::POST_TYPE . '-meta', 'Downloadable Resource URL', array ($this, 'meta_box_html'), self::POST_TYPE, 'side', 'default', '');\r\n }", "function render_meta_box($post, $metabox)\n {\n }", "function rs_meta_box()\n{\n add_meta_box('rs_focus', 'Destaque na home', 'rs_focus', 'post', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'post', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'post_region', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'event', 'side');\n}", "function minimeta_widget_display($optionsetname='',$args) {\r\n\t\tglobal $ulopen,$stylegeneralul,$classgeneralul;\r\n\t\tif (is_array($args))\r\n\t\t\textract( $args, EXTR_SKIP );\r\n\t\t\t\r\n\t\t//Overwrite vars if Seidbar Widget\r\n\t\tif ($type==\"PHP\") {\r\n\t\t\t$title = $options['general']['php']['title'];\r\n\t\t\t$before_title = $options['general']['php']['before_title'];\r\n\t\t\t$after_title = $options['general']['php']['after_title'];\t\t\t\t\r\n\t\t\t$before_widget = $options['general']['php']['before_widget'];\r\n\t\t\t$after_widget = $options['general']['php']['after_widget'];\r\n\t\t}\r\n\r\n\t\t//load options\r\n\t\t$optionset = get_option('minimeta_widget_options');\r\n\t\tif (!isset($optionset[$optionsetname])) { //find out option exists and load\r\n\t\t\t//def options\r\n\t\t\t$options['general']['php']['title']=__('Meta');\r\n\t\t\t$options['general']['php']['before_title']='<h2>';\r\n\t\t\t$options['general']['php']['after_title']='</h2>';\r\n\t\t\t$options['general']['php']['before_widget']='<div class=\"MiniMetaWidgetSiedbar\">';\r\n\t\t\t$options['general']['php']['after_widget']='</div>';\r\n\t\t\t$options['in'][0]['part']='title';\r\n\t\t\t$options['in'][0]['args']['title']=$title;\r\n\t\t\t$options['in'][0]['args']['before_title']=$before_title;\r\n\t\t\t$options['in'][0]['args']['after_title']=$after_title;\r\n\t\t\t$options['in'][1]['part']='linkseiteadmin';\r\n\t\t\t$options['in'][2]['part']='linkloginlogout';\r\n\t\t\t$options['in'][3]['part']='linkrss';\r\n\t\t\t$options['in'][4]['part']='linkcommentrss';\r\n\t\t\t$options['in'][5]['part']='linkwordpress';\r\n\t\t\t$options['in'][6]['part']='actionwpmeta';\r\n\t\t\t$options['out'][0]['part']='title';\r\n\t\t\t$options['out'][1]['part']='linkregister';\r\n\t\t\t$options['out'][2]['part']='linkloginlogout';\r\n\t\t\t$options['out'][3]['part']='linkrss';\r\n\t\t\t$options['out'][4]['part']='linkcommentrss';\r\n\t\t\t$options['out'][5]['part']='linkwordpress';\r\n\t\t\t$options['out'][6]['part']='actionwpmeta';\r\n\t\t\t$options['general']['pagesnot']['notselected']=true;\r\n\t\t} else {\r\n\t\t\t$options=$optionset[$optionsetname];\r\n\t\t\tfor ($i=0;$i<=sizeof($options['in']);$i++) {\r\n\t\t\t\tif ($options['in'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['in'][$i]['args']['title']=$title;\r\n\t\t\t\t\t$options['in'][$i]['args']['before_title']=$before_title;\r\n\t\t\t\t\t$options['in'][$i]['args']['after_title']=$after_title;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ($i=0;$i<=sizeof($options['out']);$i++) {\r\n\t\t\t\tif ($options['out'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['out'][$i]['args']['title']=$title;\r\n\t\t\t\t\t$options['out'][$i]['args']['before_title']=$before_title;\r\n\t\t\t\t\t$options['out'][$i]['args']['after_title']=$after_title;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Overwrite vars if Seidbar Widget\r\n\t\tif ($type==\"PHP\") {\r\n\t\t\tfor ($i=0;$i<=sizeof($options['in']);$i++) {\r\n\t\t\t\tif ($options['in'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['in'][$i]['args']['title']=$options['general']['php']['title'];\r\n\t\t\t\t\t$options['in'][$i]['args']['before_title']=$options['general']['php']['before_title'];\r\n\t\t\t\t\t$options['in'][$i]['args']['after_title']=$options['general']['php']['after_title'];\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ($i=0;$i<=sizeof($options['out']);$i++) {\r\n\t\t\t\tif ($options['out'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['out'][$i]['args']['title']=$options['general']['php']['title'];\r\n\t\t\t\t\t$options['out'][$i]['args']['before_title']=$options['general']['php']['before_title'];\r\n\t\t\t\t\t$options['out'][$i]['args']['after_title']=$options['general']['php']['after_title'];\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$before_widget = $options['general']['php']['before_widget'];\r\n\t\t\t$after_widget = $options['general']['php']['after_widget'];\r\n\t\t}\r\n\t\t\r\n\t\t//Not display Widget\r\n\t\tif(is_user_logged_in()) {\r\n\t\t\tif (sizeof($options['in'])<1) return; //Disolay widget only if parts are active\r\n\t\t\t$diplay=false;\r\n\t\t\tif (is_home() and $options['general']['pagesnot']['in']['home']) $diplay=true;\r\n\t\t\tif (is_single() and $options['general']['pagesnot']['in']['singlepost']) $diplay=true;\r\n\t\t\tif (is_search() and $options['general']['pagesnot']['in']['search']) $diplay=true;\r\n\t\t\tif (is_404() and $options['general']['pagesnot']['in']['errorpages']) $diplay=true;\r\n\t\t\tif (is_page($options['general']['pagesnot']['in']['pages']) and !empty($options['general']['pagesnot']['in']['pages'])) $diplay=true;\r\n\t\t\tif ($diplay==false and !$options['general']['pagesnot']['notselected']) return;\r\n\t\t\tif ($diplay==true and $options['general']['pagesnot']['notselected']) return;\r\n\t\t} else {\r\n\t\t\tif (sizeof($options['out'])<1) return; //Disolay widget only if parts are active\r\n\t\t\t$diplay=false;\r\n\t\t\tif (is_home() and $options['general']['pagesnot']['out']['home']) $diplay=true;\r\n\t\t\tif (is_single() and $options['general']['pagesnot']['out']['singlepost']) $diplay=true;\r\n\t\t\tif (is_search() and $options['general']['pagesnot']['out']['search']) $diplay=true;\r\n\t\t\tif (is_404() and $options['general']['pagesnot']['out']['errorpages']) $diplay=true;\r\n\t\t\tif (is_page($options['general']['pagesnot']['out']['pages']) and !empty($options['general']['pagesnot']['out']['pages'])) $diplay=true;\r\n\t\t\tif ($diplay==false and !$options['general']['pagesnot']['notselected']) return;\r\n\t\t\tif ($diplay==true and $options['general']['pagesnot']['notselected']) return;\r\n\t\t}\r\n\t\t\r\n\t\t$parts=MiniMetaWidgetParts::parts();\r\n\t\t$stylegeneralul=$options['general']['php']['style']['ul'];\r\n\t\t$classgeneralul=$options['general']['php']['class']['ul'];\r\n\t\t\r\n\t\t//Shown part of Widget\r\n\t\techo $before_widget;\r\n\t\t\r\n\t\t$ulopen=false;\r\n\t\t\r\n if(is_user_logged_in()) { //if loggt in or out\r\n\t\t\t$inorout=\"in\";\r\n\t\t\t$fuctionplace=3;\r\n\t\t} else {\r\n\t\t\t$inorout=\"out\";\r\n\t\t\t$fuctionplace=4;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($options[$inorout] as $partsettings) {\r\n\t\t\tif ($parts[$partsettings['part']][$fuctionplace]) {\r\n\t\t\t\t$partsettings['args']['stylegeneralli']=$options['general']['php']['style']['li'];\r\n\t\t\t\t$partsettings['args']['classgeneralli']=$options['general']['php']['class']['li'];\r\n\t\t\t\tcall_user_func($parts[$partsettings['part']][1], $partsettings['args'] );\r\n\t\t\t}\t\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif ($ulopen)\r\n\t\t\techo '</ul>';\r\n\t\t\t\r\n\t\techo $after_widget;\t\t\r\n\t}", "function afterLayout() { \t\t\n }", "function page_attributes_meta_box($post)\n {\n }", "function facebook_instant_articles_get_layout_info() {\n return array(\n 'facebook_instant_article' => array(\n 'label' => t('Facebook Instant Article'),\n 'path' => \"\",\n 'regions' => array(\n 'header' => t('Header'),\n 'body' => t('Body'),\n 'footer' => t('Footer'),\n ),\n 'image' => 1,\n ),\n );\n}", "function calendar_meta_box() { ?>\n\n\t\t<div>\n\t\t\t<label for=\"is-group-calendar\"><input type=\"checkbox\" name=\"is-group-calendar\" value=\"true\"> This calendar is for a BuddyPress group.</label>\n\t\t\t<p class=\"description\">A calendar may be associated with a BuddyPress group by assigning it the same slug as the slug of the group.</p>\t\n\t\t</div><?php \n\t}", "public abstract function render( \\RWC\\Metabox $metabox );", "public function addCustomBox() {\n add_meta_box( \n $this->post_type . '_meta',\n __( self::getLabel($this->post_type) . ' Meta', $this->post_type . '_meta' ),\n array($this, 'innerCustomBox'),\n $this->post_type,\n $this->fields_location, \n $this->fields_priority\n ); \n }", "function thmplt_carousel_slide_meta(){\r\n\tadd_meta_box(\"thmplt_carousel_meta_box1\", \"Slide Settings\", \"thmplt_carousel_slide_settings_html\", \"thmplt_carousel\", \"normal\", \"high\");\r\n\tadd_meta_box(\"thmplt_carousel_meta_box2\", \"Slide Images\", \"thmplt_carousel_slide_settings_html2\", \"thmplt_carousel\", \"normal\", \"high\");\r\n}", "function pvplugin_add_meta_box() {\n\t\n\t$screens = array( 'policy' );\n\t\n\tforeach ( $screens as $screen ) {\n\t\n\t\tadd_meta_box(\n\t\t\t'myplugin_sectionid',\n\t\t\t__( 'Custom Meta Box', 'policy_library_plugin' ),\n\t\t\t array( &$this, 'pvplugin_meta_box_callback' ),\n\t\t\t$screen\n\t\t);\n\t\t\n\t\tadd_meta_box(\n\t\t\t'myplugin_side_sectionid',\n\t\t\t__( 'Policy Expire', 'policy_library_plugin' ),\n\t\t\t array( &$this, 'pvplugin_side_meta_box_callback' ),\n\t\t\t$screen,'side','high'\n\t\t);\n\t\t\n\t}\n\t}", "function meta_html($post)\n {\n $view = new Xby2BaseView(get_post_meta($post->ID));\n $view->addInput('text', 'link-label', 'Label: ', 'label', 'regular-text');\n $view->addInput('text', 'link-link', 'Link: ', 'link', 'large-text');\n $view->addInput('text', 'link-priority', 'Priority: ', 'priority', 'regular-text');\n $view->displayForm();\n }", "function yourfitness_do_register_post_meta() {\n\n\t// Get layout option without default for the count.\n\t$options = yourfitness_get_layouts_for_options();\n\n\t// Stop here if there is less than two layouts options.\n\tif ( count( $options ) < 2 )\n\t\treturn;\n\n\t$fields = array(\n\t\tarray(\n\t\t\t'id' => 'yourfitness_layout',\n\t\t\t'label' => esc_attr_x( 'Layout', 'post meta', 'your-fitness' ),\n\t\t\t'type' => 'radio',\n\t\t\t'default' => 'default_fallback',\n\t\t\t'options' => yourfitness_get_layouts_for_options( true )\n\t\t)\n\t);\n\n\tyourfitness_register_post_meta( $fields, array( 'post', 'page' ), 'your-fitness', array( 'title' => esc_html__( 'Post Options', 'your-fitness' ) ) );\n\n}", "public function registerMetaBoxes()\n\t {\n\t \t$dataMetas = self::getDataMetas();\n\n\t \tif ( !empty($dataMetas) ) {\n\t \t\tforeach ($dataMetas as $key => $meta) {\n\t \t\t\t/* CHECK IF HAS PAGES */\n\t \t\t\tif ( isset($meta[\"_pages\"]) && !empty($meta[\"_pages\"][0]) ) {\n\t \t\t\t\tself::createMetasPages($meta);\n\t \t\t\t}\n\n\t \t\t\t/* POSTS TYPES REGISTER METAS */\n\t \t\t\tif ( isset($meta[\"_posts_types\"]) && !empty($meta[\"_posts_types\"][0]) ) {\n\t \t\t\t\tself::createMetasPostTypes($meta);\n\t \t\t\t}\n\n\t \t\t\t/* CHECK IF ALL POSTS IS true */\n\t \t\t\tif ( isset($meta[\"_all_posts\"]) && $meta['_all_posts'] == 'yes' ) {\n\t \t\t\t\tself::createMetasPosts($meta);\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\n\t }", "public function setup_meta_box() {\n\t\t\tadd_meta_box( 'add-shortcode-section', __( 'Shortcode', IFLANG ), array( $this, 'meta_box' ), 'nav-menus', 'side', 'high' );\n\t\t}", "function vw_hospital_cs_custom_meta() {\n add_meta_box( 'cs_meta', __( 'Settings', 'vw-hospital' ), 'vw_hospital_cs_meta_callback' , 'doctors','normal', 'high' ); \n\n}", "public static function createMetaBox() {\r\n add_meta_box( \r\n \\WPDisablePage\\Setup::PLUGIN_ID, // Metabox ID\r\n \\WPDisablePage\\Setup::PLUGIN_NAME, // Metabox Name\r\n array( __CLASS__, 'createView' ), // Metabox Callback\r\n apply_filters( strtolower( \\WPDisablePage\\Setup::PLUGIN_ID ) . '__post_types', self::POST_TYPES ), // Metabox Post Types\r\n self::POSITION, // Metabox Position\r\n self::PRIORITY // Metabox Priority\r\n );\r\n }", "function wp_nav_menu_locations_meta_box()\n {\n }", "public function meta() {\t\t\t\t\t\t\n\t\t\t$this->output->layout = \"empty\";\n\t\t\t$this->output->set(\"actions\", results_array(\"SELECT * FROM actions ORDER BY title\"));\n\t\t\t$this->output->view(\"api/xml/meta.php\");\n\t\t\t$this->output->header(\"Content-Type: text/xml\");\n\t\t\t$this->output->cache($this->default_cache_timeout);\n\t\t}", "function portfolioism_add_custom_metabox() {\n add_meta_box(\n 'portfolioism_meta',\n 'Artwork',\n 'portfolioism_meta_callback',\n 'artwork'\n );\n }", "function pz_add_custom_meta_box()\n{\n add_meta_box(\n 'custom_meta_box',\n 'Custom Image Metabox',\n 'pz_custom_meta_box_callbacks',\n 'page', // page, post etc.\n 'normal',\n 'high');\n}", "function PKG_OptionPageRender($layout)\n{\n\tfor ($i=0; $i < count($layout); $i++)\n\t\t{\n\t\t\tswitch($layout[$i]['type'])\n\t\t\t\t{\n\t\t\t\t\tcase \"text\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo(\"<tr><td colspan=\\\"2\\\">\".$layout[$i]['text'].\"</td></tr>\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\n\t\t\t\t\tcase \"line\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo(\"<tr><td colspan=\\\"2\\\"><hr></td></tr>\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\n\t\t\t\t\tcase \"title\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo(\"<tr><td colspan=\\\"2\\\"><br><span class=\\\"title\\\">\".$layout[$i]['text'].\"</span><hr></td></tr>\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\n\t\t\t\t\tcase \"infobox\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$infoBox = MSG_showMessageBoxHeader(\"infotable\",$layout[$i]['text'],700,true).MSG_showMessageBoxFooter(true);\n\t\t\t\t\t\t\techo(\"<tr><td colspan=\\\"2\\\">$infoBox</td></tr>\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\tcase \"inputline\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Define the dialog element\n\t\t\t\t\t\t\t$layout[$i]['value'] = HTML_input($layout[$i]['name'], $layout['allvalues'][$layout[$i]['name']], $layout[$i]['size'], $layout[$i]['maxlength'], INPUT_TYPE_text);\n\n\t\t\t\t\t\t\t//Show it\n\t\t\t\t\t\t\techo(\"<tr><td>\".$layout[$i]['text'].\"</td><td>\".constant($layout[$i]['name']).\"</td></tr>\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\n\n\t\t\t\t\tcase \"selection\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$arr = array();\n\n\t\t\t\t\t\t\t//Generate the array for the options\n\t\t\t\t\t\t\tfor ($nr=0; isset($layout[$i][\"option\".$nr]); $nr++)\n\t\t\t\t\t\t\t\t$arr[$layout[$i]['option'.$nr]] = $layout[$i]['option'.$nr];\n\n\t\t\t\t\t\t\t//Define the dialog element\n\t\t\t\t\t\t\t$layout[$i]['value'] = HTML_selection($layout[$i]['name'], $arr, SELTYPE_selection, true, $layout['allvalues'][$layout[$i]['name']]);\n\n\t\t\t\t\t\t\t//Show it\n\t\t\t\t\t\t\techo(\"<tr><td>\".$layout[$i]['text'].\"</td><td>\".constant($layout[$i]['name']).\"</td></tr>\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\n\t\t\t\t\tcase \"textarea\":\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$layout[$i]['value'] = HTML_textArea($layout[$i]['name'], $layout[$i]['cols'], $layout[$i]['rows'], $layout['allvalues'][$layout[$i]['name']]);\n\n\t\t\t\t\t\t\t//Show it\n\t\t\t\t\t\t\techo(\"<tr><td>\".$layout[$i]['text'].\"</td><td>\".constant($layout[$i]['name']).\"</td></tr>\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\n\t\t\t\t};\n\t\t};\n}", "function praise_meta_init(){\n add_meta_box(\"praise_author_name\", \"Author\", \"praise_author_meta\", \"praise\", \"normal\", \"low\");\n}", "function post_custom_meta_box($post)\n {\n }", "function axiom_init_pagebuilder_meta_box(){\n // add custom sidebar metabox to following types\n $types = array('page', 'axi_product', 'portfolio', 'service', 'staff');\n \n foreach ($types as $key => $value) {\n add_meta_box(\"axiom_pagebuilder_metabox\", \n __(\"Smart Page Builder\", 'default'), \n \"axiom_display_pagebuilder_meta\", \n $value, \n \"normal\", \n \"high\");\n }\n \n // Save custom sidebar meta\n add_action('save_post', 'axiom_save_pagebuilder_data');\n \n}", "function the_block_editor_meta_boxes()\n {\n }", "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content='a sample meta description for this website'/>\\n\\n\";\n\t}", "function initLayout(){\n $layout = array(\n 'left' => array(\n 'ProfileInfo' => array(\n 'title' => 'Profile Info',\n 'minimize' => false,\n ),\n 'EmailInboxMenu' => array(\n 'title' => 'Inbox Menu',\n 'minimize' => false,\n ),\n 'ActionMenu' => array(\n 'title' => 'Actions',\n 'minimize' => false,\n ),\n 'TopContacts' => array(\n 'title' => 'Top Contacts',\n 'minimize' => false,\n ),\n 'RecentItems' => array(\n 'title' => 'Recently Viewed',\n 'minimize' => false,\n ),\n 'ActionTimer' => array(\n 'title' => 'Action Timer',\n 'minimize' => true,\n ),\n 'UserCalendars' => array(\n 'title' => 'User Calendars',\n 'minimize' => false,\n ),\n 'CalendarFilter' => array(\n 'title' => 'Filter',\n 'minimize' => false,\n ),\n 'GroupCalendars' => array(\n 'title' => 'Group Calendars',\n 'minimize' => false,\n ),\n 'FilterControls' => array(\n 'title' => 'Filter Controls',\n 'minimize' => false,\n ),\n 'SimpleFilterControlEventTypes' => array(\n 'title' => 'Event Types',\n 'minimize' => false,\n ),\n ),\n 'right' => array(\n 'SmallCalendar' => array(\n 'title' => 'Small Calendar',\n 'minimize' => false,\n ),\n 'ChatBox' => array(\n 'title' => 'Activity Feed',\n 'minimize' => false,\n ),\n 'GoogleMaps' => array(\n 'title' => 'Google Map',\n 'minimize' => false,\n ),\n 'OnlineUsers' => array(\n 'title' => 'Active Users',\n 'minimize' => false,\n ),\n 'TagCloud' => array(\n 'title' => 'Tag Cloud',\n 'minimize' => false,\n ),\n 'TimeZone' => array(\n 'title' => 'Clock',\n 'minimize' => false,\n ),\n 'SmallCalendar' => array(\n 'title' => 'Calendar',\n 'minimize' => false,\n ),\n 'QuickContact' => array(\n 'title' => 'Quick Contact',\n 'minimize' => false,\n ),\n 'MediaBox' => array(\n 'title' => 'Files',\n 'minimize' => false,\n ),\n ),\n 'hiddenRight' => array(\n 'ActionMenu' => array(\n 'title' => 'My Actions',\n 'minimize' => false,\n ),\n 'MessageBox' => array(\n 'title' => 'Message Board',\n 'minimize' => false,\n ),\n 'NoteBox' => array(\n 'title' => 'Note Pad',\n 'minimize' => false,\n ),\n 'DocViewer' => array(\n 'title' => 'Doc Viewer',\n 'minimize' => false,\n ),\n 'TopSites' => array(\n 'title' => 'Top Sites',\n 'minimize' => false,\n ),\n ),\n );\n if(Yii::app()->contEd('pro')){\n if(file_exists('protected/config/proWidgets.php')){\n foreach(include('protected/config/proWidgets.php') as $loc=>$data){\n if (isset ($layout[$loc]))\n $layout[$loc] = array_merge($layout[$loc],$data);\n }\n }\n }\n return $layout;\n }", "static function add_custom_box() {\n\n // A meta box para os dados\n add_meta_box(\n 'agenda_data',\n 'Dados da Agenda',\n array( __CLASS__,'inner_custom_box_callback_function' ),\n 'agenda', // em que post type eles entram?\n 'side' // onde? side, normal, advanced\n //,'default' // 'high', 'core', 'default' or 'low'\n //,array('variáve' => 'valor') // variaveis que serão passadas para o callback\n );\n\n\n // A meta box que replica a taxonomia 'agenda_tipo', mas com radio buttons\n\t\tadd_meta_box(\n\t\t\t'agenda_tipo',\n\t\t\t_x( 'Tipo da Agenda', 'tipo do evento da agenda', 'panamazonica' ),\n\t\t\tarray( __CLASS__, 'agenda_tipo_callback_function' ),\n\t\t\t'agenda',\n\t\t\t'side',\n\t\t\t'core'\n\t\t);\n\n }", "public function print_output() {\r\n foreach($this->customFields as $customField){\r\n if(get_post_meta( get_the_ID(), $customField['name'] , true )): ?>\r\n <li class=\"details-item\">\r\n <strong><?php echo __($customField['title'] , 'ex-list'); ?></strong> <?php echo get_post_meta( get_the_ID(), $customField['name'] , true ); ?>\r\n\t\t\t\t</li>\r\n <?php\r\n endif;\r\n }\r\n }", "function portfolio_work_info_custom_fields() {\n add_meta_box(\n 'portfolio_work_info_custom_fields', // $id\n 'Work info', // $title\n 'show_portfolio_work_info_custom_fields', // $callback\n 'portfolio', // $page\n 'normal', // $context\n 'high'); // $priority\n}", "public function useMetaData()\n {\n $this->render();\n $metaData = $this->param('meta_data');\n if ($metaData) {\n if (!empty($metaData['layout.yml'])) {\n $layoutData = BYAML::i()->parse(trim($metaData['layout.yml']));\n BLayout::i()->addLayout('viewproxy-metadata', $layoutData)->applyLayout('viewproxy-metadata');\n }\n if (($head = $this->view('head'))) {\n foreach ($metaData as $k=>$v) {\n $k = strtolower($k);\n switch ($k) {\n case 'title':\n $head->addTitle($v); break;\n case 'meta_title': case 'meta_description': case 'meta_keywords':\n $head->meta(str_replace('meta_','',$k), $v); break;\n }\n }\n }\n }\n return $this;\n }", "function new_meta_boxes() {\n\tglobal $post, $new_meta_boxes;\n\n\tforeach($new_meta_boxes as $meta_box) {\n\t\tprint_meta_box($meta_box, $post);\n\t}\n}", "function _register_manpower_meta_box_cb()\n{\n\tadd_meta_box(\"admin_manpower\", \"Worker Information\", \"WorkerController::admin_view\", MANPOWER);\n}", "function kstHelpWordpressMisc_customFieldsAndMetaBoxes() {\n ?>\n <p>\n Among the many fabulous but too little used features of WordPress includes\n custom fields. Custom fields are generic form fields below the text editor\n on posts and pages (and custom post types) that allow theme and plugin\n developers the ability to add unique functionality to posts and pages that\n you have control over per post/page.\n </p>\n <p>\n Examples include changing a quote or content box in the header or sidebar\n on a per page basis, embedding media, and adding extra meta-type information to\n display about posts such as \"duration\", \"citations\", \"special guests\", or\n whatever the theme or plugin developer offered.\n </p>\n <p>\n If your theme includes such things hopefully they will have added a help\n entry for you to learn how to use them.\n </p>\n <p>\n The theme or plugin developer may have alternatively created\n \"metaboxes\" that appear in place of the \"generic custom fields\". A metabox\n is a custom mini-form that explicitly tells the contributor what data they\n can enter.\n </p>\n <?php\n}", "function display_custom_info_fields(){\n\t\n\tadd_settings_section(\"section\", \"Virksomhedsinformation\", null, \"theme-options\");\n\n add_settings_field(\"business_name\", \"Virksomhedsnavn\", \"display_business_name_element\", \"theme-options\", \"section\");\n\tadd_settings_field(\"support_phone\", \"Support Telefon\", \"display_support_phone_element\", \"theme-options\", \"section\");\n\tadd_settings_field(\"support_email\", \"Support Email\", \"display_support_email_element\", \"theme-options\", \"section\");\n\tadd_settings_field(\"street_address\", \"Gade\", \"display_street_address_element\", \"theme-options\", \"section\");\n\tadd_settings_field(\"city\", \"By og postnummer\", \"display_city_element\", \"theme-options\", \"section\");\n\n register_setting(\"section\", \"business_name\");\n\tregister_setting(\"section\", \"support_phone\");\n\tregister_setting(\"section\", \"support_email\");\n\tregister_setting(\"section\", \"street_address\");\n\tregister_setting(\"section\", \"city\");\n\t\n}", "function responsive_add_layout_meta_box( $post ) {\n\tglobal $post, $wp_meta_boxes;\n\n\t$context = apply_filters( 'responsive_layout_meta_box_context', 'side' ); // 'normal', 'side', 'advanced'\n\t$priority = apply_filters( 'responsive_layout_meta_box_priority', 'default' ); // 'high', 'core', 'low', 'default'\n\n add_meta_box(\n\t\t'responsive_layout',\n\t\t__( 'Layout', 'responsive' ),\n\t\t'responsive_layout_meta_box',\n\t\t'post',\n\t\t$context,\n\t\t$priority\n\t);\n}", "function pixelsquare_download_metabox(){\r\n\r\n \t//add_meta_box(html_id, meatbox_heading, callback_fun, post_type_where_its_diasplayed, position(normal,side), priority)\r\n \tadd_meta_box('download_metabox', 'Download Link', 'display_download_metabox', 'post', 'side', 'high');\r\n\r\n }", "function ilusix_my_custom_meta_box() {\n global $myMetaBoxPostTypes;\n\n foreach($myMetaBoxPostTypes as $postType) {\n add_meta_box(\n 'my_custom_meta_box_identifier' . '-' . $postType,\n 'Meta box title',\n 'ilusix_my_custom_meta_box_callback',\n $postType,\n 'normal',\n 'default'\n );\n }\n}", "function yourfitness_do_register_term_meta() {\n\n\t// Get layout option without default for the count.\n\t$options = yourfitness_get_layouts_for_options();\n\n\t// Stop here if there is less than two layouts options.\n\tif ( count( $options ) < 2 )\n\t\treturn;\n\n\t$fields = array(\n\t\tarray(\n\t\t\t'id' => 'yourfitness_layout',\n\t\t\t'label' => esc_attr_x( 'Layout', 'term meta', 'your-fitness' ),\n\t\t\t'type' => 'radio',\n\t\t\t'default' => 'default_fallback',\n\t\t\t'options' => yourfitness_get_layouts_for_options( true )\n\t\t)\n\t);\n\n\tyourfitness_register_term_meta( $fields, array( 'category', 'post_tag' ), 'your-fitness' );\n\n}", "function meta_boxes() {\n\t\tadd_meta_box( 'event-details', 'Event Details', array( $this , 'details_box' ), 'event', 'normal', 'high' );\n\t}", "function myplugin_add_custom_box() {\n\t\t add_meta_box( \n\t\t 'myplugin_sectionid',\n\t\t __( 'My Post Section Title', 'myplugin_textdomain' ),\n\t\t 'myplugin_inner_custom_box',\n\t\t 'wpflexslider' \n\t\t );\n\t\t add_meta_box(\n\t\t 'myplugin_sectionid',\n\t\t __( 'My Post Section Title', 'myplugin_textdomain' ), \n\t\t 'myplugin_inner_custom_box',\n\t\t 'page'\n\t\t );\n\t\t add_meta_box('wpt_events_location', 'Event Location', 'wpt_events_location', 'events', 'side', 'default');\n\t\t}", "public static function add_meta_box() {\n add_meta_box( \"CBMTheme\", \"CBM Theme Meta Box\", \"CBMAdmin::posts_page\" );\n }", "function fzproject_meta_box()\n{\n add_meta_box('fzproject_meta_box', 'New portfolio item', 'display_fzproject_meta_box', 'fzproject_post', 'normal', 'high');\n}", "function pexeto_load_meta_boxes(){\n\t$portf_taxonomies=get_terms('portfolio_category', array('hierarchical'=>true, 'hide_empty'=>0));\n\t$portf_categories=array(array('id'=>'-1', 'name'=>'All Portfolio Categories'));\n\n\tforeach($portf_taxonomies as $taxonomy){\n\t\t$portf_categories[]=array(\"name\"=>$taxonomy->name, \"id\"=>$taxonomy->term_id);\n\t}\n\t$loader_portf_categories=array_merge(array(array('id'=>'hide','name'=>'Hide'), (array('id'=>'disabled','name'=>'Show:'))), $portf_categories);\n\n\t//load the post categeories\n\t$categories=get_categories('hide_empty=0');\n\t$pexeto_categories=array(array('id'=>'-1', 'name'=>'All Categories'));\n\tfor($i=0; $i<sizeof($categories); $i++){\n\t\t$pexeto_categories[]=array('id'=>$categories[$i]->cat_ID, 'name'=>$categories[$i]->cat_name);\n\t}\n\t\n\tglobal $pexeto_data, $new_meta_boxes, $new_meta_portfolio_boxes, $new_meta_post_boxes;\n\t\n\t$sliders=pexeto_get_created_sliders();\n\n\t/* ------------------------------------------------------------------------*\n\t * META BOXES FOR THE PAGES\n\t * ------------------------------------------------------------------------*/\n\n\t//the meta data for pages\n\t$new_meta_boxes =\n\tarray(\n\n\tarray(\n\t\t\"title\" => '<div class=\"ui-icon ui-icon-wrench\"></div>General Page Settings',\n\t\t\"type\" => \"heading\"),\n\n\tarray(\n\t\t\"title\" => \"Header\",\n\t\t\"name\" => \"slider\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => $sliders,\n\t\t\"std\" => 'none'\n\t\t),\n\n\t\tarray(\n\t\t\"title\" => \"Page Layout\",\n\t\t\"name\" => \"layout\",\n\t\t\"type\" => \"imageradio\",\n\t\t\"options\" => array(array(\"img\"=>PEXETO_IMAGES_URL.'layout-right-sidebar.png', \"id\"=>\"right\", \"title\"=>\"Right Sidebar Layout\"),\n\t\tarray(\"img\"=>PEXETO_IMAGES_URL.'layout-left-sidebar.png', \"id\"=>\"left\", \"title\"=>\"Left Sidebar Layout\"),\n\t\tarray(\"img\"=>PEXETO_IMAGES_URL.'layout-full-width.png', \"id\"=>\"full\", \"title\"=>\"Full Width Layout\")),\n\t\t\"std\" => 'right',\n\t\t\"description\" => 'Available for Default, Featured Posts and Contact page templates'\n\t\t),\n\n\t\tarray(\n\t\t\"name\" => \"sidebar\",\n\t\t\"title\" => \"Sidebar\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => $pexeto_data->pexeto_sidebars,\n\t\t\"description\" => 'You can select a sidebar for this page between the default one and another one that\n\t\tyou have created. If you would like to use another sidebar, rather than the default one, you can\n\t\tcreate a new sidebar in \"'.PEXETO_THEMENAME.' Options->Sidebars\" section and after that you will be able to select the\n\t\tsidebar here.'),\n\t\t\n\t\tarray(\n\t\t\"name\" => \"show_title\",\n\t\t\"title\" => \"Display Page Title\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"Use Global Settings\", \"id\"=>\"global\"),\n\t\tarray(\"name\"=>\"Display\", \"id\"=>\"on\"),\n\t\tarray(\"name\"=>\"Hide\", \"id\"=>\"off\")),\n\t\t\"std\" => 'global',\n\t\t\"description\" => 'Whether to display the page title or not - if \"Use Global Settings\" selected, the global setting selected in the\n\t\t'.PEXETO_THEMENAME.' Options &raquo; General &raquo; \"Display page title on pages\" field will be used.'),\n\t\t\n\t\tarray(\n\t\t\"title\" => \"Custom full width background image\",\n\t\t\"name\" => \"full_bg\",\n\t\t\"std\" => \"\",\n\t\t\"type\" => \"upload\",\n\t\t\"description\" => 'You can globally set a full width background image in the '.PEXETO_THEMENAME.' Options &raquo; Style Settings &raquo; \n\t\tGeneral section. In this field you can set a custom background image that will be displayed for this page only.'\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"title\" => '<div class=\"ui-icon ui-icon-wrench\"></div>Featured Page Template Settings',\n\t\t\"type\" => \"heading\"),\n\t\t\n\t\t\tarray(\n\t\t\"name\" => \"featured_category\",\n\t\t\"title\" => \"Display blog posts from category\",\n\t\t\"type\" => \"select\",\n\t\t\"none\" => true,\n\t\t\"options\" => $pexeto_categories,\n\t\t\"std\" => '-1'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\"title\" => \"Number of posts to display\",\n\t\t\"name\" => \"featured_post_number\",\n\t\t\"std\" => \"5\",\n\t\t\"type\" => \"text\"\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"title\" => '<div class=\"ui-icon ui-icon-image\"></div>Portfolio Settings - available only for Portfolio/Gallery page templates',\n\t\t\"type\" => \"heading\"),\n\n\t\tarray(\n\t\t\"name\" => \"post_category\",\n\t\t\"title\" => \"Display portfolio items from categories\",\n\t\t\"type\" => \"select\",\n\t\t\"none\" => true,\n\t\t\"options\" => $portf_categories,\n\t\t\"std\" => '-1',\n\t\t\"description\" => 'If \"All Categories\" selected, all the Portfolio items will be displayed. If another category is selected, only the Portfolio items that belong\n\t\tto this category or this category\\'s subcategories will be displayed. By selecting different categories, you can create multiple portfolio/gallery\n\t\tpages with different items displayed.'),\n\n\t\tarray(\n\t\t\"name\" => \"order\",\n\t\t\"title\" => \"Portfolio item order\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"By Date\", \"id\"=>\"date\"),\n\t\tarray(\"name\"=>\"By Custom Order\", \"id\"=>\"custom\")),\n\t\t\"std\" => 'date',\n\t\t\"description\" => 'If you select \"By Date\" the last created item will be displayed first. If you select by \"By Custom Order\"\n\t\tyou will have to set the order field of each of the items - the items with the smaller order number will be displayed first.'),\n\n\n\t\tarray(\n\t\t\"name\" => \"show_filter\",\n\t\t\"title\" => \"Show portfolio category filter\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"Show\", \"id\"=>\"true\"),\n\t\tarray(\"name\"=>\"Hide\", \"id\"=>\"false\")),\n\t\t\"std\" => 'true',\n\t\t\"description\" => 'If \"Show\" selected, a category filter will be displayed above the portfolio items'),\n\n\t\tarray(\n\t\t\"name\" => \"show_info\",\n\t\t\"title\" => \"Show item info\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array( array(\"name\"=>\"Hide\", \"id\"=>\"false\"),\n\t\tarray(\"name\"=>\"Show\", \"id\"=>\"true\")),\n\t\t\"std\" => 'true',\n\t\t\"description\" => 'If \"Show\" selected, the portfolio item title and category will be displayed below the image (only for the Grid Gallery template)'\n\t\t),\n\n\n\t\tarray(\n\t\t\"title\" => \"Number of portfolio items to show per load/page\",\n\t\t\"name\" => \"post_number\",\n\t\t\"std\" => \"10\",\n\t\t\"type\" => \"text\"\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"name\" => \"image_width\",\n\t\t\"title\" => \"Image width\",\n\t\t\"type\" => \"text\",\n\t\t\"std\" => '290',\n\t\t\"description\" => 'The image width in the grid gallery. The image width is always static and the height is determined by the image ratio (only for the Grid Gallery template)'\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"name\" => \"desaturate\",\n\t\t\"title\" => \"Black/white image effect\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array( array(\"name\"=>\"OFF\", \"id\"=>\"false\"),array(\"name\"=>\"ON\", \"id\"=>\"true\")),\n\t\t\"std\" => 'false',\n\t\t\"description\" => 'If this option is enabled, the images will be automatically converted to black/white (desaturated) and they will be colored on hover (only for the Grid Gallery template).'\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"name\" => \"show_back_btn_end\",\n\t\t\"title\" => 'Show a \"Back to gallery\" button in the end of the image slider',\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array( array(\"name\"=>\"Hide\", \"id\"=>\"false\"),\n\t\tarray(\"name\"=>\"Show\", \"id\"=>\"true\")),\n\t\t\"std\" => 'false',\n\t\t\"description\" => 'If \"Show\" selected, a \"Back to gallery\" button will be appended to the last image of the image slider (only for the Grid Gallery template)'\n\t\t),\n\n\t\tarray(\n\t\t\"name\" => \"partial_loading\",\n\t\t\"title\" => 'Partial image loading in horizontal slider',\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array( array(\"name\"=>\"Disabled\", \"id\"=>\"false\"),\n\t\tarray(\"name\"=>\"Enabled\", \"id\"=>\"true\")),\n\t\t\"std\" => 'false',\n\t\t\"description\" => 'If \"Enabled\" selected, the slider will not wait for all the images to be loaded in order to get displayed. Before the slider is displayed it will load the amount of images you set in the \"Number of images to load before displaying the slider\" field below and after that the rest of the images will be displayed dynamically - as soon as the image gets loaded it will be displayed on the slider (only for the Grid Gallery template)'\n\t\t),\n\n\t\tarray(\n\t\t\"name\" => \"img_num_before_load\",\n\t\t\"title\" => \"Number of images to load before displaying the slider\",\n\t\t\"type\" => \"text\",\n\t\t\"std\" => '3',\n\t\t\"description\" => 'If partial image loaing is enabled above, this would be the number of images to load before displaying the horizontal slider. (only for the Grid Gallery template)'\n\t\t)\n\t\t\n\t\t);\n\n\n\n\t\t/* ------------------------------------------------------------------------*\n\t\t * META BOXES FOR THE PORTFOLIO POSTS\n\t\t * ------------------------------------------------------------------------*/\n\n\t\t$new_meta_portfolio_boxes =\n\t\tarray(\n\n\t\tarray(\n\t\t\"title\" => \"Preview Image URL\",\n\t\t\"name\" => \"preview\",\n\t\t\"std\" => \"\",\n\t\t\"type\" => \"upload\",\n\t\t\"description\" => 'Main preview image. If the \"Custom Thumbnail URL\" field below is empty, the thumbnail image\n\t\twill be automatically generated by the image set in this field.'\n\t\t),\n\n\t\tarray(\n\t\t\"title\" => \"Custom Thumbnail URL (optional)\",\n\t\t\"name\" => \"thumbnail\",\n\t\t\"std\" => \"\",\n\t\t\"type\" => \"upload\",\n\t\t\"description\" => 'By default the theme will generate automatically the thumbnail image for the item from\n\t\tthe bigger perview image, set in the \"Preview Image URL\" field below. However, if you prefer to manually set\n\t\tthis thumbnail image, you have to set its URL in this field.'\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"title\" => '<div class=\"ui-icon ui-icon-image\"></div>Grid Gallery items settings only',\n\t\t\"type\" => \"heading\"),\n\t\t\n\t\tarray(\n\t\t\"title\" => \"When clicked on the image open:\",\n\t\t\"name\" => \"action\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"Preview image in lightbox\", \"id\"=>\"lightbox\"),\n\t\tarray(\"name\"=>\"The content of the item as slider\", \"id\"=>\"permalink\"),\n\t\tarray(\"name\"=>\"The content of the item on new page\", \"id\"=>\"permalink_new\"),\n\t\tarray(\"name\"=>\"Play Video\", \"id\"=>\"video\"),\n\t\tarray(\"name\"=>\"Custom link\", \"id\"=>\"custom\"),\n\t\tarray(\"name\"=>\"Do Nothing\", \"id\"=>\"nothing\")),\n\t\t\"std\" => \"lightbox\",\n\t\t\"description\" => \"Select the action to be performed after clicking on the portfolio item.\"\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"title\" => \"Custom Link/Video URL\",\n\t\t\"name\" => \"custom\",\n\t\t\"std\" => \"\",\n\t\t\"type\" => \"text\",\n\t\t\"description\" => 'If \"Play Video\" selected above, you can insert a video URL here. If \"Custom link\" selected above, \n\t\tyou can insert the custom URL'\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"title\" => \"Item Description\",\n\t\t\"name\" => \"description\",\n\t\t\"std\" => \"\",\n\t\t\"type\" => \"textarea\",\n\t\t\"description\" => 'If \"Preview image in lightbox\" or \"Play Video\" has been selected in the clicking\n\t\taction field above, you can insert a description in this field that will be displayed below the image/video in lightbox.'\n\t\t),\n\t\t\n\t\tarray(\n\t\t\"name\" => \"show_content\",\n\t\t\"title\" => \"Show portfolio content on slider preview section\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"Show\", \"id\"=>\"show\"),\n\t\tarray(\"name\"=>\"Hide\", \"id\"=>\"hide\")),\n\t\t\"std\" => 'show',\n\t\t\"description\" => 'If \"Show\" selected, a section containing the portfolio title, category, content and a \"Back to gallery\" button will be\n\t\tprepended to the image slider when the preview is opened in the Grid Gallery template.'),\n\t\t\n\t\t\tarray(\n\t\t\"title\" => '<div class=\"ui-icon ui-icon-image\"></div>Showcase and single page items settings',\n\t\t\"type\" => \"heading\"),\n\t\t\n\t\tarray(\n\t\t\"title\" => \"Crop image from\",\n\t\t\"name\" => \"crop\",\n\t\t\"type\" => \"imageradio\",\n\t\t\"options\" => array(array(\"img\"=>PEXETO_IMAGES_URL.'crop-c.png', \"id\"=>\"c\", \"title\"=>\"Center\"),\n\t\tarray(\"img\"=>PEXETO_IMAGES_URL.'crop-t.png', \"id\"=>\"t\", \"title\"=>\"Top\"),\n\t\tarray(\"img\"=>PEXETO_IMAGES_URL.'crop-b.png', \"id\"=>\"b\", \"title\"=>\"Bottom\"),\n\t\tarray(\"img\"=>PEXETO_IMAGES_URL.'crop-l.png', \"id\"=>\"l\", \"title\"=>\"Left\"),\n\t\tarray(\"img\"=>PEXETO_IMAGES_URL.'crop-r.png', \"id\"=>\"r\", \"title\"=>\"Right\")\n\t\t),\n\t\t\"std\" => \"c\",\n\t\t\"description\" => 'This option is available when the thumbnail will be automatically generated from the preview image (when the \"Thumbnail URL\" field above is empty)- you can see above how the cropping settings will affect both portrait and landscape oriented images.\n\t\t(available for Showcase page template only)'\n\t\t),\n\n\t\t\tarray(\n\t\t\"name\" => \"show_title\",\n\t\t\"title\" => \"Show portfolio title on preview page\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"Show\", \"id\"=>\"show\"),\n\t\tarray(\"name\"=>\"Hide\", \"id\"=>\"hide\")),\n\t\t\"std\" => 'show',\n\t\t\"description\" => 'If \"Show\" selected, the portfolio title will be displayed on the single portfolio page and on the\n\t\tPortfolio Showcase template.'),\n\t\t\n\t\tarray(\n\t\t\"name\" => \"show_preview\",\n\t\t\"title\" => \"Show preview image on preview page\",\n\t\t\"type\" => \"select\",\n\t\t\"options\" => array(array(\"name\"=>\"Show\", \"id\"=>\"show\"),\n\t\tarray(\"name\"=>\"Hide\", \"id\"=>\"hide\")),\n\t\t\"std\" => 'show',\n\t\t\"description\" => 'If \"Show\" selected, the preview image will be displayed on the single portfolio page and on the\n\t\tPortfolio Showcase template.')\n\t\t\n);\n\t\t\n\t\t\n}", "function style_meta_boxes() {\n ?>\n <style>\n .theme-metafield {\n width: 100%;\n padding: 5px;\n box-sizing: border-box;\n }\n .theme-metafield label {\n display: block;\n }\n .theme-metafield textarea, .theme-metafield input {\n width: 100%;\n }\n </style>\n <?\n }", "function widget_sandbox_meta($args) {\n\textract($args);\n\t$options = get_option('widget_meta');\n\t$title = empty($options['title']) ? __( 'Meta', 'sandbox' ) : $options['title'];\n?>\n\t\t\t<?php echo $before_widget; ?>\n\t\t\t\t<?php echo $before_title . $title . $after_title; ?>\n\t\t\t\t<ul>\n\t\t\t\t\t<?php wp_register() ?>\n\n\t\t\t\t\t<li><?php wp_loginout() ?></li>\n\t\t\t\t\t<?php wp_meta() ?>\n\n\t\t\t\t</ul>\n\t\t\t<?php echo $after_widget; ?>\n<?php\n}", "public function getPageLayout() {}", "function ilusix_my_custom_meta_box_callback( $post ) {\n global $myMetaBoxActionId;\n global $myMetaBoxNonceId;\n\n // Set a nonce\n wp_nonce_field( $myMetaBoxActionId, $myMetaBoxNonceId );\n\n $metaBoxContent = ilusix_get_my_meta_box_content( $post->ID );\n\n // Output\n include_once( 'my_meta_box_html.php' );\n}", "function address_meta_box()\n{\n\n\tadd_meta_box('main_address', 'Address Real Estate' , 'address_input', array('apartment', 'villa','land' , 'store') , 'advanced' , 'high',null);\n\n\tadd_meta_box('district_address', 'District Real Estate' , 'address_district_input', array('apartment', 'villa','land' , 'store') , 'advanced' , 'high',null);\n\t\tadd_meta_box('rew_floor', 'Floor Number' , 'rew_floors', array('apartment', 'villa') , 'advanced' , 'high',null);\n\t\tadd_meta_box('rew_rooms', 'Rooms Number' , 'rew_rooms',array('apartment', 'villa') , 'advanced' , 'high',null);\n\t\tadd_meta_box('Apartment_area', 'Real Estate Area' , 'rew_area', array('apartment', 'villa','land' , 'store') , 'advanced' , 'high',null);\n\tadd_meta_box('rew_price', 'Real Estat Price' , 'rew_price', array('apartment', 'villa','land' , 'store') , 'advanced' , 'high',null);\n\n\t/// villa rew_garden\n\tadd_meta_box('rew_garden', 'Garden Real Estate' , 'rew_garden', array( 'villa') , 'advanced' , 'high',null);\n\n}", "function buildCustomPostWidgets()\n {\n // add_meta_box( $id, $title, $callback, $screen, $context, $priority, $callback_args );\n add_meta_box( 'cover_image_meta_box', 'Add an Image', array($this,'selectImageMetaBox'), 'playscripts', 'normal', 'high' );\n add_meta_box( 'cover_sound_meta_box', 'Add a Sound', array($this,'selectSoundMetaBox'), 'playscripts', 'normal', 'high' );\n }", "function greater_jackson_habitat_extra_metabox_content() {\n\t\n\tgreater_jackson_habitat_do_field_textarea( array(\n\t\t'name' => 'gjh_extra',\n\t\t'group' => 'gjh_extra',\n\t\t'wysiwyg' => true,\n\t) );\n\t\n\tgreater_jackson_habitat_init_field_group( 'gjh_extra' );\n\t\n}", "function ahr_add_meta_box() {\r\n \r\n add_meta_box( 'ahr', 'Advaned https redirect', 'ahr_render_meta_box', null, 'normal', 'high', null );\r\n \r\n}", "function vw_hospital_cs_savecustom_meta() {\n add_meta_box( 'cs_meta', __( 'Settings', 'vw-hospital' ), 'w_hospital_cs_appoint_callback' , 'Appointment','normal', 'high' ); \n}", "function add_custom_meta_box() { \nglobal $post, $post_type;\n\n\t// specific template\n\t//if('page-templatename.php' == get_post_meta($post->ID, '_wp_page_template', true)) {\n \tadd_meta_box( \n \t'custom_meta_box', // $id \n\t\t\t'More Stuff!', // $title \n\t\t\t'show_custom_meta_box', // $callback \n\t\t\t'post', // $page \n\t\t\t'normal', // $context \n\t\t\t'high'\n\t\t); // $priority \n\t//}\n\t\n\t//specific post-type\n\t/*if('custom post type' == $post_type) {\n \tadd_meta_box( \n \t'custom_meta_box', // $id \n\t\t\t'Options', // $title \n\t\t\t'show_custom_meta_box', // $callback \n\t\t\t'custom post type', // $page \n\t\t\t'normal', // $context \n\t\t\t'high'\n\t\t); // $priority \n\t}*/\n}", "function of_metabox_function(){\n require_once('of_meta_database.php');\n echo '<h2 class=\"text-left\">OF Metabox and Taxonomy Options<h2><br/>';\n of_settings_page();\n}", "function master_setup_sidebar_metaboxes() {\t\n\tglobal $wp_meta_boxes;\n\t\n\tmaster_sidebar_post_type_meta_boxes(); \t\t\t// Output Posttype Metaboxes\n\tmaster_sidebar_category_posts_metabox(); \t\t// Output Category Posts Metabox\n\tmaster_sidebar_taxonomy_meta_boxes(); \t\t\t// Output Taxonomy Metaboxes\n\tmaster_sidebar_author_meta_box(); \t\t\t// Output Author Archive Metabox\n\tmaster_sidebar_template_hierarchy_meta_box();\t// Output Custom Template Hierarchy Metabox \n}", "function show_metabox_home_position($post){\r\n\r\n\t\t$position_number = get_position($post->ID);\r\n\r\n\t\t\techo \"\r\n\t\t\t<div class='meta-container cf'>\r\n\t\t\t\t<div class='position_mini'>izquierda</div>\r\n\t\t\t\t<div class='position_mini'>centro</div>\r\n\t\t\t\t<div class='position_mini'>derecha</div>\r\n\r\n\t\t\t\t<input class='position_checkbox' type='radio' name='position_meta' value='1' \";\r\n\t\t\t\techo ( $position_number == 1 ) ? 'checked>' : '>' ;\r\n\t\t\t\techo \"\r\n\t\t\t\t<input class='position_checkbox' type='radio' name='position_meta' value='2' \";\r\n\t\t\t\techo ( $position_number == 2 ) ? 'checked>' : '>' ;\r\n\t\t\t\techo \"<input class='position_checkbox' type='radio' name='position_meta' value='3' \";\r\n\t\t\t\techo ( $position_number == 3 ) ? 'checked>' : '>' ;\r\n\t echo \"</div>\";\r\n\r\n\r\n\t}", "public function CltvoDisplayMetabox( $object ){ ?>\n <?php for ($i=0; $i < 2; $i++): ?>\n <div style=\"display: inline-block; width:48%; margin-right: 2%\">\n <p><label>Texto:</label></p>\n <textarea class=\"\" style=\"width:100%;\" name='<?php echo \"$this->meta_key[$i][texto]\";?>'><?php echo $this->meta_value[$i]['texto'];?></textarea>\n </div><div style=\"display: inline-block; width:48%; margin-right: 2%\">\n <p><label>Código de botón de PayPal:</label></p>\n <textarea class=\"\" style=\"width:100%;\" name='<?php echo \"$this->meta_key[$i][boton]\";?>'><?php echo $this->meta_value[$i]['boton'];?></textarea>\n </div>\n <?php endfor; ?>\n\n <?php\n\t}", "public function custom_meta_add() {\n\t\tif( !$this->options->show_on || in_array(get_the_id(), $this->options->show_on ) ){\n\t\t\tforeach( $this->options->display_on as $post_type ){\n\t\t\t\tadd_meta_box(\n\t\t\t\t\t$this->unique_key, // Unique Key\n\t\t\t\t\t$this->options->title ? esc_html__( $this->options->title ) : 'Related Content', //Title\n\t\t\t\t\tarray(&$this, 'custom_meta_render' ), // Callback (builds html)\n\t\t\t\t\t$post_type, // Post type\n\t\t\t\t\t$this->options->context, // Context\n\t\t\t\t\t$this->options->priority, // Priority\n\t\t\t\t\t$callback_args = null\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t}", "public function kiwip_add_meta_box(){\t\t\t\n\t\tadd_meta_box(\n\t\t\t$this->id,\n\t\t\t$this->title,\n\t\t\tarray(&$this, 'kiwip_metabox_callback'),\n\t\t\t$this->cpt_name,\n\t\t\t$this->context,\n\t\t\t$this->priority\n\t\t);\n\t}", "function vulcan_page_meta_boxes() {\r\r\n $meta_boxes = array(\r\r\n \"short_desc\" => array(\r\r\n \"name\" => \"short_desc\",\r\r\n \"title\" => \"Short Description\",\r\r\n \"description\" => \"Add short description to your pages.\",\r\r\n \"type\" => \"textarea\"\r\r\n ),\r\r\n \"page_thumbnail_image\" => array(\r\r\n \"name\" => \"page_thumbnail_image\",\r\r\n \"title\" => \"Thumbnail Image\",\r\r\n \"description\" => \"Add thumbnail image url, will be use for your page thumbnail, for example in Services child pages list.\",\r\r\n \"type\" => \"text\"\r\r\n )\r\r\n );\r\r\n \r\r\n return $meta_boxes;\r\r\n}", "function page_setup_metabox_content( $post ){\n\twp_nonce_field( 'mptheme_layout_save_meta_box', 'mptheme_page_setup_meta_box_nonce' );\n\n\t/*\n\t * Use get_post_meta() to retrieve an existing value\n\t * from the database and use the value for the form.\n\t */\n\t$mptheme_page_setup_show_heading = get_post_meta( $post->ID, 'mptheme_page_setup_show_heading', true );\n\n\tif(!$mptheme_page_setup_show_heading){\n\t\t$mptheme_page_setup_show_heading = 'true';\n\t}\n\t?>\n\t\t<p class=\"post-attributes-label-wrapper\">\n\t\t\t<label class=\"post-attributes-label\"> <?php _e( 'Show page heading', 'mptheme' ); ?> </label>\n\t\t</p>\n\t\t<select name=\"mptheme_page_setup_show_heading\">\n\t\t\t<option value=\"true\" <?php echo selected( $mptheme_page_setup_show_heading, 'true', false); ?>> <?php _e( 'Enable', 'mptheme' ); ?></option>\n\t\t\t<option value=\"false\" <?php echo selected( $mptheme_page_setup_show_heading, 'false', false); ?>> <?php _e( 'Disable', 'mptheme' ); ?></option>;\n\t\t</select>\n\n\t<?php\n\t// if Revolution Slider is available uset can select an slider for the page\n\tif(class_exists('RevSliderAdmin')) {\n\t\tglobal $wpdb;\n\n\t\t$rs = $wpdb->get_results( \n\t\t\t\"\n\t\t\tSELECT id, title, alias\n\t\t\tFROM \".$wpdb->prefix.\"revslider_sliders\n\t\t\tORDER BY id ASC LIMIT 100\n\t\t\t\"\n\t\t);\n\t\t$revsliders = array(array(\n\t\t\t'value' => 'no_slider',\n\t\t\t'label' => 'No Slider'\n\t\t));\n\t\tif ($rs) {\n\t\t\t$_ri = 1;\n\t\t\tforeach ( $rs as $slider ) {\n\t\t\t\t$revsliders[$_ri]['value'] = $slider->alias;\n\t\t\t\t$revsliders[$_ri]['label'] = $slider->title;\n\t\t\t\t$_ri++;\n\t\t\t}\n\t\t} else {\n\t\t\t$revsliders[\"No sliders found\"] = 0;\n\t\t}\n\n\t\tif(count($revsliders)>0 ){\n\t\t\t// Get the saved slider\n\t\t\t$mptheme_page_setup_revslider = get_post_meta( $post->ID, 'mptheme_page_setup_revslider', true );\n\n\t\t\tif(!$mptheme_page_setup_revslider){\n\t\t\t\t$mptheme_page_setup_revslider = 'no_slider';\n\t\t\t}\n\n\t\t?>\n\n\t\t\t<p class=\"post-attributes-label-wrapper\">\n\t\t\t\t<label class=\"post-attributes-label\"> <?php _e( 'Show hero Revolution Slider insted of heading?', 'mptheme' ); ?> </label>\n\t\t\t</p>\n\t\t\t<select name=\"mptheme_page_setup_revslider\">\n\t\t\t\t<?php for ($i=0; $i < count($revsliders); $i++) { ?>\n\t\t\t\t\t<option value=\"<?php echo $revsliders[$i][\"value\"] ?>\" <?php echo selected( $mptheme_page_setup_revslider, $revsliders[$i][\"value\"], false); ?>><?php echo $revsliders[$i][\"label\"] ?></option>\n\t\t\t\t<?php } ?>\n\t\t\t</select>\n\n\t\t<?php }\n\t}\n\t?>\n\n\t<?php\n}", "function render_meta_box_content( $post ) {\n $form_id = get_post_meta( $post->ID, '_wpuf_form_id', true );\n $user_analytics_info = get_post_meta( $post->ID, 'user_analytics_info', true ) ? get_post_meta( $post->ID, 'user_analytics_info', true ) : array();\n ?>\n <table class=\"form-table wpuf-user-analytics-listing\">\n <thead>\n <tr>\n <th><?php _e( 'User info title', 'wpuf-pro' ); ?></th>\n <th><?php _e( 'Value', 'wpuf-pro' ); ?></th>\n </tr>\n </thead>\n <tbody>\n <?php foreach ( $user_analytics_info as $key => $value ): ?>\n <tr>\n <td><strong><?php echo ucfirst( str_replace( '_', ' ', $key ) ); ?></strong></td>\n <td><?php echo $value; ?></td>\n </tr>\n <?php endforeach; ?>\n </tbody>\n </table>\n <style>\n .wpuf-user-analytics-listing td {\n font-size: 13px;\n }\n .wpuf-user-analytics-listing td, .wpuf-user-analytics-listing th {\n padding: 5px 8px;\n }\n </style>\n <?php\n }", "public static function info_box() {\n\t\tglobal $hook_suffix;\n\n\t\tif ( 'post.php' !== $hook_suffix ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_meta_box(\n\t\t\t'munim_estimate_info_box',\n\t\t\t'Quick Info',\n\t\t\t[ __CLASS__, 'render_info_box' ],\n\t\t\t'munim_estimate',\n\t\t\t'side'\n\t\t);\n\t}", "function meta_box($post) {\r\n\t\t$map = get_post_meta($post->ID, '_mapp_map', true);\r\n\t\t$pois = get_post_meta($post->ID, '_mapp_pois', true);\r\n\r\n\t\t// Load the edit map\r\n\t\t// Note that mapTypes is hardcoded = TRUE (so user can change type, even if not displayed in blog)\r\n\t\t$map['maptypes'] = 1;\r\n\t\t$this->map($map, $pois, true);\r\n\r\n\t\t// The <div> will be filled in with the list of POIs\r\n\t\t//echo \"<div id='admin_poi_div'></div>\";\r\n\t}", "private function initializeMetabox()\n {\n\n $this->_metabox = new \\RWC\\Metabox( $this->get_library(), array(\n 'renderer' => 'vertical-tabs',\n 'id' => 'rwc-fundraiser-metabox',\n 'title' => 'Fundraiser Options',\n 'post_types' => array( self::POST_TYPE ),\n 'sections' => array(\n array(\n 'id' => 'payment',\n 'name' => 'Payment'\n ),\n array(\n 'id' => 'customer',\n 'name' => 'Customer Details'\n ),\n array(\n 'id' => 'dates',\n 'name' => 'Open/Close Dates'\n ),\n array(\n 'id' => 'products',\n 'name' => 'Products'\n )\n ),\n 'fields' => array(\n\n 'customer-name' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Customer Name'\n ),\n\n 'customer-business' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Business Name'\n ),\n\n 'address1' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Address 1'\n ),\n\n 'address2' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Address 2'\n ),\n\n 'city' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'City'\n ),\n\n 'state' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'State'\n ),\n\n 'zipcode' => array(\n 'type' => 'text',\n 'section' => 'customer',\n 'name' => 'Zipcode'\n ),\n\n 'paypal-api-username' => array(\n 'type' => 'text',\n 'section' => 'payment',\n 'name' => 'PayPal API Username',\n 'description' => 'The email address associated with ' .\n 'the PayPal account that should receive payment ' .\n 'for this fundraiser.'\n ),\n 'paypal-api-key' => array(\n 'type' => 'text',\n 'section' => 'payment',\n 'name' => 'PayPal API Key',\n 'description' => 'The account\\'s PayPal API password.'\n ),\n 'paypal-api-signature' => array(\n 'type' => 'text',\n 'section' => 'payment',\n 'name' => 'PayPal API Signature',\n 'description' => 'The account\\'s PayPal API signature.'\n ),\n\n 'start-date' => array(\n 'type' => 'date',\n 'section' => 'dates',\n 'name' => 'Start Date',\n ),\n\n 'end-date' => array(\n 'type' => 'date',\n 'section' => 'dates',\n 'name' => 'End Date',\n ),\n\n 'products' => array(\n 'type' => 'fundraiser-products',\n 'section' => 'products',\n 'name' => 'Product Setup'\n )\n )\n ));\n }", "function formulize_meta_box() {\n\t\tadd_meta_box('formulize_sectionid',\n\t __('Formulize', 'formulize_textlabel'),\n\t 'formulize_inner_custom_box',\n\t 'page'\n\t\t);\n}", "function tc_post_metas() {\r\n global $post;\r\n //when do we display the metas ?\r\n //1) we don't show metas on home page, 404, search page by default\r\n //2) +filter conditions\r\n $post_metas_bool = ( tc__f('__is_home') || is_404() || 'page' == $post -> post_type ) ? false : true ;\r\n $post_metas_bool = apply_filters('tc_show_post_metas', $post_metas_bool ); \r\n \r\n if ( ! $post_metas_bool )\r\n return;\r\n\r\n ob_start();\r\n ?>\r\n\r\n <div class=\"entry-meta\">\r\n <?php\r\n if ( 'attachment' == $post -> post_type ) {\r\n $metadata = wp_get_attachment_metadata();\r\n printf( '%1$s <span class=\"entry-date\"><time class=\"entry-date updated\" datetime=\"%2$s\">%3$s</time></span> %4$s %5$s',\r\n '<span class=\"meta-prep meta-prep-entry-date\">'.__('Published' , 'customizr').'</span>',\r\n apply_filters('tc_use_the_post_modified_date' , false ) ? esc_attr( get_the_date( 'c' ) ) : esc_attr( get_the_modified_date('c') ),\r\n esc_html( get_the_date() ),\r\n ( isset($metadata['width']) && isset($metadata['height']) ) ? __('at dimensions' , 'customizr').'<a href=\"'.esc_url( wp_get_attachment_url() ).'\" title=\"'.__('Link to full-size image' , 'customizr').'\"> '.$metadata['width'].' &times; '.$metadata['height'].'</a>' : '',\r\n __('in' , 'customizr').'<a href=\"'.esc_url( get_permalink( $post->post_parent ) ).'\" title=\"'.__('Return to ' , 'customizr').esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ).'\" rel=\"gallery\"> '.get_the_title( $post->post_parent ).'</a>.'\r\n );\r\n }\r\n\r\n else {\r\n\r\n $categories_list = $this -> tc_category_list();\r\n\r\n $tag_list = $this -> tc_tag_list();\r\n\r\n $date = apply_filters( 'tc_date_meta',\r\n sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date updated\" datetime=\"%3$s\">%4$s</time></a>' ,\r\n esc_url( get_day_link( get_the_time( 'Y' ), get_the_time( 'm' ), get_the_time( 'd' ) ) ),\r\n esc_attr( get_the_time() ),\r\n apply_filters('tc_use_the_post_modified_date' , false ) ? esc_attr( get_the_date( 'c' ) ) : esc_attr( get_the_modified_date('c') ),\r\n esc_html( get_the_date() )\r\n )\r\n );//end filter\r\n\r\n $author = apply_filters( 'tc_author_meta',\r\n sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>' ,\r\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\r\n esc_attr( sprintf( __( 'View all posts by %s' , 'customizr' ), get_the_author() ) ),\r\n get_the_author()\r\n )\r\n );//end filter\r\n\r\n // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\r\n $utility_text = '';\r\n if ( $tag_list ) {\r\n $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n } elseif ( $categories_list ) {\r\n $utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n } else {\r\n $utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n }\r\n $utility_text = apply_filters( 'tc_meta_utility_text', $utility_text );\r\n\r\n //echoes every metas components\r\n printf(\r\n $utility_text,\r\n $categories_list,\r\n $tag_list,\r\n $date,\r\n $author\r\n );\r\n }//endif attachment\r\n ?>\r\n\r\n </div><!-- .entry-meta -->\r\n\r\n <?php\r\n $html = ob_get_contents();\r\n if ($html) ob_end_clean();\r\n echo apply_filters( 'tc_post_metas', $html );\r\n }", "function rosemary_meta_callback( $post ) {\r\n wp_nonce_field( basename( __FILE__ ), 'rosemary_nonce' );\r\n $rosemary_stored_meta = get_post_meta( $post->ID );\r\n\tglobal $typenow;\r\n ?>\r\n\t\r\n<?php if($typenow == 'page') : ?>\r\n\t<div id=\"sp-blog-options\">\r\n\t\t\r\n\t\t<p class=\"guten-message\">Make sure to select the \"<strong>Page Blog Template</strong>\" under <strong>Page Attributes</strong> if using the below settings.</p>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<label for=\"meta-text-blog-heading\" class=\"prfx-row-title\"><?php _e( 'Blog Heading', 'solopine' )?></label>\r\n\t\t\t<input type=\"text\" name=\"meta-text-blog-heading\" id=\"meta-text-blog-heading\" value=\"<?php if ( isset ( $rosemary_stored_meta['meta-text-blog-heading'] ) ) echo $rosemary_stored_meta['meta-text-blog-heading'][0]; ?>\" />\r\n\t\t</p>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<label for=\"meta-select-blog-layout\" class=\"prfx-row-title\"><?php _e( 'Blog Layout', 'solopine' )?></label>\r\n\t\t\t<select name=\"meta-select-blog-layout\" id=\"meta-select-blog-layout\">\r\n\t\t\t\t<option value=\"full_post\" <?php if ( isset ( $rosemary_stored_meta['meta-select-blog-layout'] ) ) selected( $rosemary_stored_meta['meta-select-blog-layout'][0], 'full_post' ); ?>><?php _e( 'Full Post Layout', 'solopine' )?></option>';\r\n\t\t\t\t<option value=\"grid\" <?php if ( isset ( $rosemary_stored_meta['meta-select-blog-layout'] ) ) selected( $rosemary_stored_meta['meta-select-blog-layout'][0], 'grid' ); ?>><?php _e( 'Grid Layout', 'solopine' )?></option>';\r\n\t\t\t\t<option value=\"full_grid\" <?php if ( isset ( $rosemary_stored_meta['meta-select-blog-layout'] ) ) selected( $rosemary_stored_meta['meta-select-blog-layout'][0], 'full_grid' ); ?>><?php _e( '1 Full then Grid', 'solopine' )?></option>';\r\n\t\t\t\t<option value=\"list\" <?php if ( isset ( $rosemary_stored_meta['meta-select-blog-layout'] ) ) selected( $rosemary_stored_meta['meta-select-blog-layout'][0], 'list' ); ?>><?php _e( 'List Layout', 'solopine' )?></option>';\r\n\t\t\t\t<option value=\"full_list\" <?php if ( isset ( $rosemary_stored_meta['meta-select-blog-layout'] ) ) selected( $rosemary_stored_meta['meta-select-blog-layout'][0], 'full_list' ); ?>><?php _e( '1 Full then List', 'solopine' )?></option>';\r\n\t\t\t</select>\r\n\t\t</p>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<label for=\"meta-number-posts\" class=\"prfx-row-title\"><?php _e( '# of Posts Per Page', 'solopine' )?></label>\r\n\t\t\t<input type=\"number\" min=\"1\" max=\"100\" step=\"1\" name=\"meta-number-posts\" id=\"meta-number-posts\" value=\"<?php if ( isset ( $rosemary_stored_meta['meta-number-posts'] ) ) : echo $rosemary_stored_meta['meta-number-posts'][0]; else : echo 9; endif; ?>\" />\r\n\t\t</p>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<label for=\"meta-blog-category\" class=\"prfx-row-title\"><?php _e( 'Filter by Category (slug)', 'solopine' )?></label>\r\n\t\t\t<input type=\"text\" name=\"meta-blog-category\" id=\"meta-blog-category\" value=\"<?php if ( isset ( $rosemary_stored_meta['meta-blog-category'] ) ) echo $rosemary_stored_meta['meta-blog-category'][0]; ?>\" />\r\n\t\t\t<small style=\"display:block;\">Separate category slugs with a comma. Leave this field blank to show all categories.</small>\r\n\t\t</p>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<span class=\"prfx-row-title\"><?php _e( 'Fullwidth Layout (no sidebar)', 'solopine' )?>:</span>\r\n\t\t\t<div class=\"prfx-row-content\">\r\n\t\t\t\t<label for=\"meta-checkbox-fullwidth\">\r\n\t\t\t\t\t<input type=\"checkbox\" name=\"meta-checkbox-fullwidth\" id=\"meta-checkbox-fullwidth\" value=\"yes\" <?php if ( isset ( $rosemary_stored_meta['meta-checkbox-fullwidth'] ) ) checked( $rosemary_stored_meta['meta-checkbox-fullwidth'][0], 'yes' ); ?> />\r\n\t\t\t\t</label>\r\n\t\t\t</div>\r\n\t\t</p>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<span class=\"prfx-row-title\"><?php _e( 'Include Page Content', 'solopine' )?>:</span>\r\n\t\t\t<div class=\"prfx-row-content\">\r\n\t\t\t\t<label for=\"meta-checkbox-page-content\">\r\n\t\t\t\t\t<input type=\"checkbox\" name=\"meta-checkbox-page-content\" id=\"meta-checkbox-page-content\" value=\"yes\" <?php if ( isset ( $rosemary_stored_meta['meta-checkbox-page-content'] ) ) checked( $rosemary_stored_meta['meta-checkbox-page-content'][0], 'yes' ); ?> />\r\n\t\t\t\t</label>\r\n\t\t\t</div>\r\n\t\t</p>\t\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<span class=\"prfx-row-title\"><?php _e( 'Include Featured Slider', 'solopine' )?>:</span>\r\n\t\t\t<div class=\"prfx-row-content\">\r\n\t\t\t\t<label for=\"meta-checkbox-blog-slider\">\r\n\t\t\t\t\t<input type=\"checkbox\" name=\"meta-checkbox-blog-slider\" id=\"meta-checkbox-blog-slider\" value=\"yes\" <?php if ( isset ( $rosemary_stored_meta['meta-checkbox-blog-slider'] ) ) checked( $rosemary_stored_meta['meta-checkbox-blog-slider'][0], 'yes' ); ?> />\r\n\t\t\t\t</label>\r\n\t\t\t</div>\r\n\t\t</p>\r\n\t\t<p>\r\n\t\t\t<span class=\"prfx-row-title\"><?php _e( 'Include Promo Boxes', 'solopine' )?>:</span>\r\n\t\t\t<div class=\"prfx-row-content\">\r\n\t\t\t\t<label for=\"meta-checkbox-blog-promo\">\r\n\t\t\t\t\t<input type=\"checkbox\" name=\"meta-checkbox-blog-promo\" id=\"meta-checkbox-blog-promo\" value=\"yes\" <?php if ( isset ( $rosemary_stored_meta['meta-checkbox-blog-promo'] ) ) checked( $rosemary_stored_meta['meta-checkbox-blog-promo'][0], 'yes' ); ?> />\r\n\t\t\t\t</label>\r\n\t\t\t</div>\r\n\t\t</p>\t\r\n\t\t\r\n\t</div>\r\n\t\r\n\t<?php endif; \r\n\r\n}", "function sp_add_custom_box() {\n\tif( function_exists( 'add_meta_box' )) {\n\t\tadd_meta_box( 'sp_custom_box_1', __( 'General Property Info', 'sp' ), 'sp_inner_custom_box_1', 'post', 'normal', 'high' );\n\t\tadd_meta_box( 'sp_custom_box_2', __( 'Property Details', 'sp' ), 'sp_inner_custom_box_2', 'post', 'normal', 'high' );\n\t\tadd_meta_box( 'sp_custom_box_3', __( 'Property Photos', 'sp' ), 'sp_inner_custom_box_3', 'post', 'normal', 'high' );\n\t}\n}", "function link_xfn_meta_box($link)\n {\n }", "function load_meta_box(){\n\t\tadd_action('add_meta_boxes', array($this, 'meta_box_hook'));\n\t}", "function display_staff_info_meta_box( $rbm_staff ) {\n $staff_title = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_staff_title', true));\n $staff_fact = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_staff_fact', true));\n $staff_thumbnail_src = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_secondary_img', true));\n $staff_thumbnail_fun_src = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_fun_img', true));\n $staff_facebook = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_facebook', true));\n $staff_twitter = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_twitter', true));\n $staff_email = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_email', true));\n $staff_linkedin = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_linkedin', true));\n $staff_skills = esc_html(get_post_meta( $rbm_staff->ID, 'rbm_skillset', true));\n $skills_array = explode(',', $staff_skills);\n ?>\n <style>\n /* Custom Styles for table, inspired by Semantic UI */\n\n #rbm_metabox input {\n margin: 0;\n max-width: 100%;\n -webkit-box-flex: 1;\n -webkit-flex: 1 0 auto;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n outline: 0;\n -webkit-tap-highlight-color: rgba(255,255,255,0);\n text-align: left;\n line-height: 1.2142em;\n font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;\n padding: .67861429em 1em;\n background: #FFF;\n border: 1px solid rgba(34,36,38,.15);\n color: rgba(0,0,0,.87);\n border-radius: .28571429rem;\n -webkit-transition: box-shadow .1s ease,border-color .1s ease;\n transition: box-shadow .1s ease,border-color .1s ease;\n box-shadow: none;\n }\n #rbm_metabox button {\n min-height: 1em;\n height: initial;\n vertical-align: baseline;\n padding: .78571429em 1.5em;\n line-height: 1em;\n }\n </style>\n <table id=\"rbm_metabox\" style=\"width: 100%\">\n <tbody>\n <tr>\n <td>Title: </td>\n <td><input type=\"text\" placeholder=\"Title\" value=\"<?php echo $staff_title; ?>\" name=\"rbm_staff_title\"></td>\n </tr>\n <tr>\n <td>Secondary Image: </td>\n <td>\n <div class=\"uploader\">\n \t<input id=\"rbm_staff_img\" name=\"rbm_staff_img\" type=\"text\" value=\"<?php echo $staff_thumbnail_src; ?>\" />\n \t<button id=\"rbm_staff_img_button\" class=\"button\" name=\"rbm_staff_img_button\" value=\"Upload\" >Upload</button>\n </div>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\"><hr></td>\n </tr>\n <tr>\n <td>Fun Fact: </td>\n <td><input type=\"text\" placeholder=\"Fun Fact\" value=\"<?php echo $staff_fact; ?>\" name=\"rbm_staff_fact\"></td>\n </tr>\n <tr>\n <td>Fun Photo: </td>\n <td>\n <div class=\"uploader\">\n \t<input id=\"rbm_fun_img\" name=\"rbm_fun_img\" type=\"text\" value=\"<?php echo $staff_thumbnail_fun_src; ?>\" />\n \t<button id=\"rbm_fun_img_button\" class=\"button\" name=\"rbm_fun_img_button\" value=\"Upload\">Upload</button>\n </div>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\"><hr></td>\n </tr>\n <tr>\n <td>Expertise</td>\n <td>\n <?php\n $options = get_option( 'rbm_settings' );\n foreach($options['rbm_skills'] as $key => $value) {\n ?>\n <input id=\"skill-<?php echo $value[0];?>\" type=\"checkbox\" name=\"rbm_skillset[]\" value=\"<?php echo $value[0]; ?>\" <?php if (in_array($value[0], $skills_array)) { echo \"checked\";} ?>>\n <label for=\"skill-<?php echo $value[0]; ?>\"><img src=\"<?php echo $value[1]; ?>\" width=\"16\" height=\"16\" style=\"border-radius: 50%;\"> <?php echo $value[0]; ?></label>\n <br>\n <?php } ?>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\"><hr></td>\n </tr>\n <tr>\n <td>Facebook</td>\n <td><input type=\"text\" placeholder=\"www.facebook.com\" name=\"rbm_facebook\" value=\"<?php echo $staff_facebook; ?>\"></td>\n </tr>\n <tr>\n <td>Twitter</td>\n <td><input type=\"text\" placeholder=\"www.twitter.com\" name=\"rbm_twitter\" value=\"<?php echo $staff_twitter; ?>\"></td>\n </tr>\n <tr>\n <td>Email</td>\n <td><input type=\"text\" placeholder=\"name@email.com\" name=\"rbm_email\" value=\"<?php echo $staff_email; ?>\"></td>\n </tr>\n <tr>\n <td>LinkedIn</td>\n <td><input type=\"text\" placeholder=\"www.linkedin.com\" name=\"rbm_linkedin\" value=\"<?php echo $staff_linkedin; ?>\"></td>\n </tr>\n </tbody>\n </table>\n\n <script>\n // Script to run for the media uploader\n jQuery(document).ready(function($) {\n var custom_media = true,\n orig_send_attachment = wp.media.editor.send.attachment;\n\n $('#rbm_metabox .button').click(function(e) {\n var send_attachment_bkp = wp.media.editor.send.attachment;\n var button = $(this);\n var id = button.attr('id').replace('_button', '');\n custom_media = true;\n\n wp.media.editor.send.attachment = function(props, attachment) {\n if(custom_media) {\n $(\"#\" + id).val(attachment.url);\n } else {\n return orig_send_attachment.apply( this, [props, attachment] );\n }\n }\n\n wp.media.editor.open(button);\n return false\n });\n\n $('.add_media').on('click', function() {\n custom_media = false;\n });\n });\n </script>\n<?php }", "function sr_add_meta_pagebuilder() { \n add_meta_box( \n 'meta_pagebuilder', // $id \n __('Pagebuilder', 'sr_avoc_theme'), // $title \n 'sr_show_meta_pagebuilder', // $callback \n 'page', // $page \n 'normal', // $context \n 'high'); // $priority\n\t\t\n\tadd_meta_box( \n 'meta_pagebuilder', // $id \n __('Pagebuilder', 'sr_avoc_theme'), // $title \n 'sr_show_meta_pagebuilder', // $callback \n 'portfolio', // $page \n 'normal', // $context \n 'high'); // $priority\t\t\n}", "function ipr_meta_box() {\n\tglobal $post_ID;\n\n\t$feedtitle = get_post_meta($post_ID, 'ipr_feedtitle', true);\n\t$feedurl = get_post_meta($post_ID, 'ipr_feedurl', true);\n\t$feednumitems = get_post_meta($post_ID, 'ipr_feednumitems', true);\n\n\techo \"<input type=\\\"hidden\\\" name=\\\"ipr_nonce\\\" id=\\\"ipr_nonce\\\" value=\\\"\" . wp_create_nonce(md5(plugin_basename(__FILE__))) . \"\\\" />\";\n?>\n\t\t<table id=\"newmeta1\">\n\t\t\t<tr><th>Feed Title</th><td><input type=\"text\" size=\"60\" tabindex=\"900\" id=\"ipr_feedtitle\" name=\"ipr_feedtitle\" value=\"<?php echo $feedtitle;?>\"></td></tr>\n\t\t\t<tr><th>Feed URL</th><td><input type=\"text\" size=\"60\" tabindex=\"901\" id=\"ipr_feedurl\" name=\"ipr_feedurl\" value=\"<?php echo $feedurl;?>\"></td></tr>\n\t\t</table>\n\n\t<?php\n\t}", "function rng_METANAME_metabox_init() {\n}", "function my_top_right_help_metabox_content() { ?>\n <p>Assicurati di cliccare sul pulsante 'Pubblica' sottostante per pubblicare la nuova voce del menù, oppure 'Aggiorna' per salvare le modifiche.</p>\n<?php }" ]
[ "0.6559966", "0.64142287", "0.6340764", "0.6281709", "0.6202757", "0.6090184", "0.6037054", "0.6016352", "0.60038114", "0.59902316", "0.5977427", "0.59671557", "0.59513235", "0.5950319", "0.5947338", "0.59346056", "0.5899951", "0.5873328", "0.5858135", "0.58560306", "0.5847351", "0.5843147", "0.5830503", "0.58295137", "0.5806716", "0.5795309", "0.5791637", "0.57838285", "0.5780416", "0.5779004", "0.57775", "0.57706594", "0.5760827", "0.57566404", "0.5742966", "0.5729767", "0.57271", "0.57248217", "0.57214785", "0.5719783", "0.5710295", "0.57084507", "0.57046497", "0.5700854", "0.5690005", "0.568432", "0.5671922", "0.5665369", "0.5662123", "0.56554455", "0.564364", "0.56360835", "0.5630474", "0.5629012", "0.5627162", "0.5620706", "0.561822", "0.5614412", "0.5611593", "0.5609076", "0.5604179", "0.559846", "0.5596517", "0.559547", "0.55950755", "0.5588721", "0.5568226", "0.5567342", "0.55668235", "0.5566574", "0.5551789", "0.5546631", "0.55454105", "0.55430275", "0.55404484", "0.5535351", "0.55351084", "0.55245596", "0.5521989", "0.5521075", "0.5519468", "0.55156493", "0.551466", "0.5514137", "0.5509187", "0.5507269", "0.5498751", "0.5493501", "0.5490735", "0.54903024", "0.5488694", "0.54885006", "0.5487392", "0.5485099", "0.5484821", "0.5484417", "0.5483507", "0.5469193", "0.54666555", "0.5466237", "0.5462533" ]
0.0
-1
Save custom layout meta data
public function save_fields( $post_id ) { $settings = $this->layout_settings; $screen = $settings['screen']; $layout = $settings['layout']; $metas = get_theme_mod( '_custom_layout_posts' ); $meta = isset( $metas[ $post_id ] ) ? $metas[ $post_id ] : array(); $new = array(); // don't save if $_POST is empty if ( empty( $_POST ) ) { return $post_id; } // don't save during autosave if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return $post_id; } // check nonce if ( ! isset( $_POST['_kopa_custom_layout'] ) ) { return $post_id; } // verify nonce if ( ! wp_verify_nonce( $_POST['_kopa_custom_layout'], $screen . '_custom_layout' ) ) { return $post_id; } /* check permissions */ if ( isset( $_POST['post_type'] ) && 'page' == $_POST['post_type'] ) { if ( ! current_user_can( 'edit_page', $post_id ) ) { return $post_id; } } else { if ( ! current_user_can( 'edit_post', $post_id ) ) { return $post_id; } } // custom layout data if ( isset( $_POST[ '_custom_layout' ] ) && $_POST[ '_custom_layout' ] ) { $new['data'] = $_POST['_custom_layout']; } // use custom layout or not if ( isset( $_POST[ '_use_custom_layout' ] ) && $_POST[ '_use_custom_layout' ] ) { $new['use'] = $_POST[ '_use_custom_layout' ]; } else { $new['use'] = 0; } $new = wp_parse_args( $new, $meta ); if ( has_filter( 'kopa_sanitize_option_layout_manager' ) ) { $new = apply_filters( 'kopa_sanitize_option_layout_manager', $new, null ); } $metas[ $post_id ] = $new; set_theme_mod( '_custom_layout_posts', $metas ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function responsive_save_layout_post_metadata(){\n\tglobal $post;\n\tif ( ! isset( $post ) || ! is_object( $post ) ) {\n\t\treturn;\n\t}\n\t$valid_layouts = responsive_get_valid_layouts();\n\t$layout = ( isset( $_POST['_responsive_layout'] ) && array_key_exists( $_POST['_responsive_layout'], $valid_layouts ) ? $_POST['_responsive_layout'] : 'default' );\n\n\tupdate_post_meta( $post->ID, '_responsive_layout', $layout );\n}", "protected function save_meta() {}", "protected function save_meta() {\n\t\t// save report meta details\n\t\tupdate_comment_meta( $this->id, APP_REPORTS_C_DATA_KEY, $this->get_meta() );\n\t}", "public function saveLayout($layout){\n $this->layout = json_encode($layout);\n $this->update(array('layout'));\n }", "protected function save_meta() {\n\n\t\t// save all data in array\n\t\tupdate_post_meta( $this->post_id, APP_REPORTS_P_DATA_KEY, $this->meta );\n\n\t\t// also save total reports in separate meta for sorting queries\n\t\tupdate_post_meta( $this->post_id, APP_REPORTS_P_TOTAL_KEY, $this->total_reports );\n\t}", "protected function save_meta() {\n\n\t\t// save all data in array\n\t\tupdate_user_meta( $this->user_id, APP_REPORTS_U_DATA_KEY, $this->meta );\n\n\t\t// also save total reports in separate meta for sorting queries\n\t\tupdate_user_meta( $this->user_id, APP_REPORTS_U_TOTAL_KEY, $this->total_reports );\n\t}", "public function saveData($data)\n\t {\n\t \t$name = self::getNameMetaBox($data['_title_meta_box']);\n\n\t \t$content = self::getDataMetas();\n\t \t$data['_name_meta_box'] = $name;\n\t \t$content[$name] = $data;\n\t \tupdate_option('metas-custom', $content);\n\t }", "protected function writeMetadata() {\n $_SESSION[self::METADATA_KEY] = $this->metadata;\n }", "public function saveLayout(){\n\t\t$request\t = $this->getRequest();\n\t\t$sections = $request->getParam('sections', array());\n\t\t$items = $request->getParam('items', array());\n\t\t$template_id = $request->getParam('template_id', null);\n\t\t$page_id = $request->getParam('page_id', null);\n\t\t$table = $this->_getParam('table');\n\n\t\t$sections = array_filter($sections);\n\t\t$items = array_filter($items);\n\n\t\t$sectionAdd\t = array();\n\t\t$itemAdd = array();\n\n\t\tforeach($sections as $sequence => $data){\n\t\t\t$sxnId = intval($this->_utility->getPiece($data));\n\t\t\tif(isset($items[$sxnId])){\n\t\t\t\t$itemAdd[$sxnId] \t= $this->processField($items[$sxnId]);\n\t\t\t\t$sectionAdd[$sxnId] = intval($sequence);\n\t\t\t}\n\t\t}\n\n\t\t$itemAdd = array_filter($itemAdd);\n\n\t\tAdmin_Model_TemplateSection::saveSectionOrder($template_id, $sectionAdd);\n\t\tAdmin_Model_PageLayout::updateLayout($page_id, $template_id, $table, $itemAdd, $sectionAdd);\n\t}", "function saveMetadata(){\n\t\t \n\t\t $db = $this->startDB();\n\t\t $metadataJSON = $this->generateJSON();\n\t\t \n\t\t $where = \"source_id = '\".$this->penelopeTabID.\"' \";\n\t\t $db->delete(\"export_tabs_meta\", $where);\n\t\t \n\t\t if(!$this->tableGroupID){\n\t\t\t\t$this->tableGroupID = false;\n\t\t }\n\t\t if(!$this->tablePage){\n\t\t\t\t$this->tablePage = false;\n\t\t }\n\t\t \n\t\t if($this->tablePage < 1){\n\t\t\t\tif(strstr($this->tableID, \"/\")){\n\t\t\t\t\t $tableEx = explode(\"/\", $this->tableID);\n\t\t\t\t\t $this->tablePage = $tableEx[1];\n\t\t\t\t\t $this->tableGroupID = $tableEx[0];\n\t\t\t\t}\n\t\t }\n\t\t if(strstr($this->tableGroupID, \"/\")){\n\t\t\t\t$tableEx = explode(\"/\", $this->tableGroupID);\n\t\t\t\t$this->tableGroupID = $tableEx[0];\n\t\t }\n\t\t \n\t\t $data = array(\t\"source_id\" => $this->penelopeTabID,\n\t\t\t\t\t\t\t\t\"tableID\" => $this->tableID,\n\t\t\t\t\t\t\t\t\"tableGroupID\" => $this->tableGroupID,\n\t\t\t\t\t\t\t\t\"page\" => $this->tablePage,\n\t\t\t\t\t\t\t\t\"title\" => $this->tableName,\n\t\t\t\t\t\t\t\t\"published\" => $this->published,\n\t\t\t\t\t\t\t\t\"pub_created\" => $this->pubCreated,\n\t\t\t\t\t\t\t\t\"pub_update\" => $this->pubUpdate,\n\t\t\t\t\t\t\t\t\"metadata\" => $metadataJSON\n\t\t\t\t\t\t );\n\t\t \n\t\t $db->insert(\"export_tabs_meta\", $data);\n\t }", "protected function MetaAfterSave() {\n\t\t}", "public static function save() {\n\t\t\t$page_title = $_POST['page_title'];\n\t\t\t$meta['dod_custom_css'] = $_POST['custom_css'];\n\t\t\t$meta['_wp_page_template'] = $_POST['page_template'];\n\t\t\treturn dd_update_page(get_option('dod_page_id'), $page_title, '', $meta);\n\t\t}", "function afterLayout() { \t\t\n }", "public function saveAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t// check if form is posted\n\t\tif($this->_request->isPost())\n\t\t{\n\t\t\t$arrData = array();\n\t\t\t$arrData['layout_name'] = $this->_request->getPost('layout_name');\n\t\t\t$arrData['folder_name'] = $this->_request->getPost('folder_name');\n\t\t\t$arrData['title'] \t\t= $this->_request->getPost('title');\n\t\t\t$arrData['sections'] \t= $this->_request->getPost('sections');\n\t\t\t$arrData['thumb']\t \t= $this->_request->getPost('thumb');\n\t\t\t$id = $this->_request->getPost('id');\n\t\t\t$model->updateLayout($arrData, $id);\n\t\t\t$this->_redirect('/admin/layout/list');\n\t\t}\n\t\telse\n\t\t\t$this->_redirect('/admin/layout/list');\n\t }", "private function save_paypal_meta_data()\n {\n $postMeta = [\n 'payer_email' => 'Payer PayPal address',\n 'first_name' => 'Payer first name',\n 'last_name' => 'Payer last name',\n 'payment_type' => 'Payment type',\n ];\n\n foreach ($postMeta as $key => $name) {\n $value = wc_clean($this->request->get($key, FILTER_DEFAULT));\n $value and update_post_meta($this->order->get_id(), $name, $value);\n }\n }", "function save_layout_xml($sxe) {\n\t\n\tif (empty($_POST['page_title']))\n $_POST['page_title'] = \"\";\n if (empty($_POST['cs_layout']))\n $_POST['cs_layout'] = \"\";\n if (empty($_POST['cs_sidebar_left']))\n $_POST['cs_sidebar_left'] = \"\";\n if (empty($_POST['cs_sidebar_right']))\n $_POST['cs_sidebar_right'] = \"\";\n\t$sxe->addChild('page_title', $_POST['page_title']);\n\t$sidebar_layout = $sxe->addChild('sidebar_layout');\n\t\t$sidebar_layout->addChild('cs_layout', $_POST[\"cs_layout\"]);\n\t\tif ($_POST[\"cs_layout\"] == \"left\") {\n\t\t\t$sidebar_layout->addChild('cs_sidebar_left', $_POST['cs_sidebar_left']);\n\t\t} else if ($_POST[\"cs_layout\"] == \"right\") {\n\t\t\t$sidebar_layout->addChild('cs_sidebar_right', $_POST['cs_sidebar_right']);\n\t\t}else if ($_POST[\"cs_layout\"] == \"both_right\" or $_POST[\"cs_layout\"] == \"both_left\" or $_POST[\"cs_layout\"] == \"both\") {\n\t\t\t$sidebar_layout->addChild('cs_sidebar_left', $_POST['cs_sidebar_left']);\n\t\t\t$sidebar_layout->addChild('cs_sidebar_right', $_POST['cs_sidebar_right']);\n\t\t}\n return $sxe;\n}", "function facebook_instant_articles_field_ui_layouts_save($form, &$form_state) {\n $weight = 0;\n\n // Get default values.\n $entity_type = $form['#entity_type'];\n $bundle = $form['#bundle'];\n $view_mode = $form['#view_mode'];\n\n // Determine layout variables.\n $layout = 'facebook_instant_article';\n\n // Save layout and add regions if necessary.\n $record = new stdClass();\n $record->id = $form['#export_id'];\n $record->entity_type = $entity_type;\n $record->bundle = $bundle;\n $record->settings = array();\n\n $form_state['layout_saved'] = TRUE;\n\n $fields = facebook_instant_articles_sort_fields($form_state['values']['fields'], 'weight');\n\n foreach ($fields as $key => $field) {\n\n // Make sure we need to save anything for this field.\n if (facebook_instant_articles_field_valid($key, $field, $form_state, $view_mode)) {\n continue;\n }\n\n if (!isset($record->settings['regions'][$field['region']])) {\n $record->settings['regions'][$field['region']] = array();\n }\n $record->settings['regions'][$field['region']][$weight++] = $key;\n $record->settings['fields'][$key] = $field['region'];\n\n // Save limit.\n $limit = isset($field['format']['limit']) ? trim($field['format']['limit']) : '';\n if (is_numeric($limit) || $limit === 'delta') {\n $record->settings['limit'][$key] = $limit;\n }\n }\n\n // Let other modules alter the layout settings.\n drupal_alter('facebook_instant_articles_layout_settings', $record, $form_state);\n\n $layout = $form['#fbia_layout'];\n if (!isset($layout->export_type)) {\n drupal_write_record('facebook_instant_articles_layout_settings', $record);\n }\n else {\n drupal_write_record('facebook_instant_articles_layout_settings', $record, array('id'));\n }\n\n // Clear entity info cache.\n cache_clear_all('entity_info', 'cache', TRUE);\n}", "function afterLayout() {\n\t\tif ($this->auto_store_cache) {\n\t\t\t$this->_storeCaches();\n\t\t}\n\t}", "static function save_custom_sidebar() {\r\n\r\n\t\t\t//theme options\r\n\t\t\tglobal $look_ruby_theme_options;\r\n\r\n\t\t\t$sidebar_data = array();\r\n\t\t\t$sidebar_data[] = array(\r\n\t\t\t\t'id' => 'look_ruby_sidebar_default',\r\n\t\t\t\t'name' => esc_html__( 'Default Sidebar', 'look' ),\r\n\t\t\t);\r\n\r\n\t\t\t//add to array data\r\n\t\t\tif ( ! empty( $look_ruby_theme_options['look_ruby_multi_sidebar'] ) && is_array( $look_ruby_theme_options['look_ruby_multi_sidebar'] ) ) {\r\n\t\t\t\tforeach ( $look_ruby_theme_options['look_ruby_multi_sidebar'] as $sidebar ) {\r\n\t\t\t\t\tarray_push( $sidebar_data, array(\r\n\t\t\t\t\t\t\t'id' => 'look_ruby_sidebar_multi_' . self::name_to_id( $sidebar ),\r\n\t\t\t\t\t\t\t'name' => esc_attr( strip_tags( $sidebar ) ),\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//save to database\r\n\t\t\t$multi_sidebar = get_option( 'look_ruby_custom_multi_sidebars', '' );\r\n\t\t\tif ( ! empty( $multi_sidebar ) ) {\r\n\t\t\t\tupdate_option( 'look_ruby_custom_multi_sidebars', $sidebar_data );\r\n\t\t\t} else {\r\n\t\t\t\tadd_option( 'look_ruby_custom_multi_sidebars', $sidebar_data );\r\n\t\t\t}\r\n\t\t}", "function mptheme_layout_save_meta_box( $post_id ){\n\n\t/*\n\t * We need to verify this came from our screen and with proper authorization,\n\t * because the save_post action can be triggered at other times.\n\t */\n\n\t// Check if our nonce is set.\n\tif ( ! isset( $_POST['mptheme_page_setup_meta_box_nonce'] ) ) {\n\t\treturn;\n\t}\n\n\t// Verify that the nonce is valid.\n\tif ( ! wp_verify_nonce( $_POST['mptheme_page_setup_meta_box_nonce'], 'mptheme_layout_save_meta_box' ) ) {\n\t\treturn;\n\t}\n\n\t// If this is an autosave, our form has not been submitted, so we don't want to do anything.\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\n\t// Check the user's permissions.\n\tif ( ! current_user_can( 'edit_post', $post_id ) ) {\n\t\treturn;\n\t}\n\n\t/* OK, it's safe for us to save the data now. */\n\t\n\t// Make sure that it is set.\n\tif ( isset( $_POST['mptheme_page_setup_show_heading'] ) ) {\n\t\t// Sanitize user input.\n\t\t$sq_data = sanitize_text_field( $_POST['mptheme_page_setup_show_heading'] );\n\t\t// Update the meta field in the database.\n\t\tupdate_post_meta( $post_id, 'mptheme_page_setup_show_heading', $sq_data );\n\t}\n\n\t// Make sure that it is set.\n\tif ( isset( $_POST['mptheme_page_setup_revslider'] ) ) {\n\t\t// Sanitize user input.\n\t\t$sq_data = sanitize_text_field( $_POST['mptheme_page_setup_revslider'] );\n\t\t// Update the meta field in the database.\n\t\tif ($sq_data == \"no_slider\") {\n\t\t\tdelete_post_meta( $post_id, 'mptheme_page_setup_revslider' );\n\t\t} else {\n\t\t\tupdate_post_meta( $post_id, 'mptheme_page_setup_revslider', $sq_data );\n\t\t}\n\t}\n\t\t\n}", "public function setPageInfo($pageName, $info, $layout = []){\n $defaultTheme = env('THEME', 'default');\n $path = app_path() . \"/../resources/views/themes/$defaultTheme/\";\n $pagePath = $path . \"pages/\" . $pageName . '.blade.php';\n if (file_exists($pagePath)){ \n $content = file_get_contents($pagePath);\n\n if (isset($layout['old-layout']) && $layout['old-layout']){\n if (isset($layout['layout']) && $layout['layout']){\n $content = str_replace($layout['old-layout'], $layout['layout'], $content);\n }\n \n }\n else{\n if (isset($layout['layout']) && $layout['layout']){\n $content = \"@extends('\" . $layout['layout'] . \"')\\n\\n\" . $content;\n }\n }\n $content = $this->replaceInfo($content, json_encode($info, JSON_PRETTY_PRINT));\n file_put_contents($pagePath, $content);\n return true;\n }\n else{\n return false;\n }\n }", "public function save()\n\t{\n\t\t//creat and fill Media object\n\t\t$footer = $this->cloneFooter();\n\t\t\n\t\t$pdo = Base::getConnection();\n\t\t$pdo->exec('TRUNCATE TABLE footer');\n\n\t\tBase::insert($footer, \"footer\");\n\t}", "function cs_meta_layout(){\n\tglobal $cs_xmlObject;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_layout) ) $cs_layout = \"\"; else $cs_layout = $cs_xmlObject->sidebar_layout->cs_layout;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_sidebar_left) ) $cs_sidebar_left = \"\"; else $cs_sidebar_left = $cs_xmlObject->sidebar_layout->cs_sidebar_left;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_sidebar_right) ) $cs_sidebar_right = \"\"; else $cs_sidebar_right = $cs_xmlObject->sidebar_layout->cs_sidebar_right;\n ?>\n\t<div class=\"elementhidden\">\n <div class=\"clear\"></div>\n \t<div class=\"opt-head\">\n <h4>Layout Options</h4>\n <div class=\"clear\"></div>\n </div>\n <ul class=\"form-elements\">\n <li class=\"to-label\">\n <label>Select Layout</label>\n </li>\n <li class=\"to-field\">\n <div class=\"meta-input\">\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"none\")echo \"checked\"?> onclick=\"show_sidebar('none')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"none\" id=\"radio_1\" />\n <label for=\"radio_1\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/1.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"none\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/1-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"right\")echo \"checked\"?> onclick=\"show_sidebar('right')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"right\" id=\"radio_2\" />\n <label for=\"radio_2\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/2.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"right\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/2-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"left\")echo \"checked\"?> onclick=\"show_sidebar('left')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"left\" id=\"radio_3\" />\n <label for=\"radio_3\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/3.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"left\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/3-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n </div>\n </li>\n </ul>\n <ul class=\"form-elements meta-body\" style=\" <?php if($cs_sidebar_left == \"\"){echo \"display:none\";}else echo \"display:block\";?>\" id=\"sidebar_left\" >\n <li class=\"to-label\">\n <label>Select Left Sidebar</label>\n </li>\n <li class=\"to-field\">\n <select name=\"cs_sidebar_left\" class=\"select_dropdown\" id=\"page-option-choose-left-sidebar\">\n <?php\n $cs_theme_option = get_option('cs_theme_option');\n if ( isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0 ) {\n foreach ( $cs_theme_option['sidebar'] as $sidebar ){\n ?>\n <option <?php if ($cs_sidebar_left==$sidebar)echo \"selected\";?> ><?php echo $sidebar;?></option>\n <?php\n }\n }\n ?>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements meta-body\" style=\" <?php if($cs_sidebar_right == \"\"){echo \"display:none\";}else echo \"display:block\";?>\" id=\"sidebar_right\" >\n <li class=\"to-label\">\n <label>Select Right Sidebar</label>\n </li>\n <li class=\"to-field\">\n <select name=\"cs_sidebar_right\" class=\"select_dropdown\" id=\"page-option-choose-right-sidebar\">\n <?php\n if ( isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0 ) {\n foreach ( $cs_theme_option['sidebar'] as $sidebar ){\n ?>\n <option <?php if ($cs_sidebar_right==$sidebar)echo \"selected\";?> ><?php echo $sidebar;?></option>\n <?php\n }\n }\n ?>\n </select>\n <input type=\"hidden\" name=\"cs_orderby[]\" value=\"meta_layout\" />\n </li>\n </ul>\n\t</div>\n\t<div class=\"clear\"></div>\n<?php\t\n}", "public function writeBoardLayout($layout) {\n $config = $this->readBoardConfig();\n $config[\"layout\"] = json_decode($layout, TRUE);\n $configData = json_encode($config);\n $file = __DIR__.\"/datas/board.json\";\n file_put_contents($file, $configData);\n }", "public function add_layout_box() {\n\t\t$args = $this->layout_settings;\n\n\t\tadd_meta_box( \n\t\t\t'kopa_custom_layout', \n\t\t\t__( 'Custom Layout', kopa_get_domain() ), \n\t\t\tarray( $this, 'output_fields' ),\n\t\t\t$args['screen'],\n\t\t\t'normal',\n\t\t\t'default',\n\t\t\t$args\n\t\t);\n\t}", "function vw_hospital_cs_savecustom_meta() {\n add_meta_box( 'cs_meta', __( 'Settings', 'vw-hospital' ), 'w_hospital_cs_appoint_callback' , 'Appointment','normal', 'high' ); \n}", "public final function save() {\n\t\t\treturn SERIA_Meta::save($this);\n\t\t}", "public function configSave()\n\t{\n\t\t$section = Mage::app()->getRequest()->getParam('section');\n\t\tif ($section == 'mtghost_design')\n\t\t{\n\t\t\t$websiteCode = Mage::app()->getRequest()->getParam('website');\n\t\t\t$storeCode = Mage::app()->getRequest()->getParam('store');\n\t\t\t\n\t\t\tMage::getSingleton('mtghost/cssgen_generator')->generateCss('design', $websiteCode, $storeCode);\n\t\t}else if($section == 'mtghost'){\n $websiteCode = Mage::app()->getRequest()->getParam('website');\n $storeCode = Mage::app()->getRequest()->getParam('store');\n\n Mage::getSingleton('mtghost/cssgen_generator')->generateCss('layout', $websiteCode, $storeCode);\n }\n\t}", "protected function saveMeta() {\n if (empty($this->_metaModified)) {\n // no dirty attributes, nothing to deal with\n return;\n }\n\n $owner = static::tableName();\n $owner_id = $this->{static::meta_id_field()};\n $metaBatchInsert = [];\n\n $mpLen = strlen(static::meta_prefix());\n\n foreach ($this->_metaModified as $key => $mode) {\n // get key without prefix\n $db_key = substr($key, $mpLen);\n\n switch ($mode) {\n case self::META_ADDED:\n $attrs = [\n 'owner' => $owner,\n 'owner_id' => $owner_id,\n 'meta_key' => $db_key,\n 'meta_value' => (string)$this->_meta->$key\n ];\n // the code below is very slow\n $um = new Meta($attrs);\n if ($um->validate()) {\n $metaBatchInsert[] = $attrs;\n } else {\n throw new Exception('Failed to save invalid meta key: ' . $db_key . ' ' . json_encode($um->getFirstErrors(),\n JSON_PRETTY_PRINT));\n }\n// $um->insert();\n break;\n case self::META_MODIFIED:\n Meta::updateAll(\n [\n 'meta_value' => (string)$this->_meta->$key\n ],\n [\n 'owner' => $owner,\n 'owner_id' => $owner_id,\n 'meta_key' => $db_key\n ]);\n break;\n case self::META_UNSET:\n Meta::deleteAll([\n 'owner' => $owner,\n 'owner_id' => $owner_id,\n 'meta_key' => $db_key\n ]);\n break;\n }\n }\n\n if (!empty($metaBatchInsert)) {\n Meta::getDb()->createCommand()->batchInsert(Meta::tableName(),\n ['owner', 'owner_id', 'meta_key', 'meta_value'], $metaBatchInsert)->execute();\n }\n\n $this->_metaModified = [];\n\n $this->trigger(self::EVENT_META_SAVE);\n }", "function rps_save_custom_meta() {\n\tglobal $post;\n\n\t// Stops WP from clearing post meta when autosaving\n\tif( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) {\n\t return $post->ID;\n\t}\n\tif (isset($_POST['rps-url'])) {\n\t\t$clean = esc_url_raw($_POST['rps-url']);\n\t\tupdate_post_meta($post->ID, '_url' , $clean);\n\t}\n\tif (isset($_POST['rps-tagline'])) {\n\t\t$realclean = sanitize_text_field($_POST['rps-tagline']);\n\t\tupdate_post_meta($post->ID, '_tagline' , $realclean);\n\t}\n\n}", "function wp_register_persisted_preferences_meta()\n {\n }", "function facebook_instant_articles_get_layout_info() {\n return array(\n 'facebook_instant_article' => array(\n 'label' => t('Facebook Instant Article'),\n 'path' => \"\",\n 'regions' => array(\n 'header' => t('Header'),\n 'body' => t('Body'),\n 'footer' => t('Footer'),\n ),\n 'image' => 1,\n ),\n );\n}", "public function save($extra_fields = [])\n\t{\n\t\t$args = [\n\t\t\t'post_title' => $this->title,\n\t\t\t'post_content' => $this->content,\n\t\t\t'post_date' => $this->create_date,\n\t\t\t'post_status' => $this->status,\n\t\t\t'post_name' => $this->slug,\n\t\t];\n\n\t\tremove_action('save_post', array(get_class($this), 'saveMetaBox'));\n\n\t\tif (empty($this->id)) {\n\t\t\t$args['post_type'] = $this::$MACHINE_NAME;\n\t\t\t$this->id = wp_insert_post($args);\n\t\t} else {\n\t\t\t$args['ID'] = $this->id;\n\t\t\t$this->id = wp_update_post($args);\n\t\t}\n\n\t\tadd_action('save_post', array(get_class($this), 'saveMetaBox'));\n\n\t\t$metafields = $this->getMetaFields();\n\n\t\tif (!empty($metafields)) {\n\t\t\tforeach ($metafields as $field) {\n\t\t\t\tif (property_exists($this,$field)) {\n\t\t\t\t\t$this->saveField($field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($extra_fields) && is_array($extra_fields)) {\n\t\t\tforeach ($extra_fields as $field=>$value) {\n\t\t\t\tupdate_post_meta($this->id, $field, $value);\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function saveMeta()\n {\n $faqattTableName = sprintf('%sfaqattachment', PMF_Db::getTablePrefix());\n\n if (null == $this->id) {\n $this->id = $this->db->nextId($faqattTableName, 'id');\n\n $sql = sprintf(\"\n INSERT INTO \n %s\n (id, record_id, record_lang, real_hash, virtual_hash,\n password_hash, filename, filesize, encrypted, mime_type)\n VALUES\n (%d, %d, '%s', '%s', '%s', '%s', '%s', %d, %d, '%s')\",\n $faqattTableName,\n $this->id,\n $this->recordId,\n $this->recordLang,\n $this->realHash,\n $this->virtualHash,\n $this->passwordHash,\n $this->filename,\n $this->filesize,\n $this->encrypted ? 1 : 0,\n $this->mimeType\n );\n\n $this->db->query($sql);\n }\n\n return $this->id;\n }", "function SaveInfo()\r\n\t{\r\n\t\t//Access is not stored in files, just directories.\r\n\t\tif (is_file($this->path)) unset($this->info['access']);\r\n\t\t$info = $this->dir.'/.'.$this->filename;\r\n\t\t$fp = fopen($info, 'w+');\r\n\t\tfwrite($fp, serialize($this->info));\r\n\t\tfclose($fp);\r\n\t}", "function responsive_layout_meta_box() {\n\tglobal $post;\n\t$custom = ( get_post_custom( $post->ID ) ? get_post_custom( $post->ID ) : false );\n\t$layout = ( isset( $custom['_responsive_layout'][0] ) ? $custom['_responsive_layout'][0] : 'default' );\n\t$valid_layouts = responsive_get_valid_layouts();\n\t?>\n\t<p>\n\t<input type=\"radio\" name=\"_responsive_layout\" <?php checked( 'default' == $layout ); ?> value=\"default\" />\n\t<label><?php _e( 'Default', 'responsive' ); ?></label><br />\n\t<?php foreach ( $valid_layouts as $slug => $name ) { ?>\n\t\t<input type=\"radio\" name=\"_responsive_layout\" <?php checked( $slug == $layout ); ?> value=\"<?php echo $slug; ?>\" />\n\t\t<label><?php echo $name; ?></label><br />\n\t<?php } ?>\n\t</p>\n\t<?php\n}", "protected function save()\n {\n $css = setcooki_path('plugin') . '/var/app.min.css';\n $json = setcooki_path('plugin'). '/var/options.json';\n $options = Option::get('wunderlist_todo_options', array());\n\n if(is_file($css))\n {\n @unlink($css);\n }\n if(is_file($json))\n {\n @chmod($json, 0755);\n }\n @file_put_contents($json, json_encode($options));\n }", "public static function save_meta_data($post_id)\n {\n $standardMetaValues = array(\"label\", \"link\", \"priority\");\n parent::save_standard_meta_values($standardMetaValues, $post_id);\n }", "protected function saving() {\n // This will get reimplemented by children when necessary\n }", "function wck_add_meta(){\n\t\tparent::wck_add_meta();\n\t}", "public function store(AbstractMeta $meta)\n {\n }", "public function save_meta_data($id) {\n\t\tif (\n\t\t\t! isset($_POST[$this->nonce])\n\t\t\t|| ! wp_verify_nonce($_POST[$this->nonce], basename(__FILE__))\n\t\t) return $id;\n\n\t\tif (defined('DOING_AUTOSAVE')&& DOING_AUTOSAVE)\n\t\t\treturn $id;\n\n\t\t$meta_key = 'im8_additional_css';\n\t\t$meta_value = $_POST[$meta_key];\n\t\tif ('' != $meta_value) update_post_meta($id, $meta_key, $meta_value);\n\t\telse delete_post_meta($id, $meta_key);\n\n\t\t$meta_key = 'im8_additional_css_file';\n\t\t$meta_value = $_POST[$meta_key];\n\t\tif (-1 != $meta_value) update_post_meta($id, $meta_key, $meta_value);\n\t\telse delete_post_meta($id, $meta_key);\n\t}", "function yourfitness_do_register_post_meta() {\n\n\t// Get layout option without default for the count.\n\t$options = yourfitness_get_layouts_for_options();\n\n\t// Stop here if there is less than two layouts options.\n\tif ( count( $options ) < 2 )\n\t\treturn;\n\n\t$fields = array(\n\t\tarray(\n\t\t\t'id' => 'yourfitness_layout',\n\t\t\t'label' => esc_attr_x( 'Layout', 'post meta', 'your-fitness' ),\n\t\t\t'type' => 'radio',\n\t\t\t'default' => 'default_fallback',\n\t\t\t'options' => yourfitness_get_layouts_for_options( true )\n\t\t)\n\t);\n\n\tyourfitness_register_post_meta( $fields, array( 'post', 'page' ), 'your-fitness', array( 'title' => esc_html__( 'Post Options', 'your-fitness' ) ) );\n\n}", "public function save($post_data = array(), $meta_data = array())\n {\n if ( !$this->is_installed(array(self::STRUCTURE_MODULE, self::PAGES_MODULE)))\n {\n return;\n }\n\n if ($this->is_installed(self::STRUCTURE_MODULE))\n {\n $this->save_structure($this->get_core_pages(TRUE));\n }\n else if ($this->is_installed(self::PAGES_MODULE))\n {\n $this->save_pages($this->get(FALSE, FALSE, ee()->publisher_lib->publisher_save_status), $post_data);\n }\n }", "public function render_screen_meta()\n {\n }", "public function add_page_title_layout(string $area, string $file, string $title = '', string $layout = 'default')\n{\n\n // Delete, if exists\n db::query(\"DELETE FROM cms_layouts WHERE area = %s AND filename = %s\", $area, $file);\n\n // Add to database\n db::insert('cms_layouts', array(\n 'area' => $area, \n 'layout' => $layout, \n 'title' => $title, \n 'filename' => $file)\n );\n\n // Update redis\n $key = $area . '/' . $file;\n redis::hset('cms:titles', $key, $title);\n redis::hset('cms:layouts', $key, $layout);\n\n}", "protected function saveMeta($meta){\r\n\t//System::dump($meta);\r\n\t\r\n\tforeach($meta as $item){\r\n\t\t\r\n\t\tif((string)$item->row->attributes()->system_type=='bool'){\r\n\t\t\t$postvalue = !isset($this->sourceData['meta_value_'.(string)$item->row->name]) ? 0: 1;\r\n\t\t}elseif((string)$item->row->attributes()->system_type=='text' || ( (string)$item->row->attributes()->system_type=='blob' && (string)$item->row->attributes()->cleanup==1 ) ){\r\n\t\t\t$postvalue = Filter::makeSafeString($this->sourceData['meta_value_'.(string)$item->row->name]);\r\n\t\t}else{\r\n\t\t\t$postvalue = $this->sourceData['meta_value_'.(string)$item->row->name];\r\n\t\t}\r\n\t\t\r\n\t\t$value = DataValidator::saveData($postvalue, (string)$item->row->attributes()->system_type);\r\n\t\t\r\n\t\t$metaEx = $this->metaRowExists((int)$item->row->name);\r\n\r\n\t\tif($this->id==0 || $metaEx==0){\r\n\t\t\t$id_connect = $this->id==0 ? (int)$this->lastInsert: (int)$this->id;\r\n\t\t\t$q = \"INSERT INTO \"._SQLPREFIX_.$this->metaDataTableName.\" (\".$this->metaConnectId.\", id_meta, \".(string)$item->row->attributes()->system_type.\"_value ) VALUES (\";\r\n\t\t\t$q .= \"'\".Db::escapeField($id_connect).\"', '\".(int)$item->row->name.\"'\".\", '\".Db::escapeField($value).\"')\";\r\n\t\t\r\n\t\t}else{\r\n\t\t\t$id_connect = (int)$this->id;\r\n\t\t\t$q = \"UPDATE \"._SQLPREFIX_.$this->metaDataTableName.\" SET \";\r\n\t\t\t$q .= (string)$item->row->attributes()->system_type.\"_value = '\".Db::escapeField($value).\"' WHERE \".$this->metaConnectId.\" = '\".$id_connect.\"' AND id_meta = '\".(string)$item->row->name.\"'\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//echo $q.'<br />'; \r\n\t\tDb::query($q);\r\n\t}\r\n}", "function _sp_custom_meta_boxes_save( $post_id ) {\n\tglobal $wpdb;\n\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n\t\treturn;\t\t\t\n\t\n\t// Check permissions\n\tif ( ! current_user_can( 'manage_options' ) )\n\t\treturn;\t\n\n\t/////////////////////////////////////////////////////\n\t// wpautop\n\t/////////////////////////////////////////////////////\n\tif ( ! empty( $_POST['_sp_meta_wpautop_nonce'] ) && check_admin_referer( '_sp_process_meta_wpautop', '_sp_meta_wpautop_nonce' ) ) {\n\t\t$wpautop = isset( $_POST['wpautop'] ) && $_POST['wpautop'] === 'on' ? true : false;\n\n\t\tif ( isset( $wpautop ) && $wpautop === true ) \n\t\t\tupdate_post_meta( $post_id, '_sp_disable_wpautop', 'on' );\n\t\telseif ( isset( $wpautop ) && $wpautop !== true )\n\t\t\tupdate_post_meta( $post_id, '_sp_disable_wpautop', 'off' );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// site layout\n\t/////////////////////////////////////////////////////\n\tif ( ! empty( $_POST['_sp_meta_site_layout_nonce'] ) && check_admin_referer( '_sp_process_meta_site_layout', '_sp_meta_site_layout_nonce' ) ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// custom layout\n\t\t/////////////////////////////////////////////////////\n\t\t$custom_layout = sanitize_text_field( $_POST['custom_layout'] );\n\n\t\tif ( ! empty( $custom_layout ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_custom_layout', $custom_layout );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// disable sitewide widgets\n\t\t/////////////////////////////////////////////////////\n\t\t$disable_sitewide_widgets = isset( $_POST['disable_sitewide_widgets'] ) && $_POST['disable_sitewide_widgets'] === 'on' ? true : false;\n\n\t\tif ( isset( $disable_sitewide_widgets ) && $disable_sitewide_widgets === true )\n\t\t\tupdate_post_meta( $post_id, '_sp_custom_layout_disable_sitewide_widgets', 'on' );\n\t\telse\n\t\t\tupdate_post_meta( $post_id, '_sp_custom_layout_disable_sitewide_widgets', 'off' );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// blog post featured video\n\t/////////////////////////////////////////////////////\n\tif ( ! empty( $_POST['_sp_post_featured_video_nonce'] ) && check_admin_referer( '_sp_post_featured_video', '_sp_post_featured_video_nonce' ) ) {\n\t\t$featured_video = isset( $_POST['post_featured_video'] ) ? sanitize_text_field( $_POST['post_featured_video'] ) : '';\n\n\t\t// update post meta\n\t\tupdate_post_meta( $post_id, '_sp_post_featured_video', $featured_video );\n\n\t\t$featured_video_poster = isset( $_POST['post_featured_video_poster'] ) ? sanitize_text_field( $_POST['post_featured_video_poster'] ) : '';\n\n\t\t// update post meta\n\t\tupdate_post_meta( $post_id, '_sp_post_featured_video_poster', $featured_video_poster );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// excerpt truncate settings\n\t/////////////////////////////////////////////////////\t\n\tif ( ! empty( $_POST['_sp_meta_excerpt_truncate_nonce'] ) && check_admin_referer( '_sp_process_meta_excerpt_truncate', '_sp_meta_excerpt_truncate_nonce' ) ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// excerpt truncate\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$excerpt_truncate = ( ( sanitize_text_field( $_POST['excerpt_truncate'] ) === 'on' ) ? true : false );\n\n\t\tif ( isset( $excerpt_truncate ) && $excerpt_truncate === true ) \n\t\t\tupdate_post_meta( $post_id, '_sp_excerpt_truncate', 'on' );\n\t\telse\n\t\t\tupdate_post_meta( $post_id, '_sp_excerpt_truncate', 'off' );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// excerpt truncate denote\n\t\t/////////////////////////////////////////////////////\n\t\t$truncate_denote = sanitize_text_field( $_POST['truncate_denote'] );\n\n\t\tif ( ! empty( $truncate_denote ) ) \n\t\t\tupdate_post_meta( $post_id, '_sp_truncate_denote', $truncate_denote );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// excerpt truncate count\n\t\t/////////////////////////////////////////////////////\n\t\t$truncate_count = absint( $_POST['truncate_count'] );\n\n\t\tif ( ! empty( $truncate_count ) ) \n\t\t\tupdate_post_meta( $post_id, '_sp_truncate_count', $truncate_count );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// seo settings\n\t/////////////////////////////////////////////////////\n\tif ( ! empty( $_POST['_sp_meta_seo_settings_nonce'] ) && check_admin_referer( '_sp_process_meta_seo_settings', '_sp_meta_seo_settings_nonce' ) ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// seo description\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$seo_description = sanitize_text_field( $_POST['seo_description'] );\n\t\t\n\t\tupdate_post_meta( $post_id, '_sp_page_seo_description', $seo_description );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// seo keywords\n\t\t/////////////////////////////////////////////////////\n\t\t$seo_keywords = stripslashes( strip_tags( $_POST['seo_keywords'] ) );\n\n\t\tupdate_post_meta( $post_id, '_sp_page_seo_keywords', $seo_keywords );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// seo title\n\t\t/////////////////////////////////////////////////////\n\t\t$seo_title = stripslashes( strip_tags( $_POST['seo_title'] ) );\n\n\t\tupdate_post_meta( $post_id, '_sp_page_seo_title', $seo_title );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// seo robot\n\t\t/////////////////////////////////////////////////////\n\t\t$seo_robot = stripslashes( strip_tags( $_POST['seo_robot'] ) );\n\n\t\tif ( isset( $seo_robot ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_page_seo_robot', $seo_robot );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// advanced page options\n\t/////////////////////////////////////////////////////\n\tif ( ! empty( $_POST['_sp_meta_advanced_page_options_nonce'] ) && check_admin_referer( '_sp_process_meta_advanced_page_options', '_sp_meta_advanced_page_options_nonce' ) ) {\n\n\t\t/////////////////////////////////////////////////////\n\t\t// page show title\n\t\t/////////////////////////////////////////////////////\n\t\t$page_show_title = sanitize_text_field( $_POST['page_show_title'] );\n\n\t\tif ( ! empty( $page_show_title ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_page_show_title', $page_show_title );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// page show tagline\n\t\t/////////////////////////////////////////////////////\n\t\t$page_show_tagline = sanitize_text_field( $_POST['page_show_tagline'] );\n\n\t\tif ( ! empty( $page_show_tagline ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_page_show_tagline', $page_show_tagline );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// page tagline text\n\t\t/////////////////////////////////////////////////////\n\t\t$page_tagline_text = sanitize_text_field( $_POST['page_tagline_text'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_page_tagline_text', $page_tagline_text );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// page show share\n\t\t/////////////////////////////////////////////////////\n\t\t$page_show_share = sanitize_text_field( $_POST['page_show_share'] );\n\n\t\tif ( ! empty( $page_show_share ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_page_show_share', $page_show_share );\t\t\t\t\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// slider\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type() === 'sp-slider' && ! empty( $_POST['_sp_meta_slider_settings_nonce'] ) && check_admin_referer( '_sp_process_meta_slider_settings', '_sp_meta_slider_settings_nonce' ) ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// slider type\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_type = sanitize_text_field( $_POST['type'] );\n\n\t\tif ( $slider_type )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_type', $slider_type );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider mode\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_mode = sanitize_text_field( $_POST['mode'] );\n\n\t\tif ( $slider_mode )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_mode', $slider_mode );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider carousel item width\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_carousel_item_width = sanitize_text_field( $_POST['carousel_item_width'] );\n\n\t\tif ( $slider_carousel_item_width )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_carousel_item_width', $slider_carousel_item_width );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider carousel item height\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_carousel_item_height = sanitize_text_field( $_POST['carousel_item_height'] );\n\n\t\tif ( $slider_carousel_item_height )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_carousel_item_height', $slider_carousel_item_height );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider show title\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_show_title = sanitize_text_field( $_POST['show_title'] );\n\n\t\tif ( $slider_show_title )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_show_title', $slider_show_title );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider title text\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_title_text = sanitize_text_field( $_POST['title_text'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_slider_title_text', $slider_title_text );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider title font variant\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_title_font_variant = sanitize_text_field( $_POST['title_font_variant'] );\n\n\t\tif ( $slider_title_font_variant )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_title_font_variant', $slider_title_font_variant );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider title font subset\n\t\t/////////////////////////////////////////////////////\n\t\tif ( ! empty( $_POST['title_font_subset'] ) && is_array( $_POST['title_font_subset'] ) && isset( $_POST['title_font_subset'] ) ) {\n\t\t\t$slider_title_font_subset = $_POST['title_font_subset'];\n\n\t\t\t$slider_title_font_subset = array_map( 'sanitize_text_field', $slider_title_font_subset );\n\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_title_font_subset', $slider_title_font_subset );\t\t\t\n\t\t} else {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_title_font_subset', '' );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider title font\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_title_font = isset( $_POST['title_font'] ) ? sanitize_text_field( $_POST['title_font'] ) : false;\n\n\t\tif ( $slider_title_font ) {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_title_font', $slider_title_font );\t\n\n\t\t\tif ( ! isset( $slider_title_font_subset ) )\n\t\t\t\t$slider_title_font_subset = array();\n\n\t\t\t// save custom fonts into theme data\n\t\t\tsp_save_custom_font_data( array( 'selector' => '.sc-carousel h2.slider-title', 'font' => $slider_title_font, 'variant' => $slider_title_font_variant, 'subset' => $slider_title_font_subset ) );\t\t\n\t\t}\n\t\t\n\t\t/////////////////////////////////////////////////////\n\t\t// slider title color\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_title_color = sanitize_text_field( $_POST['title_color'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_slider_title_color', $slider_title_color );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider title size\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_title_size = str_replace( 'px', '', sanitize_text_field( $_POST['title_size'] ) );\n\n\t\tif ( $slider_title_size )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_title_size', $slider_title_size );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider background color\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_bg_color = sanitize_text_field( $_POST['slider_bg_color'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_slider_bg_color', $slider_bg_color );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider show text overlay\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_show_text_overlay = sanitize_text_field( $_POST['show_text_overlay'] );\n\n\t\tif ( $slider_show_text_overlay )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_show_text_overlay', $slider_show_text_overlay );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider overlay position\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_overlay_position = sanitize_text_field( $_POST['overlay_position'] );\n\n\t\tif ( $slider_overlay_position )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_overlay_position', $slider_overlay_position );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider overlay color\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_overlay_color = sanitize_text_field( $_POST['overlay_color'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_slider_overlay_color', $slider_overlay_color );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider overlay opacity\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_overlay_opacity = sanitize_text_field( $_POST['overlay_opacity'] );\n\n\t\tif ( $slider_overlay_opacity )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_overlay_opacity', $slider_overlay_opacity );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider easing\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_easing = sanitize_text_field( $_POST['easing'] );\n\n\t\tif ( $slider_easing )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_easing', $slider_easing );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider randomize\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_randomize = sanitize_text_field( $_POST['randomize'] );\n\n\t\tif ( $slider_randomize )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_randomize', $slider_randomize );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider autoscroll\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_autoscroll = sanitize_text_field( $_POST['autoscroll'] );\n\n\t\tif ( $slider_autoscroll )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_autoscroll', $slider_autoscroll );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider interval\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$slider_interval = sanitize_text_field( $_POST['interval'] );\n\n\t\tif ( $slider_interval )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_interval', $slider_interval );\t\t\t\t\t\t\t\t\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider circular\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_circular = sanitize_text_field( $_POST['circular'] );\n\n\t\tif ( $slider_circular )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_circular', $slider_circular );\t\t\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider nav\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_nav = sanitize_text_field( $_POST['nav'] );\n\n\t\tif ( $slider_nav )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_nav', $slider_nav );\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider dot nav\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_dot_nav = sanitize_text_field( $_POST['dot_nav'] );\n\n\t\tif ( $slider_dot_nav )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_dot_nav', $slider_dot_nav );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider pause on hover\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_pause_on_hover = sanitize_text_field( $_POST['pause_on_hover'] );\n\n\t\tif ( $slider_pause_on_hover )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_pause_on_hover', $slider_pause_on_hover );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider items per click\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$slider_items_per_click = sanitize_text_field( $_POST['items_per_click'] );\n\n\t\tif ( $slider_items_per_click )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_items_per_click', $slider_items_per_click );\t\t\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider transition speed\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_transition_speed = sanitize_text_field( $_POST['transition_speed'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_slider_transition_speed', $slider_transition_speed );\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider reverse direction\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_reverse_direction = sanitize_text_field( $_POST['reverse_direction'] );\n\n\t\tif ( $slider_reverse_direction )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_reverse_direction', $slider_reverse_direction );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider touch swipe\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$slider_touch_swipe = sanitize_text_field( $_POST['touch_swipe'] );\n\n\t\tif ( $slider_touch_swipe )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_touch_swipe', $slider_touch_swipe );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider items to show\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$slider_items_to_show = sanitize_text_field( $_POST['items_to_show'] );\n\n\t\tif ( $slider_items_to_show )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_items_to_show', $slider_items_to_show );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font variant\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_slogan_title_font_variant = sanitize_text_field( $_POST['slogan_title_font_variant'] );\n\n\t\tif ( $slider_slogan_title_font_variant )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_slogan_title_font_variant', $slider_slogan_title_font_variant );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font subset\n\t\t/////////////////////////////////////////////////////\n\t\tif ( ! empty( $_POST['slogan_title_font_subset'] ) && is_array( $_POST['slogan_title_font_subset'] ) && isset( $_POST['slogan_title_font_subset'] ) ) {\n\t\t\t$slider_slogan_title_font_subset = $_POST['slogan_title_font_subset'];\n\n\t\t\t$slider_slogan_title_font_subset = array_map( 'sanitize_text_field', $slider_slogan_title_font_subset );\n\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_slogan_title_font_subset', $slider_slogan_title_font_subset );\t\t\t\n\t\t} else {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_slogan_title_font_subset', '' );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_slogan_title_font = isset( $_POST['slogan_title_font'] ) ? sanitize_text_field( $_POST['slogan_title_font'] ) : false;\n\n\t\tif ( $slider_slogan_title_font ) {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_slogan_title_font', $slider_slogan_title_font );\t\n\n\t\t\tif ( ! isset( $slider_slogan_title_font_subset ) )\n\t\t\t\t$slider_slogan_title_font_subset = array();\n\n\t\t\t// save custom fonts into theme data\n\t\t\tsp_save_custom_font_data( array( 'selector' => '.sc-carousel h3.slogan-title', 'font' => $slider_slogan_title_font, 'variant' => $slider_slogan_title_font_variant, 'subset' => $slider_slogan_title_font_subset ) );\t\t\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider content font variant\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_content_font_variant = sanitize_text_field( $_POST['content_font_variant'] );\n\n\t\tif ( $slider_content_font_variant )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_content_font_variant', $slider_content_font_variant );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font subset\n\t\t/////////////////////////////////////////////////////\n\t\tif ( ! empty( $_POST['content_font_subset'] ) && is_array( $_POST['content_font_subset'] ) && isset( $_POST['content_font_subset'] ) ) {\n\t\t\t$slider_content_font_subset = $_POST['content_font_subset'];\n\n\t\t\t$slider_content_font_subset = array_map( 'sanitize_text_field', $slider_content_font_subset );\n\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_content_font_subset', $slider_content_font_subset );\t\t\t\n\t\t} else {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_content_font_subset', '' );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_content_font = isset( $_POST['content_font'] ) ? sanitize_text_field( $_POST['content_font'] ) : false;\n\n\t\tif ( $slider_content_font ) {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_content_font', $slider_content_font );\n\n\t\t\tif ( ! isset( $slider_content_font_subset ) )\n\t\t\t\t$slider_content_font_subset = array();\n\n\t\t\t// save custom fonts into theme data\n\t\t\tsp_save_custom_font_data( array( 'selector' => '.sc-carousel .textblock p', 'font' => $slider_content_font, 'variant' => $slider_content_font_variant, 'subset' => $slider_content_font_subset ) );\t\t\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider link title font variant\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_link_title_font_variant = sanitize_text_field( $_POST['link_title_font_variant'] );\n\n\t\tif ( $slider_link_title_font_variant )\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_link_title_font_variant', $slider_link_title_font_variant );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font subset\n\t\t/////////////////////////////////////////////////////\n\t\tif ( ! empty( $_POST['link_title_font_subset'] ) && is_array( $_POST['link_title_font_subset'] ) && isset( $_POST['link_title_font_subset'] ) ) {\n\t\t\t$slider_link_title_font_subset = $_POST['link_title_font_subset'];\n\n\t\t\t$slider_link_title_font_subset = array_map( 'sanitize_text_field', $slider_link_title_font_subset );\n\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_link_title_font_subset', $slider_link_title_font_subset );\t\t\t\n\t\t} else {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_link_title_font_subset', '' );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// slider slogan title font\n\t\t/////////////////////////////////////////////////////\n\t\t$slider_link_title_font = isset( $_POST['link_title_font'] ) ? sanitize_text_field( $_POST['link_title_font'] ) : false;\n\n\t\tif ( $slider_link_title_font ) {\n\t\t\tupdate_post_meta( $post_id, '_sp_slider_slide_link_title_font', $slider_link_title_font );\n\n\t\t\tif ( ! isset( $slider_link_title_font_subset ) )\n\t\t\t\t$slider_link_title_font_subset = array();\n\t\t\t\n\t\t\t// save custom fonts into theme data\n\t\t\tsp_save_custom_font_data( array( 'selector' => '.sc-carousel .slide a.link-out', 'font' => $slider_link_title_font, 'variant' => $slider_link_title_font_variant, 'subset' => $slider_link_title_font_subset ) );\t\t\n\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// portfolio\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type() === 'sp-portfolio' ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// portfolio sort position\n\t\t/////////////////////////////////////////////////////\n\t\tif ( ! empty( $_POST['_sp_meta_portfolio_sort_position_nonce'] ) && check_admin_referer( '_sp_process_meta_portfolio_sort_position', '_sp_meta_portfolio_sort_position_nonce' ) ) {\n\t\t\t$sort = sanitize_text_field( $_POST['portfolio_sort_position'] );\n\n\t\t\tif ( isset( $sort ) ) \n\t\t\t\tupdate_post_meta( $post_id, '_sp_portfolio_sort_position', $sort );\n\t\t}\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// testimonials\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type() === 'sp-testimonial' && ! empty( $_POST['_sp_meta_testimonial_settings_nonce'] ) && check_admin_referer( '_sp_process_meta_testimonial_settings', '_sp_meta_testimonial_settings_nonce' ) ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// testimonial name\n\t\t/////////////////////////////////////////////////////\n\t\t$testimonial_name = stripslashes( strip_tags( $_POST['testimonial_name'] ) );\n\n\t\tif ( $testimonial_name )\n\t\t\tupdate_post_meta( $post_id, '_sp_testimonial_submitter_name', $testimonial_name );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// testimonial email\n\t\t/////////////////////////////////////////////////////\n\t\t$testimonial_email = stripslashes( strip_tags( $_POST['testimonial_email'] ) );\n\n\t\tif ( $testimonial_email )\n\t\t\tupdate_post_meta( $post_id, '_sp_testimonial_submitter_email', $testimonial_email );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// contact form settings\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type( $post_id ) === 'sp-contact-form' && ! empty( $_POST['_sp_meta_contact_form_settings_nonce'] ) && check_admin_referer( '_sp_process_meta_contact_form_settings', '_sp_meta_contact_form_settings_nonce' ) ) {\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form email to\n\t\t/////////////////////////////////////////////////////\n\t\t$email_to = sanitize_text_field( $_POST['contact_form_email_to'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_email_to', $email_to );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form email subject\n\t\t/////////////////////////////////////////////////////\n\t\t$email_subject = sanitize_text_field( $_POST['contact_form_email_subject'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_email_subject', $email_subject );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form redirect\n\t\t/////////////////////////////////////////////////////\n\t\t$redirect = sanitize_text_field( $_POST['contact_form_redirect'] );\n\n\t\tif ( isset( $redirect ) ) \n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_redirect', $redirect );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form redirect url\n\t\t/////////////////////////////////////////////////////\n\t\t$redirect_url = sanitize_text_field( $_POST['contact_form_redirect_url'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_redirect_url', $redirect_url );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form show reset\n\t\t/////////////////////////////////////////////////////\n\t\t$show_reset = sanitize_text_field( $_POST['contact_form_show_reset'] );\n\n\t\tif ( isset( $show_reset ) ) \n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_show_reset', $show_reset );\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// contact form messages\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type( $post_id ) === 'sp-contact-form' && ! empty( $_POST['_sp_meta_contact_form_messages_nonce'] ) && check_admin_referer( '_sp_process_meta_contact_form_messages', '_sp_meta_contact_form_messages_nonce' ) ) {\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form email header text\n\t\t/////////////////////////////////////////////////////\n\t\t$header_text = sanitize_text_field( $_POST['contact_form_header_text'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_header_text', $header_text );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form submit button text\n\t\t/////////////////////////////////////////////////////\n\t\t$submit_button_text = sanitize_text_field( $_POST['contact_form_submit_button_text'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_submit_button_text', $submit_button_text );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form reset button text\n\t\t/////////////////////////////////////////////////////\n\t\t$reset_button_text = sanitize_text_field( $_POST['contact_form_reset_button_text'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_reset_button_text', $reset_button_text );\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form success message\n\t\t/////////////////////////////////////////////////////\n\t\t$success_message = sanitize_text_field( $_POST['contact_form_success_message'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_success_message', $success_message );\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form failure message\n\t\t/////////////////////////////////////////////////////\n\t\t$failure_message = sanitize_text_field( $_POST['contact_form_failure_message'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_failure_message', $failure_message );\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form required field text\n\t\t/////////////////////////////////////////////////////\n\t\t$required_field_text = sanitize_text_field( $_POST['contact_form_required_field_text'] );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_required_field_text', $required_field_text );\t\t\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form email template\n\t\t/////////////////////////////////////////////////////\n\t\t$email_template = wp_kses_data( strip_tags( $_POST['contact_form_email_template'] ) );\n\n\t\tupdate_post_meta( $post_id, '_sp_contact_form_email_template', $email_template );\t\n\t}\n\n\t/////////////////////////////////////////////////////\n\t// contact form content\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type( $post_id ) === 'sp-contact-form' && ! empty( $_POST['_sp_meta_contact_form_content_nonce'] ) && check_admin_referer( '_sp_process_meta_contact_form_content', '_sp_meta_contact_form_content_nonce' ) ) {\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form field type\n\t\t/////////////////////////////////////////////////////\n\t\t$field_type = $_POST['field_type'];\t\n\t\t\n\t\tarray_walk_recursive( $field_type, 'sp_clean_multi_array' );\n\t\t\n\t\tif ( is_array( $field_type ) && isset( $field_type ) ) {\n\t\t\t$rebuild_arr = array();\n\n\t\t\t$i = 1;\n\t\t\tforeach( $field_type as $type ) {\n\t\t\t\t$rebuild_arr['field_' . $i] = $type;\n\t\t\t\t$i++;\t\n\t\t\t}\t\n\n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_field_type', $rebuild_arr );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form field options\n\t\t/////////////////////////////////////////////////////\t\t\n\t\t$field_options = isset( $_POST['field_options'] ) ? $_POST['field_options'] : '';\t\n\n\t\tif ( is_array( $field_options ) && isset( $field_options ) ) {\n\t\t\tarray_walk_recursive( $field_options, 'sp_clean_multi_array' );\n\n\t\t\t// prepare the field options\n\t\t\t$merged = array();\n\t\t\t\n\t\t\t// todo: this is messy...gotta be a better way -- can't think right now!\n\t\t\tif ( is_array( $field_options ) ) {\n\t\t\t\tforeach ( $field_options as $a ) {\n\t\t\t\t\tif ( is_array( $a ) ) {\n\t\t\t\t\t\tforeach ( $a as $k => $v ) {\n\t\t\t\t\t\t\tif ( is_array( $v ) ) {\n\t\t\t\t\t\t\t\tforeach ( $v as $v2 ) {\n\t\t\t\t\t\t\t\t\t$merged[$k][] = $v2;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$field_options = $merged;\t\t\t\n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_field_options', $field_options );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form field label\n\t\t/////////////////////////////////////////////////////\n\t\t$field_label = $_POST['field_label'];\t\n\t\t\n\t\tarray_walk_recursive( $field_label, 'sp_clean_multi_array' );\n\n\t\tif ( is_array( $field_label ) && isset( $field_label ) ) {\n\t\t\t$rebuild_arr = array();\n\n\t\t\t$i = 1;\n\t\t\tforeach( $field_label as $label ) {\n\t\t\t\t$rebuild_arr['field_' . $i] = $label;\n\t\t\t\t$i++;\n\t\t\t}\n\n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_field_label', $rebuild_arr );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form required field\n\t\t/////////////////////////////////////////////////////\n\t\t$required_field = $_POST['required_field'];\t\n\n\t\tarray_walk_recursive( $required_field, 'sp_clean_multi_array' );\n\n\t\tif ( is_array( $required_field ) && isset( $required_field ) ) {\n\t\t\t$rebuild_arr = array();\n\n\t\t\t$i = 1;\n\t\t\tforeach( $required_field as $required ) {\n\t\t\t\t$rebuild_arr['field_' . $i] = $required;\n\t\t\t\t$i++;\n\t\t\t}\n\n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_required_field', $rebuild_arr );\n\t\t}\n\n\t\t/////////////////////////////////////////////////////\n\t\t// contact form unique tag name\n\t\t/////////////////////////////////////////////////////\n\t\t$unique_tag_name = $_POST['unique_tag_name'];\t\n\n\t\tarray_walk_recursive( $unique_tag_name, 'sp_clean_multi_array' );\n\n\t\tif ( is_array( $unique_tag_name ) && isset( $unique_tag_name ) ) {\n\t\t\t$rebuild_arr = array();\n\n\t\t\t$i = 1;\n\t\t\tforeach( $unique_tag_name as $tag_name ) {\n\t\t\t\t$rebuild_arr['field_' . $i] = $tag_name;\n\t\t\t\t$i++;\n\t\t\t}\n\n\t\t\tupdate_post_meta( $post_id, '_sp_contact_form_unique_tag_name', $rebuild_arr );\n\t\t}\n\t} // contact-form\n\n\t/////////////////////////////////////////////////////\n\t// page builder\n\t/////////////////////////////////////////////////////\n\tif ( isset( $_POST['page_builder_form'] ) && $_POST['page_builder_form'] === 'saving' ) {\n\n\t\t$pb_status = sanitize_text_field( $_POST['pb_status'] );\n\t\tupdate_post_meta( $post_id, '_sp_page_builder_status', $pb_status );\n\n\t\t//$pb_cache = sanitize_text_field( $_POST['pb_cache'] );\n\t\t//update_post_meta( $post_id, '_sp_page_builder_cache', $pb_cache );\n\n\t\t$pb_outer_container_style = sanitize_text_field( $_POST['pb_outer_container_style'] );\n\t\tupdate_post_meta( $post_id, '_sp_page_builder_outer_container_style', $pb_outer_container_style );\n\n\t\t$pb_modules = $_POST['pb'];\n\n\t\tif ( isset( $pb_modules ) ) {\n\t\t\t// clean the input\n\t\t\tarray_walk_recursive( $pb_modules, 'sp_clean_multi_array' );\n\t\t\tupdate_post_meta( $post_id, '_sp_page_builder_modules', base64_encode( maybe_serialize( $pb_modules ) ) );\n\t\t} else {\n\t\t\tupdate_post_meta( $post_id, '_sp_page_builder_modules', '' );\n\t\t}\n\n\t} // page builder\n\n\t/////////////////////////////////////////////////////\n\t// page editor type\n\t/////////////////////////////////////////////////////\n\tif ( isset( $_POST['sp_editor_type'] ) )\n\t\tupdate_post_meta( $post_id, '_sp_page_editor_type', sanitize_text_field( $_POST['sp_editor_type'] ) );\n\n\t/////////////////////////////////////////////////////\n\t// products\n\t/////////////////////////////////////////////////////\n\tif ( get_post_type( $post_id ) === 'product' ) {\n\t\tglobal $wpdb;\n\n\t\t// alternate images\n\t\t$alternate_product_image = isset( $_POST['alternate_product_image'] ) ? $_POST['alternate_product_image'] : '';\n\n\t\t// before update get the image id first\n\t\t$alternate_product_image_id = get_post_meta( $post_id, '_sp_alternate_product_image_id', true );\n\n\t\t// update post meta\n\t\tupdate_post_meta( $post_id, '_sp_alternate_product_image_id', absint( $alternate_product_image ) );\n\n\t\t// remove attachment post parent\n\t\tif ( ( ! isset( $alternate_product_image ) || empty( $alternate_product_image ) ) && isset( $alternate_product_image_id ) )\n\t\t\t$wpdb->query( $wpdb->prepare( \"UPDATE $wpdb->posts SET `post_parent` = %d WHERE `ID` = %d\", 0, absint( $alternate_product_image_id ) ) );\n\n\t\t$hover_status = isset( $_POST['alternate_image_hover_status'] ) ? $_POST['alternate_image_hover_status'] : '';\n\n\t\tupdate_post_meta( $post_id, '_sp_alternate_product_image_on_hover_status', $hover_status );\n\n\t\t// custom product tabs\n\t\tif ( ! empty( $_POST['_sp_product_tabs_nonce'] ) && check_admin_referer( '_sp_process_product_tabs', '_sp_product_tabs_nonce' ) ) {\n\t\t\tif ( isset( $_POST['sp_product_tab_name'] ) ) {\n\t\t\t\t$tab_names = $_POST['sp_product_tab_name'];\n\n\t\t\t\t// sanitize\n\t\t\t\tarray_walk_recursive( $tab_names, 'sp_clean_multi_array' );\n\t\t\t} else {\n\t\t\t\t$tab_names = '';\n\t\t\t}\n\n\t\t\tif ( isset( $_POST['sp_product_tinymce_textarea'] ) ) {\n\t\t\t\t$tab_content = $_POST['sp_product_tinymce_textarea'];\n\n\t\t\t\t// sanitize\n\t\t\t\tarray_walk_recursive( $tab_content, 'sp_clean_textarea_multi_array' );\n\t\t\t} else {\n\t\t\t\t$tab_content = '';\n\t\t\t}\n\n\t\t\t// update product meta\n\t\t\tupdate_post_meta( $post_id, '_sp_custom_product_tab_names', $tab_names );\n\t\t\tupdate_post_meta( $post_id, '_sp_custom_product_tab_content', $tab_content );\n\t\t}\n\n\t\t$show_product_description_tab = isset( $_POST['show_product_description_tab'] ) ? sanitize_text_field( $_POST['show_product_description_tab'] ) : '';\n\t\t$show_product_additional_info_tab = isset( $_POST['show_product_additional_info_tab'] ) ? sanitize_text_field( $_POST['show_product_additional_info_tab'] ) : '';\n\t\t$show_product_review_tab = isset( $_POST['show_product_review_tab'] ) ? sanitize_text_field( $_POST['show_product_review_tab'] ) : '';\n\n\t\tupdate_post_meta( $post_id, '_sp_product_description_tab', $show_product_description_tab );\n\t\tupdate_post_meta( $post_id, '_sp_product_additional_info_tab', $show_product_additional_info_tab );\n\t\tupdate_post_meta( $post_id, '_sp_product_review_tab', $show_product_review_tab );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// page show wishlist\n\t\t/////////////////////////////////////////////////////\n\t\t$page_show_wishlist = isset( $_POST['page_show_wishlist'] ) ? sanitize_text_field( $_POST['page_show_wishlist'] ) : null;\n\n\t\tif ( ! empty( $page_show_wishlist ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_page_show_wishlist', $page_show_wishlist );\n\n\t\t/////////////////////////////////////////////////////\n\t\t// page show compare\n\t\t/////////////////////////////////////////////////////\n\t\t$page_show_compare = isset( $_POST['page_show_compare'] ) ? sanitize_text_field( $_POST['page_show_compare'] ) : null;\n\n\t\tif ( ! empty( $page_show_compare ) )\n\t\t\tupdate_post_meta( $post_id, '_sp_page_show_compare', $page_show_compare );\t\t\t\n\t} // products\n\n\t/////////////////////////////////////////////////////\n\t// faq sort order\n\t/////////////////////////////////////////////////////\n\tif ( ! empty( $_POST['_sp_post_faq_order_nonce'] ) && check_admin_referer( '_sp_post_faq_order', '_sp_post_faq_order_nonce' ) ) {\n\t\t$order = isset( $_POST['post_faq_order'] ) && ! empty( $_POST['post_faq_order'] ) ? sanitize_text_field( $_POST['post_faq_order'] ) : '0';\n\n\t\t// update post meta\n\t\tupdate_post_meta( $post_id, '_sp_post_faq_order', $order );\n\t}\n\n\treturn true;\n}", "function createMetaData()\n\t{\n\t\tparent::createMetaData();\n\t\t$this->saveAuthorToMetadata();\n\t}", "private function updateMetas() {\n if( is_null($this->Metas) )\n $this->Metas = array();\n\n $this->Metas[0] = '<meta http-equiv=\"Content-Type\" content=\"' . $this->ContentType . '; charset=' . $this->Charset . '\" />';\n }", "public function _syncCustomMetadata($name) {}", "public function save()\n {\n $this->save_meta_value('_sim_city_main_info', $this->city_main_info);\n\n $this->save_meta_value('_sim_city_shops', $this->city_shops);\n }", "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content='a sample meta description for this website'/>\\n\\n\";\n\t}", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }", "function MPU_seo_setup() {\n add_action( 'add_meta_boxes', 'MPU_add_seo_setup' );\n add_action( 'save_post', 'MPU_save_seo_setup', 10, 2 );\n}", "function italystrap_meta_box_save( $post_id ){\n\tif( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;\n\t\n\t// if our nonce isn't there, or we can't verify it, bail\n\tif( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;\n\t\n\t// if our current user can't edit this post, bail\n\t//http://code.tutsplus.com/tutorials/how-to-create-custom-wordpress-writemeta-boxes--wp-20336#comment-802227555\n\t//prevents undefined offset notice and cannot modify header warning - add second parameters $post_id\n\tif( !current_user_can( 'edit_post' , $post_id ) ) return;\n\t\n\t// now we can actually save the data\t\n\t// Probably a good idea to make sure your data is set\n\t// This is purely my personal preference for saving checkboxes\n\t$chk = ( isset( $_POST['slide'] ) && $_POST['slide'] ) ? 'on' : 'off';\n\tupdate_post_meta( $post_id, 'slide', $chk );\n}", "protected function MetaAfterCreate() {\n\t\t}", "function archive_SaveMetaData( $post_id ) {\n\t\tglobal $archive_fields;\n\n\t\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {return;}\n\n\t\tif ( isset( $_POST['post_type'] ) && 'page' == $_POST['post_type'] ) {\n\t\t\tif ( ! current_user_can( 'edit_page', $post_id ) ) {return;}\n\t\t}else {\n\t\t\tif ( ! current_user_can( 'edit_post', $post_id ) ) {return;}\n\t\t}\n\n\t\tforeach ($archive_fields as $key => $value) {\n\t\t\t$slug = $value['slug'];\n\t\t\t//print_r($value);\n\n\t\t\tif (isset( $_POST['archive_'.$value['slug'].'_nonce'] ) ) {\n\n\t\t\t\tforeach($value['fields'] as $key => $value){\n\t\t\t\t\t$name = 'archive_'.$slug.'_'.$value['name'];\n\t\t\t\t\tif($value['type'] == 'checkbox'){\n\t\t\t\t\t\tif(isset($_POST[$name])){\n\t\t\t\t\t\t\tupdate_post_meta($post_id, $name, 'true');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tupdate_post_meta($post_id, $name, 'false');\n\t\t\t\t\t\t}\n\t\t\t\t\t}elseif(isset($_POST[$name])){\n\t\t\t\t\t\t$value = esc_html($_POST[$name]);\n\t\t\t\t\t\tupdate_post_meta($post_id, $name, $value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function save() {\n\n $data = array(\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'metatitle' => $this->getMetatitle(),\n 'metakeywords' => $this->getMetakeywords(),\n 'metadescription' => $this->getMetadescription()\n );\n $data['parent_id'] = 0; // by default it is 0, becouse right now there is no use of parent id in this application\n if (null === ($id = $this->getId())) {\n unset($data['id']);\n $data['status'] = 1;\n return $this->getMapper()->getDbTable()->insert($data);\n } else {\n $data['status'] = $this->getStatus();\n return $this->getMapper()->getDbTable()->update($data, array('id = ?' => $id));\n }\n\n }", "function mobile_kiosk_post_meta_boxes_setup() {\n\t// hook adding the meta boxes \n\tadd_action( 'add_meta_boxes', 'mobile_kiosk_add_post_meta_boxes' );\n\t\n\t// Hook saving the meta boxes\n\tadd_action('save_post', 'mobile_kiosk_save_post_meta_boxes', 10, 2);\n}", "public function save() {\n if (!$this->isNew()) {\n $this->updateCustomMicroarticlesDelta();\n $this->updateCustomSelfservicesDelta();\n }\n\n return parent::save();\n }", "function saveForm(){\t\n\t\t$this->saveFormBase();\n\t\t$this->saveFormGeoCoverage();\n\t\t$this->saveVaFormResolution();\n\t\tif ($this->dataset->nbModForm >0) $this->saveModForm();\n\t\tif ($this->dataset->nbSatForm >0) $this->saveSatForm();\n\t\tif ($this->dataset->nbInstruForm >0) $this->saveInstruForm();\n\t\t$this->saveFormGrid();\n\t\t//Parameter\n\t\t$this->saveFormVariables($this->dataset->nbVars);\n\t\t//REQ DATA_FORMAT\n\t\t$this->dataset->required_data_formats = array();\n\t\t$this->dataset->required_data_formats[0] = new data_format;\n\t\t$this->dataset->required_data_formats[0]->data_format_id = $this->exportValue('required_data_format');\n\t}", "public function Save()\n {\n $required = array(\n \"title\" => \"Título\",\n \"src\" => \"Imagem\"\n );\n $this->validateData($required);\n parent::Save();\n }", "public function savePosition() {}", "function save()\r\n {\r\n // read the template\r\n\t $str = dirname(__FILE__); \r\n $content = file_get_contents(dirname(__FILE__).'/partinfo.php'); \r\n if (!$content){\r\n return \"fail read template\";\r\n } \t\r\n \r\n\t $tags = array(\"#TITLE#\", \r\n\t \t\"#BRAND#\", \r\n\t \t\"#MODULE#\", \r\n\t \t\"#ENGINE#\", \r\n \"#TYPE#\", \r\n \"#NAME#\", \r\n \"ADDRESS\", \r\n \"#DATE#\", \r\n \"#PRICE#\", \r\n \"DESCRIPTION\");\r\n\t \r\n $fields[0] = $this->title;\r\n $fields[1] = $this->brand;\r\n $fields[2] = $this->series;\r\n $fields[3] = $this->module;\r\n $fields[4] = \"配件\";\r\n $fields[5] = $this->module;\r\n $fields[6] = \"广州\";\r\n $fields[7] = $this->date;\r\n $fields[8] = $this->price;\r\n $fields[9] = $this->description;\r\n \r\n $content = str_replace($tags,$fields,$content); \r\n \r\n $date = date(\"Ymd-Hms\");\r\n $filename = sprintf(\"publish/%d-%d-%s.php\", $this->id, $this->uid, $date);\r\n $fp = fopen($filename, \"w\");\r\n if (!$fp) {\r\n return \"fail create file\";\r\n }\r\n \r\n if (fwrite($fp, $content) == FALSE) { \t \r\n fclose($fp);\r\n return \"fail wirte content\";\r\n }\r\n \r\n fclose($fp);\r\n return $filename;\r\n }", "static function save_metabox_data($post_id){\n\t\t\t// If this is an autosave, our form has not been submitted, so we don't want to do anything.\n\t\t\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$keywords = array();\t\t\t\n\t\t\t//now it's safe to save info\n\t\t\tif(isset($_POST['affiliate_keywords'])){\n\t\t\t\tforeach($_POST['affiliate_keywords'] as $key => $value){\n\t\t\t\t\t$keywords[$key] = trim($value);\n\t\t\t\t}\n\t\t\t\tself::save_keywords($post_id, $keywords);\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['local_position_enabled'])){\n\t\t\t\tupdate_post_meta($post_id, 'local_position_enabled', 'y');\n\t\t\t}\n\t\t\telse{\n\t\t\t\tupdate_post_meta($post_id, 'local_position_enabled', '');\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['position'])){\n\t\t\t\t$positions = array();\n\t\t\t\tforeach($_POST['position'] as $key => $value){\n\t\t\t\t\t$positions[$key] = $value;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tupdate_post_meta($post_id, 'local_positions', $positions);\n\t\t\t}\n\t\t\t\n\t\t\t//saving loal links\n\t\t\tif(isset($_POST['local_links'])){\n\t\t\t\tupdate_post_meta($post_id, 'local_links', $_POST['local_links']);\n\t\t\t}\n\t\t}", "function savePostMeta($post_id)\n\t\t{\n\t\t\t$dataMetas = self::getDataMetas();\n\n\t\t\tforeach ($dataMetas as $key => $meta) {\n\t\t\t\t$nameMeta = $meta['_name_meta_box'];\n\t\t\t\tif ( isset($_POST[$nameMeta]) ) { \n\t\t\t\t\tupdate_post_meta( $post_id, $nameMeta, $_POST[$nameMeta] );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "public function save( $data ){\n\t\t\t$args['numToShow'] \t = (int) $data['numToShow'];\n $args['displayBeneath'] = (int) $data['displayBeneath'];\n $args['parentPageID'] = (int) $data['parentPageID'];\n\t\t\tparent::save( $args );\n\t\t}", "public function save(MetaInfo $metaInfo)\n {\n $this->assertPermission($metaInfo); \n $this->repository->save($metaInfo, $this->getCardinality($metaInfo));\n }", "function toolbox_portfolio_meta_boxes_setup() {\n /* Add meta boxes on the 'add_meta_boxes' hook. */\n add_action( 'add_meta_boxes', 'toolbox_add_portfolio_meta_box' );\n\n /* Save post meta on the 'save_post' hook. */\n add_action( 'save_post', 'toolbox_portfolio_save_info', 10, 2 );\n}", "public function save () {\r\n\t\tif (isset($_POST['data'])) {\r\n\t\t\t$data = stripslashes_deep($_POST['data']);\r\n\t\t\tif (!empty($data['preset']) && !empty($data['id'])) $data['preset'] = $data['id']; // Also override whatever preset we're seding\r\n\t\t\t$_POST['data'] = $data;\r\n\t\t}\r\n\t\tparent::save();\r\n\t}", "protected function saveHtml()\n {\n $this->fsio->put($this->page->getTarget(), $this->html);\n }", "protected function _setTemplateMeta(){\n $this->template->project_name = $this->config['project']['name'] ;\n $this->template->title = $this->config['view']['title'] ;\n $this->template->keywords = $this->config['view']['keywords'];\n $this->template->description = $this->config['view']['description'];\n }", "protected function save_paypal_meta_data( $order, $posted ) {\n }", "public function saveCustomColumns() {\n // get existing config\n $selectedColumns = $this->loadCustomColumns();\n\n // merge new selection for page type into existing variable\n $ctID = $this->post('ctID');\n $selectedColumns[$ctID] = $_REQUEST['selectedAttributes'];\n\n // save new configuration\n $pkg = Package::getByHandle('remo_composer_list');\n $pkg->saveConfig('SELECTED_COLUMNS', serialize($selectedColumns));\n\n die();\n }", "public function save(){\r\n // Need the post type name again\r\n $post_type_name = $this->post_type_name;\r\n\r\n add_action( 'save_post',\r\n function() use( $post_type_name ){\r\n // Deny the WordPress autosave function\r\n if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return;\r\n\r\n if ( ! wp_verify_nonce( $_POST['custom_post_type'], plugin_basename(__FILE__) ) ) return;\r\n\r\n global $post;\r\n\r\n if( isset( $_POST ) && isset( $post->ID ) && get_post_type( $post->ID ) == $post_type_name ){\r\n global $custom_fields;\r\n\r\n // Loop through each meta box\r\n foreach( $custom_fields as $title => $fields ){\r\n // Loop through all fields\r\n foreach( $fields as $label => $type ){\r\n $field_id_name = strtolower( str_replace( ' ', '_', $title ) ) . '_' . strtolower( str_replace( ' ', '_', $label ) );\r\n if($_POST['custom_meta'][$field_id_name] != ''){//Check Entry is not empty\r\n update_post_meta( $post->ID, $field_id_name, $_POST['custom_meta'][$field_id_name] );\r\n }\r\n }\r\n\r\n }\r\n }\r\n }\r\n );\r\n }", "public function onBeforeWrite()\n {\n /** @var SiteConfig $siteconfig */\n $siteconfig = SiteConfig::current_site_config();\n if (!$siteconfig->Title) {\n $siteconfig->Title = $this->Title;\n $siteconfig->Tagline = $this->Tagline;\n $siteconfig->write();\n }\n\n parent::onBeforeWrite();\n }", "public function save() {\n\t\t$url = $this->items[ $this->id ]['url'];\n\t\t$handle = $this->items[ $this->id ]['name'];\n\t\t$deps = isset( $this->items[ $this->id ]['deps'] ) ? $this->items[ $this->id ]['deps'] : array();\n\t\t$ver = isset( $this->items[ $this->id ]['ver'] ) ? $this->items[ $this->id ]['ver'] : null;\n\t\t$ver = $ver && 'auto' === $ver ? \\Wpfw\\Asset::get_modified_time( $url ) : $ver;\n\t\t$in_footer = isset( $this->items[ $this->id ]['in_footer'] ) ? $this->items[ $this->id ]['in_footer'] : true; // put default to footer for non-blocking request.\n\t\t$localize = isset( $this->items[ $this->id ]['localize'] ) ? $this->items[ $this->id ]['localize'] : false;\n\n\t\twp_register_script( $handle, $url, $deps, $ver, $in_footer );\n\n\t\tif ( $localize ) {\n\t\t\twp_localize_script(\n\t\t\t\t$this->items[ $this->id ]['name'],\n\t\t\t\t$this->items[ $this->id ]['localize']['name'],\n\t\t\t\t$this->items[ $this->id ]['localize']['value']\n\t\t\t);\n\t\t}\n\t}", "private function _saveSeo() {\r\n\r\n // get plugins details\r\n $plugin = JPluginHelper::getPlugin( 'system', 'shmobile');\r\n $params = new JRegistry();\r\n $params->loadString( $plugin->params);\r\n\r\n // get current values\r\n $defaultEnabled = $params->get('mobile_switch_enabled');\r\n $defaultTemplate = $params->get('mobile_template');\r\n\r\n // save mobile template switcher params, stored in system plugin\r\n $mobile_switch_enabled = JRequest::getBool( 'mobile_switch_enabled', $defaultEnabled);\r\n $mobile_template = JRequest::getCmd( 'mobile_template', $defaultTemplate);\r\n\r\n // set params\r\n $params->set('mobile_switch_enabled', $mobile_switch_enabled);\r\n $params->set('mobile_template', $mobile_template);\r\n $textParams = (string) $params;\r\n\r\n try {\r\n ShlDbHelper::update( '#__extensions', array('params' => $textParams), array( 'element' => 'shmobile', 'folder' => 'system', 'type' => 'plugin'));\r\n } catch (Exception $e) {\r\n\r\n }\r\n\r\n }", "public static function renderLayout($layout, $content, $data = false, $custom = null)\n {\n $instance =& get_instance();\n\n $filePath = self::layoutPath($layout, $custom);\n\n if (! is_readable($filePath)) {\n throw new \\UnexpectedValueException('File not found: '.$filePath);\n }\n\n if(is_array($data)) {\n $data = $data + $instance->data();\n }\n else {\n $data = $instance->data();\n }\n\n if(! empty($data)) {\n // Extract the rendering variables.\n foreach($data as $name => $value) {\n ${$name} = $value;\n }\n }\n\n Response::sendHeaders();\n\n require $filePath;\n }", "function meta_boxes_save() {\r\n\t\t\r\n\t\t// Only process if the form has actually been submitted\r\n\t\tif (\r\n\t\t\tisset( $_POST['_wpnonce'] ) &&\r\n\t\t\tisset( $_POST['post_ID'] )\r\n\t\t) {\r\n\t\t\t\r\n\t\t\t// Do nonce security check\r\n\t\t\twp_verify_nonce( '_wpnonce', $_POST['_wpnonce'] );\r\n\t\t\t\r\n\t\t\t// Grab post ID\r\n\t\t\t$post_ID = (int) $_POST['post_ID'];\r\n\t\t\t\r\n\t\t\t// Iterate through each possible piece of meta data\r\n\t\t\tforeach( $this->post_meta as $key => $value ) {\r\n\t\t\t\tif ( isset( $_POST['_' . $key] ) ) {\r\n\t\t\t\t\t$data = esc_html( $_POST['_' . $key] ); // Sanitise data input\r\n\t\t\t\t\tupdate_post_meta( $post_ID, '_' . $key, $data ); // Store the data\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public function afterCreate()\n {\n $this->saveCustomFields();\n }", "public function saveMetadata(){\n foreach ($this->_metadata as $metadatum) {\n $metadatum->save();\n }\n return $this;\n }", "protected function saveFieldsToLayouts ($basepath , $dummy , $relationshipName , $layoutAdditions)\n {\n // these modules either lack editviews/detailviews or use custom mechanisms for the editview/detailview. In either case, we don't want to attempt to add a relate field to them\n // would be better if GridLayoutMetaDataParser could handle this gracefully, so we don't have to maintain this list here\n $invalidModules = array('emails');\n \n $fieldsToAdd = array();\n foreach ( $layoutAdditions as $deployedModuleName => $fieldName )\n {\n if ( ! in_array( strtolower ( $deployedModuleName ) , $invalidModules ) ) {\n foreach ( array ( MB_RECORDVIEW ) as $view )\n {\n $parsedName = self::parseDeployedModuleName ( $deployedModuleName ) ;\n if (! isset ( $parsedName [ 'packageName' ] ))\n {\n $fieldsToAdd [$parsedName [ 'moduleName' ]] = $fieldName;\n } \n //Bug 22348: We should add in the field for custom modules not in this package, if they have been deployed.\n else if ($parsedName [ 'packageName' ] != $this->packageName \n && isset ( $GLOBALS [ 'beanList' ] [ $deployedModuleName ])){\n $fieldsToAdd [$deployedModuleName] = $fieldName;\n }\n }\n }\n }\n return array(array('additional_fields' => $fieldsToAdd));\n }", "function dp_template_save_meta_box_data($post_id)\r\n{\r\n\r\n /*\r\n * We need to verify this came from our screen and with proper authorization,\r\n * because the save_post action can be triggered at other times.\r\n */\r\n\r\n // Check if our nonce is set.\r\n if (!isset($_POST['myplugin_meta_box_nonce'])) {\r\n return;\r\n }\r\n // Verify that the nonce is valid.\r\n if (!wp_verify_nonce($_POST['myplugin_meta_box_nonce'], 'myplugin_meta_box')) {\r\n return;\r\n }\r\n // If this is an autosave, our form has not been submitted, so we don't want to do anything.\r\n if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {\r\n return;\r\n }\r\n // Check the user's permissions.\r\n if (isset($_POST['post_type']) && 'page' == $_POST['post_type']) {\r\n if (!current_user_can('edit_page', $post_id)) {\r\n return;\r\n }\r\n } else {\r\n if (!current_user_can('edit_post', $post_id)) {\r\n return;\r\n }\r\n }\r\n\r\n /* OK, it's safe for us to save the data now. */\r\n\r\n // Make sure that it is set.\r\n// if (!isset($_POST['dp-sort-element'])) {\r\n// return;\r\n// }\r\n\r\n // Sanitize user input.\r\n $my_data = sanitize_text_field($_POST['dp_sort-element']);\r\n $dp_title_s = serialize($_POST['dp_title']);\r\n $dp_image_s = serialize($_POST['dp_image']);\r\n $dp_excerpt_s= serialize($_POST['dp_excerpt']);\r\n $dp_price_s=serialize($_POST['dp_price']);\r\n $dp_addtocartbutton_s=serialize($_POST['dp_addtocartbutton']);\r\n $dp_customfield_s=serialize($_POST['dp_customfield']);\r\n $dp_variable_s=serialize($_POST['dp_variable']);\r\n $dp_option_s=serialize($_POST['dp_option']);\r\n\r\n\r\n // Update the meta field in the database.\r\n update_post_meta($post_id, 'dp_sort-element', $my_data);\r\n update_post_meta($post_id, 'dp_select_template', $_POST['dp_select_template']);\r\n update_post_meta($post_id,'dp_title',$dp_title_s);\r\n update_post_meta($post_id,'dp_image',$dp_image_s);\r\n update_post_meta($post_id,'dp_excerpt',$dp_excerpt_s);\r\n update_post_meta($post_id,'dp_price',$dp_price_s);\r\n update_post_meta($post_id,'dp_addtocartbutton',$dp_addtocartbutton_s);\r\n update_post_meta($post_id,'dp_customfield',$dp_customfield_s);\r\n update_post_meta($post_id,'dp_variable',$dp_variable_s);\r\n update_post_meta($post_id,'dp_option',$dp_option_s);\r\n}", "function save_meta_options( $postID ){\n\t\t$post = $_POST;\n\t\tif((isset($post['update']) || isset($post['save']) || isset($post['publish']))){\n\n\n\t\t\t$user_template = (isset($post['pagelines_template'])) ? $post['pagelines_template'] : '';\n\n\t\t\tif($user_template != ''){\n\n\t\t\t\t$set = pl_meta($postID, PL_SETTINGS);\n\t\t\t\t\n\t\t\t\t$set['draft']['page-template'] = $user_template; \n\t\t\t\t$set['live']['page-template'] = $user_template; \n\t\t\t\t\n\t\t\t\tpl_meta_update($postID, PL_SETTINGS, $set);\n\t\t\t}\n\n\n\t\t}\n\t}", "public function definition_after_data() {\n global $DB;\n\n $mform = $this->_form;\n\n // Check that we are updating a current customcert.\n if ($this->id) {\n // Get the pages for this customcert.\n if ($pages = $DB->get_records('customcert_pages', array('customcertid' => $this->id))) {\n // Loop through the pages.\n foreach ($pages as $p) {\n // Set the width.\n $element = $mform->getElement('pagewidth_' . $p->id);\n $element->setValue($p->width);\n // Set the height.\n $element = $mform->getElement('pageheight_' . $p->id);\n $element->setValue($p->height);\n // Set the margin.\n $element = $mform->getElement('pagemargin_' . $p->id);\n $element->setValue($p->margin);\n }\n }\n }\n }", "public function saveForm() {\n\n\t\tforeach ( $this->getOptionsList() as $element ) {\n\t\t\t$element->save();\n\t\t}\n\t\t$this->setLastAction( self::ACTION_SAVE );\n\n\t\t$custom_style = new Custom_CSS_Style();\n\t\t$custom_style->reinit();\n\t}", "protected function MetaAfterLoad() {\n\t\t}", "private function packMeta()\n {\n $transport = $this->modx->fromJSON(file_get_contents(__DIR__ . '/../transport.json'));\n unset($transport['support']['db']);\n\n $this->builder->setPackageAttributes([\n 'changelog' => file_get_contents(__DIR__ . '/../meta/changelog.txt'),\n 'license' => file_get_contents(__DIR__ . '/../meta/license.txt'),\n 'readme' => file_get_contents(__DIR__ . '/../meta/readme.txt'),\n 'requires' => $transport['support']\n ]);\n }", "public function saveMetaFile($projectId, $meta)\n {\n $this->metaContract->create([\n 'project_id' => $projectId,\n 'xml' => $meta,\n ]);\n }", "function my_meta_init()\n{\n // http://codex.wordpress.org/Function_Reference/wp_enqueue_script\n // http://codex.wordpress.org/Function_Reference/wp_enqueue_style\n \n //wp_enqueue_script('my_meta_js', MY_THEME_PATH . '/custom/meta.js', array('jquery'));\n wp_enqueue_style('my_meta_css', MY_THEME_PATH . '/custom/shop-meta.css');\n \n // review the function reference for parameter details\n // http://codex.wordpress.org/Function_Reference/add_meta_box\n \n // add a meta box for each of the wordpress page types: posts and pages\n foreach (array('product') as $type) \n {\n add_meta_box('my_all_meta', 'Prezzo e Descrizione Prodotto', 'my_meta_setup', $type, 'normal', 'high');\n }\n \n // add a callback function to save any data a user enters in\n add_action('save_post','my_meta_save');\n}", "protected static function updateLayout(): void\n {\n (new Filesystem)->delete(resource_path('views/layouts'));\n\n (new Filesystem)->copyDirectory(__DIR__.'/ttall-stubs/resources/views/layouts', resource_path('views/layouts'));\n }", "private function setLayouts() {\n # list of layout names!\n $availableLayouts = $this->fileMaker->listLayouts();\n\n foreach ($availableLayouts as $layoutName){\n if ($this->name === 'mi' or $this->name === 'miw') {\n if ($layoutName == 'search-'.strtoupper($this->name)) {\n $this->search_layout = $this->fileMaker->getLayout($layoutName);\n } else if ($layoutName == 'results-'.strtoupper($this->name)) {\n $this->result_layout = $this->fileMaker->getLayout($layoutName);\n } else if ($layoutName == 'details-'.strtoupper($this->name)) {\n $this->detail_layout = $this->fileMaker->getLayout($layoutName);\n }\n } else {\n if (str_contains($layoutName, 'search')) {\n $this->search_layout = $this->fileMaker->getLayout($layoutName);\n } else if (str_contains($layoutName, 'results')) {\n $this->result_layout = $this->fileMaker->getLayout($layoutName);\n } else if (str_contains($layoutName, 'details')) {\n $this->detail_layout = $this->fileMaker->getLayout($layoutName);\n }\n }\n }\n }", "function axiom_init_pagebuilder_meta_box(){\n // add custom sidebar metabox to following types\n $types = array('page', 'axi_product', 'portfolio', 'service', 'staff');\n \n foreach ($types as $key => $value) {\n add_meta_box(\"axiom_pagebuilder_metabox\", \n __(\"Smart Page Builder\", 'default'), \n \"axiom_display_pagebuilder_meta\", \n $value, \n \"normal\", \n \"high\");\n }\n \n // Save custom sidebar meta\n add_action('save_post', 'axiom_save_pagebuilder_data');\n \n}", "protected function addCustomFieldset()\n {\n $this->meta = array_merge_recursive(\n $this->meta,\n [\n static::NOTE_FIELD_INDEX => $this->getFieldsetConfig(),\n ]\n );\n }", "public abstract function settingsSave(array &$pluginInfo);", "public function storeLayout()\n {\n $journalpolicy = Journalpolicy::create(request()->validate([\n 'layout' => 'required',\n ]));\n return redirect()->route('journals.layout.edit', $journalpolicy->id);\n }", "function wpsight_options_layout() {\n\t\n\t\tif( ! current_theme_supports( 'options-layout' ) )\n\t\t\treturn;\n\t\t\n\t\t/** Create options array */\n\t\t\t\n\t\t$options_layout = array();\n\t\t\t\n\t\t$options_layout['heading_layout'] = array(\n\t\t\t'name' => __( 'Layout', 'wpsight' ),\n\t\t\t'id' => 'heading_layout',\n\t\t\t'type' => 'heading'\n\t\t);\n\t\t\n\t\t$options_layout['header_right'] = array( \n\t\t\t'name' \t => __( 'Header Area', 'wpsight' ),\n\t\t\t'desc' \t => __( 'You can add custom HTML and/or shortcodes, which will be automatically inserted into your theme.', 'wpsight' ),\n\t\t\t'std' \t => __( 'Need expert advice? Call us now - 555 555 555', 'wpsight' ),\n\t\t\t'id' \t => 'header_right',\n\t\t\t'settings' => array( 'textarea_rows' => 5 ),\n\t\t\t'type' \t => 'editor'\n\t\t);\n\t\t\n\t\tif( WPSIGHT_LAYOUT == 'four' ) {\n\t\t\n\t\t\t$options_layout['archive_layout'] = array(\n\t\t\t\t'name' \t => __( 'Archive Layout', 'wpsight' ),\n\t\t\t\t'desc' \t => __( 'Please remember that the layout is also limited through the sidebar. If the archive sidebar is active, only option #1 and #3 will be possible.', 'wpsight' ),\n\t\t\t\t'id' \t => 'archive_layout',\n\t\t\t\t'std' \t => 'span9',\n\t\t\t\t'type' \t => 'images',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'span3' => WPSIGHT_ADMIN_IMG_URL . '/archive-three.png',\n\t\t\t\t\t'span6' => WPSIGHT_ADMIN_IMG_URL . '/archive-six.png',\n\t\t\t\t\t'span9' => WPSIGHT_ADMIN_IMG_URL . '/archive-nine.png',\n\t\t\t\t\t'span12' => WPSIGHT_ADMIN_IMG_URL . '/archive-twelve.png'\n\t\t\t\t)\n\t\t\t);\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$options_layout['archive_layout'] = array(\n\t\t\t\t'name' \t => __( 'Archive Layout', 'wpsight' ),\n\t\t\t\t'desc' \t => __( 'Please remember that the layout is also limited through the sidebar. If the archive sidebar is active, only option #1 and #3 will be possible.', 'wpsight' ),\n\t\t\t\t'id' \t => 'archive_layout',\n\t\t\t\t'std' \t => 'span8',\n\t\t\t\t'type' \t => 'images',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'span4' => WPSIGHT_ADMIN_IMG_URL . '/archive-four.png',\n\t\t\t\t\t'span6' => WPSIGHT_ADMIN_IMG_URL . '/archive-six.png',\n\t\t\t\t\t'span8' => WPSIGHT_ADMIN_IMG_URL . '/archive-eight.png',\n\t\t\t\t\t'span12' => WPSIGHT_ADMIN_IMG_URL . '/archive-twelve.png'\n\t\t\t\t)\n\t\t\t);\t\n\t\t\n\t\t}\n\t\t\n\t\tif( WPSIGHT_LAYOUT == 'four' ) {\n\t\t\n\t\t\t// Check if old property_archive_layout option was active\n\t\t\t$listing_archive_layout_std = wpsight_get_option( 'property_archive_layout' ) ? wpsight_get_option( 'property_archive_layout' ) : 'span3';\n\t\t\n\t\t\t$options_layout['listing_archive_layout'] = array(\n\t\t\t\t'name' \t => __( 'Listing Archive Layout', 'wpsight' ),\n\t\t\t\t'desc' \t => __( 'Please remember that the layout is also limited through the sidebar. If the listing archive sidebar is active, only option #1 and #3 will be possible.', 'wpsight' ),\n\t\t\t\t'id' \t => 'listing_archive_layout',\n\t\t\t\t'std' \t => $listing_archive_layout_std,\n\t\t\t\t'type' \t => 'images',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'span3' => WPSIGHT_ADMIN_IMG_URL . '/archive-three.png',\n\t\t\t\t\t'span6' => WPSIGHT_ADMIN_IMG_URL . '/archive-six.png',\n\t\t\t\t\t'span9' => WPSIGHT_ADMIN_IMG_URL . '/archive-nine.png',\n\t\t\t\t\t'span12' => WPSIGHT_ADMIN_IMG_URL . '/archive-twelve.png'\n\t\t\t\t)\n\t\t\t);\n\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Check if old property_archive_layout option was active\n\t\t\t$listing_archive_layout_std = wpsight_get_option( 'property_archive_layout' ) ? wpsight_get_option( 'property_archive_layout' ) : 'span4';\n\t\t\n\t\t\t$options_layout['listing_archive_layout'] = array(\n\t\t\t\t'name' \t => __( 'Listing Archive Layout', 'wpsight' ),\n\t\t\t\t'desc' \t => __( 'Please remember that the layout is also limited through the sidebar. If the listing archive sidebar is active, only option #1 and #3 will be possible.', 'wpsight' ),\n\t\t\t\t'id' \t => 'listing_archive_layout',\n\t\t\t\t'std' \t => $listing_archive_layout_std,\n\t\t\t\t'type' \t => 'images',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'span4' => WPSIGHT_ADMIN_IMG_URL . '/archive-four.png',\n\t\t\t\t\t'span6' => WPSIGHT_ADMIN_IMG_URL . '/archive-six.png',\n\t\t\t\t\t'span8' => WPSIGHT_ADMIN_IMG_URL . '/archive-eight.png',\n\t\t\t\t\t'span12' => WPSIGHT_ADMIN_IMG_URL . '/archive-twelve.png'\n\t\t\t\t)\n\t\t\t);\t\n\t\t\n\t\t}\n\t\t\n\t\t$options_layout['credit'] = array( \n\t\t\t'name' \t => __( 'Credit', 'wpsight' ),\n\t\t\t'desc' \t => __( 'You can add custom HTML and/or shortcodes, which will be automatically inserted into your theme.', 'wpsight' ) . ' ' . __(' Available shortcodes', 'wpsight' ) . ': <code>[the_year]</code>, <code>[site_link]</code>, <code>[wordpress_link]</code>, <code>[wpcasa_link]</code>, <code>[loginout_link]</code>',\n\t\t\t'std' \t => '<div class=\"credit-left\"><p>[the_year] - [site_link]</p></div>' . \"\\n\" . '<div class=\"credit-right\"><p>Powered by [wordpress_link] - Built on [wpcasa_link]</p></div>',\n\t\t\t'id' \t => 'credit',\n\t\t\t'settings' => array( 'textarea_rows' => 5 ),\n\t\t\t'type' \t => 'editor'\n\t\t);\n\t\t\t\t\n\t\treturn apply_filters( 'wpsight_options_layout', $options_layout );\n\t\t\n\t}", "function privacy() \n\t{\n\t\t$this->layout=\"front_default\";\n\t\t\n\t\t$this->set(\"title_for_layout\",'Privacy Policy - LessonShark'); \n }" ]
[ "0.7235171", "0.68663526", "0.62696457", "0.61637557", "0.61454505", "0.594961", "0.5837574", "0.5701952", "0.56800514", "0.56689346", "0.55784166", "0.5529873", "0.55156887", "0.5501792", "0.550073", "0.54814833", "0.54522914", "0.5437469", "0.54129875", "0.5389189", "0.5384839", "0.5333728", "0.5327222", "0.5323111", "0.52992743", "0.52844054", "0.5280722", "0.51961225", "0.51786023", "0.51685274", "0.51585925", "0.5155241", "0.5153743", "0.5117434", "0.5116036", "0.51139253", "0.509078", "0.508996", "0.5080755", "0.50778353", "0.50606406", "0.50439477", "0.5033496", "0.5031333", "0.50302017", "0.5007032", "0.50001705", "0.4997945", "0.49978977", "0.49867085", "0.49846146", "0.49710518", "0.49452245", "0.49368742", "0.49327496", "0.49272066", "0.49225143", "0.49212804", "0.49030268", "0.48971492", "0.48941857", "0.4891765", "0.4889297", "0.48704964", "0.48659423", "0.48649746", "0.48602134", "0.4858204", "0.48480833", "0.48420194", "0.48408112", "0.48378792", "0.4826301", "0.48258036", "0.48209643", "0.48174244", "0.4817304", "0.48142987", "0.4813157", "0.481163", "0.4809529", "0.4808266", "0.48070154", "0.48033738", "0.47974488", "0.47907937", "0.4789851", "0.4789744", "0.4785289", "0.478477", "0.47818926", "0.4777048", "0.47730654", "0.4768883", "0.4764204", "0.47629887", "0.4762656", "0.4761452", "0.47606176", "0.47528875" ]
0.5674365
9
Delete custom layout data when delete post
public function delete_fields( $post_id ) { // get_theme_mod( '_custom_layout_taxonomies' ) $metas = get_theme_mod( '_custom_layout_posts' ); if ( ! is_array( $metas ) ) { $metas = (array) $metas; } unset( $metas[ $post_id ] ); set_theme_mod( '_custom_layout_posts', $metas ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$model->deleteLayout($this->_request->getParam('layout'));\n\t\t$this->_redirect('/admin/layout/list');\n\t }", "protected function _postDelete() {}", "protected function _postDelete() {}", "public function afterDelete() {\n $this->deleteMeta();\n parent::afterDelete();\n }", "public function delete() {\n $this->remove_content();\n\n parent::delete();\n }", "protected function _postDelete()\n {\n $this->getResource()->delete();\n\n $this->getIssue()->compileHorizontalPdfs();\n }", "function wp_idolondemand_delete_post()\n{\n}", "protected function _postDelete()\n\t{\n\t}", "public function post_editketentuan(){\n $this->layout = null;\n }", "protected function afterDelete()\n\t{\n\t\tparent::afterDelete();\n\t\tComment::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tBookmark::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tHowtoCategory::model()->deleteAll( 'howto_id=' . $this->id );\n \t\tSlide::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tStep::model()->deleteAll( 'howto_id=' . $this->id );\n\t\tHowtoTag::model()->deleteAll( 'howto_id=' . $this->id );\n\t}", "protected function _postDelete()\n {\n $this->clearResources();\n }", "public function after_delete() {}", "public function afterDelete()\n {\n $this->deleteAllCustomFields();\n }", "public function afterDelete()\n {\n if ($this->image) $this->image->delete();\n if ($this->reindex) Slide::reindex();\n }", "protected function afterDelete()\r\n {\r\n }", "public function delete() { // Page::destroy($this->pages()->select('id')->get());\n $this->pages()->detach();\n parent::delete();\n }", "function after_delete() {}", "protected function afterDelete()\n {\n }", "public function delete(){\n\t $this->model->clear()->filter(array('preview_master_id' => WaxUrl::get(\"id\")))->delete();\n\t parent::delete();\n\t}", "public function onAfterContentSave($item, $isNew) {\n// WidgetkitK2WidgetkitHelper::delete($item->id);\n }", "public function delTemplateData() {\r\n\t\t$this->templateData = [];\r\n\t}", "protected function MetaAfterDelete() {\n\t\t}", "protected function afterDelete()\n {\n parent::afterDelete();\n //Comment::model()->deleteAll('post_id='.$this->id);\n VideoTag::model()->updateFrequency($this->tags, '');\n }", "function do_delete(){\n\t\t// remove from fieldset:\n\t\t$fieldset = jcf_fieldsets_get( $this->fieldset_id );\n\t\tif( isset($fieldset['fields'][$this->id]) )\n\t\t\tunset($fieldset['fields'][$this->id]);\n\t\tjcf_fieldsets_update( $this->fieldset_id, $fieldset );\n\t\t\n\t\t// remove from fields array\n\t\tjcf_field_settings_update($this->id, NULL);\n\t}", "public function delete_builder_template($name = \"%\")\n\t\t{\n\t\t check_ajax_referer('avia_nonce_save','avia-save-nonce');\n\t\t\n $name = isset($_POST['templateName']) ? $_POST['templateName'] : $name;\n $id = AviaStoragePost::get_custom_post('template_builder_snippets');\n\n \n $key = $this->generate_key($name);\n $result = delete_post_meta($id, $key);\n echo 'avia_template_deleted';\n die();\n\t\t}", "function acf_delete_metadata($post_id = 0, $name = '', $hidden = \\false)\n{\n}", "public function delete() {\n\t\t$query = new WP_Query( array(\n\t\t\t'name' => $this->params['post_name'],\n\t\t\t'post_type' => $this->params['post_type']\n\t\t) );\n\n\t\t$post = array_shift( $query->posts );\n\n\t\t// die('<pre>'.var_export($post,true).'</pre>');\n\n\t\tif ( $post ) {\n\t\t\t$current_action = $this->get_current_action();\n\t\t\t$this->action_results[ 'status' ] = 'success';\n\t\t\t$this->action_results[ 'messages' ][ $post->post_type ][ $post->ID ][ 'note' ] = __( 'The information has been deleted', 'kickpress' );\n\t\t\t$this->action_results[ 'data' ][ 'post_id' ] = $post->ID;\n\n\t\t\twp_trash_post( $post->ID );\n\t\t}\n\t}", "public function removeAction()\n {\n Zend_Controller_Action_HelperBroker::removeHelper('Layout');\n $this->view->id = $this->_getParam(\"id\");\n }", "function delete_graphql_data()\n {\n }", "function delete_comment_data(){\n\t\t$this->layout = 'ajax';\n\t\t$comment_id = $_POST['comment_id'];\n\n\t\tif($this->Comment->delete($comment_id)){\n\t\t\techo 'deleted';\n\t\t}\n\t\texit;\n\t}", "public function deleteDataAction()\n {\n $contentService = Dm_Session::GetServiceFactory()->getContentService();\n $filter = new Service_Api_Filter_Content();\n $filter->id = $this->_getParam('id');\n $contents = $contentService->contentsDelete($filter);\n $this->view->data = $contents;\n }", "public function purge_post_data() {\n\n if ( current_user_can( 'delete_posts' ) )\n add_action( 'delete_post', array( $this, 'purge_post' ) );\n\n }", "public function onAfterDelete() {\n\t\tparent::onAfterDelete();\n\n\t\tif($this->isPublished()) {\n\t\t\t$this->doUnpublish();\n\t\t}\n\t}", "function rssmi_delete_feed_post_admin()\n{\n rssmi_delete_posts_admin();\n}", "public function afterDelete() {\r\n parent::afterDelete();\r\n\r\n if($this->id){\r\n Cache::delete('getPracticeTitleById'.$this->id);\r\n }\r\n }", "public function deleteLayout($layout)\n\t{\n\t\tif($layout != $this->layout_default && in_array($layout, $this->layouts))\n\t\t{\n\t\t\t// delete the layout object\n\t\t\tunset($this->$layout);\n\t\t\t\n\t\t\t// remove the layout from registered layouts\n\t\t\t$this->layouts = array_diff( $this->layouts, array( $layout ) );\n\t\t\t\n\t\t\t// update registered layouts in options\n\t\t\tupdate_option( $this->option_layouts, $this->layouts , NULL , 'no' );\n\t\n\t\t\t// delete the layout from options\n\t\t\tdelete_option( sanitize_title( $layout ) );\n\t\t\t\n\t\t\t// @todo: delete layout from rules\n\t\t}//end if\n\t}", "protected function afterDelete()\n\t{\n\t\tparent::afterDelete();\n\t\tComment::model()->deleteAll('photo_id='.$this->id);\n\t\tTag::model()->updateFrequency($this->tags, '');\n\t}", "protected function _postDelete()\n {\n $tabNameId = $this->get('tab_name_id');\n\n $db = $this->_db;\n\n $db->delete('xf_tab_content', 'tab_name_id = ' . $db->quote($tabNameId));\n\n $this->_deleteMasterPhrase($this->_getTitlePhraseName($tabNameId));\n }", "protected function _preDelete() {}", "function layout_builder_post_update_remove_layout_is_rebuilding() {\n // Empty post-update hook.\n}", "public function remove_post()\n {\n $input = $this->input->post();\n $data=$this->Category_model->deleteData($input);\n $this->response(['Item deleted successfully.'], REST_Controller::HTTP_OK);\n }", "protected function _afterDelete()\r\n {\r\n $this->updatePostCommentCount();\r\n parent::_afterDelete();\r\n\r\n }", "protected function _postDelete()\r\n {\r\n $this->_updateSocialNotices();\r\n\r\n parent::_postDelete();\r\n }", "function wp_ajax_delete_post($action)\n {\n }", "function remove_single_post() {\n remove_action('thematic_singlepost', 'thematic_single_post');\n}", "public function deleteContentAndCopyDraftPage() {}", "public function pre_delete()\r\n\t{\r\n\t\tparent::pre_delete();\r\n\t\t$Change = App::make('Change');\r\n\t\t$Change::where('fmodel', 'GalleryItem')\r\n\t\t\t ->where('fid', $this->id)\r\n\t\t\t ->delete();\r\n\t\t\t \r\n\t\t// Thumbs\r\n\t\t/*if($this->file) {\r\n\t\t\t# Should really check if these are used anywhere else, but no easy way to do that in other modules yet so just leaving them for now\r\n\t\t\t\r\n\t\t\t// Name\r\n\t\t\t$name = basename(public_path().$this->file);\r\n\t\t\t\r\n\t\t\t// Thumbs\r\n\t\t\t$thumbs = Config::get('galleries::thumbs');\r\n\t\t\tforeach($thumbs as $k => $v) {\r\n\t\t\t\tif(file_exists(public_path().$v['path'].$name)) unlink(public_path().$v['path'].$name);\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public function deleteContentAndCopyLivePage() {}", "function callbackRowDelete() {\n $this->deleted = true;\n foreach(array_keys($this->widgets) as $w) {\n $this->widgets[$w]->hide();\n $this->table->table->remove($this->widgets[$w]);\n $this->widgets[$w]->destroy();\n }\n $this->deleteMenuItem->hide();\n \n $this->table->deleteMenu->remove($this->deleteMenuItem);\n $this->deleteMenuItem->destroy();\n $this->table->frame->hide();\n $this->table->frame->show();\n }", "function my_callback_delete_post( $result ) {\n\twp_delete_post( $result->ID, true );\n}", "public function hook_after_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_after_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_after_delete($id) {\n\t //Your code here\n\n\t }", "function RemoveLayout($layout_id){\n\t//Making a query to get the location of the file\t\n\t$stringBuilder = \"SELECT l.default_background, fdb.location AS backgroundLocation, l.logo, flogo.location AS logoLocation \";\n\t$stringBuilder .= \"FROM layout l \";\n\t$stringBuilder .= \"INNER JOIN `file` fdb ON fdb.file_id=l.default_background \";\n\t$stringBuilder .= \"INNER JOIN `file` flogo ON flogo.file_id=l.logo \";\n\t$stringBuilder .= \"WHERE l.layout_id=? \";\n\t\n\t// Preparing query\n\t$query = GetDatabaseConnection()->prepare($stringBuilder);\n\t$query->execute(array($layout_id)); //Putting in the parameters\n\t$result = $query->fetchAll(); //Fetching it\n\n\tforeach ($result as $row) {\n\t\t//Putting the name together\n\t\t$default_background = $row[\"default_background\"];\n\t\t$default_background_location = $_SERVER[\"DOCUMENT_ROOT\"] . $row[\"backgroundLocation\"];\n\t\t$logo = $row[\"logo\"];\n\t\t$logo_location = $_SERVER[\"DOCUMENT_ROOT\"] . $row[\"logoLocation\"];\n\n\t\tif (unlink($default_background_location) && unlink($logo_location)){ //Removing the files\n\t\t\t//Making the delete query\n\t\t\t$stringBuilder = \"DELETE FROM layout WHERE layout_id=? \";\n\t\t\t//preparing the query\n\t\t\t$query = GetDatabaseConnection()->prepare($stringBuilder);\n\t\t\tif($query->execute(array($layout_id))){\n\n\t\t\t\t$stringBuilder = \"DELETE FROM `file` WHERE file_id=? \";\n\t\t\t\t//preparing the query\n\t\t\t\t$query = GetDatabaseConnection()->prepare($stringBuilder);\n\n\t\t\t\tif($query->execute(array($default_background)) && $query->execute(array($logo))){\n\t\t\t\t\techo \"<div class=\\\"alert alert-success alert-dismissible fade show\\\" role=\\\"alert\\\"><button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-label=\\\"Close\\\"><span aria-hidden=\\\"true\\\">&times;</span></button>De opmaak is verwijderd</div>\";\n\t\t\t\t} else {\n\t\t\t\t\techo \"<div class=\\\"alert alert-danger\\\" role=\\\"alert\\\">Er is iets fout gegaan</div>\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\techo \"<div class=\\\"alert alert-danger\\\" role=\\\"alert\\\">Er is iets fout gegaan</div>\";\n\t\t\t}\n\t\t} else {\n\t\t\techo \"<div class=\\\"container-fluid\\\"><div class=\\\"alert alert-danger\\\" role=\\\"alert\\\">Er is iets fout gegaan</div></div>\";\n\t\t}\n\t}\n}", "public function onAfterDelete();", "public function afterDelete()\n {\n foreach (static::find()->where(['parent_id' => $this->id])->all() as $item) {\n $item->delete();\n }\n }", "public function deletePostMeta() {\n delete_post_meta($this->id, $this->_post_meta_name);\n }", "function delete_post()\n {\n $this->Admin_model->procedure = 'POST_DELETE';\n\n echo $this->p_post_id_delete;\n\n\n $rs = $this->Admin_model->delete($this->p_post_id_delete);\n\n //redirect('admin/Posts/display_cat');\n }", "public function action_delete()\n {\n\t $this->template = View::forge('template-admin');\n\n $post = Input::post();\n $entry = Model_Event::find_by_pk($post[\"id\"]);\n\t\tif ($entry){\n\t\t\tif(!$entry->delete()){\n\t\t\t\t$data[\"events\"] = Model_Event::find_all();\n\t\t\t\t$this->template->title = \"イベント一覧\";\n\t\t\t\t$this->template->content = View::forge('event/index', $data);\n\t\t\t}\n\t\t}\n\t\t$data[\"events\"] = Model_Event::find_all();\n\t\t$this->template->title = \"イベント一覧\";\n\t\t$this->template->content = View::forge('event/index', $data);\n }", "public function onFieldDeleted($button) {}", "public function hook_after_delete($id) {\n\n }", "public function deleteList(){\n\n $posts=$this->articleDAO->getPosts();\n $this->view->adminRender ('delete_view', ['posts' =>$posts]);\n\n }", "public function preDelete() { }", "public function onAfterDelete() {\n\n\t\tparent::onAfterDelete();\n\n\t\t// Determine whether this page has been completely removed.\n\n\t\tif(Config::inst()->get(MisdirectionRequestFilter::class, 'replace_default') && !$this->owner->isPublished() && !$this->owner->isOnDraft()) {\n\n\t\t\t// Convert any link mappings that are directly associated with this page.\n\n\t\t\t$mappings = LinkMapping::get()->filter(array(\n\t\t\t\t'RedirectType' => 'Page',\n\t\t\t\t'RedirectPageID' => $this->owner->ID\n\t\t\t));\n\t\t\tforeach($mappings as $mapping) {\n\t\t\t\t$mapping->RedirectType = 'Link';\n\t\t\t\t$mapping->RedirectLink = Director::makeRelative(($this->owner->Link() === Director::baseURL()) ? Controller::join_links(Director::baseURL(), 'home/') : $this->owner->Link());\n\t\t\t\t$mapping->write();\n\t\t\t}\n\t\t}\n\t}", "public function onBeforeDelete();", "public function delete_meta()\n {\n # process the request which it must be post and ajax request\n if (request()->isPost() && request()->isAjax()) {\n \n $objectId = request()->getPost('object-id', 'int');\n $object = request()->getPost('object', 'alphanum');\n \n $this->setJsonResponse();\n\n $object = PostMeta::findFirstByMeta_id($objectId);\n\n if(!$object) {\n $this->jsonMessages['messages'][] = [\n 'type' => 'warning',\n 'content' => 'Object not found!'\n ];\n return $this->jsonMessages;\n }\n $object->delete();\n\n \n $this->jsonMessages['messages'][] = [\n 'type' => 'success',\n 'content' => 'Object has been deleted!'\n ];\n return $this->jsonMessages;\n \n\n }\n }", "function preDelete()\n {\n }", "public function onDeleteView($info)\n {\n $db = Core::$db;\n $L = $this->getLangStrings();\n\n if (!isset($info[\"view_id\"]) || !is_numeric($info[\"view_id\"])) {\n return;\n }\n\n $db->query(\"\n SELECT published_form_id, form_id\n FROM {PREFIX}module_form_builder_forms\n WHERE view_id = :view_id\n \");\n $db->bind(\"view_id\", $info[\"view_id\"]);\n $db->execute();\n\n $rows = $db->fetchAll();\n foreach ($rows as $row) {\n $published_form_id = $row[\"published_form_id\"];\n $form_id = $row[\"form_id\"];\n\n // always attempt to delete the published form as well as the config first. If that fails, just delete the configuration\n list($success, $message) = Forms::deletePublishedForm($form_id, $published_form_id, \"yes\", $L);\n if (!$success) {\n Forms::deletePublishedForm($form_id, $published_form_id, \"yes\", $L, true);\n }\n }\n }", "function delete_sidebar_area(){\n\t\t\tcheck_ajax_referer('qode-delete-sidebar');\n\n\t\t\tif(!empty($_POST['name'])){\n\t\t\t\t$name = stripslashes($_POST['name']);\n\t\t\t\t$this->sidebars = get_option($this->stored);\n\n\t\t\t\tif(($key = array_search($name, $this->sidebars)) !== false){\n\t\t\t\t\tunset($this->sidebars[$key]);\n\t\t\t\t\tupdate_option($this->stored, $this->sidebars);\n\t\t\t\t\techo \"sidebar-deleted\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdie();\n\t\t}", "protected function delete() {\n\t}", "public function testRemove()\n {\n $context = $this->createPageContext();\n $storage = $this->createStorage();\n $tokenStorage = $this->createTokenStorage();\n\n $layout1 = $storage->create();\n $layout2 = $storage->create();\n $layout3 = $storage->create();\n\n $context->addLayoutList([$layout1->getId(), $layout2->getId(), $layout3->getId()]);\n $token = $context->createEditToken([$layout1->getId(), $layout3->getId()], ['user_id' => 17]);\n $tokenString = $token->getToken();\n $tokenStorage->saveToken($token);\n\n // Save our editable instances\n $tokenStorage->update($tokenString, $layout1);\n $tokenStorage->update($tokenString, $layout3);\n\n // And now remove one layout\n $tokenStorage->remove($tokenString, $layout2->getId());\n $this->assertTrue($token->contains($layout1->getId()));\n $this->assertFalse($token->contains($layout2->getId()));\n $this->assertTrue($token->contains($layout3->getId()));\n\n try {\n $tokenStorage->load($tokenString, $layout2->getId());\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n\n // And the other two still work\n $tokenStorage->load($tokenString, $layout1->getId());\n $tokenStorage->load($tokenString, $layout3->getId());\n }", "function wyz_delete_business_post() {\n\t$nonce = filter_input( INPUT_POST, 'nonce' );\n\n\tif ( ! wp_verify_nonce( $nonce, 'wyz_ajax_custom_nonce' ) ) {\n\t\twp_die( 'busted' );\n\t}\n\n\tglobal $current_user;\n\twp_get_current_user();\n\n\t$_post_id = intval( $_POST['post-id'] );\n\t$_bus_id = intval( $_POST['bus-id'] );\n\t$_user_id = $current_user->ID;\n\t$post = get_post($_post_id);\n\tif ( $_user_id != $post->post_author && ! user_can( $_user_id, 'manage_options' ) ) {\n\t\twp_die( false );\n\t}\n\n\t$bus_posts = get_post_meta( $_bus_id, 'wyz_business_posts', true );\n\tif ( is_array( $bus_posts ) && ! empty( $bus_posts ) ) {\n\t\tforeach ( $bus_posts as $key => $value ) {\n\t\t\tif ( $value == $_post_id ) {\n\t\t\t\tunset( $bus_posts[ $key ] );\n\t\t\t\t$bus_posts = array_values( $bus_posts );\n\t\t\t\tupdate_post_meta( $_bus_id, 'wyz_business_posts', $bus_posts );\n\t\t\t\twp_trash_post( $_post_id );\n\t\t\t\twp_die( true );\n\t\t\t}\n\t\t}\n\t}\n\twp_die( false );\n}", "function wp_delete_auto_drafts()\n {\n }", "function layout_builder_post_update_section_storage_context_definitions() {\n // Empty post-update hook.\n}", "protected function afterDelete()\n {\n parent::afterDelete();\n self::extraAfterDelete($this);\n \n\t\t\t\n\t\t//Implements to delete The Term Relation Ship\t\t\n }", "protected function deleteMeta()\n {\n $sql = sprintf(\n 'DELETE FROM %sfaqattachment WHERE id = %d',\n PMF_Db::getTablePrefix(),\n $this->id\n );\n\n $this->db->query($sql);\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "function colormag_delete_post_import() {\n\t$page = get_page_by_title( 'Hello world!', OBJECT, 'post' );\n\n\tif ( is_object( $page ) && $page->ID ) {\n\t\twp_delete_post( $page->ID, true );\n\t}\n}", "public function delete_data_to_tombstone(){\n }", "function wp_ajax_delete_meta()\n {\n }", "public function delete () {\n\t\tglobal $wpdb;\n\n\t\t$wpdb->query($wpdb->prepare(\"\n\t\tDELETE FROM $wpdb->postmeta WHERE meta_key='syndication_feed_id'\n\t\tAND meta_value = '%s'\n\t\t\", $this->id));\n\n\t\t$wpdb->query($wpdb->prepare(\"\n\t\tDELETE FROM $wpdb->links WHERE link_id = %d\n\t\t\", (int) $this->id));\n\n\t\t$this->id = NULL;\n\t}", "public function testDelete()\n {\n $context = $this->createPageContext();\n $storage = $this->createStorage();\n $tokenStorage = $this->createTokenStorage();\n\n $layout1 = $storage->create();\n $layout2 = $storage->create();\n $layout3 = $storage->create();\n\n $context->addLayoutList([$layout1->getId(), $layout2->getId(), $layout3->getId()]);\n $token = $context->createEditToken([$layout1->getId(), $layout3->getId()], ['user_id' => 17]);\n $tokenString = $token->getToken();\n $tokenStorage->saveToken($token);\n\n // Save our editable instances\n $tokenStorage->update($tokenString, $layout1);\n $tokenStorage->update($tokenString, $layout3);\n\n // Validate that load still work\n $tokenStorage->loadToken($tokenString);\n $tokenStorage->loadMultiple($tokenString, [$layout1->getId(), $layout3->getId()]);\n\n // And now delete\n $tokenStorage->deleteAll($tokenString);\n\n try {\n $tokenStorage->loadToken($tokenString);\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n try {\n $tokenStorage->loadMultiple($tokenString, [$layout1->getId()]);\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n try {\n $tokenStorage->load($tokenString, $layout3->getId());\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n }", "protected function _predelete() {\n }", "protected function setDeleteData()\n\t{\n\n\t}", "public function remove()\n {\n $id = $this->input->post('id_slider'); // menangkap post dari form.php ketika edit data, dengan properties namenya adalah id_size\n $this->slider->delete($id); /* mengakses model size, lalu ke fungsi delete dengan parameter sebuah id */\n\n /* membuat array, yang akan dikonversi menjadi json untuk kebutuhan ajax */\n $jsonmsg = array(\n \"msg\" => 'Delete Data Succces',\n \"hasil\" => true\n );\n\n /* konversi array json, yang akan terkirim ke form.php */\n echo json_encode($jsonmsg);\n }", "function call_delete() {\n parent::call_delete();\n }", "public function delete_attachment_data($post_id)\n {\n }", "function postDestroy($request){\r\n global $context;\r\n try{\r\n if(count($request->post)==0){\r\n return $this->view(\"Error/index\",['ErrorNumber'=>0,'ErrorMessage'=>\"Invalid Request !!\"]);\r\n }else{\r\n $data=new $this->model;\r\n $data->data[$data->col_pk]=$request->post[$data->col_pk];\r\n\r\n if(!$data->destroy()){\r\n if($request->isAjax()) return json_error($data->error);\r\n throw new \\Exception($data->error);\r\n }\r\n if($request->isAjax()) return json_success(\"Deleted forever Success !!\");\r\n redirectTo($context->controller_path.\"/all\"); }\r\n }\r\n catch (\\Exception $ex)\r\n {\r\n if($request->isAjax()) return json_error($ex->getMessage().$obj->error);\r\n return $this->view(\"Error/index\",['ErrorNumber'=>0,'ErrorMessage'=>$ex->getMessage().$obj->error]);\r\n }\r\n }", "protected function afterDelete()\n {\n if($this->status==Comment::STATUS_APPROVED)\n Post::model()->updateCounters(array('commentCount'=>-1), \"id={$this->postId}\");\n }", "protected function afterDelete($data)\n {\n /** @var $model LangActiveRecord */\n $model = $this->getModel();\n foreach((array)$data as $pid)\n Seo::model()->deleteMeta(array('pid' => $pid, 'entity' => $model->classId(true)));\n\n if(method_exists($model, 'refreshCache'))\n $model->refreshCache();\n\n if(array_key_exists('bpid', $model->relations()))\n {\n foreach((array)$data as $item)\n $model->deleteBasePid($item);\n }\n }", "protected function afterRemoving()\n {\n }", "protected function handleDelete($request) {\n //get view mount\n $queryViewMount = DB::table('categories')->where('id', $request->_id_cat)->first();\n DB::table('categories')->where('id', $request->_id_cat)->update(['comment' => (int)$queryViewMount -> comment -1]);\n DB::table('comments')->where('id', $request->_id)->delete();\n session::flash('notify', 'Delete successful');\n }", "function before_delete() {}", "public function plugin_deactive_hook(){\r\n delete_transient( 'woolentor_template_info' );\r\n delete_metadata( 'user', null, 'woolentor_dismissed_lic_notice', null, true );\r\n }", "public function destroy(Layout $layout)\n {\n $layout->delete();\n return redirect()->route('layout');\n }", "public function onRemove();", "function ondelete(){\n\t\tforeach($this->get_sections() as $one){\n\t\t\t$one->dbdelete();\n\t\t}\n\t\treturn true;\n\t}", "function iron_delete_post ( $post_id ) {\n\tglobal $wpdb;\n\n\tif ( $post = $wpdb->get_row($wpdb->prepare(\"SELECT * FROM $wpdb->posts WHERE ID = %d\", $post_id)) )\n\t{\n\t\tif ( 'page' == $post->post_type) {\n\t\t\t// if the page is defined in option page_on_front or post_for_posts,\n\t\t\t// adjust the corresponding options\n\t\t\tif ( get_iron_option('page_for_albums') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_albums');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_events') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_events');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_videos') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_videos');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_photos') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_photos');\n\t\t\t}\n\t\t}\n\t}\n}", "function delete()\n {\n }", "public function deleteData($key) {\r\n\t\tif (isset($this->templateData[$key])) {\r\n\t\t\tunset($this->templateData[$key]);\r\n\t\t}\r\n\t}" ]
[ "0.67653525", "0.6711596", "0.6710843", "0.65832525", "0.6522146", "0.65029365", "0.6433894", "0.64056623", "0.6298827", "0.62589395", "0.62426156", "0.6227249", "0.6147846", "0.6128878", "0.6120191", "0.609167", "0.6048119", "0.60475886", "0.6035197", "0.6028432", "0.6027898", "0.60150516", "0.5994849", "0.5973773", "0.596478", "0.5930394", "0.58902717", "0.5887265", "0.58683944", "0.5866199", "0.58604676", "0.5859487", "0.58541685", "0.5851656", "0.582973", "0.58290565", "0.57808495", "0.5779243", "0.5775847", "0.5774814", "0.57402164", "0.5733958", "0.5723588", "0.57233316", "0.5722284", "0.57206845", "0.5696934", "0.568648", "0.56814146", "0.5680471", "0.5679257", "0.5679257", "0.5679257", "0.5676549", "0.5672871", "0.5670341", "0.5668336", "0.5667529", "0.5665488", "0.5647979", "0.56149477", "0.56147164", "0.56107956", "0.56005317", "0.5594562", "0.55886054", "0.5587164", "0.5581377", "0.5573654", "0.5571735", "0.55711436", "0.5565044", "0.5560224", "0.55526406", "0.5541259", "0.5540789", "0.5533088", "0.5531517", "0.5530889", "0.55256164", "0.5525434", "0.5523732", "0.5510331", "0.5508382", "0.5505081", "0.5494586", "0.5486987", "0.54856294", "0.5484426", "0.5477967", "0.5476214", "0.5475846", "0.5466215", "0.54613626", "0.5459946", "0.5458478", "0.54506963", "0.544998", "0.54469705", "0.5445304" ]
0.60849494
16
Display a listing of the resource.
public function search() { $post = post::where('title','like','%'.request('search').'%')->get(); return view('resultes') ->with('tags' , tag::all() ) ->with('posts' , $post) ->with('title' , 'Result : '. request('search')) ->with('categories' , Category::take(5)->get() ) ->with('query' , request('search') ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function counter() { return view('counter') ->with('tags_count' , Tag::all()->count() ) ->with('post_count' , Post::all()->count() ) ->with('users_count' , User::all()->count()) ->with('categories_count' , Category::all()->count()) ->with('trashed_count' , Post::onlyTrashed()->get()->count()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Create a new message instance.
public function __construct(String $nombre, String $asunto, String $email, $numero, String $mensaje, String $tipo_persona) { // $this->nombre = $nombre; $this->email = $email; $this->asunto = $asunto; $this->numero = $numero; $this->mensaje = $mensaje; $this->tipo_persona; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createMessage()\n {\n $message = new Message(new Swift_Message);\n\n\n // If a global from address has been specified we will set it on every message\n // instances so the developer does not have to repeat themselves every time\n // they create a new message. We will just go ahead and push the address.\n if (isset($this->from['address'])) {\n $message->from($this->from['address'], $this->from['name']);\n }\n\n return $message;\n }", "protected function createMessage() {\n $config = $this->messageConfig;\n if (!array_key_exists('class', $config)) {\n $config['class'] = $this->messageClass;\n }\n $config['smser'] = $this;\n return Yii::createObject($config);\n }", "protected static function newMessage()\n {\n self::$message = \\Swift_Message::newInstance();\n }", "public function create()\n {\n //\n $this->message->sendMessage();\n }", "private function newMessage()\n {\n /* @var $config ModuleOptions */\n $config = $this->serviceLocator->get('EscoMail\\Options');\n\n $this->message = new Message();\n $this->message->setFrom($config->getMailSendFrom(), $config->getMailSendFromName());\n\n return $this->message;\n }", "protected function createMessage()\n\t{\n\t\t$config = $this->messageConfig;\n\t\tif (!array_key_exists('class', $config)) {\n\t\t\t$config['class'] = $this->messageClass;\n\t\t}\n\t\t$config['mailer'] = $this;\n\n\t\treturn Yii::createObject($config);\n\t}", "public function createMessage(): MessageInterface;", "public function create(string $message = ''): BusMessageInterface;", "public function createInstance()\n {\n $mock = $this->mock(static::TEST_SUBJECT_CLASSNAME)\n ->getMessage();\n\n return $mock->new();\n }", "public static function createInstance()\n {\n return new MailMessage('serializable@serializable.com');\n }", "public static function init( $_id )\n {\n $message = new Message();\n $message->get( $_id );\n return $message;\n }", "public function createMessage(string $typeName): MessageInterface;", "public function createMailMessage();", "static public function factory($messageType = 3) {\n\t\treturn new self($messageType);\n\t}", "public function createMessage(array $parameters = []);", "public function user_message_create() {\n\t\t$this->onDebug ( __METHOD__, 1 );\n\t\tif ($this->valide_userid () == false) {\n\t\t\treturn $this;\n\t\t}\n\t\t$message_created = $this->getObjetO365Wsclient ()\n\t\t\t->jsonPostMethod ( '/users/' . $this->getUserId () . '/messages', $this->getEmailContent () );\n\t\t$this->onDebug ( $message_created, 2 );\n\t\tif (isset ( $message_created->id ) && ! empty ( $message_created->id )) {\n\t\t\treturn $this->setO356MessageRef ( $message_created )\n\t\t\t\t->setMessageId ( $message_created->id );\n\t\t}\n\t\treturn $this->onError ( 'Pas d\\'ID durant la creation du message de O365', $message_created, 1 );\n\t}", "private function newMessage(array $data)\n {\n\n $message = Message::create([\n 'channel_id' => $data['channel_id'],\n 'user_id' => Auth::guard()->user()->id,\n 'message' => $data['message']\n ]);\n if ($message) {\n $this->notifyChannelUsers($data['channel_id']);\n }\n return $message;\n }", "public function initMessage() {}", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "private function createMessageObject(string $type, string $message): Notification\n {\n $msg = new Notification();\n\n $msg->setType($type);\n $msg->setMessage($message);\n\n $this->handler->add($msg);\n\n return $msg;\n }", "protected static function newFactory()\n {\n return MessageFactory::new();\n }", "public function message(mixed $data = null)\n {\n $message = new Message((string) $data);\n\n return $message;\n }", "public static function createFromString($raw)\n {\n $message = new self(array('raw' => $raw));\n return $message;\n }", "public static function create(string $text = null): GoogleChatMessage\n {\n $message = new static;\n\n if ($text) {\n $message->text($text);\n }\n\n return $message;\n }", "public function create() {\n\t\t$user = $this->current_user();\n\t\t$message = $this->discussion->create_message($this->message_data() + ['creator' => ['id' => $user->_id, 'name' => $user->name]]);\n\n\t\tif ($this->discussion->push_message($message)) {\n\t\t\treturn $this->redirect(['Discussions::show', 'id' => $this->discussion->_id, 'project_id' => $this->discussion->project_id]);\n\t\t}\n\n\t\treturn compact('message');\n\t}", "public static function createFromArray($fields) \n\t{\n\t\t$message = new Message();\n\t\tself::populate($message,$fields);\n\t\treturn $message;\n\t}", "public function addMessage()\n {\n if(null === $this->obj_message) {\n $this->obj_message = new Message();\n }\n return $this->obj_message;\n }", "public function createMimeMessage();", "public function testCreateMethodReturnsNewInstance(): void\n {\n $message = DiscordMessage::create();\n $this->assertInstanceOf(DiscordMessage::class, $message);\n }", "function createMessage($email) {\n $message = new Google_Service_Gmail_Message();\n $message->setRaw(base64_encode($email));\n return $message;\n}", "protected function createMessage(Swift_Message $message)\n {\n $mimeEntity = new Swift_Message('', $message->getBody(), $message->getContentType(), $message->getCharset());\n $mimeEntity->setChildren($message->getChildren());\n\n $messageHeaders = $mimeEntity->getHeaders();\n $messageHeaders->remove('Message-ID');\n $messageHeaders->remove('Date');\n $messageHeaders->remove('Subject');\n $messageHeaders->remove('MIME-Version');\n $messageHeaders->remove('To');\n $messageHeaders->remove('From');\n\n return $mimeEntity;\n }", "public function __construct($message)\n {\n // $this->message = $message;\n }", "function createMessage($object) {\n\tglobal $USER;\n\t\n\t$message = new \\core\\message\\message();\n\t$message->component = 'local_littlehelpers';\n\t$message->name = 'paragraph52notification';\n\t$message->userfrom = $USER;\n\t\n\t// Get user\n\t$message->userto = core_user::get_user($object->useridto);\n\t\n\t// force email sending\n\t$message->userto->emailstop = 0;\n\t\n\t$message->subject = $object->subject;\n\t$message->fullmessage = $object->fullmessage;\n\t$message->fullmessageformat = FORMAT_MARKDOWN;\n\t$message->fullmessagehtml = $object->fullmessagehtml;\n\t$message->smallmessage = $object->smallmessage;\n\t$message->notification = '0';\n\t\n\t$message->contexturl = 'https://moodle.tu-darmstadt.de/local/littlehelpers/paragraph52';\n\t$message->contexturlname = 'Paragraph52';\n\t$message->replyto = \"moodle@tu-darmstadt.de\";\n\n\treturn $message;\n}", "public function __construct($message)\r\n {\r\n $this->message = $message;\r\n\r\n }", "public function createMessage($content, $options = array('content_type' => 'application/json', 'delivery_mode' => 2))\n {\n if (!empty($options['content_type']) && $options['content_type'] == 'application/json')\n $content = json_encode($content);\n return new AMQPMessage($content, $options);\n }", "public function __construct($message) {\n $this->message= $message;\n }", "public function __construct($msg)\n {\n $this->message = $msg;\n }", "public function __construct(Message $message)\n {\n parent::__construct($message);\n }", "public function __construct($messageDefinition)\n {\n $this->messageDefintion = $messageDefinition;\n }", "public function testCreateMessage()\n {\n $config = new Configuration();\n// $config->setHost(\"http://127.0.0.1:8080\");\n $apiInstance = new DaDaPushMessageApi(\n // If you want use custom http client, pass your client which implements `GuzzleHttp\\ClientInterface`.\n // This is optional, `GuzzleHttp\\Client` will be used as default.\n new \\GuzzleHttp\\Client(),\n $config\n );\n\n $actions = [\n new Action($data = array(\"name\" => \"view\", \"url\" => \"https://www.dadapush.com/\", \"type\" => \"link\"))\n ];\n\n $body = new MessagePushRequest($data = array(\"title\" => \"Good News!\",\n \"content\" => \"Good News! DaDaPush releasing new version\",\n \"need_push\" => true,\n \"actions\" => $actions\n ));\n\n $channel_token = 'ctb3lwO6AeiZOwqZgp8BE8980FdNgp0cp6MCf';\n\n $result = $apiInstance->createMessage($body, $channel_token);\n print_r($result);\n self::assertTrue($result->getCode()==0);\n }", "public static function create( $msg, $code = null, array $data = null ) {\n\t\tif ( $msg instanceof IApiMessage ) {\n\t\t\treturn $msg;\n\t\t} elseif ( $msg instanceof RawMessage ) {\n\t\t\treturn new ApiRawMessage( $msg, $code, $data );\n\t\t} else {\n\t\t\treturn new ApiMessage( $msg, $code, $data );\n\t\t}\n\t}", "public static function create($message, $type = '', $title = '', $icon = '')\n {\n return new self($message, $type, $title, $icon);\n }", "public function newEntity(array $attributes = [])\n {\n return new MessageContent($attributes);\n }", "public function create()\n {\n return view('materialadmin::message.create');\n }", "public static function factory($raw_message = null, $class_name = null) {}", "public function __construct($message = null) {}", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public static function createFromFile($filename)\n {\n $message = new self(array('file' => $filename));\n\n return $message;\n }", "public function create()\n\t{\n\t\treturn View::make('messages.create');\n\t}", "public function actionCreate()\n {\n $model = new Message();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "private function createMessage(InputInterface $input)\n {\n $message = new \\Swift_Message(\n $input->getOption('subject'),\n $input->getOption('body'),\n $input->getOption('content-type'),\n $input->getOption('charset')\n );\n $message->setFrom($input->getOption('from'));\n $message->setTo($input->getOption('to'));\n\n return $message;\n }", "public function test_message_can_be_created() {\n\n $this->assertInstanceOf(Message::class, $this->message);\n $this->assertDatabaseHasMessageWithPublicId($this->message->getPublicId());\n\n }", "protected function getMessage()\n {\n //return new \\Swift_Message('Test subject', 'Test body.');\n }", "public function testConstructorAndGetters() \r\n \t{\r\n \t\t// create a message with complete constructor args\r\n \t\t$message = new Message( Message::NORMAL, \r\n \t\t\t\t\t\t\t\t(object)array( 'testProp' => 'testval' ),\r\n \t\t\t\t\t\t\t\tsimplexml_load_string('<testMessage testAtt=\"Hello\" testAtt2=\"world\"/>'),\r\n \t\t\t\t\t\t\t\tMessage::PRIORITY_HIGH);\r\n \t\t\r\n \t\t// test assertions\r\n \t\t$this->assertTrue( $message instanceof Message, \"Expecting \\$message is Message\" );\r\n \t\t$this->assertTrue( $message->getType() == Message::NORMAL, \"Expecting \\$message->getType() == Message::NORMAL\" );\r\n \t\t$this->assertTrue( $message->getHeader()->testProp == 'testval', \"Expecting \\$message->getHeader()->testProp == 'testval'\" );\r\n \t\t$this->assertTrue( $message->getBody()->attributes()->testAtt == 'Hello', \"Expecting \\$message->getBody()->attributes()->testAtt == 'Hello'\" );\r\n \t\t$this->assertTrue( $message->getPriority() == Message::PRIORITY_HIGH, \"Expecting \\$message->getPriority() == Message::PRIORITY_HIGH\" );\r\n \t\t\r\n \t}", "public function __construct($data)\n {\n $this->message = $data;\n }", "public function __construct($data)\n {\n $this->message = $data;\n }", "public static function getInstance($messageClass = '\\PEIP\\Message\\GenericMessage')\n {\n return new self($messageClass);\n }", "public function __construct(NewMessageEvent $event)\n {\n $this->event = $event;\n }", "public static function createFromFile(string $path) : CommitMessage\n {\n if (!file_exists($path)) {\n throw new \\RuntimeException('Commit message file not found');\n }\n return new CommitMessage(file_get_contents($path));\n }", "public function testCreateWithoutId()\n {\n $faker = Factory::create();\n $messageAttributes = [\n 'body' => $faker->sentence(15),\n 'subject' => $faker->sentence(5),\n 'name' => $faker->name(),\n 'email' => $faker->email(),\n 'custom_info' => $faker->sentence(3)\n\n ];\n $response = $this->client->messages()->create($messageAttributes);\n $this->assertEquals($messageAttributes['body'], $response['message']['body']);\n $this->assertEquals($messageAttributes['subject'], $response['message']['subject']);\n\n return $response;\n }", "public function create(Message $message): void\n {\n $this->items[$message->getEventName()][$message->getId()] = $message;\n }", "public function __construct($message, $type)\n\t{\n\t\t$this->message = $message;\n\t\t$this->type = $type;\n\t}", "public function __construct(MimeMessage $message = null) {\n $this->htmlBody = new MimePart();\n $this->htmlBody->type = Mime::TYPE_HTML;\n $this->htmlBody->charset = 'utf-8';\n $this->htmlBody->encoding = Mime::ENCODING_QUOTEDPRINTABLE;\n\n $this->textBody = new MimePart();\n $this->textBody->type = Mime::TYPE_TEXT;\n $this->textBody->charset = 'utf-8';\n $this->textBody->encoding = Mime::ENCODING_QUOTEDPRINTABLE;\n }", "public function create(){}", "public function actionCreate() {\n if (isset($_POST['Message'])) {\n $resp = array(\n 'color' => '#FF6600',\n 'background_color' => '#FFFFCC',\n 'position' => 'top',\n 'removebutton' => 0,\n 'translation' => $_POST['Message']['translation']\n );\n $model = new Message();\n $model->setAttributes($_POST['Message']);\n if ($model->save()) {\n $resp['message'] = Yii::t('translate', 'Message successfully saved');\n $resp['id'] = $model->id;\n } else {\n $errors = $this->errors($model);\n $resp['message'] = Yii::t('translate', '<p>Unable to save the message. Something went wrong!<p/>' . implode('<br/>', $errors));\n }\n echo $this->je($resp);\n Yii::app()->end();\n }\n $id = (int)Yii::app()->request->getParam('id');\n $lang = Yii::app()->request->getParam('lang');\n if ($id && $lang) {\n $model = MessageSource::model()->findByPk($id);\n if ($model) {\n $message = $model->loadMessage();\n $message->id = $model->id;\n $message->language = $lang;\n $this->renderPartial('form', array(\n 'model' => $message\n ));\n } else throw new CHttpException(400);\n } else throw new CHttpException(404, 'The requested page does not exist.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "protected static function newFactory(): Factory\n {\n return MessageFactory::new();\n }", "public function __construct(string $message)\n {\n $this->message = $message;\n }", "public function create()\n {\n return view('message');\n }", "public function newAction()\n {\n $entity = new Message();\n $form = $this->createForm(new MessageType(), $entity);\n\n return $this->render('CoreMarketingBundle:Message:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "protected function createDocument(\\TYPO3\\Jobqueue\\Common\\Queue\\Message $message) {\n\t\t$properties = ObjectAccess::getGettableProperties($message);\n\t\t$messageDocument = new Message($message->getPayload(), $message->getIdentifier());\n\n\t\tforeach ($properties as $propertyName => $propertyValue) {\n\t\t\tObjectAccess::setProperty($messageDocument, $propertyName, $propertyValue);\n\t\t}\n\n\t\treturn $messageDocument;\n\t}", "public function __construct($message = '', $type = 'info') {\n $this->message = $message;\n }", "protected function render(): Message\n {\n $headers = '';\n foreach ($this->buildHeaders() as $header => $value) {\n $headers .= \"{$header}: {$value}\" . self::CRLF;\n }\n $message = implode(self::CRLF, $this->buildMessage());\n\n return new Message($headers, $message);\n }", "public function create()\n\t{\n\t\t$form = \\View::make('message.form');\n\t\t$form->project_id = \\Session::get('active_project');\n\t\t$form->action = array('action' => 'Toomdrix\\Pm\\MessageController@store', 'class'=>'form-signup');\n\t\treturn $form;\n\t}", "public static function getInstance($context=null) {\n return new Messages($context);\n }", "public function create_post() {\n\t\t$data['uid'] = $this->input->get('uid');\n\t\t$data['to'] = $this->input->get('to');\n\t\t$data['text'] = $this->input->get('text');\n\t\t$data['ts'] = now();\n\n\t\t$this->Messages_model->create($data);\n\t}", "public function getGeneratedMessage()\n {\n # Force the template to render\n (string) $this->prepareTemplate();\n\n $m = $this->template->__message;\n\n if (!$m->getFrom()) {\n trigger_error(\"You should add 'from' information.\", E_USER_WARNING);\n }\n\n if (!$m->getSubject()) {\n trigger_error(\"You should add 'subject'.\", E_USER_WARNING);\n }\n\n if (!$m->getHeader('To')) {\n trigger_error(\"You should add recipients.\", E_USER_WARNING);\n }\n\n foreach ($this->attachments as $attachment) {\n list($filename, $content, $type) = $attachment;\n $m->addAttachment($filename, $content, $type);\n }\n\n return $m;\n }", "public function __construct($message='1111222333',$type='2222')\n {\n $this->type = $type;\n $this->message = $message;\n }", "public static function new()\n {\n if ( ! empty($_REQUEST['mgb_rating_message']) ) Database::insert([\n 'message' => $_REQUEST['mgb_rating_message'],\n 'author' => self::author(),\n 'state' => (!json_decode($_REQUEST['mgb_rating_moderation'])) ? true : false\n ]);\n }", "public function create() {}", "public function compose() {\n return $this->createMessage();\n }", "public function create()\n {\n // die('here');\n return view('message.create');\n }", "public function create()\n {\n return view('messages.create');\n }", "public function create()\n {\n return view('messages.create');\n }", "public function actionCreate()\n {\n $model = new Message();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save())\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model\n ]);\n }\n }", "public static function getInstanceFromMessage(\\PEIP\\INF\\Message\\Message $message)\n {\n return new self(get_class($message));\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'body' => 'required|max:5000',\n 'user_id' => ['required', new NotSelfId(), 'exists:users,id'],\n ]);\n\n $message = Auth::user()->messages()->create([\n 'data' => [\n 'text' => request('body'),\n ],\n ]);\n\n Auth::user()->conversations()->attach($message, [\n 'contact_id' => $request->user_id,\n ]);\n\n if (!$this->isAuthUserBlockedToContact($request->user_id, Auth::user()->id)) {\n User::find($request->user_id)->conversations()->attach($message, [\n 'contact_id' => Auth::id(),\n ]);\n\n // broadcast the message to the other person\n event(new MessageCreated($message, $request->user_id, Auth::user()->id));\n }\n\n $message->owner = Auth::user();\n\n return new MessageResource($message);\n }", "public function create()\n {\n return view('admin.messages.create');\n }", "public function __construct($message) {\r\n parent::__construct($message);\r\n }", "public function __construct($messageData)\n {\n $this->messageData = $messageData;\n }" ]
[ "0.81376195", "0.7959614", "0.77619994", "0.7713793", "0.76559645", "0.7553059", "0.7458076", "0.71510184", "0.6852663", "0.68347865", "0.67154217", "0.6689976", "0.6683088", "0.6644564", "0.6628052", "0.6549025", "0.6514292", "0.6501647", "0.645071", "0.645071", "0.645071", "0.645071", "0.645071", "0.64457685", "0.63510966", "0.6340597", "0.633213", "0.6326836", "0.6310014", "0.6258695", "0.6234698", "0.62195796", "0.62077796", "0.620518", "0.6204953", "0.6198459", "0.6177945", "0.61717975", "0.617064", "0.6150332", "0.61301666", "0.6109668", "0.61057645", "0.60924155", "0.6081678", "0.60787344", "0.60670817", "0.6049224", "0.60457045", "0.60438704", "0.6036989", "0.6036989", "0.6036989", "0.6036989", "0.6036989", "0.6036989", "0.6026595", "0.6025895", "0.6022185", "0.6005734", "0.6002389", "0.6000802", "0.59941816", "0.59808266", "0.59808266", "0.59678143", "0.5966462", "0.59593695", "0.594777", "0.5938714", "0.5910345", "0.5893692", "0.5880708", "0.5878038", "0.58748907", "0.58748907", "0.58748907", "0.5873998", "0.5869665", "0.5864223", "0.5860705", "0.5858159", "0.5854505", "0.5845474", "0.5842933", "0.58327615", "0.58256036", "0.58199257", "0.58134514", "0.57909477", "0.5787155", "0.57835746", "0.5783115", "0.57801926", "0.57801926", "0.5779767", "0.57784975", "0.57596684", "0.5748547", "0.5746673", "0.57461363" ]
0.0
-1
L0gVi3w view display method.
public function display($tpl = null) { $this->item = $this->get('Item'); if(false == $this->item) throw new Exception('Invalid item'); parent::display($tpl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function display(){}", "public function display() {}", "public function display() {}", "public abstract function display();", "public function display()\n \t{\n \t\t$this->assign(\"__view\", $this->_view);\n \t\tparent::display();\n \t}", "abstract function display();", "abstract function display();", "public function display() {\n\t}", "public function display()\n {\n }", "public function display()\n {\n }", "public function display()\n {\n }", "public function display()\n {\n }", "public function view()\n\t{\n\t\t// TODO Implement\t\n\t}", "public function display() {\n echo $this->render();\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function display()\n\t{\n\t\tparent::display();\n\t}", "function display(){\n\n\t\t\tview::$output = $this->output;\n\n\t\t}", "function display()\n {\n\n view::$output = $this->output;\n }", "function display()\n {\n view::$output = $this->output;\n }", "abstract protected function show();", "public function display() {\n\t\t$this->init();\n\t\treturn $this->output();\n\t}", "public function display() {\n\t\techo $this->data;\n\t\treturn;\n\t}", "public function show()\n\t{\n\n\t}", "public function view() {\r\n\r\n\t}", "abstract protected function displayContent();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function display ()\n {\n echo $this->as_text ();\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function getDisplay();", "public function display() {\n return $this->out(call_user_func_array([$this, 'render'], func_get_args()));\n }", "public function show() {\n\t}", "public function show() {\n \n }", "function display() {\r\n\t\tparent::display ();\r\n\t}", "public function show();", "public function show();", "public function show();", "public function show();", "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "public function Display(){\n\t\trequire($this->viewFileName);\n\t}", "public function show()\n {\n //\n }", "public function display() {\n $data = $this->container->get('data');\n $people = $data->load('people');\n $this->render('people', ['people' => $people]);\n }", "private function display(){\n\t\t \n\t\tif(empty($this->view)){\n\t\t\tthrow new Exception(\"Empty view requested!\");\n\t\t}\n\t\t\n\t\t$controller_class = \"Controllers_\" . $this->view;\n\t\t\n\t\tif(!class_exists($controller_class)){\n\t\t\tthrow new Exception(\"Controller not found for determined view '{$this->view}'\");\n\t\t\treturn;\n\t\t} \n\t\t\n\t\t$this->controller = new $controller_class($_GET, $_POST);\n\t\t\n\t\t$output = $this->controller->display();\n\t\treturn $output;\n\t}", "public function show()\n { \n \n }", "function display()\n {\n parent::display();\n }", "function display()\n {\n parent::display();\n }", "function display()\n {\n parent::display();\n }", "public function show()\n {\n \n }", "public function show()\n {\n \n }", "public static function output()\n {\n return self::display(Message_Core::DEFAULT_VIEW); \n }", "function display()\r\n\t {\r\n\t parent::display();\r\n\t }", "public function show() {\n\t\t$variables = $this->sanitize($this->data);\n\t\tif (is_array($variables)) {\n\t\t\textract($variables);\n\t\t}\n\n\t\t$this->setHeaders();\n\n\t\tob_start();\n\t\tif ($this->isPartial) {\n\t\t\trequire_once $this->pathToPartial;\n\t\t} else {\n\t\t\trequire_once $this->pathToLayout;\n\t\t}\n\t\t$this->performReplacements();\n\t\tif (ob_get_length() !== false) {\n\t\t\tob_end_flush();\n\t\t}\n\t}", "public function show()\n {\n \n }", "public function show()\n {\n \n }", "function display($tpl = null)\n\t{\n\t\t// Assign data to the view\n\t\t$this->currentActor = $this->get('CurrentActor');\n\t\t$this->headshotName = $this->get('HeadshotName');\n\t\t$this->headshotImage = $this->get('HeadshotImage');\n\t\t$this->ageMin = $this->get('AgeMin');\n\t\t$this->ageMax = $this->get('AgeMax');\n\t\t$this->lookLikeHeadshot = $this->get('LookLikeHeadshot');\n\t\t$this->ethnicity = $this->get('Ethnicity');\n\t\t$this->orientation = $this->get('Orientation');\n\t\t$this->occupation = $this->get('Occupation');\n\t\t$this->personality = $this->get('Personality');\n\t\t$this->archetype = $this->get('Archetype');\n\t\t\n\t\t// Check for errors.\n\t\tif (count($errors = $this->get('Errors')))\n\t\t{\n\t\t\tJLog::add(implode('<br />', $errors), JLog::WARNING, 'jerror');\n \n\t\t\treturn false;\n\t\t}\n \n\t\t// Display the view\n\t\tparent::display($tpl);\n\t}", "public function display() {\r\n echo $this->template;\r\n }", "function view()\n\t{\n\t\tglobal $tree, $ilUser, $ilCtrl, $lng;\n\n\t\t$this->showHierarchy();\n\t}", "function view() {\n\t\treturn '';\n\t}", "public function show()\n {\n return $this->view();\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}", "public function display()\n\t{\n\t\t// extended from OSMembershipViewRegisterHtml class, you can also call any (public/protected) methods from parent class\n\t\t// For example, just call parent::display(); will work, too\n\t}", "public function show()\n {\n }", "public function show()\n {\n }", "public function show()\n {\n }", "public function show()\n {\n }", "public function show()\n {\n }", "public function show()\n {\n }", "public function show()\n {\n }", "public function display()\n\t{\n\t\tprint_r(\"<br/>RedheadDuck looks like this!<br/>\");\n\t}", "function showView()\n\t{\n\t\ttrigger_error(\"showView() is not implemented\");\n\t}", "public function show() {\n \n \n }", "public function view() {\n }", "public function Display() {\n//\tprint '<pre>';\n//\tprint_r( $this );\n//\texit;\n $this->views->SetTitle('Källkod - Nexus');\n\t\n\t$this->sourceModel->Init(\"{$this->request->base_url}{$this->request->controller}/{$this->request->method}\", $this->request->arguments);\n\t$treeNavLinks = \t\t$this->sourceModel->GetTreeNavLinks();\n\t$filesAndFolderLinks = \t$this->sourceModel->GetFilesAndFolderLinks();\n\t$fileInfo = \t\t\t$this->sourceModel->GetFileContents();\n\n $this->views->AddInclude(__DIR__ . '/source.tpl.php', array(\n\t\t'treeNavLinks'\t\t => $treeNavLinks,\n\t\t'filesAndFolderLinks' => $filesAndFolderLinks,\n\t\t'fileInfo'\t\t \t => $fileInfo\n\t) );\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function show()\n {\n //\n }", "public function display()\n {\n echo \"temperature:{$this->_subject->getTemperature()},humidity:{$this->_subject->getHumidity()},pressure:{$this->_subject->getPressure()}\" . PHP_EOL;\n }", "public function view() {\n\t\treturn;\n\t}", "public function display() {\n \t\n \tif($this->userCanVisualize()){\n \t\t\n \t\t$e = $this->buildGraph();\n \t\tif($e){\n\t \techo $e->graph->GetHTMLImageMap(\"map\".$this->getId());\n\t \t$this->displayImgTag();\n \t\t}\n \t}\n }", "public function show()\n { \n }", "public function show() {\n echo $this->mountElement();\n }", "public function show()\n {\n\n }", "public function index(){\r\n $this->display();\r\n }", "public function show()\n {\n\n }", "public function show()\n {\n\n }", "public function show()\n {\n\n }", "public function show()\n {\n\n }" ]
[ "0.80114806", "0.79402465", "0.78961825", "0.78961825", "0.7846623", "0.7739002", "0.76504326", "0.76504326", "0.7644682", "0.760152", "0.760152", "0.76009756", "0.76009756", "0.74720436", "0.7413176", "0.7274169", "0.7274169", "0.7274169", "0.72605217", "0.7216053", "0.7213908", "0.71970516", "0.7173283", "0.7171882", "0.7149485", "0.7146318", "0.7089101", "0.7063576", "0.704332", "0.7026536", "0.7014905", "0.70052266", "0.7001964", "0.6971569", "0.6926236", "0.69215286", "0.6918685", "0.69139993", "0.69139993", "0.69139993", "0.69139993", "0.6901224", "0.6901224", "0.6897992", "0.6864407", "0.6855949", "0.68409806", "0.6830701", "0.68224555", "0.68224555", "0.68224555", "0.6818522", "0.6818522", "0.6818364", "0.6815114", "0.6802496", "0.67836946", "0.67836946", "0.6781412", "0.67813957", "0.677432", "0.67690873", "0.67644733", "0.67585695", "0.6735874", "0.6733116", "0.6724547", "0.6724547", "0.6724547", "0.6724547", "0.6724547", "0.6724547", "0.6724547", "0.6721624", "0.6695967", "0.6689224", "0.667861", "0.6678403", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.66757596", "0.6653439", "0.66456544", "0.6629271", "0.6623987", "0.6623516", "0.66043085", "0.66008145", "0.659719", "0.659719", "0.659719", "0.659719" ]
0.0
-1
Calculates the first day of the month, this will ALWAYS be the first of NEXT month
public function calculateFirstDayOfMonth($date) { return $date->copy()->startOfMonth()->addMonth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _data_first_month_day()\n {\n $month = date('m');\n $year = date('Y');\n return date('Y-m-d', mktime(0, 0, 0, $month, 1, $year));\n }", "function _data_first_month_day() {\r\n $month = date('m');\r\n $year = date('Y');\r\n return date('d/m/Y', mktime(0,0,0, $month, 1, $year));\r\n }", "function _data_first_month_day() {\n\t$month = date('m');\n\t$year = date('Y');\n\treturn date('Y-m-d', mktime(0,0,0, $month, 1, $year));\n}", "public static function getFirstDayOfCurrentMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m'), 1, date('Y'));\n\t\t$date = date('Y-m-01', $dateInSeconds);\n\t\treturn $date;\n\t}", "public static function data_first_month() {\n\t$month = date('m');\n\t$year = date('Y');\n\treturn date('Y-m-d', mktime(0,0,0, $month, 1, $year));\n}", "function getFirstDayInMonth()\n {\n return $this->firstDayInMonth;\n }", "function get_first_day($month) {\r\n $data = new DateTime('01-' . $month .'-'.date('Y'));\r\n $first_day = $data->format('D');\r\n switch($first_day) {\r\n case 'Sun':\r\n $initial_day_of_month = 1;\r\n break;\r\n case 'Mon':\r\n $initial_day_of_month = 2;\r\n break;\r\n case 'Tue':\r\n $initial_day_of_month = 3;\r\n break;\r\n case 'Wed':\r\n $initial_day_of_month = 4;\r\n break;\r\n case 'Thu':\r\n $initial_day_of_month = 5;\r\n break;\r\n case 'Fri':\r\n $initial_day_of_month = 6;\r\n break;\r\n case 'Sat':\r\n $initial_day_of_month = 7;\r\n break;\r\n }\r\n\r\n return $initial_day_of_month;\r\n }", "function get_first_day($day_number=1, $month=false, $year=false) {\r\n $month = ($month === false) ? strftime(\"%m\"): $month;\r\n $year = ($year === false) ? strftime(\"%Y\"): $year;\r\n \r\n $first_day = 1 + ((7+$day_number - strftime(\"%w\", mktime(0,0,0,$month, 1, $year)))%7);\r\n \r\n return mktime(0,0,0,$month, $first_day, $year);\r\n }", "function firstDay($monthname, $year) {\r\n if (empty($month)) {\r\n $month = date('m');\r\n }\r\n if (empty($year)) {\r\n $year = date('Y');\r\n }\r\n $result = strtotime(\"{$year}-{$month}-01\");\r\n return date('Y-m-d', $result);\r\n }", "public function getDateStartMonth($date=null){\n\t\t$dateNew = date(\"Y-m-d H:i:s\",strtotime('first day of this month', strtotime($date)));\n\t\treturn $dateNew;\n\t}", "static public function getFirstDayOfMonth($month='', $year=''){\n\t\tif(!$month){\n\t\t\t$month = date('m');\n\t\t}\n\t\tif(!$year){\n\t\t\t$year = date('Y');\n\t\t}\n\t\treturn $year.'-'.sprintf('%02s', $month).'-01';\n\t}", "protected function startDate()\n {\n $d = new DateTime('first day of last month');\n $d->setTime(0, 0, 0);\n return $d;\n }", "function getFirstDayOfDate(string $date): string {\n $d = new DateTime($date);\n $d->modify('first day of this month');\n return $d->format('Y-m-d');\n}", "public static function getFirstDayOfMonth( $date = false )\n\t{\n\t\tif ( $date === false )\n\t\t{\n\t\t\treturn date( 'Y-m-01' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn date( 'Y-m-d', strtotime( date( 'Y-m-01', strtotime( $date ) ) ) );\n\t\t}\n\t}", "public function getFirstDay(){$day = getdate(mktime(0, 0, 0, $this->getMonth(), 1, $this->getYear())); return $day['wday'];}", "function nextMonth($interval=1){ return $this->_getDate(0,$interval); }", "public static function getFirstDayOfPreviousMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m')-1, 1, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "public static function getFirstDayOfLastMonth()\n\t{\n\t\treturn date( 'Y-m-d', strtotime( ' '. date( 'F Y', strtotime( '-1 month' ) ) ) );\n\t}", "function getFirstDayInMonth($y, $m)\n {\n return (int)Date_Calc::dayOfWeek(1, $m, $y);\n }", "public static function firstDayOfMonth(?DateTimeInterface $date = null): static\n\t{\n\t\t$date = self::checkDate($date);\n\t\treturn static::from($date->format('Y-m-01'));\n\t}", "public function getStartingDay() : \\DateTime{\n return new \\DateTime(\"{$this->year}-{$this->month}-01\");\n}", "private function calculateDefaultStartDate()\r\n {\r\n $now = time();\r\n while (date('D', $now) != 'Mon') {\r\n $now -= 86400;\r\n }\r\n\r\n return date('Y-m-d', $now);\r\n }", "public function setToFirstDayOfMonth(int $month = null) : Time /*PHP8:static*/\n {\n if ($this->frozen) {\n throw new \\RuntimeException(get_class($this) . ' is read-only, frozen.');\n }\n if ($month !== null) {\n if ($month < 1 || $month > 12) {\n throw new \\InvalidArgumentException('Arg month[' . $month . '] isn\\'t null or 1 through 12.');\n }\n $mnth = $month;\n }\n else {\n $mnth = (int) $this->format('m');\n }\n return $this->setDate(\n (int) $this->format('Y'),\n $mnth,\n 1\n );\n }", "function _nextMonthTimestamp() {\n\t\treturn mktime(0,0,0,$this->_currentMonth+1,1,$this->_currentYear);\n\t}", "public function getFirstDay()\n {\n return (int)$this->_scopeConfig->getValue(\n 'general/locale/firstday',\n ScopeInterface::SCOPE_STORE\n );\n }", "public function firstDayOfMonth($month, $year) {\n\n $day = (int) date(\"w\", strtotime(\\DateTime::createFromFormat('m/d/Y', $month . '/' . '1/' . $year)->format('M') . ' 01,' . $year . ' 00:00:00'));\n return $day;\n }", "function getFirstDay($year, $month, $day_of_week) {\n $num = date(\"w\",mktime(0,0,0,$month,1,$year));\n if($num==$day_of_week) {\n return date(\"j\",mktime(0,0,0,$month,1,$year));\n }\n elseif($num>$day_of_week) {\n return date(\"j\",mktime(0,0,0,$month,1,$year)+(86400*((7+$day_of_week)-$num)));\n }\n else {\n return date(\"j\",mktime(0,0,0,$month,1,$year)+(86400*($day_of_week-$num)));\n }\n}", "public function getNextMonth(){\n\t\tif($this->getMonth() == 12){return 1;}\n\t\telse{return $this->getMonth()+1;}\n\t}", "function initMonth()\n {\n //! Si aucun mois ou année n'est recupéré on prend le mois et l'année actuel\n if (!$this->currentMonthName || !$this->year) {\n $this->currentMonthIndex = (int)date(\"m\", time()) - 1;\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n $this->year = (int)date(\"Y\", time());\n }\n // recalcule le premier jour pour ce mois et le nombre de jour total du mois\n $this->firstDayInMonth = strftime('%u', strtotime(strval($this->currentMonthIndex + 1) . '/01/' . strval($this->year)));\n $this->nbDaysMonth = cal_days_in_month(CAL_GREGORIAN, $this->currentMonthIndex + 1, $this->year);\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n }", "public function GetFirstWeekOfMonth() {\n return (int)date('W', strtotime($this->format('Y-m-01')));\n }", "public function setNearday(){\n\t\n\t$this_month_day=$this->getMonth_day();\n\t\n\tif($this->day!=1 && $this->day!=$this_month_day){\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,$this->day+1);\n\t\t\n\t\t\n\t\t\n\t}elseif($this->day==1){\n\t\t\n\t\t$pre_month=$this->month==1?12:($this->month-1);\n\t\t\n\t\t$pre_month_day=$this->getMonth_day($pre_month);\n\t\t\n\t\t$this->predate=$this->makeDate($pre_month,$pre_month_day);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,2);\n\t\t\n\t}else{\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$next_month=$this->month==12?1:($this->month+1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($next_month,1);\n\n\t\t}\n\t\t\n\treturn;\n\n\t}", "function getCurrentDayInMonthNumber ()\n\t{\n\t\treturn date ('j');\n\t}", "function nextMonth($dates)\n\t{\n\t$dates='2015-11-01';\n \treturn date('F d,Y',strtotime($dates));\n\t}", "function firstDayOfWeek($year,$month,$day){\n global $fd;\n $dayOfWeek=date(\"w\");\n $sunday_offset=$dayOfWeek * 60 * 60 * 24;\n $fd = date(\"Y-m-d\", mktime(0,0,0,$month,$day+1,$year) - $sunday_offset);\n return $fd;\n}", "function getNextMonth() {\n\t\t$nextDate = date ( \"Y-m-d\", strtotime ( \"+1 months\" ) );\n\t\t$dateArray = split ( \"-\", $nextDate );\n\t\t$nextMonth = FormatClass::getMonthName ( $dateArray [1], \"full\" );\n\t\treturn $nextMonth;\n\t}", "public static function getFirstDayOfGivenDate($date)\n\t{\n\t\t$full_date = explode('-', $date);\n\t\t$year = $full_date[0];\n\t\t$month = $full_date[1];\n\t\t$day = $full_date[2];\n\t\t\n\t\t$dateInSeconds = mktime(0, 0, 0, $month, 1, $year);\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "function BeginMonth($time,$week,$backwards) {\n\tif ($backwards > 0) { $time = $time - ($backwards * 604800); } \n\t$month = date(\"n\", $time);\n\t$year = date(\"Y\", $time);\n\t$firstday = mktime(12,0,0,$month,1,$year);\n\tif ($week != NULL) { $firstday = BeginWeek($firstday); }\n\treturn($firstday);\n}", "private function startMonthSpacers()\n\t{\n\t\tif($this->firstDayOfTheMonth != '0') {\n\t\t\t$this->calWeekDays .= \"\\t\\t<td colspan=\\\"\".$this->firstDayOfTheMonth.\"\\\" class=\\\"spacerDays\\\">&nbsp;</td>\\n\";\n\t\t\t$this->outArray['firstday'] = $this->firstDayOfTheMonth;\n\t\t}\n\t}", "public function assertFirstDayOfMonth($selector)\n {\n date_default_timezone_set('UTC');\n\n $actualValue = $this->retrieveElementUsingJquery($selector);\n assertEquals($actualValue, date('Y-m-01'));\n }", "protected function endDate()\n {\n $d = new DateTime('first day of this month');\n $d->setTime(0, 0, 0);\n return $d;\n }", "public static function getFirstDayOfCurrentYear()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, 1, 1, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "public function nextMonth(): Month{\n $month = $this->month +1;\n $year=$this->year;\n if($month > 12){\n $month = 1;\n $year += 1;\n }\n return new Month($month, $year);\n }", "public function getNextMonth($date=null){\n\t\t$dateNew = date(\"Y-m-d H:i:s\",strtotime(\"+1 month\", strtotime($date)));\n\t\treturn $dateNew;\n\t}", "function wwt_register_cron() {\r\n wp_clear_scheduled_hook('wwt_send_email_with_log');\r\n $firstDayNextMonth = date('Y-m-d 03:00:00', strtotime('first day of next month'));\r\n wp_schedule_event(strtotime($firstDayNextMonth), 'monthly', 'wwt_send_email_with_log');\r\n\r\n return $firstDayNextMonth;\r\n}", "public function firstOfTheMonthSundays()\n {\n $sundays = 0;\n\n for ($i=$this->startYear; $i<=$this->endYear; $i++) {\n for ($j=1; $j<=12; $j++) {\n if (date('l', strtotime(\"$j/1/$i\")) == \"Sunday\" ) {\n $sundays++;\n }\n }\n }\n\n return $sundays;\n }", "public function nextMonth(): Week{\n $week = $this->week;\n $year = $this->year;\n\n\n $begin = new DateTime(\"{$this->year}-01-01\");\n \n if ($begin->format('w')!=1) $begin->modify(\"next monday\");\n \n $dateact = $begin->modify(\"+\".($this->week-1).\" weeks\");\n\n $moisfin = $dateact->modify(\"next month\");\n\n $moisfin = intval($moisfin->format('m'));\n\n //tant que le mois 'm' ne change pas on ajoute des semaines\n do{\n $begin = new DateTime(\"{$this->year}-01-01\");\n if ($begin->format('w')!=1) $begin->modify(\"next monday\");\n $dateact = $begin->modify(\"+\".($week-1).\" weeks\");\n $moisdebut = intval($dateact->format('m'));\n $week += 1;\n if($week==53){\n \n \n $firstweek = New DateTime(\"{$year}-01-01\");\n if($firstweek->format('w')!=1) $firstweek->modify(\"next monday\");\n $lastweek = $firstweek->modify('+52 weeks'); \n $test = intval($lastweek->format('Y'));\n \n \n if($year != $test){ \n $week = 1;\n $year +=1;\n }; \n \n }elseif($week>53){\n $week = 1;\n $year +=1;\n }\n\n }while ($moisdebut != $moisfin);\n\n //si le mois d'arrivé est janvier c'est qu'on a changé d'année\n\n \n $week-=1;\n\n return new Week($week, $year);\n\n }", "public function getFirstPaymentDate()\n\t{\n\t\treturn $this->first_payment_date;\n\t}", "public function getFirstPaymentDate() {\r\n $query = $this->createQuery($this->_alias)\r\n ->select(\"DATE_FORMAT(cp.created_at, '%Y-%m') AS payment_date\")\r\n ->orderBy(\"id ASC\")\r\n ->limit(1);\r\n\r\n $res = $query->execute(array(), Doctrine_Core::HYDRATE_SCALAR);\r\n\r\n if (count($res) > 0) {\r\n $res = $res[0][\"cp_payment_date\"];\r\n }\r\n\r\n return $res;\r\n }", "public function getFirstDate()\n {\n $query = \"SELECT MIN(stat_date) AS first FROM \" . $this->tableName;\n $data = $this->SelectData($query, PDO::FETCH_ASSOC);\n\n if (false === $data) {\n return false;\n } else {\n return $data[0]['first'];\n }\n }", "public function first_day($int) {\n\t\t$this->options['first_day'] = $int;\n\t\treturn $this;\n\t}", "public function monthly()\n {\n return $this->cron('0 0 1 * * *');\n }", "public function premierdelasemaine(): DateTime{\n // Obtenir le premier jour de la premiere semaine de l'année en cours\n $begin = new DateTime(\"{$this->year}-01-01\");\n \n if ($begin->format('w')!=1) $begin->modify(\"next monday\");\n \n return $begin->modify(\"+\".($this->week-1).\" weeks\");\n }", "private function generateCurrentMonth()\n {\n date_default_timezone_set('UTC');\n \n return date(\"n\");\n }", "public function getNextMonth()\n {\n return $this->calendarMonth->getNextMonth();\n }", "function mondayFirst()\r\n {\r\n if ( $this->MondayFirst == \"yes\" )\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "public static function getLastDayOfCurrentMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m')+1, 0, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "static function firstDayOf($period, DateTime $date = null) {\n $period = strtolower($period);\n $validPeriods = array('year', 'quarter', 'month', 'week');\n\n if ( ! in_array($period, $validPeriods))\n throw new InvalidArgumentException('Period must be one of: ' . implode(', ', $validPeriods));\n\n $newDate = ($date === null) ? new DateTime() : clone $date;\n\n switch ($period) {\n case 'year':\n $newDate->modify('first day of january ' . $newDate->format('Y'));\n break;\n case 'quarter':\n $month = $newDate->format('n') ;\n\n if ($month < 4) {\n $newDate->modify('first day of january ' . $newDate->format('Y'));\n } elseif ($month > 3 && $month < 7) {\n $newDate->modify('first day of april ' . $newDate->format('Y'));\n } elseif ($month > 6 && $month < 10) {\n $newDate->modify('first day of july ' . $newDate->format('Y'));\n } elseif ($month > 9) {\n $newDate->modify('first day of october ' . $newDate->format('Y'));\n }\n break;\n case 'month':\n $newDate->modify('first day of this month');\n break;\n case 'week':\n $newDate->modify(($newDate->format('w') === '0') ? 'monday last week' : 'monday this week');\n break;\n }\n\n return $newDate;\n }", "public function empty_days(string $month, int $year){\r\n $active_month = static::month_str_to_int($month);\r\n $first_date_of_month = new DateTime(\"$year-$month-1\");\r\n $first_day_of_month = $first_date_of_month->format('D');\r\n switch ($first_day_of_month) {\r\n case \"Mon\":\r\n $empty_days = 0;\r\n break;\r\n case \"Tue\":\r\n $empty_days = 1;\r\n break;\r\n case \"Wed\":\r\n $empty_days = 2;\r\n break;\r\n case \"Thu\":\r\n $empty_days = 3;\r\n break;\r\n case \"Fri\":\r\n $empty_days = 4;\r\n break\r\n ;case \"Sat\":\r\n $empty_days = 5;\r\n break;\r\n case \"Sun\":\r\n $empty_days = 6;\r\n break;\r\n default: die(\"wrong m/y format\");\r\n } \r\n return $empty_days; \r\n \r\n }", "public function ga_calendar_next_month()\n {\n $current_date = isset($_POST['current_month']) ? esc_html($_POST['current_month']) : '';\n $service_id = isset($_POST['service_id']) ? (int) $_POST['service_id'] : 0;\n $provider_id = isset($_POST['provider_id']) && 'ga_providers' == get_post_type($_POST['provider_id']) ? (int) $_POST['provider_id'] : 0;\n $form_id = isset($_POST['form_id']) ? (int) $_POST['form_id'] : 0;\n\n if ('ga_services' == get_post_type($service_id) && ga_valid_year_month_format($current_date)) {\n $timezone = ga_time_zone();\n\n $date = new DateTime($current_date, new DateTimeZone($timezone));\n $date->modify('+1 month');\n\n $ga_calendar = new GA_Calendar($form_id, $date->format('n'), $date->format('Y'), $service_id, $provider_id);\n echo $ga_calendar->show();\n } else {\n wp_die(\"Something went wrong.\");\n }\n\n wp_die(); // Don't forget to stop execution afterward.\n }", "public function createFromDateOrFirstDayOfMonth($text): DateTimeHolder\n {\n $holder = new DateTimeHolder;\n $date = date_create_from_format(\"j. n. Y\", $text);\n $holder->typed = $date ? $date : new DateTime('first day of this month');\n $holder->textual = $holder->typed->format(\"j. n. Y\");\n return $holder;\n }", "public function get_first_day_of_week()\n\t{\n\t\t$this->first_day_of_week = $this->data->get_first_day_of_week($this->first_day_of_week);\n\t\treturn $this->first_day_of_week;\n\t}", "public function getStartOfDayDate()\n\t{\n\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\n\t\treturn $objectManager->create('\\Magento\\Framework\\Stdlib\\DateTime\\DateTime')->date(null, '0:0:0');\n\t}", "public function getManualDateStart() {}", "function move_to_start_of_day()\n {\n $hour=0;\n $minute=0;\n $second=0;\n $day=$this->get_day();\n $month=$this->get_month();\n $year=$this->get_year();\n $newtimestamp=mktime( $hour, $minute, $second, $day, $month, $year);\n }", "public function firstDay(int $day)\n {\n return $this->set('first_day', $day);\n }", "function getDateMonth()\n{\n $dateMonth = strtotime(\"-1 month\");\n return $dateMonth;\n}", "function incrementDate($startDate, $monthIncrement = 0) {\n\n $startingTimeStamp = $startDate->getTimestamp();\n // Get the month value of the given date:\n $monthString = date('Y-m', $startingTimeStamp);\n // Create a date string corresponding to the 1st of the give month,\n // making it safe for monthly calculations:\n $safeDateString = \"first day of $monthString\";\n // Increment date by given month increments:\n $incrementedDateString = \"$safeDateString $monthIncrement month\";\n $newTimeStamp = strtotime($incrementedDateString);\n $newDate = DateTime::createFromFormat('U', $newTimeStamp);\n return $newDate;\n}", "public function setStartMonth($month)\n {\n $this->start_month = $month;\n $date = date('Y', time()) . '-' . $month . '-01';\n $this->start_date = new DateTime($date);\n }", "function same_day_next_month($time)\n{\n global $_initial_weeknumber;\n\n $days_in_month = date(\"t\", $time);\n $day = date(\"d\", $time);\n $weeknumber = (int)(($day - 1) / 7) + 1;\n $temp1 = ($day + 7 * (5 - $weeknumber) <= $days_in_month);\n\n // keep month number > 12 for the test purpose in line beginning with \"days_jump = 28 +...\"\n $next_month = date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day +35, date(\"Y\", $time))) + (date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day +35, date(\"Y\", $time))) < date(\"n\", $time)) * 12;\n\n // prevent 2 months jumps if $time is in 5th week\n $days_jump = 28 + (($temp1 && !($next_month - date(\"n\", $time) - 1)) * 7);\n\n /* if initial week number is 5 and the new occurence month number ($time + $days_jump)\n * is not changed if we add 7 days, then we can add 7 days to $days_jump to come\n * back to the 5th week (yuh!) */\n $days_jump += 7 * (($_initial_weeknumber == 5) && (date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day + $days_jump, date(\"Y\", $time))) == date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day + $days_jump + 7, date(\"Y\", $time)))));\n\n return $days_jump;\n}", "private function getFirstDate(array $usageDatas, FormatId $formatId) : DateTime\n\t{\n\t\tif ($usageDatas === []) {\n\t\t\t// If there's no usage data for this request, let's default our\n\t\t\t// trend span to the entire history of the format.\n\t\t\t$month = $this->usageQueries->getOldest($formatId);\n\n\t\t\tif ($month === null) {\n\t\t\t\t// If the format has no usage data at all, just do this.\n\t\t\t\treturn new DateTime('first day of last month');\n\t\t\t}\n\n\t\t\treturn $month;\n\t\t}\n\n\t\treturn new DateTime(array_key_first($usageDatas));\n\t}", "function weekOfMonth($date) {\n $firstOfMonth = strtotime(date(\"Y-m-d\", $date));\n //Apply above formula.\n return intval(date(\"W\", $date)) - intval(date(\"W\", $firstOfMonth)) + 1;\n}", "public static function getCurrentMonth() {\n return date('n');\n }", "function first_quarter_month($t) {\n $mon = $t['tm_mon'];\n if ($mon <= 3) \n {\n return 1;\n }\n elseif ($mon <= 6) \n {\n return 4;\n }\n elseif ($mon <= 9) \n {\n return 7;\n }\n elseif ($mon <= 12) \n {\n return 10;\n }\n // ?\n return 99;\n}", "function weekOfMonth($date) {\n $firstOfMonth = strtotime(date(\"Y-m-01\", $date));\n //Apply above formula.\n return intval(date(\"W\", $date)) - intval(date(\"W\", $firstOfMonth)) + 1;\n}", "function get_next_date($this_date){\n\t$year = \"\";\n\t$month = \"\";\n\t$day = \"\";\n\tif( preg_match(\"/(\\d+)\\-(\\d+)-(\\d+)/\", $this_date, $match) ){\n\t\t$year = $match[1];\n\t\t$month = $match[2];\n\t\t$day = $match[3];\n\t};\n\t$next_date = date(\"Y-m-d\",mktime(0,0,0, $month, $day+1, $year));\n\n\treturn $next_date;\n\n}", "function nextRdate2($curD, $rI, $rP, $rM, $i) { //$i=0: 1st occurrence; $i=1: next occurrence\n\tif ($rM) {\n\t\t$curM = $rM; //one specific month\n\t\t$curY = substr($curD,0,4)+$i+((substr($curD,5,2) <= $rM) ? 0 : 1);\n\t} else { //each month\n\t\t$curM = substr($curD,5,2)+$i;\n\t\t$curY = substr($curD,0,4);\n\t}\n\t$day1Ts = mktime(12,0,0,$curM,1,$curY);\n\t$dowDif = $rP - date('N',$day1Ts); //day of week difference\n\t$offset = $dowDif + 7 * $rI;\n\tif ($dowDif >= 0) { $offset -= 7; }\n\tif ($offset >= date('t',$day1Ts)) { $offset -= 7; } //'t' : number of days in the month\n\t$nxtD = date('Y-m-d', $day1Ts + (86400 * $offset));\n\treturn $nxtD;\n}", "public function getStartOfDayDate()\n {\n return $this->_date->date(null, '0:0:0');\n }", "private function _daysInMonth($month=null,$year=null){\n \n if(null==($year))\n $year = date(\"Y\",time()); \n \n if(null==($month))\n $month = date(\"m\",time());\n \n return date('t',strtotime($year.'-'.$month.'-01'));\n }", "private static function nextRepeatDate($dt, $event) {\n switch ($event->type) {\n case JSchedEvent::TYPE_DAY:\n $dt = mktime(0, 0, 0, date(\"n\", $dt), date(\"j\", $dt) + $event->every, date(\"Y\", $dt)); \n //logit(\"dt0=\" . date(\"l, d-M-Y\", $dt));\n return $dt;\n case JSchedEvent::TYPE_WEEK:\n $dow = date(\"w\", $dt);\n for ($i = 0; $i < 7; $i++) {\n $dt = mktime(0, 0, 0, date(\"n\", $dt), date(\"j\", $dt) + 1, date(\"Y\", $dt)); // next day\n// logit(\"dt1=\" . date(\"l, d-M-Y\", $dt));\n $dow = ($dow + 1) % 7;\n if ($dow == JSchedEvent::ON_SUN) {\n $dt = mktime(0, 0, 0, date(\"n\", $dt), date(\"j\", $dt) + 7 * ($event->every - 1), date(\"Y\", $dt)); // skip (every-1) weeks\n// logit(\"dt2=\" . date(\"l, d-M-Y\", $dt));\n }\n if ($event->dowArray[$dow]) {\n return $dt;\n }\n }\n return null;\n case JSchedEvent::TYPE_MONTH:\n if ($event->by == JSchedEvent::BY_DATE) {\n \n // By date (\"15th\")\n $nextm = (date(\"n\", $dt) + $event->every - 1) % 12 + 1; // next month expected \n $dt = mktime(0, 0, 0, date(\"n\", $dt) + $event->every, date(\"j\", $dt), date(\"Y\", $dt)); \n// logit(\"dt3=\" . date(\"l, d-M-Y\", $dt));\n if (date(\"n\", $dt) > $nextm) { \n $dt = mktime(0, 0, 0, date(\"n\", $dt), 0, date(\"Y\", $dt)); // went too far, use last day of month instead\n// logit(\"dt4=\" . date(\"l, d-M-Y\", $dt)); \n }\n return $dt;\n } else {\n \n // By month day (\"4th Wednesday\")\n $week = ceil(date(\"j\", $dt) / 7);\n $dow = date(\"w\", $dt);\n if ($week == 5 || $event->by == JSchedEvent::BY_DAY_OF_LAST_WEEK) {\n $dt = mktime(0, 0, 0, date(\"n\", $dt) + $event->every + 1, 0, date(\"Y\", $dt)); // last day of next month\n// logit(\"dt5=\" . date(\"l, d-M-Y\", $dt));\n for ($i = 0; $i < 7; $i++) {\n if (date(\"w\", $dt) == $dow) {\n return $dt;\n }\n $dt = mktime(0, 0, 0, date(\"n\", $dt), date(\"j\", $dt) - 1, date(\"Y\", $dt)); // prev day\n// logit(\"dt6=\" . date(\"l, d-M-Y\", $dt));\n }\n return null;\n }\n $dt = mktime(0, 0, 0, date(\"n\", $dt) + $event->every, 1, date(\"Y\", $dt)); // next month\n// logit(\"dt6=\" . date(\"l, d-M-Y\", $dt));\n $dt = mktime(0, 0, 0, date(\"n\", $dt), (8 + ($dow - date(\"w\", $dt))) % 7, date(\"Y\", $dt)); // first dow of month\n// logit(\"dt6a=\" . date(\"l, d-M-Y\", $dt));\n// logit(\"dt7=\" . date(\"l, d-M-Y\", $dt));\n for ($i = 0; $i <= 5; $i++) {\n if (ceil(date(\"j\", $dt) / 7) == $week) {\n return $dt;\n }\n $dt = mktime(0, 0, 0, date(\"n\", $dt), date(\"j\", $dt) + 7, date(\"Y\", $dt)); // skip week \n// logit(\"dt8=\" . date(\"l, d-M-Y\", $dt));\n }\n }\n return null;\n case JSchedEvent::TYPE_YEAR:\n $dt = mktime(0, 0, 0, date(\"n\", $dt), date(\"j\", $dt), date(\"Y\", $dt) + $event->every);\n// logit(\"dt9=\" . date(\"l, d-M-Y\", $dt));\n return $dt;\n }\n }", "function _data_last_month_day()\n {\n $month = date('m');\n $year = date('Y');\n $day = date(\"d\", mktime(0, 0, 0, $month + 1, 0, $year));\n\n return date('Y-m-d', mktime(0, 0, 0, $month, $day, $year));\n }", "public function getStartDate() {\r\n $startDate = new \\DateTime('@' . $this->getTimestamp());\r\n\r\n switch($this->getMode()) {\r\n case self::$modeYear:\r\n $startDate->modify('first day of January');\r\n break;\r\n case self::$modeMonth:\r\n $startDate->modify('first day of this month');\r\n break;\r\n case self::$modeWeek:\r\n $date = date('w', $startDate->getTimestamp());\r\n if($date != 1) {\r\n $startDate->modify('last Monday');\r\n }\r\n break;\r\n case self::$modeDay:\r\n break;\r\n default:\r\n throw new \\Exception(\"ViewMode is not known in ViewCalendar.\");\r\n break;\r\n }\r\n\r\n $startDate->setTime(0, 0, 0);\r\n return $startDate;\r\n }", "public static function get_default_min_dt()\n\t{\n\t\treturn self::get_value_dt('1970-W01');\n\t}", "function next_day(&$offset)\n\t{\n\t\tdo\n\t\t{\n\t\t\t$offset++;\n\t\t}\n\t\twhile(\n\t\t\tin_array(gmdate('D', gmmktime() + ($offset * 24 * 60 * 60)), array('Sat', 'Sun'))\n\t\t\t||\n\t\t\tin_array(gmdate('Y-m-d', gmmktime() + ($offset * 24 * 60 * 60)), $GLOBALS['config']['non-work_dates'])\n\t\t);\n\t\treturn gmdate('Y-m-d', gmmktime() + ($offset * 24 * 60 * 60));\t\t\n\t}", "function _data_last_month_day() { \r\n $month = date('m');\r\n $year = date('Y');\r\n $day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\r\n \r\n return date('d/m/Y', mktime(0,0,0, $month, $day, $year));\r\n }", "private function getEmptyStartDate()\n {\n return new \\DotbDateTime('2100-01-01 12:00:00');\n }", "private function _daysInMonth ()\n {\n return date('t', strtotime($this->currentYear.'-'.$this->currentMonth));\n }", "public static function getMonth(){\n\t\t// this represents the number of seconds ni a month\n\t\t// editing this will lead to false values\n\t\treturn 2419200;\n\t}", "function getNextDay(){\r\n $dia = Data_Calc::proxDia($this->dia, $this->mes, $this->ano, \"%Y-%m-%d\");\r\n $data = sprintf(\"%s %02d:%02d:%02d\", $dia, $this->hora, $this->minuto, $this->segundo);\r\n $newDate = new Date();\r\n $newDate->setData($data);\r\n return $newDate;\r\n }", "public function GetLastDayOfMonth() {\n return (int)date('t', strtotime($this->format('Y-m-01')));\n }", "function new_orders_next_subscription_ship_date( $order_date ) {\n $cal_info = cal_info(0);\n $month_names = $cal_info['months'];\n \n $date = new DateTime( $order_date );\n \n $day = intval( $date->format('d') );\n $month = intval( $date->format('m') );\n \n // if after the 1st, it ships next month\n if ( $day > 1 ) {\n $month = ($month % 12) + 1;\n }\n \n return $month_names[$month] . ' 15th';\n}", "function getFirstDayOfWeek($y=NULL, $m=NULL, $d=NULL)\n {\n return 1;\n }", "function createNextMonthArray() { \n\t\t$date = date(\"Ymd\");\n\t\t$result = array($date);\n\n\n\t\tfor ($i=0; $i < 5; $i++) { \n\t\t\t$timestamp = strtotime($date);\n\t\t\t$date =date(\"Ymd\", strtotime('+1 day', $timestamp));\n\t\t\tarray_push($result,$date);\n\t\t}\n\t\treturn $result;\n\t}", "public function getEarliestDate();", "public function calendar()\n\t{\n\t\t// --------------------------------------\n\t\t// Initiate the date to work with\n\t\t// --------------------------------------\n\n\t\t$this->_init_date();\n\n\t\t// Keep track of given date\n\t\t$given_date = $this->date->date();\n\t\t$given_month = $this->date->month_url();\n\t\t$given_week = ($this->date->given() == 'week') ? $this->date->week_url() : FALSE;\n\n\t\t// --------------------------------------\n\t\t// If a week is given, make sure the thursday\n\t\t// is in the same month, or else advance one month\n\t\t// --------------------------------------\n\n\t\tif ($given_week)\n\t\t{\n\t\t\t// Get the thursday\n\t\t\t$this->date->modify('+ 3 days');\n\n\t\t\tif ($given_month == $this->date->month_url())\n\t\t\t{\n\t\t\t\t// No probs, same month given, reset back to original given date\n\t\t\t\t$this->date->reset();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Thursday is in next month, so set the date to that\n\t\t\t\t$given_date = $this->date->date();\n\t\t\t\t$given_month = $this->date->month_url();\n\t\t\t}\n\t\t}\n\n\t\t// Set date to first of the month\n\t\t$this->date->first_of_month();\n\n\t\t// Get next and previous month\n\t\t$next = new Low_date($this->date->date());\n\t\t$prev = new Low_date($this->date->date());\n\t\t$next->add('month');\n\t\t$prev->sub('month');\n\n\t\t// Days in month\n\t\t$dim = $this->date->days_in_month();\n\n\t\t// Day of the Week\n\t\t$dotw = $this->date->first_day_of_month();\n\n\t\t// Week of the month\n\t\t$wotm = 0;\n\n\t\t// --------------------------------------\n\t\t// Day to start the week\n\t\t// --------------------------------------\n\n\t\t$start_day = strtolower($this->EE->TMPL->fetch_param('start_day'));\n\n\t\t// Force monday on non-existent weekday or if a week is given\n\t\tif ( ! in_array($start_day, $this->weekdays) || $given_week !== FALSE)\n\t\t{\n\t\t\t$start_day = 'monday';\n\t\t}\n\n\t\t$start_day = array_search($start_day, $this->weekdays);\n\n\t\t// --------------------------------------\n\t\t// Calculate number of leading days (prev month)\n\t\t// --------------------------------------\n\n\t\tif ($leading_days = (($dotw - $start_day) + 7) % 7)\n\t\t{\n\t\t\t$this->date->modify(\"- {$leading_days} days\");\n\t\t}\n\n\t\t// Keep track of start date\n\t\t$start_date = $this->date->date();\n\n\t\t// Initiate weeks and weekdays arrays\n\t\t$weeks = $weekdays = $days = array();\n\n\t\t// Initiate day count\n\t\t$day_count = 0;\n\n\t\t// Add leading 0s to day number?\n\t\t$leading = ($this->EE->TMPL->fetch_param('leading_zeroes', 'no') == 'yes');\n\n\t\t// --------------------------------------\n\t\t// Populate weeks array\n\t\t// --------------------------------------\n\n\t\twhile (TRUE)\n\t\t{\n\t\t\t// Initiate week\n\t\t\tif ( ! isset($weeks[$wotm]))\n\t\t\t{\n\t\t\t\t$weeks[$wotm] = array(\n\t\t\t\t\t'days' => array(),\n\t\t\t\t\t'week_url' => $this->date->week_url(),\n\t\t\t\t\t'is_given_week' => ($given_week == $this->date->week_url()) ? 'y' : ''\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Add the day row to the week\n\t\t\t$weeks[$wotm]['days'][] = array(\n\t\t\t\t'day_number' => $leading ? $this->date->day() : intval($this->date->day()),\n\t\t\t\t'day_url' => $this->date->day_url(),\n\t\t\t\t'day' => $this->date->day_url(),\n\t\t\t\t'is_prev' => ($this->date->month_url() == $prev->month_url()) ? 'y' : '',\n\t\t\t\t'is_next' => ($this->date->month_url() == $next->month_url()) ? 'y' : '',\n\t\t\t\t'is_current' => ($this->date->month_url() == $given_month) ? 'y' : '',\n\t\t\t\t'is_given' => ($this->date->given() == 'day' && $this->date->date() == $given_date) ? 'y' : '',\n\t\t\t\t'is_today' => ($this->date->date() == $this->today) ? 'y' : '',\n\t\t\t\t'events_on_day' => 0\n\t\t\t);\n\n\t\t\t// Populate weekdays\n\t\t\tif ( ! $wotm)\n\t\t\t{\n\t\t\t\t$weekdays[] = array(\n\t\t\t\t\t'weekday' => $this->date->ee_format('%l'),\n\t\t\t\t\t'weekday_short' => $this->date->ee_format('%D'),\n\t\t\t\t\t'weekday_1' => substr($this->date->ee_format('%D'), 0, 1)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Advance by one day\n\t\t\t$this->date->add('day');\n\n\t\t\t// if days is divisible by 7, a week is done\n\t\t\tif ($done = ! (++$day_count % 7))\n\t\t\t{\n\t\t\t\t// If we're caught up with the next month too, exit the loop\n\t\t\t\tif ($this->date->month_url() == $next->month_url()) break;\n\n\t\t\t\t// Or else just increase the week of the month\n\t\t\t\t$wotm++;\n\t\t\t}\n\t\t}\n\n\t\t// End date\n\t\t$end_date = $this->date->date();\n\t\t$this->date->reset();\n\n\t\t$this->_log(\"Initiated calendar from {$start_date} to {$end_date}\");\n\n\t\t// --------------------------------------\n\t\t// Get events for this calendar range\n\t\t// --------------------------------------\n\n\t\t// Initiate events\n\t\t$events = $entries = array();\n\n\t\t$this->model->where_range($start_date, $end_date, TRUE, 'e');\n\n\t\t// Query the rest of the entry details if there are events present\n\t\tif ($entries = $this->_get_event_entries())\n\t\t{\n\t\t\tforeach ($entries AS $row)\n\t\t\t{\n\t\t\t\t// Skip the ones not found in $entries\n\t\t\t\tif ($row['start_date'] == $row['end_date'])\n\t\t\t\t{\n\t\t\t\t\t$events[$row['start_date']][] = $row;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Assign each day between start and end to events array\n\t\t\t\t\t$date = new Low_date($row['start_date']);\n\n\t\t\t\t\twhile (($start = $date->date()) <= $row['end_date'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$events[$start][] = $row;\n\t\t\t\t\t\t$date->add('day');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No events in this range\n\t\t}\n\n\t\t// Keep track of total events found\n\t\t$total_entries = count($entries);\n\t\t$total_days = count($events);\n\n\t\t$this->_log(\"In this range: {$total_entries} entries, spanning {$total_days} days\");\n\n\t\t// --------------------------------------\n\t\t// Assign entry count to days\n\t\t// --------------------------------------\n\n\t\tif ($events)\n\t\t{\n\t\t\tforeach ($weeks AS &$week)\n\t\t\t{\n\t\t\t\tforeach ($week['days'] AS &$day)\n\t\t\t\t{\n\t\t\t\t\tif (array_key_exists($day['day'], $events))\n\t\t\t\t\t{\n\t\t\t\t\t\t$day['events_on_day'] = count($events[$day['day']]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// --------------------------------------\n\t\t// Parse prev/this/next month links ourselves\n\t\t// --------------------------------------\n\n\t\t$this->return_data = $this->EE->TMPL->tagdata;\n\n\t\tforeach ($this->EE->TMPL->var_single AS $key => $format)\n\t\t{\n\t\t\tif (preg_match('/^(prev|this|next)_month(\\s|$)/', $key, $match))\n\t\t\t{\n\t\t\t\t$format = (strpos($format, '%') !== FALSE) ? $format : '%Y-%m';\n\n\t\t\t\tif (($match[1]) == 'this')\n\t\t\t\t{\n\t\t\t\t\t$month = $this->date->ee_format($format);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$month = $$match[1]->ee_format($format);\n\t\t\t\t}\n\n\t\t\t\t$this->return_data = str_replace(LD.$key.RD, $month, $this->return_data);\n\t\t\t}\n\t\t}\n\n\t\t// --------------------------------------\n\t\t// Create data array for parsing vars\n\t\t// --------------------------------------\n\n\t\t$data = array(\n\t\t\t'next_month_url' => $next->month_url(),\n\t\t\t'prev_month_url' => $prev->month_url(),\n\t\t\t'this_month_url' => $this->date->month_url(),\n\t\t\t'weekdays' => $weekdays,\n\t\t\t'weeks' => $weeks\n\t\t);\n\n\t\t$this->_log('Parsing calendar tagdata');\n\n\t\treturn $this->EE->TMPL->parse_variables_row($this->return_data, $data);\n\t}", "public function getPvCLastmonth1()\n {\n return $this->pv_c_lastmonth1;\n }", "function erp_financial_start_date() {\n $financial_year_dates = erp_get_financial_year_dates();\n\n return $financial_year_dates['start'];\n}", "private function setNextMonth (DateTime $date)\n\t{\n\t\t$tempDate = clone $date;\n\t\t$this->nextMonth = $tempDate->add(DateInterval::createFromDateString('1 month'));\n\t\tunset($tempDate);\n\t}", "private function getDatesInMonth() {\n $viewer = $this->getViewer();\n\n $timezone = new DateTimeZone($viewer->getTimezoneIdentifier());\n\n $month = $this->month;\n $year = $this->year;\n\n list($next_year, $next_month) = $this->getNextYearAndMonth();\n\n $end_date = new DateTime(\"{$next_year}-{$next_month}-01\", $timezone);\n\n list($start_of_week, $end_of_week) = $this->getWeekStartAndEnd();\n\n $days_in_month = id(clone $end_date)->modify('-1 day')->format('d');\n\n $first_month_day_date = new DateTime(\"{$year}-{$month}-01\", $timezone);\n $last_month_day_date = id(clone $end_date)->modify('-1 day');\n\n $first_weekday_of_month = $first_month_day_date->format('w');\n $last_weekday_of_month = $last_month_day_date->format('w');\n\n $day_date = id(clone $first_month_day_date);\n\n $num_days_display = $days_in_month;\n if ($start_of_week !== $first_weekday_of_month) {\n $interim_start_num = ($first_weekday_of_month + 7 - $start_of_week) % 7;\n $num_days_display += $interim_start_num;\n\n $day_date->modify('-'.$interim_start_num.' days');\n }\n if ($end_of_week !== $last_weekday_of_month) {\n $interim_end_day_num = ($end_of_week - $last_weekday_of_month + 7) % 7;\n $num_days_display += $interim_end_day_num;\n $end_date->modify('+'.$interim_end_day_num.' days');\n }\n\n $days = array();\n\n for ($day = 1; $day <= $num_days_display; $day++) {\n $day_epoch = $day_date->format('U');\n $end_epoch = $end_date->format('U');\n if ($day_epoch >= $end_epoch) {\n break;\n } else {\n $days[] = clone $day_date;\n }\n $day_date->modify('+1 day');\n }\n\n return $days;\n }", "function getInitDate($table)\r\n {\r\n \r\n $queryString = \"SELECT MIN(date) FROM $table\";\r\n \r\n // Interpret Query\r\n $result = $this->runQuery($queryString);\r\n \r\n if (!$result && $this->getMySQLErrorCode()!=0)\r\n return 0;\r\n \r\n $row = mysql_fetch_row($result);\r\n \r\n return $row[0];\r\n }", "function _data_last_month_day() {\n\t$month = date('m');\n\t$year = date('Y');\n\t$day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\n\n\treturn date('Y-m-d', mktime(0,0,0, $month, $day, $year));\n}" ]
[ "0.81851506", "0.81335515", "0.8117169", "0.8062475", "0.7859998", "0.779785", "0.77758044", "0.732227", "0.72991776", "0.7208385", "0.7154333", "0.70930386", "0.7064886", "0.70039016", "0.69629526", "0.68619955", "0.68592036", "0.68351436", "0.674037", "0.6682651", "0.66166043", "0.65972036", "0.65907794", "0.64353806", "0.64309067", "0.6421267", "0.64100575", "0.6408923", "0.6338321", "0.6206976", "0.6171778", "0.6136485", "0.61059964", "0.6081267", "0.60715634", "0.605738", "0.603801", "0.6034399", "0.60174084", "0.6006661", "0.5988622", "0.5986265", "0.59525156", "0.593293", "0.59274244", "0.5912442", "0.58943975", "0.5852085", "0.582244", "0.58217424", "0.57746035", "0.57422036", "0.5732639", "0.5702492", "0.57005215", "0.56621593", "0.565406", "0.56203705", "0.56177956", "0.5608078", "0.5583826", "0.55694705", "0.5566437", "0.55545276", "0.5544893", "0.55259925", "0.5521", "0.5502639", "0.5502199", "0.55013984", "0.55013895", "0.54940975", "0.5492311", "0.5485366", "0.5482421", "0.5480517", "0.5463085", "0.54528177", "0.54504514", "0.54476213", "0.54255605", "0.5418933", "0.54170305", "0.54066706", "0.53902775", "0.5381732", "0.5375884", "0.53756726", "0.5371344", "0.53598154", "0.53474563", "0.53437865", "0.53319013", "0.5318442", "0.53168", "0.53126496", "0.53116757", "0.5305237", "0.53033996", "0.53030944" ]
0.7400049
7
Calculates the last day of the month. If it is the last day of the month we add a month on.
public function calculateLastDayOfMonth($date) { if ($date->isLastOfMonth()) { return $date->copy()->addMonthNoOverflow()->endOfMonth(); } return $date->copy()->endOfMonth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getLastDayOfLastMonth()\n\t{\n\t\treturn date( 'Y-m-d', strtotime( '-1day '. date( 'F Y' ) ) );\n\t}", "function _data_last_month_day()\n {\n $month = date('m');\n $year = date('Y');\n $day = date(\"d\", mktime(0, 0, 0, $month + 1, 0, $year));\n\n return date('Y-m-d', mktime(0, 0, 0, $month, $day, $year));\n }", "public static function getLastDayOfCurrentMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m')+1, 0, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "function _data_last_month_day() {\n\t$month = date('m');\n\t$year = date('Y');\n\t$day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\n\n\treturn date('Y-m-d', mktime(0,0,0, $month, $day, $year));\n}", "function _data_last_month_day() { \r\n $month = date('m');\r\n $year = date('Y');\r\n $day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\r\n \r\n return date('d/m/Y', mktime(0,0,0, $month, $day, $year));\r\n }", "public static function getFirstDayOfLastMonth()\n\t{\n\t\treturn date( 'Y-m-d', strtotime( ' '. date( 'F Y', strtotime( '-1 month' ) ) ) );\n\t}", "public function GetLastDayOfMonth() {\n return (int)date('t', strtotime($this->format('Y-m-01')));\n }", "public static function data_last_month() {\n\t$month = date('m');\n\t$year = date('Y');\n\t$day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\n\n\treturn date('Y-m-d', mktime(0,0,0, $month, $day, $year));\n}", "function month_last_day($year, $month){\r\n\treturn date(\"d\", mktime(0, 0, 0, $month + 1, 1, $year) - 1);\r\n}", "public static function getLastMonth()\n\t{\n\t\treturn date( 'n/Y', strtotime( '-1day '. date( 'F Y' ) ) );\n\t}", "public function getLastDayOfMonth()\r\n {\r\n return date(\"t\", $this->getTimestampUnix());\r\n }", "public function getDateEndMonth($date=null){\n\t\t$dateNew = date(\"Y-m-d H:i:s\",strtotime('last day of this month', strtotime($date)));\n\t\treturn $dateNew;\n\t}", "final protected function checkLastDayOfMonth()\r\n\t{\r\n\t\t// Perform the date check - do we need to do anything?\r\n\t\tif (!checkdate($this->_month, $this->_day, $this->_year))\r\n\t\t{\r\n\t\t\t// Months that have 30 days\r\n\t\t\t$use30 = array(4, 6, 9, 11);\r\n\t\t\t\r\n\t\t\t// Our date is one of these months\r\n\t\t\tif(in_array($this->_month, $use30))\r\n\t\t\t{\r\n\t\t\t\t// The last day is 30th then\r\n\t\t\t\t$this->_day = 30;\r\n\t\t\t}\r\n\t\t\t// Our date is none of these months - must be February then\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t// Is this a leap year - then the last day is 29\r\n\t\t\t\t// If this year is not a leap year - 28\r\n\t\t\t\t$this->_day = $this->isLeap() ? 29 : 28;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function getMonthEnd($date = null) {\n\t\tif (!is_numeric($date)) {\n\t\t\t$date = strtotime($date);\n\t\t}\n\n\t\t$date = mktime(0, 0, 0, date('m', $date), date('d', $date), date('Y', $date));\n\n\t\t$month = date('m', $date);\n\t\t$year = date('Y', $date);\n\t\tfor ($day = 28; $day < 33; $day++) {\n\t\t\tif (!checkdate($month, $day, $year)) {\n\t\t\t\treturn $day-1;\n\t\t\t}\n\t\t}\n\t}", "public static function getLastDayOfMonth( $date )\n\t{\n\t\treturn date( 'Y-m-d', strtotime( '-1day '. date( 'F Y', strtotime( $date.' +1 month' ) ) ) );\n\t}", "private function getLastDayMonth($year,$month) {\n\t\treturn date(\"d\",(mktime(0,0,0,$month+1,1,$year)-1));\n\t}", "static public function getLastDayOfMonth($month='', $year=''){\n\t\tif(!$month){\n\t\t\t$month = date('m');\n\t\t}\n\t\tif(!$year){\n\t\t\t$year = date('Y');\n\t\t}\n\t\t$day = self::$_monthTable[$month-1];\n\t\tif(self::isYearLeapYear($year)&&$month==2){\n\t\t\t++$day;\n\t\t}\n\t\treturn $year.'-'.sprintf('%02s', $month).'-'.sprintf('%02s', $day);\n\t}", "public static function getLastDayOfPreviousMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m'), 0, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "public static function getLastDayOfMonth($month, $year)\n {\n return date(\"t\", mktime(0, 0, 0, $month, '01', $year));\n }", "function getDateofMonthEnd($date){\n return date(\"Y-m-t\", strtotime($date));\n }", "function getLastDayOfDate(string $date): string {\n $d = new DateTime($date);\n $d->modify('last day of this month');\n return $d->format('Y-m-d');\n}", "static public function getLastNonWeekendDayOfMonth($month, $year=''){\n\t\tif(!$year){\n\t\t\t$year = date('Y');\n\t\t}\n\t\t$lastDay = self::$_monthTable[$month-1];\n\t\tif($month==2&&self::isYearLeapYear($year)){\n\t\t\t++$lastDay;\n\t\t}\n\t\t$timestamp = self::mktime($month, $lastDay, $year);\n\t\tfor($i=$timestamp;$i>0;$i = self::_sub($i, 86400)){\n\t\t\t$array = self::_getDateParts($i, false);\n\t\t\tif($array['wday']!=0&&$array['wday']!=6){\n\t\t\t\treturn $array['year'].\"-\".sprintf(\"%02s\", $array['mon']).\"-\".$array['mday'];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function setLastDayOfMonth()\r\n {\r\n $this->setDay($this->getLastDayOfMonth());\r\n\r\n return $this;\r\n }", "function last_month()\n{\n global $db; // golbalize db variable:\n $thisMonth = array(\n \"start\" => date('Y-m-d', strtotime('first day of last month', strtotime(date('Y-m-d')))),\n \"end\" => date('Y-m-d', strtotime('last day of last month', strtotime(date('Y-m-d'))))\n );\n $datesIds = $db->getMany(DATES, [\n 'date' => $thisMonth['start'],\n 'dates.date' => $thisMonth['end']\n ], ['id', 'date'], ['date' => '>=', 'dates.date' => '<=']);\n\n if ($db->count > 0) {\n return $datesIds;\n }\n}", "protected function endDate()\n {\n $d = new DateTime('first day of this month');\n $d->setTime(0, 0, 0);\n return $d;\n }", "public function getNextMonth(){\n\t\tif($this->getMonth() == 12){return 1;}\n\t\telse{return $this->getMonth()+1;}\n\t}", "public static function lastDayOfMonth(?DateTimeInterface $date = null): static\n\t{\n\t\t$date = self::checkDate($date);\n\t\treturn static::from($date->format('Y-m-t'));\n\t}", "public function determineEndOfMonthTestingDate($date)\r\n {\r\n // Construct a new DateTime object\r\n try {\r\n $date = new DateTime($date);\r\n // Get the last day of the month\r\n $lastDayOfMonth = $date->modify(sprintf('+%d days', $date->format('t') - $date->format('j')));\r\n // echo \"Last day of the month : \" . $lastDayOfMonth->format('l d.m.Y') . \"<br/>\";\r\n // Check if the date falls on a Friday, Saturday or Sunday\r\n if (Self::isWeekend($lastDayOfMonth->format('Y-m-d'), true)) {\r\n // Get the last Thursday of the previous week. If the date is a Sunday, the Thursday is from previous week, but if it is not, Thursday is from the same week as PHP begins each week from Sunday.\r\n $thursday = clone $lastDayOfMonth->modify(('Sunday' == $date->format('l')) ? 'Thursday last week' : 'Thursday this week');\r\n // Return the Thursday before the weekend\r\n return $thursday;\r\n } else {\r\n // Return the last day of the month\r\n return $lastDayOfMonth;\r\n }\r\n } catch (Exception $e) {\r\n echo 'Exception: ', $e->getMessage(), \"\\n\";\r\n }\r\n \r\n }", "public static function end_of_month_minutes() {\n $carbon_now = Carbon::now();\n\n return $carbon_now->diffInMinutes($carbon_now->copy()->endOfMonth());\n }", "public function addMonths($month){\n\t\t$month = abs($month);\n\t\tif($this->_month+$month>12){\n\t\t\t$year = ceil(($month+$this->_month)/12) - 1;\n\t\t\t$this->_month = ($year * 12) - $this->_month + $month;\n\t\t\t$this->_year+= $year;\n\t\t} else {\n\t\t\t$this->_month+=$month;\n\t\t}\n\t\tif($this->_day>30||($this->_day>28&&$this->_month==2)){\n\t\t\t$this->_day = substr(self::getLastDayOfMonth($this->_month, $this->_year),-2);\n\t\t}\n\t\t$this->_consolideDate();\n\t\treturn $this->_date;\n\t}", "public function getNextMonth()\n {\n return $this->calendarMonth->getNextMonth();\n }", "public function setToLastDayOfMonth(int $month = null) : Time /*PHP8:static*/\n {\n if ($this->frozen) {\n throw new \\RuntimeException(get_class($this) . ' is read-only, frozen.');\n }\n if ($month !== null) {\n if ($month < 1 || $month > 12) {\n throw new \\InvalidArgumentException('Arg month[' . $month . '] isn\\'t null or 1 through 12.');\n }\n $mnth = $month;\n }\n else {\n $mnth = (int) $this->format('m');\n }\n return $this->setDate(\n (int) $this->format('Y'),\n $mnth,\n $this->monthLengthDays($mnth)\n );\n }", "private function _getLastDay($month, $year)\n {\n $days = $this->_getDaysArray($month, $year);\n $day = array_pop($days);\n\n return $day;\n }", "function nextMonth($interval=1){ return $this->_getDate(0,$interval); }", "public function getNextMonth($date=null){\n\t\t$dateNew = date(\"Y-m-d H:i:s\",strtotime(\"+1 month\", strtotime($date)));\n\t\treturn $dateNew;\n\t}", "private function _daysInMonth ()\n {\n return date('t', strtotime($this->currentYear.'-'.$this->currentMonth));\n }", "public static function wasLastMonth($time) {\n\t\treturn (date('mY', self::toUnix($time)) === date('mY', strtotime('last month')));\n\t}", "function getDateMonth()\n{\n $dateMonth = strtotime(\"-1 month\");\n return $dateMonth;\n}", "public function getDayOfMonth()\n {\n return $this->dayOfMonth;\n }", "public static function calculate(\\DateTime $lastDate, $numberMonths)\n {\n // Clone the date object or the original date will be altered.\n $nextDate = clone $lastDate;\n $periodUnit = 'M';\n\n // Add the number of months.\n $nextDate->add(new \\DateInterval('P' . $numberMonths . $periodUnit));\n\n // Check the months amount and correct if it is needed.\n if (self::shouldBeFixed($lastDate, $nextDate, $numberMonths)) {\n $nextDate->modify('last day of -1 month');\n }\n\n return $nextDate;\n }", "public function GetLastWeekOfMonth() {\n return (int)date('W', strtotime($this->format('Y-m-t')));\n }", "function getCurrentDayInMonthNumber ()\n\t{\n\t\treturn date ('j');\n\t}", "public function hasEndMonth() {\n return $this->_has(7);\n }", "function getNextMonth() {\n\t\t$nextDate = date ( \"Y-m-d\", strtotime ( \"+1 months\" ) );\n\t\t$dateArray = split ( \"-\", $nextDate );\n\t\t$nextMonth = FormatClass::getMonthName ( $dateArray [1], \"full\" );\n\t\treturn $nextMonth;\n\t}", "public static function getCurrentMonth() {\n return date('n');\n }", "public function getEndOfDayDate()\n\t{\n\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\n\t\treturn $objectManager->create('\\Magento\\Framework\\Stdlib\\DateTime\\DateTime')->date(null, '23:59:59');\n\t}", "function bank_date_fin_mois($annee, $mois){\n\t$date_fin = mktime(0, 0, 0, $mois, 01, $annee);\n\t$date_fin = strtotime(\"+1 month\", $date_fin);\n\treturn date('Y-m-d H:i:s', $date_fin);\n}", "public static function getFirstDayOfCurrentMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m'), 1, date('Y'));\n\t\t$date = date('Y-m-01', $dateInSeconds);\n\t\treturn $date;\n\t}", "function _nextMonthTimestamp() {\n\t\treturn mktime(0,0,0,$this->_currentMonth+1,1,$this->_currentYear);\n\t}", "public static function getFirstDayOfPreviousMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m')-1, 1, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "public function diffMonths($month){\n\t\t$month = abs($month);\n\t\tif($this->_month-$month<1){\n\t\t\t$year = floor(($month-$this->_month)/12) + 1;\n\t\t\t$this->_month = $this->_month + ($year * 12) - $month;\n\t\t\t$this->_year-= $year;\n\t\t} else {\n\t\t\t$this->_month-=$month;\n\t\t}\n\t\tif($this->_day>30||($this->_day>28&&$this->_month==2)){\n\t\t\t$this->_day = substr(self::getLastDayOfMonth($this->_month, $this->_year),-2);\n\t\t}\n\t\t$this->_consolideDate();\n\t\treturn $this->_date;\n\t}", "function getMonthDays($month,$year){\n$has31days=checkdate($month,31,$year);\n$isSchalt=checkdate(2,29,$year);\n\tif ($isSchalt==1 && $month==2) $maxdays=29;\n\telseif ($isSchalt!=1 && $month==2) $maxdays=28;\n\telseif ($has31days==1) $maxdays=31;\n\telse $maxdays=30;\nreturn $maxdays;\n}", "public static function getLastDayOfGivenDate($date)\n\t{\n\t\t$full_date = explode('-', $date);\n\t\t$year = $full_date[0];\n\t\t$month = $full_date[1];\n\t\t$day = $full_date[2];\n\t\t\n\t\t$dateInSeconds = mktime(0, 0, 0, $month+1, 0, $year);\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "public function getEndOfDayDate()\n {\n return $this->_date->date(null, '23:59:59');\n }", "function GetLastMonthFilter($FldExpression, $dbid = 0) {\r\n\t$today = getdate();\r\n\t$lastmonth = mktime(0, 0, 0, $today['mon']-1, 1, $today['year']);\r\n\t$val = date(\"Y|m\", $lastmonth);\r\n\t$wrk = $FldExpression . \" BETWEEN \" .\r\n\t\tQuotedValue(DateValue(\"month\", $val, 1, $dbid), DATATYPE_DATE, $dbid) .\r\n\t\t\" AND \" .\r\n\t\tQuotedValue(DateValue(\"month\", $val, 2, $dbid), DATATYPE_DATE, $dbid);\r\n\treturn $wrk;\r\n}", "function lastDayOfWeek($year,$month,$day){\n global $ld;\n $dayOfWeek=date(\"w\");\n $saturday_offset=(6-$dayOfWeek) * 60 * 60 * 24 ;\n $ld = date(\"Y-m-d\", mktime(0,0,0,$month,$day+1,$year) + $saturday_offset);\n return $ld;\n}", "public static function getMonth(){\n\t\t// this represents the number of seconds ni a month\n\t\t// editing this will lead to false values\n\t\treturn 2419200;\n\t}", "public static function GetPrevMonthsEndDate($nmonth)\n {\n return DateUtils::DUFormat(\"Y-m-\", DateUtils::AddDate(Date(\"Y-m-d\"), -($nmonth * 31))).'01';\n }", "public function ga_calendar_next_month()\n {\n $current_date = isset($_POST['current_month']) ? esc_html($_POST['current_month']) : '';\n $service_id = isset($_POST['service_id']) ? (int) $_POST['service_id'] : 0;\n $provider_id = isset($_POST['provider_id']) && 'ga_providers' == get_post_type($_POST['provider_id']) ? (int) $_POST['provider_id'] : 0;\n $form_id = isset($_POST['form_id']) ? (int) $_POST['form_id'] : 0;\n\n if ('ga_services' == get_post_type($service_id) && ga_valid_year_month_format($current_date)) {\n $timezone = ga_time_zone();\n\n $date = new DateTime($current_date, new DateTimeZone($timezone));\n $date->modify('+1 month');\n\n $ga_calendar = new GA_Calendar($form_id, $date->format('n'), $date->format('Y'), $service_id, $provider_id);\n echo $ga_calendar->show();\n } else {\n wp_die(\"Something went wrong.\");\n }\n\n wp_die(); // Don't forget to stop execution afterward.\n }", "public function getNextMonth($current)\n {\n return strtotime(\"+1 month\", $current);\n }", "function endMonth($start_month, $timeline)\n{\n $convertStartMonthToDateFormat = strtotime($start_month);\n $convertStartMonthToMonthNumber = date('n', $convertStartMonthToDateFormat);\n $monthNum = $convertStartMonthToMonthNumber + (int)$timeline;\n\n $mytime = Carbon::now();\n $mytime = strtotime($mytime);\n $month = date('F', $mytime);\n $currentMonth = strtotime($month);\n $year = date('Y', $mytime);\n\n if($currentMonth > $convertStartMonthToDateFormat) {\n $newyear = $year + 1;\n if($monthNum > 12) {\n $monthNum = $monthNum - 12;\n $newyear = $newyear + 1;\n }\n }\n elseif($currentMonth <= $convertStartMonthToDateFormat) {\n $newyear = $year;\n if($monthNum > 12) {\n $monthNum = $monthNum - 12;\n $newyear = $newyear + 1;\n }\n }\n $convertEndMonthYear = strtotime($monthNum . '/' . 1 . '/' .$newyear);\n $endMonth = date('Y-m-d', $convertEndMonthYear);\n\n return $endMonth;\n}", "public function getPrevMonth(){\n\t\tif($this->getMonth() == 1){return 12;}\n\t\telse{return $this->getMonth()-1;}\n\t}", "private function _daysInMonth($month=null,$year=null){\n \n if(null==($year))\n $year = date(\"Y\",time()); \n \n if(null==($month))\n $month = date(\"m\",time());\n \n return date('t',strtotime($year.'-'.$month.'-01'));\n }", "public function getEndOfDay()\n {\n $dateEndUTC = gmdate('Y-m-d 23:59:59', $this->timestamp);\n return Date::factory($dateEndUTC)->setTimezone($this->timezone);\n }", "function getMonthDir() {\n return date(\"Y_m\");\n }", "function daysInMonth($m, $y)\n\t{\n\t\tif( $m < 1 || $m > 12 )\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// 30: 9, 4, 6, 11\n\t\t\tif( $m == 9 || $m == 4 || $m == 6 || $m == 11 )\n\t\t\t{\n\t\t\t\treturn 30;\n\t\t\t}\n\t\t\telse if( $m != 2 )\n\t\t\t{\n\t\t\t\t// all the rest have 31\n\t\t\t\treturn 31;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// except for february alone\n\t\t\t\tif( $y % 4 != 0 )\n\t\t\t\t{\n\t\t\t\t\t// which has 28\n\t\t\t\t\treturn 28;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif( $y % 100 != 0 ) \n\t\t\t\t\t{\n\t\t\t\t\t\t// and on leap years 29\n\t\t\t\t\t\treturn 29;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif( $y % 400 != 0 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// deja vu: which has 28\n\t\t\t\t\t\t\treturn 28;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// deja vu: and on leap years 29\n\t\t\t\t\t\t\treturn 29;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function createFromDateOrLastDayOfMonth($text): DateTimeHolder\n {\n $holder = new DateTimeHolder;\n $date = date_create_from_format(\"j. n. Y\", $text);\n $holder->typed = $date ? $date : new DateTime('last day of this month');\n $holder->textual = $holder->typed->format(\"j. n. Y\");\n return $holder;\n }", "public function takePostBaseOnMonth();", "function is_LastDayOfWeek($y,$m,$d)\n{\n\t// 翌週の同曜日が翌月ならば最終と判断\n\t$x = mkdate($y,$m,$d,7);\n\tif ($m == $x['m']) return false;\n\treturn true;\n}", "function memorialDay ($yr)\n\t{\t//last mon in may\n\t\t$jd = gregorian_to_jd(5,31,$yr);\n\n\t\t$w = jd_to_weekday($jd);\n\t\t//if $w is sunday, it's the sunday FOLLOWING memorial day\n\t\tif ($w==dSUNDAY) $w = 7;\n\n\t\treturn ( $jd - ($w - dMONDAY) );\n\t}", "function same_day_next_month($time)\n{\n global $_initial_weeknumber;\n\n $days_in_month = date(\"t\", $time);\n $day = date(\"d\", $time);\n $weeknumber = (int)(($day - 1) / 7) + 1;\n $temp1 = ($day + 7 * (5 - $weeknumber) <= $days_in_month);\n\n // keep month number > 12 for the test purpose in line beginning with \"days_jump = 28 +...\"\n $next_month = date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day +35, date(\"Y\", $time))) + (date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day +35, date(\"Y\", $time))) < date(\"n\", $time)) * 12;\n\n // prevent 2 months jumps if $time is in 5th week\n $days_jump = 28 + (($temp1 && !($next_month - date(\"n\", $time) - 1)) * 7);\n\n /* if initial week number is 5 and the new occurence month number ($time + $days_jump)\n * is not changed if we add 7 days, then we can add 7 days to $days_jump to come\n * back to the 5th week (yuh!) */\n $days_jump += 7 * (($_initial_weeknumber == 5) && (date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day + $days_jump, date(\"Y\", $time))) == date(\"n\", mktime(11, 0 ,0, date(\"n\", $time), $day + $days_jump + 7, date(\"Y\", $time)))));\n\n return $days_jump;\n}", "function find_day_of_month ($n, $day, $month, $year)\n{\n\tglobal $time_zone_offset;\n\n\t$times_day_found = 0;\n\t$date_month = $month;\n\t$date = 1;\n\twhile (($times_day_found < $n || $n == 'last') && $date_month == $month)\n\t{\n\t\t$time = parse_date(\"$month $date, $year\");\n\t\t$date_month = date('M', $time + $time_zone_offset);\n\t\t$day_found = date('D', $time + $time_zone_offset);\n\n\t\tif ($day_found == $day)\n\t\t{\n\t\t\t$times_day_found++;\n\t\t}\n\n\t\t$date++;\n\t}\n\n\treturn $time;\n}", "static function lastDayOf($period, DateTime $date = null) {\n $period = strtolower($period);\n $validPeriods = array('year', 'quarter', 'month', 'week');\n\n if ( ! in_array($period, $validPeriods))\n throw new InvalidArgumentException('Period must be one of: ' . implode(', ', $validPeriods));\n\n $newDate = ($date === null) ? new DateTime() : clone $date;\n\n switch ($period) {\n case 'year':\n $newDate->modify('last day of december ' . $newDate->format('Y'));\n break;\n case 'quarter':\n $month = $newDate->format('n') ;\n\n if ($month < 4) {\n $newDate->modify('last day of march ' . $newDate->format('Y'));\n } elseif ($month > 3 && $month < 7) {\n $newDate->modify('last day of june ' . $newDate->format('Y'));\n } elseif ($month > 6 && $month < 10) {\n $newDate->modify('last day of september ' . $newDate->format('Y'));\n } elseif ($month > 9) {\n $newDate->modify('last day of december ' . $newDate->format('Y'));\n }\n break;\n case 'month':\n $newDate->modify('last day of this month');\n break;\n case 'week':\n $newDate->modify(($newDate->format('w') === '0') ? 'now' : 'sunday this week');\n break;\n }\n\n return $newDate;\n }", "private function endMonthSpacers()\n\t{\n\t\tif((8 - $this->weekDayNum) >= '1') {\n\t\t\t$this->calWeekDays .= \"\\t\\t<td colspan=\\\"\".(8 - $this->weekDayNum).\"\\\" class=\\\"spacerDays\\\">&nbsp;</td>\\n\";\n\t\t\t$this->outArray['lastday'] = (8 - $this->weekDayNum);\t\t\t\n\t\t}\n\t}", "private function generateCurrentMonth()\n {\n date_default_timezone_set('UTC');\n \n return date(\"n\");\n }", "public function getPvLLastmonth1()\n {\n return $this->pv_l_lastmonth1;\n }", "protected function startDate()\n {\n $d = new DateTime('first day of last month');\n $d->setTime(0, 0, 0);\n return $d;\n }", "public function getCurrentMonth() {\n return date('m');\n }", "public function nextMonth(): Month{\n $month = $this->month +1;\n $year=$this->year;\n if($month > 12){\n $month = 1;\n $year += 1;\n }\n return new Month($month, $year);\n }", "function hebrew_month_days($mo, $yr) {\n\n\t\tswitch ($mo) {\n\t\t\tcase 2:\t\t//fixed length 29 day months\n\t\t\tcase 4:\n\t\t\tcase 6:\n\t\t\tcase 10:\n\t\t\tcase 13:\n\t\t\t\treturn (29);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tif (! hebrew_leap($yr) ) return(29);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t//Heshvan depends on length of year\n\t\t\t\tif ( !( (hebrew_year_days($yr) % 10) == 5) ) return (29);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t//Kislev also varies with the length of year\n\t\t\t\tif ( (hebrew_year_days($yr) % 10) == 3 ) return (29);\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//otherwise the month has 30 days\n\t\treturn (30);\n\t}", "function getCurrentMonthNumber ()\n\t{\n\t\treturn date('m');\n\t}", "function last_quarter_month($t) {\n $mon = $t['tm_mon'];\n if ($mon <= 3) \n {\n return 3;\n }\n elseif ($mon <= 6) \n {\n return 6;\n }\n elseif ($mon <= 9) \n {\n return 9;\n }\n elseif ($mon <= 12) \n {\n return 12;\n }\n\n // ?\n return 99;\n}", "public function testGetStartEndOfMonth() {\n // We only allow start dates in 31-day months.\n $now = new \\DateTimeImmutable('2019-09-15');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'day_of_month' => '-1',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2019-09-30', $date->format('Y-m-d'));\n\n // Tricky value as there is a Feb 29.\n $now = new \\DateTimeImmutable('2020-02-15');\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2020-02-29', $date->format('Y-m-d'));\n }", "public function getPvLNextmonth()\n {\n return $this->pv_l_nextmonth;\n }", "public function countLastMonth()\n\t{\n\t\t$fromDate = Carbon::parse('Monday last month')->subMonth(1)->toDateString();\n\t\t// ambil tanggal di hari terakhir dalam bulan kemarin\n\t\t$tillDate = Carbon::parse('Monday last month')->subMonth(1)->endOfMonth()->toDateString();\n\t\treturn $this->model\n\t\t\t\t\t->whereBetween('tgl', [$fromDate, $tillDate])\t\t\n\t\t\t\t\t->count();\n\t}", "function getCurrentMonthNumDays() {\n\t\treturn $this->_currentMonthNumDays;\n\t}", "function getMonth(){\r\n return date('F',$this->timestamp);\r\n }", "function getNbDayInMonth()\n {\n return $this->nbDaysMonth;\n }", "public function nextMonth(): Week{\n $week = $this->week;\n $year = $this->year;\n\n\n $begin = new DateTime(\"{$this->year}-01-01\");\n \n if ($begin->format('w')!=1) $begin->modify(\"next monday\");\n \n $dateact = $begin->modify(\"+\".($this->week-1).\" weeks\");\n\n $moisfin = $dateact->modify(\"next month\");\n\n $moisfin = intval($moisfin->format('m'));\n\n //tant que le mois 'm' ne change pas on ajoute des semaines\n do{\n $begin = new DateTime(\"{$this->year}-01-01\");\n if ($begin->format('w')!=1) $begin->modify(\"next monday\");\n $dateact = $begin->modify(\"+\".($week-1).\" weeks\");\n $moisdebut = intval($dateact->format('m'));\n $week += 1;\n if($week==53){\n \n \n $firstweek = New DateTime(\"{$year}-01-01\");\n if($firstweek->format('w')!=1) $firstweek->modify(\"next monday\");\n $lastweek = $firstweek->modify('+52 weeks'); \n $test = intval($lastweek->format('Y'));\n \n \n if($year != $test){ \n $week = 1;\n $year +=1;\n }; \n \n }elseif($week>53){\n $week = 1;\n $year +=1;\n }\n\n }while ($moisdebut != $moisfin);\n\n //si le mois d'arrivé est janvier c'est qu'on a changé d'année\n\n \n $week-=1;\n\n return new Week($week, $year);\n\n }", "function addDateMonths($mySQLFormatDate, $noOfMonthsToAdd)\n{\n\t\t$ed = strtotime('+' .$noOfMonthsToAdd . ' months', strtotime($mySQLFormatDate)); \n\t\t$retDate = date('Y-m-d', $ed); \n\t\treturn $retDate;\n}", "public function setDayOfMonth($date, $day_of_month)\n {\n $carbon_date = Carbon::parse($date);\n \n $set_date = $carbon_date->copy()->setUnitNoOverflow('day', $day_of_month, 'month');\n\n //If the set date is less than the original date we need to add a month.\n //If we are overflowing dates, then we need to diff the dates and ensure it doesn't equal 0\n if ($set_date->lte($date) || $set_date->diffInDays($carbon_date) == 0) {\n $set_date->addMonthNoOverflow();\n }\n\n if ($day_of_month == '31') {\n $set_date->endOfMonth();\n }\n\n\n return $set_date;\n }", "public static function getLastDayOfCurrentYear()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, 12, 31, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "public function totalOfMonth() {\n\n $query = \"SELECT SUM(TOTAL) AS TOTAL_MONTH FROM BUY WHERE\" .\n \" MONTH(BUYDATE) = MONTH(NOW()) AND YEAR(BUYDATE) = YEAR(NOW()) \";\n\n $result = parent::query($query);\n\n if ($row = $result->fetch_assoc()) {\n return $row['TOTAL_MONTH'];\n }\n\n return null;\n }", "public function getMonth()\n {\n return $this->_getDateValue('m');\n }", "function last_30_days()\n{\n global $db; // golbalize db variable:\n $thisMonth = array(\n \"start\" => date('Y-m-d', strtotime('today', strtotime(date('Y-m-d')))),\n \"end\" => date('Y-m-d', strtotime('-30 days', strtotime(date('Y-m-d'))))\n );\n $datesIds = $db->getMany(DATES, [\n 'date' => $thisMonth['start'],\n 'dates.date' => $thisMonth['end']\n ], ['id', 'date'], ['date' => '<=', 'dates.date' => '>=']);\n if ($db->count > 0) {\n return $datesIds;\n }\n}", "private function getDatesInMonth() {\n $viewer = $this->getViewer();\n\n $timezone = new DateTimeZone($viewer->getTimezoneIdentifier());\n\n $month = $this->month;\n $year = $this->year;\n\n list($next_year, $next_month) = $this->getNextYearAndMonth();\n\n $end_date = new DateTime(\"{$next_year}-{$next_month}-01\", $timezone);\n\n list($start_of_week, $end_of_week) = $this->getWeekStartAndEnd();\n\n $days_in_month = id(clone $end_date)->modify('-1 day')->format('d');\n\n $first_month_day_date = new DateTime(\"{$year}-{$month}-01\", $timezone);\n $last_month_day_date = id(clone $end_date)->modify('-1 day');\n\n $first_weekday_of_month = $first_month_day_date->format('w');\n $last_weekday_of_month = $last_month_day_date->format('w');\n\n $day_date = id(clone $first_month_day_date);\n\n $num_days_display = $days_in_month;\n if ($start_of_week !== $first_weekday_of_month) {\n $interim_start_num = ($first_weekday_of_month + 7 - $start_of_week) % 7;\n $num_days_display += $interim_start_num;\n\n $day_date->modify('-'.$interim_start_num.' days');\n }\n if ($end_of_week !== $last_weekday_of_month) {\n $interim_end_day_num = ($end_of_week - $last_weekday_of_month + 7) % 7;\n $num_days_display += $interim_end_day_num;\n $end_date->modify('+'.$interim_end_day_num.' days');\n }\n\n $days = array();\n\n for ($day = 1; $day <= $num_days_display; $day++) {\n $day_epoch = $day_date->format('U');\n $end_epoch = $end_date->format('U');\n if ($day_epoch >= $end_epoch) {\n break;\n } else {\n $days[] = clone $day_date;\n }\n $day_date->modify('+1 day');\n }\n\n return $days;\n }", "function get_month_days ($month) {\n $labels = array();\n $month = month_converter($month);\n $monthdays = cal_days_in_month(CAL_GREGORIAN, $month, $date->format('Y'));\n $day = $date->format('d');\n $i = 0;\n while ($i < 30) {\n if ($day <= $monthdays) {\n if (strlen($day) == 1) {\n $day = '0' . $day;\n }\n if (strlen($month) == 1) {\n $month = '0' . $month;\n }\n $labels[] = $day.'-'.$month;\n $day++;\n $i++;\n } else {\n $day = 1;\n $month++;\n $monthdays = cal_days_in_month(CAL_GREGORIAN, $month, $date->format('Y'));\n }\n }\n return $labels;\n}", "function currentMonth() {\n\t\tif (func_num_args()) {\n\t\t\tif (func_get_arg(0) >= 1 && func_get_arg(0) <= 12) {\n\t\t\t\t$this->_currentMonth = intval(func_get_arg(0));\n\t\t\t\t$this->_monthTimestamp = $this->_dayTimestamp = mktime(0,0,0,$this->_currentMonth,1,$this->_currentYear);\n\t\t\t\t$this->_currentMonthNumDays = intval(date('t',$this->_monthTimestamp));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tuser_error(\"You can only set the currentMonth property of the Calendar class to a value between the 1 and 12\", E_USER_NOTICE);\n\t\t\t}\n\t\t}\n\t\telse return $this->_currentMonth;\n\t}", "function initMonth()\n {\n //! Si aucun mois ou année n'est recupéré on prend le mois et l'année actuel\n if (!$this->currentMonthName || !$this->year) {\n $this->currentMonthIndex = (int)date(\"m\", time()) - 1;\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n $this->year = (int)date(\"Y\", time());\n }\n // recalcule le premier jour pour ce mois et le nombre de jour total du mois\n $this->firstDayInMonth = strftime('%u', strtotime(strval($this->currentMonthIndex + 1) . '/01/' . strval($this->year)));\n $this->nbDaysMonth = cal_days_in_month(CAL_GREGORIAN, $this->currentMonthIndex + 1, $this->year);\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n }", "public function setNearday(){\n\t\n\t$this_month_day=$this->getMonth_day();\n\t\n\tif($this->day!=1 && $this->day!=$this_month_day){\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,$this->day+1);\n\t\t\n\t\t\n\t\t\n\t}elseif($this->day==1){\n\t\t\n\t\t$pre_month=$this->month==1?12:($this->month-1);\n\t\t\n\t\t$pre_month_day=$this->getMonth_day($pre_month);\n\t\t\n\t\t$this->predate=$this->makeDate($pre_month,$pre_month_day);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,2);\n\t\t\n\t}else{\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$next_month=$this->month==12?1:($this->month+1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($next_month,1);\n\n\t\t}\n\t\t\n\treturn;\n\n\t}" ]
[ "0.81619275", "0.79505795", "0.7763155", "0.77576953", "0.7745998", "0.7595913", "0.7570759", "0.74234366", "0.740896", "0.7371908", "0.73578674", "0.7219028", "0.710753", "0.70367795", "0.7002467", "0.6949642", "0.69492406", "0.6779875", "0.6731848", "0.66111994", "0.6496486", "0.6478925", "0.644689", "0.6374304", "0.6291021", "0.62906563", "0.6218724", "0.6200497", "0.6052141", "0.6027517", "0.6021414", "0.5993922", "0.5969019", "0.5911237", "0.58165824", "0.5810123", "0.58006984", "0.5797958", "0.5725024", "0.57226044", "0.56882995", "0.564293", "0.5638989", "0.5631773", "0.5579099", "0.55786943", "0.55662555", "0.5546158", "0.548505", "0.5439199", "0.5420541", "0.54020494", "0.5396829", "0.5382552", "0.5361021", "0.53582895", "0.5356424", "0.534471", "0.5336898", "0.5304855", "0.5302839", "0.5285977", "0.5279571", "0.52768916", "0.52327245", "0.5223518", "0.5219632", "0.52074236", "0.5197059", "0.51961243", "0.5180503", "0.5167415", "0.51623195", "0.51575804", "0.51450104", "0.5138898", "0.51349455", "0.51234293", "0.5116214", "0.5114729", "0.5108159", "0.5097242", "0.507187", "0.50689244", "0.5061789", "0.505988", "0.50535405", "0.50449145", "0.5025973", "0.5024743", "0.4999973", "0.49960175", "0.49956244", "0.49926248", "0.4985406", "0.4952007", "0.48939192", "0.48910514", "0.48898906", "0.488583" ]
0.6814951
17
Sets the day of the month, if in the past we ADD a month
public function setDayOfMonth($date, $day_of_month) { $carbon_date = Carbon::parse($date); $set_date = $carbon_date->copy()->setUnitNoOverflow('day', $day_of_month, 'month'); //If the set date is less than the original date we need to add a month. //If we are overflowing dates, then we need to diff the dates and ensure it doesn't equal 0 if ($set_date->lte($date) || $set_date->diffInDays($carbon_date) == 0) { $set_date->addMonthNoOverflow(); } if ($day_of_month == '31') { $set_date->endOfMonth(); } return $set_date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDay($day){\n\t\t$this->_day = (int) $day;\n\t\t$monthDays = self::$_monthTable[$this->_month-1];\n\t\tif($this->isLeapYear()==true&&$this->_month==2){\n\t\t\t++$monthDays;\n\t\t}\n\t\tif($this->_day>$monthDays){\n\t\t\t$this->_day = self::$_monthTable[$this->_month-1];\n\t\t}\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setMonth($month){\n\t\tif($month>12){\n\t\t\t$this->_month = $month%12;\n\t\t\t$this->_year += ((int)($month/12));\n\t\t} else {\n\t\t\tif($month<1){\n\t\t\t\t$this->_month = 13-(abs($month)%12);\n\t\t\t\t$this->_year -= (((int)(abs($month)/12))+1);\n\t\t\t} else {\n\t\t\t\t$this->_month = (int) $month;\n\t\t\t}\n\t\t}\n\t\t$monthDays = self::$_monthTable[$this->_month-1];\n\t\tif($this->isLeapYear()==true&&$this->_month==2){\n\t\t\t++$monthDays;\n\t\t}\n\t\tif($this->_day>$monthDays){\n\t\t\t$this->_day = self::$_monthTable[$this->_month-1];\n\t\t}\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public static function setDateFormatMonth()\n {\n self::$settings[0] = 'Y-m';\n }", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setNearday(){\n\t\n\t$this_month_day=$this->getMonth_day();\n\t\n\tif($this->day!=1 && $this->day!=$this_month_day){\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,$this->day+1);\n\t\t\n\t\t\n\t\t\n\t}elseif($this->day==1){\n\t\t\n\t\t$pre_month=$this->month==1?12:($this->month-1);\n\t\t\n\t\t$pre_month_day=$this->getMonth_day($pre_month);\n\t\t\n\t\t$this->predate=$this->makeDate($pre_month,$pre_month_day);\n\t\t\n\t\t$this->nextdate=$this->makeDate($this->month,2);\n\t\t\n\t}else{\n\t\t\n\t\t$this->predate=$this->makeDate($this->month,$this->day-1);\n\t\t\n\t\t$next_month=$this->month==12?1:($this->month+1);\n\t\t\n\t\t$this->nextdate=$this->makeDate($next_month,1);\n\n\t\t}\n\t\t\n\treturn;\n\n\t}", "public function setByMonthDay($value)\n {\n if (!$this->piecesAreInPositiveOrNegativeRange($value, 31)) {\n throw new InvalidArgumentException('Invalid value for BYMONTHDAY');\n }\n\n $this->byMonthDay = $value;\n\n return $this;\n }", "private function setNextMonth (DateTime $date)\n\t{\n\t\t$tempDate = clone $date;\n\t\t$this->nextMonth = $tempDate->add(DateInterval::createFromDateString('1 month'));\n\t\tunset($tempDate);\n\t}", "public function set_duedate_from_monthrefdate() {\n $this->duedate = $this->monthrefdate->copy()->addMonths(1)->day(10);\n // TO-DO take out the 10 hardcoded when possible !!!\n //$this->duedate->day(10);\n //$this->duedate->addMonths(1);\n }", "public function addMonths($month){\n\t\t$month = abs($month);\n\t\tif($this->_month+$month>12){\n\t\t\t$year = ceil(($month+$this->_month)/12) - 1;\n\t\t\t$this->_month = ($year * 12) - $this->_month + $month;\n\t\t\t$this->_year+= $year;\n\t\t} else {\n\t\t\t$this->_month+=$month;\n\t\t}\n\t\tif($this->_day>30||($this->_day>28&&$this->_month==2)){\n\t\t\t$this->_day = substr(self::getLastDayOfMonth($this->_month, $this->_year),-2);\n\t\t}\n\t\t$this->_consolideDate();\n\t\treturn $this->_date;\n\t}", "public function updateCalendar($month)\n {\n $currentMonth = $this->calendarMonth->getMonth();\n $currentYear = $this->calendarMonth->getYear();\n if ($currentMonth == self::DECEMBER && $month == self::JANUARY) {\n $currentYear++;\n } else if ($currentMonth == self::JANUARY && $month == self::DECEMBER) {\n $currentYear--;\n } else {\n // Do nothing. It is the same year.\n }\n\n $this->calendarMonth = new CalendarMonth($month, $currentYear);\n }", "function initMonth()\n {\n //! Si aucun mois ou année n'est recupéré on prend le mois et l'année actuel\n if (!$this->currentMonthName || !$this->year) {\n $this->currentMonthIndex = (int)date(\"m\", time()) - 1;\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n $this->year = (int)date(\"Y\", time());\n }\n // recalcule le premier jour pour ce mois et le nombre de jour total du mois\n $this->firstDayInMonth = strftime('%u', strtotime(strval($this->currentMonthIndex + 1) . '/01/' . strval($this->year)));\n $this->nbDaysMonth = cal_days_in_month(CAL_GREGORIAN, $this->currentMonthIndex + 1, $this->year);\n $this->currentMonthName = $this->months[$this->currentMonthIndex];\n }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public static function setDateFormatDay()\n {\n self::$settings[0] = 'Y-m-d';\n }", "public function ga_calendar_next_month()\n {\n $current_date = isset($_POST['current_month']) ? esc_html($_POST['current_month']) : '';\n $service_id = isset($_POST['service_id']) ? (int) $_POST['service_id'] : 0;\n $provider_id = isset($_POST['provider_id']) && 'ga_providers' == get_post_type($_POST['provider_id']) ? (int) $_POST['provider_id'] : 0;\n $form_id = isset($_POST['form_id']) ? (int) $_POST['form_id'] : 0;\n\n if ('ga_services' == get_post_type($service_id) && ga_valid_year_month_format($current_date)) {\n $timezone = ga_time_zone();\n\n $date = new DateTime($current_date, new DateTimeZone($timezone));\n $date->modify('+1 month');\n\n $ga_calendar = new GA_Calendar($form_id, $date->format('n'), $date->format('Y'), $service_id, $provider_id);\n echo $ga_calendar->show();\n } else {\n wp_die(\"Something went wrong.\");\n }\n\n wp_die(); // Don't forget to stop execution afterward.\n }", "public function setToLastDayOfMonth(int $month = null) : Time /*PHP8:static*/\n {\n if ($this->frozen) {\n throw new \\RuntimeException(get_class($this) . ' is read-only, frozen.');\n }\n if ($month !== null) {\n if ($month < 1 || $month > 12) {\n throw new \\InvalidArgumentException('Arg month[' . $month . '] isn\\'t null or 1 through 12.');\n }\n $mnth = $month;\n }\n else {\n $mnth = (int) $this->format('m');\n }\n return $this->setDate(\n (int) $this->format('Y'),\n $mnth,\n $this->monthLengthDays($mnth)\n );\n }", "public function setMonth($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function setLastDayOfMonth()\r\n {\r\n $this->setDay($this->getLastDayOfMonth());\r\n\r\n return $this;\r\n }", "function nextMonth($interval=1){ return $this->_getDate(0,$interval); }", "public function set_billing_day( $value ) {\n\t\tif ( ! is_numeric( $value ) || $value < 1 || $value > 27 ) {\n\t\t\tthrow new Exception( __( 'Invalid billing day of month.', 'credits-for-woocommerce' ) ) ;\n\t\t}\n\n\t\t$this->set_prop( 'billing_day', absint( $value ) ) ;\n\t}", "private function setDate(){\n\t// Validate incoming parameters\n\t\t$this->di->logger->stamp(__CLASS__, __METHOD__, '');\n\tif (isset($_GET['month'])) {\n\t\tis_numeric($_GET['month']) or die('month has to be numeric');\n\t}\n\tif (isset($_GET['year'])) {\n\t\tis_numeric($_GET['year']) or die('year has to be numeric');\n\t}\n\n\t// Set new date\n\t$this->newMonth = isset($_GET['month']) ? ($_GET['month']) : $this->currentMonth;\n\t$this->newYear = isset($_GET['year']) ? ($_GET['year']) : $this->currentYear;\n\n\tif ($this->newMonth > 12) {\n\t\t$this->newYear = $this->newYear +1;\n\t\t$this->newMonth = 1;\n\t\t$_GET['month'] = 1;\n\n\t}\n\telse if ($this->newMonth < 1) {\n\t\t$this->newYear = $this->newYear -1;\n\t\t$this->newMonth = 12;\n\t\t$_GET['month'] = 12;\n\t}\n\t\n\t}", "function setDay($d)\r\n {\r\n if($d > 31 || $d < 1) {\r\n $this->dia = 1;\r\n } else {\r\n $this->dia = $d;\r\n }\r\n }", "public function dayOfMonth($dayOfMonth)\n {\n $this->dayOfMonth = (string) $dayOfMonth;\n return $this;\n }", "public function enableNonMonthDays() {\n\t\t$this->displayNonMonthDays = true;\n\t}", "static function add_eb_date(): void {\r\n\t\tself::add_acf_inner_field(self::ebs, self::eb_date, [\r\n\t\t\t'label' => 'Date',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => 'Enter the month of the election, e.g. March 2018.',\r\n\t\t\t'required' => 1,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t]);\r\n\t}", "public function setMonth($month) {\n\t\t$this->month = $month;\n\t}", "public function getNextMonth($date=null){\n\t\t$dateNew = date(\"Y-m-d H:i:s\",strtotime(\"+1 month\", strtotime($date)));\n\t\treturn $dateNew;\n\t}", "function setDate($date = null)\r\n\t{\t\r\n\t\t$day = substr($date ,8, 2);\r\n\t\t$month = substr($date ,5, 2);\r\n\t\t$year = substr($date ,0, 4);\r\n\t\t\r\n\t\t$newDate = $day.'-'.$month.'-'.$year;\r\n\t\t\r\n\t\treturn $newDate;\r\n\t}", "function _data_last_month_day()\n {\n $month = date('m');\n $year = date('Y');\n $day = date(\"d\", mktime(0, 0, 0, $month + 1, 0, $year));\n\n return date('Y-m-d', mktime(0, 0, 0, $month, $day, $year));\n }", "public function setMonth($month)\n {\n $this->month = $month;\n }", "public function setMonth($month)\n\t{\n\t\t$this->month = $month;\n\t}", "function add_months(&$t, $m)\n{\n $t['tm_mon'] += $m;\n if ($t['tm_mon'] > 12) \n {\n $t['tm_mon'] -= 12;\n $t['tm_year'] ++;\n }\n elseif ($t['tm_mon'] < 1) \n {\n $t['tm_mon'] += 12;\n $t['tm_year'] --;\n }\n return;\n}", "public function setModDate($date) {}", "public function getDayOfMonth()\n {\n return $this->dayOfMonth;\n }", "public function testSetDate()\n {\n $month = new Month();\n\n $date = date_create('now');\n $month->setDate($date);\n\n $this->assertEquals($date, $month->getDate());\n }", "public function onDayOfMonth($dayOfMonth)\n {\n $this->dayOfMonth = $dayOfMonth;\n return $this;\n }", "private function setPrevMonth (DateTime $date)\n\t{\n\t\t$tempDate = clone $date;\n\t\t$this->prevMonth = $tempDate->sub(DateInterval::createFromDateString('1 month'));\n\t\tunset($tempDate);\n\t}", "public function set_due_day( $value ) {\n\t\tif ( ! is_numeric( $value ) || $value < 1 || $value > 28 ) {\n\t\t\tthrow new Exception( __( 'Invalid due day of month.', 'credits-for-woocommerce' ) ) ;\n\t\t}\n\n\t\t$this->set_prop( 'due_day', absint( $value ) ) ;\n\t}", "private function _daysInMonth ()\n {\n return date('t', strtotime($this->currentYear.'-'.$this->currentMonth));\n }", "protected function addDaysForMonth(string $month, int $year, Event $event)\n {\n // we need this to have a date where time is set to 00:00:00\n $day = $this->dateTimeUtility->convert('today');\n $lastDayOfMonth = $this->dateTimeUtility->convert('today');\n $lastDayOfMonth->modify('last day of ' . $month . ' ' . (string)$year . ' 23:59:59');\n $dateToStartCalculatingFrom = $this->getDateToStartCalculatingFrom($event); // prevent from calling it multiple times in foreach\n $dateToStopCalculatingTo = $this->getDateToStopCalculatingTo($event); // prevent from calling it multiple times in foreach\n\n foreach ($event->getXth() as $xthIndex => $xth) {\n foreach ($event->getWeekday() as $weekdayIndex => $weekday) {\n if ($xth && $weekday) {\n // example: 'second wednesday of March 2013'\n $modifyString = $xthIndex . ' ' . $weekdayIndex . ' of ' . $month . ' ' . $year;\n $day->modify($modifyString);\n if ($day >= $dateToStartCalculatingFrom && $day < $lastDayOfMonth && $day <= $dateToStopCalculatingTo) {\n $this->addDayToStorage($day);\n }\n }\n }\n }\n }", "public function setToFirstDayOfMonth(int $month = null) : Time /*PHP8:static*/\n {\n if ($this->frozen) {\n throw new \\RuntimeException(get_class($this) . ' is read-only, frozen.');\n }\n if ($month !== null) {\n if ($month < 1 || $month > 12) {\n throw new \\InvalidArgumentException('Arg month[' . $month . '] isn\\'t null or 1 through 12.');\n }\n $mnth = $month;\n }\n else {\n $mnth = (int) $this->format('m');\n }\n return $this->setDate(\n (int) $this->format('Y'),\n $mnth,\n 1\n );\n }", "public function disableNonMonthDays() {\n\t\t$this->displayNonMonthDays = false;\n\t}", "function _buildMay()\n {\n \n $this->_addHoliday(\n 'May',\n $this->_year . '-05-01',\n 'May\\'s Day'\n );\n \n }", "public function setStartMonth($month)\n {\n $this->start_month = $month;\n $date = date('Y', time()) . '-' . $month . '-01';\n $this->start_date = new DateTime($date);\n }", "public function addMonth($month = 1)\r\n {\r\n $date = date(self::MASK_TIMESTAMP_USER, mktime($this->hour, $this->minute, $this->second, $this->month + $month, $this->day, $this->year));\r\n $this->setValue($date);\r\n\r\n return $this;\r\n }", "public function testReplaceADay()\n {\n $month = new Month();\n $month->setMonth(date_create('2016-10-01'));\n\n $month[] = new Day('2016-10-20');\n $month[] = new Day('2016-10-21');\n $month[] = new Day('2016-10-22');\n\n $replace = new Day('2016-10-21');\n $replace->isReplaced = true;\n\n $isReplaced = $month->replaceDay($replace);\n\n $this->assertTrue($isReplaced, 'is not replaces, but must be: '.$replace);\n $this->assertEquals($month[1], $replace);\n\n $wrongMonth = new Day('2016-9-21');\n $isNotReplaced = $month->replaceDay($wrongMonth);\n $this->assertFalse($isNotReplaced, 'Is replaced but must be not, through is not the same Month. ' . $wrongMonth );\n }", "public function setMonth($month) {\n\t\t$this->schedule->setMonth($month);\n\n\t\treturn $this;\n\t}", "function _data_last_month_day() { \r\n $month = date('m');\r\n $year = date('Y');\r\n $day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\r\n \r\n return date('d/m/Y', mktime(0,0,0, $month, $day, $year));\r\n }", "private function _daysInMonth($month=null,$year=null){\n \n if(null==($year))\n $year = date(\"Y\",time()); \n \n if(null==($month))\n $month = date(\"m\",time());\n \n return date('t',strtotime($year.'-'.$month.'-01'));\n }", "public function getNextMonth(){\n\t\tif($this->getMonth() == 12){return 1;}\n\t\telse{return $this->getMonth()+1;}\n\t}", "public function setNewMonth($timestamp)\n {\n $timestampPrevious = strtotime(\"-1 month\", $timestamp);\n $this->currentMonth = getdate($timestamp);\n $this->noOfDays = date(\"t\", $timestamp);\n $this->noOfDaysPrevious = date(\"t\", $timestampPrevious);\n }", "public function setDay($day)\n {\n $this->day = $day;\n }", "public function setDate(int $year, int $month, int $day) : self\n {\n $this->y = $year;\n $this->m = $month;\n $this->d = $day;\n\n return $this;\n }", "public static function getLastDayOfCurrentMonth()\n\t{\n\t\t$dateInSeconds = mktime(0, 0, 0, date('m')+1, 0, date('Y'));\n\t\t$date = date('Y-m-d', $dateInSeconds);\n\t\treturn $date;\n\t}", "function bank_date_fin_mois($annee, $mois){\n\t$date_fin = mktime(0, 0, 0, $mois, 01, $annee);\n\t$date_fin = strtotime(\"+1 month\", $date_fin);\n\treturn date('Y-m-d H:i:s', $date_fin);\n}", "function currentMonth() {\n\t\tif (func_num_args()) {\n\t\t\tif (func_get_arg(0) >= 1 && func_get_arg(0) <= 12) {\n\t\t\t\t$this->_currentMonth = intval(func_get_arg(0));\n\t\t\t\t$this->_monthTimestamp = $this->_dayTimestamp = mktime(0,0,0,$this->_currentMonth,1,$this->_currentYear);\n\t\t\t\t$this->_currentMonthNumDays = intval(date('t',$this->_monthTimestamp));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tuser_error(\"You can only set the currentMonth property of the Calendar class to a value between the 1 and 12\", E_USER_NOTICE);\n\t\t\t}\n\t\t}\n\t\telse return $this->_currentMonth;\n\t}", "public function setDay($day)\n {\n $ts = $this->timestamp;\n $result = mktime(\n date('H', $ts),\n date('i', $ts),\n date('s', $ts),\n date('n', $ts),\n $day,\n date('Y', $ts)\n );\n return new Date($result, $this->timezone);\n }", "function _data_last_month_day() {\n\t$month = date('m');\n\t$year = date('Y');\n\t$day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\n\n\treturn date('Y-m-d', mktime(0,0,0, $month, $day, $year));\n}", "public function addMonths($numMonths)\r\n\t{\r\n\t\t// Perform a numeric check\r\n\t\tif (!is_numeric($numMonths) || $numMonths < 1)\r\n\t\t{\r\n\t\t\tthrow new Exception('addMonths() expects a positive integer');\r\n\t\t}\r\n\t\t\r\n\t\t// Convert to integer to perform following calculations\r\n\t\t$numMonths = (int) $numMonths;\r\n\t\t\r\n\t\t// Add the months to the current month number\r\n\t\t$newValue = $this->_month + $numMonths;\r\n\t\t\r\n\t\t// If the $newValue is less then or equal 12, we are still in the same year,\r\n\t\t// so just assign a new value to a month\r\n\t\tif ($newValue <= 12)\r\n\t\t{\r\n\t\t\t$this->_month = $newValue;\r\n\t\t}\r\n\t\t// The $newValue is greater then 12. We'll need to calculate both\r\n\t\t// a year and a month\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Calculating a year is different for december,\r\n\t\t\t// so we do a modulo devision by 12 to check.\r\n\t\t\t// If the remainer is not 0, the new month is not December.\r\n\t\t\t$notDecember = $newValue % 12;\r\n\t\t\t\r\n\t\t\tif($notDecember)\r\n\t\t\t{\r\n\t\t\t\t// The remainder of the modulo division is a new month\r\n\t\t\t\t$this->_month = $notDecember;\r\n\t\t\t\t\r\n\t\t\t\t// To get the number of years to add,\r\n\t\t\t\t// divide the $newValue by 12 and round down the result\r\n\t\t\t\t$this->_year += floor($newValue / 12);\r\n\t\t\t}\r\n\t\t\t// The new month must be December\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->_month = 12;\r\n\t\t\t\t$this->_year += ($newValue / 12) - 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Perform the last day of the month check\r\n\t\t$this->checkLastDayOfMonth();\r\n\t\t\r\n\t\t// Set new date directly, without our setters.\r\n\t\t// Date is checked inside checkLastDayOfMonth(), \r\n\t\t// so we're saving some calculation time.\r\n\t\tparent::setDate($this->_year, $this->_month, $this->_day);\r\n\t}", "final protected function checkLastDayOfMonth()\r\n\t{\r\n\t\t// Perform the date check - do we need to do anything?\r\n\t\tif (!checkdate($this->_month, $this->_day, $this->_year))\r\n\t\t{\r\n\t\t\t// Months that have 30 days\r\n\t\t\t$use30 = array(4, 6, 9, 11);\r\n\t\t\t\r\n\t\t\t// Our date is one of these months\r\n\t\t\tif(in_array($this->_month, $use30))\r\n\t\t\t{\r\n\t\t\t\t// The last day is 30th then\r\n\t\t\t\t$this->_day = 30;\r\n\t\t\t}\r\n\t\t\t// Our date is none of these months - must be February then\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t// Is this a leap year - then the last day is 29\r\n\t\t\t\t// If this year is not a leap year - 28\r\n\t\t\t\t$this->_day = $this->isLeap() ? 29 : 28;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function getCurrentDayInMonthNumber ()\n\t{\n\t\treturn date ('j');\n\t}", "function setMonths() {\n\tglobal $monthList,\t$monthListShort, $weekdaysList;\n\t$monthList=array('一月','二月','三月','四月','五月','六月',\n\t\t\t\t\t'七月','八月','九月','十月','十一月','十二月');\n\t$monthListShort=array('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');\n\t$weekdaysList=array('Mon','Tue','Wed','Thu','Fri','Sat','Sun') ;\n}", "public function isValidDayOfMonth($date) {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\t\tif ($_POST['every_unit'] == 'Month' || $_POST['every_unit'] == 'Year') {\n\t\t\tif (empty($date) || !is_numeric($date) || $date < 1 || $date > 31) {\n\t\t\t\t$this->form_validation->set_message('isValidDayOfMonth', 'The Day of Month is Invalid');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\t\treturn TRUE;\n\t}", "static function add_bod_date(): void {\r\n\t\tself::add_acf_inner_field(self::bods, self::bod_date, [\r\n\t\t\t'label' => 'Date',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => 'Enter the month of the election, e.g. March 2018.',\r\n\t\t\t'required' => 1,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t]);\r\n\t}", "public function buildMonth()\n\t{\n\t\t$this->orderedDays = $this->getDaysInOrder();\n\t\t\n\t\t$this->monthName = $this->months[ ltrim( $this->month, '0') ];\n\t\t\n\t\t// start of whichever month we are building\n\t\t$start_of_month = getdate( mktime(12, 0, 0, $this->month, 1, $this->year ) );\n\t\t\n\t\t$first_day_of_month = $start_of_month['wday'];\n\t\t\n\t\t$days = $this->startDay - $first_day_of_month;\n\t\t\n\t\tif( $days > 1 )\n\t\t{\n\t\t\t// get an offset\n\t\t\t$days -= 7;\n\t\t\t\n\t\t}\n\n\t\t$num_days = $this->daysInMonth($this->month, $this->year);\n\t\t// 42 iterations\n\t\t$start = 0;\n\t\t$cal_dates = array();\n\t\t$cal_dates_style = array();\n\t\t$cal_events = array();\n\t\twhile( $start < 42 )\n\t\t{\n\t\t\t// off set dates\n\t\t\tif( $days < 0 )\n\t\t\t{\n\t\t\t\t$cal_dates[] = '';\n\t\t\t\t$cal_dates_style[] = 'calendar-empty';\n\t\t\t\t$cal_dates_data[] = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( $days < $num_days )\n\t\t\t\t{\n\t\t\t\t\t// real days\n\t\t\t\t\t$cal_dates[] = $days+1;\n\t\t\t\t\tif( in_array( $days+1, $this->daysWithEvents ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$cal_dates_style[] = 'has-events';\n\t\t\t\t\t\t$cal_dates_data[] = $this->data[ $days+1 ];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$cal_dates_style[] = '';\n\t\t\t\t\t\t$cal_dates_data[] = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// surplus\n\t\t\t\t\t$cal_dates[] = '';\n\t\t\t\t\t$cal_dates_style[] = 'calendar-empty';\n\t\t\t\t\t$cal_dates_data[] = '';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// increment and loop\n\t\t\t$start++;\n\t\t\t$days++;\n\t\t}\n\t\t\n\t\t// done\n\t\t$this->dates = $cal_dates;\n\t\t$this->dateStyles = $cal_dates_style;\n\t\t$this->dateData = $cal_dates_data;\n\t}", "public function getStartingDay() : \\DateTime{\n return new \\DateTime(\"{$this->year}-{$this->month}-01\");\n}", "function setMonths() {\n\tglobal $monthList,\t$monthListShort, $weekdaysList;\n\t$monthList=array('Enero','Febrero','Marzo','Abril','Mayo','Junio',\n\t\t\t\t\t'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');\n\t$monthListShort=array('ENE','FEB','MAR','ABR','MAY','JUN','JUL','AGO','SEP','OCT','NOV','DIC');\n\t$weekdaysList=array('Lun','Mar','Mie','Jue','Vie','Sab','Dom') ;\n}", "public function nextMonth(): Month{\n $month = $this->month +1;\n $year=$this->year;\n if($month > 12){\n $month = 1;\n $year += 1;\n }\n return new Month($month, $year);\n }", "function add_month($start, $months)\n{\n $date1 = new DateTime($start->format(\"Y-m-d\\TH:i:sP\"));\n $day1 = intval($date1->format(\"d\"));\n\n $date2 = $date1->add(new DateInterval('P'.strval($months).'M'));\n $year2 = intval($date2->format(\"Y\"));\n $month2 = intval($date2->format(\"m\"));\n $day2 = intval($date1->format(\"d\"));\n\n if ($day1 <= $day2)\n {\n return $date2;\n }\n $date2->setDate($year2, $month2, 0);\n return $date2;\n}", "public function ga_calendar_prev_month()\n {\n $current_date = isset($_POST['current_month']) ? esc_html($_POST['current_month']) : '';\n $service_id = isset($_POST['service_id']) ? (int) $_POST['service_id'] : 0;\n $provider_id = isset($_POST['provider_id']) && 'ga_providers' == get_post_type($_POST['provider_id']) ? (int) $_POST['provider_id'] : 0;\n $form_id = isset($_POST['form_id']) ? (int) $_POST['form_id'] : 0;\n\n if ('ga_services' == get_post_type($service_id) && ga_valid_year_month_format($current_date)) {\n $timezone = ga_time_zone();\n\n $date = new DateTime($current_date, new DateTimeZone($timezone));\n $date->modify('-1 month');\n\n $ga_calendar = new GA_Calendar($form_id, $date->format('n'), $date->format('Y'), $service_id, $provider_id);\n echo $ga_calendar->show();\n } else {\n wp_die(\"Something went wrong.\");\n }\n\n wp_die(); // Don't forget to stop execution afterward.\n }", "function ShowDayOfMonth($get_month){\n\t$arr_d1 = explode(\"-\",$get_month);\n\t$xdd = \"01\";\n\t$xmm = \"$arr_d1[1]\";\n\t$xyy = \"$arr_d1[0]\";\n\t$get_date = \"$xyy-$xmm-$xdd\"; // วันเริ่มต้น\n\t//echo $get_date.\"<br>\";\n\t$xFTime1 = getdate(date(mktime(0, 0, 0, intval($xmm+1), intval($xdd-1), intval($xyy))));\n\t$numcount = $xFTime1['mday']; // ฝันที่สุดท้ายของเดือน\n\tif($numcount > 0){\n\t\t$j=1;\n\t\t\tfor($i = 0 ; $i < $numcount ; $i++){\n\t\t\t\t$xbasedate = strtotime(\"$get_date\");\n\t\t\t\t $xdate = strtotime(\"$i day\",$xbasedate);\n\t\t\t\t $xsdate = date(\"Y-m-d\",$xdate);// วันถัดไป\t\t\n\t\t\t\t $arr_d2 = explode(\"-\",$xsdate);\n\t\t\t\t $xFTime = getdate(date(mktime(0, 0, 0, intval($arr_d2[1]), intval($arr_d2[2]), intval($arr_d2[0]))));\t\n\t\t\t\t if($xFTime['wday'] == 0){\n\t\t\t\t\t $j++;\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tif($xFTime['wday'] != \"0\"){\n\t\t\t\t\t\t$arr_date[$j][$xFTime['wday']] = $xsdate;\t\n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t}\n\t\t\t\n\t}//end if($numcount > 0){\n\treturn $arr_date;\t\n}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setDate($date = false)\n {\n $date = explode('-', $date);\n\n $day = @$date[2] ? : date('d');\n $month = @$date[1] ? : date('m');\n $year = @$date[0] ? : date('Y');\n\n $this->day = @$day;\n $this->month = @$month;\n $this->year = @$year;\n # return Calendar instance\n return $this;\n }", "public function matchDayOfMonth()\n {\n $days = $this->getDataValue('days');\n return in_array(Carbon::now($this->automation->customer->getTimezone())->day, $days, false);\n }", "function _nextMonthTimestamp() {\n\t\treturn mktime(0,0,0,$this->_currentMonth+1,1,$this->_currentYear);\n\t}", "public function month($value) {\n return $this->setProperty('month', $value);\n }", "public function test30Feb()\n\t{\n\t\tunset($_GET['day']);\n unset($_POST['day']);\n unset($_COOKIE['day']);\n unset($_REQUEST['day']);\n \n unset($_GET['month']);\n unset($_POST['month']);\n unset($_COOKIE['month']);\n unset($_REQUEST['month']);\n \n unset($_GET['year']);\n unset($_POST['year']);\n unset($_COOKIE['year']);\n unset($_REQUEST['year']);\n \n $_REQUEST['day'] = 30;\n $_REQUEST['month'] = 2;\n $_REQUEST['year'] = 2007;\n \n list($day, $month, $year) = input_DayMonthYear();\n\t\t\n\t\t$this->assertEquals(28, $day);\n\t\t$this->assertEquals(2, $month);\n\t\t$this->assertEquals(2007, $year);\n\t}", "public function testGetStartEndOfMonth() {\n // We only allow start dates in 31-day months.\n $now = new \\DateTimeImmutable('2019-09-15');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'day_of_month' => '-1',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2019-09-30', $date->format('Y-m-d'));\n\n // Tricky value as there is a Feb 29.\n $now = new \\DateTimeImmutable('2020-02-15');\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2020-02-29', $date->format('Y-m-d'));\n }", "function _expire_month($month,$date){\n\t\t$_year = substr($date,0,4);\t// 주어진 날짜의 년도\n\t\t$_month = substr($date,5,2);\t// 주어진 날짜의 달\n\t\t$_day = substr($date,8,2);\t\t// 주어진 날짜의 일\n\n\t\t$m = $_month + $month;\t// 주어진 달 + 연장할 달\n\t\t$_year += intval($m / 12);\t\t// 합산한 달이 12달을 넘을 경우, 년도를 증가함.\n\t\t$mm = intval($m % 12);\t\t\t// 합산한 달이 12 이하의 수 \n\n\t\treturn $_year.\"-\".$mm.\"-\".$_day;\n\t}", "function reset() {\n\t\t$this->_monthTimestamp = $this->_dayTimestamp = mktime(0,0,0,$this->_currentMonth,1,$this->_currentYear);\n\t\t$this->_currentMonthNumDays = intval(date('t',$this->_monthTimestamp));\n\t\t$this->_dateArray = array_fill(1, 31, \"\");\n\t\t$this->_preWeekArray = array();\n\t\t$this->_postWeekArray = array();\n\t}", "function _data_first_month_day()\n {\n $month = date('m');\n $year = date('Y');\n return date('Y-m-d', mktime(0, 0, 0, $month, 1, $year));\n }", "public function __invoke($month = null, $year = null)\n\t{\n\t\t//set the locale\n\t\t$prefs = $this->getUserData();\n\t\t$locale = $prefs['locale'];\n\t\t$base_date = null;\n\n\t\tif ($month != '' && $year != '') \n\t\t{\n\t\t\t$base_date = date('r', mktime(12,0,0,$month, 1, $year));\n\t\t} \n\t\telse \n\t\t{\n\t\t\t$this->month = date('m');\n\t\t\t$this->year = date('Y');\n\t\t\t$base_date = date('r', mktime(12,0,0,date('m'), 1, date('Y')));\n\t\t}\n\t\t\n\t\t$this->setDate($base_date, $locale);\n\t\t$this->setValidDateRange(-36,48);\n\t\treturn $this;\n\t}", "public function setDate($year, $month, $day)\r\n\t{\r\n\t\t// Perform the numeric check\r\n\t\tif (!is_numeric($year) || !is_numeric($month) || !is_numeric($day))\r\n\t\t{\r\n\t\t\tthrow new Exception('setDate() expects three numbers in this order: year, month, day');\r\n\t\t}\r\n\t\t\r\n\t\t// Perform the date validation check\r\n\t\tif (!checkdate($month, $day, $year))\r\n\t\t{\r\n\t\t\tthrow new Exception('Non-existent date');\r\n\t\t}\r\n\t\t\r\n\t\t// Set the date\r\n\t\tparent::setDate($year, $month, $day);\r\n\r\n\t\t// Set the internal variables\r\n\t\t$this->_year = $year;\r\n\t\t$this->_month = $month;\r\n\t\t$this->_day = $day; \r\n\t}", "function _webform_datelist_date_date_callback(array &$element, FormStateInterface $form_state, $date) {\n $no_abbreviate = (isset($element['#date_abbreviate']) && $element['#date_abbreviate'] === FALSE);\n if ($no_abbreviate && isset($element['month']) && isset($element['month']['#options'])) {\n // Load translated date part labels from the appropriate calendar plugin.\n $date_helper = new DateHelper();\n $element['month']['#options'] = $date_helper->monthNames($element['#required']);;\n }\n}", "public function setDate($date);", "public function getDateEndMonth($date=null){\n\t\t$dateNew = date(\"Y-m-d H:i:s\",strtotime('last day of this month', strtotime($date)));\n\t\treturn $dateNew;\n\t}", "private function getLastDayMonth($year,$month) {\n\t\treturn date(\"d\",(mktime(0,0,0,$month+1,1,$year)-1));\n\t}", "public function setDay($value)\n {\n if ($value < 1 || $value > 31) {\n throw I18nException::forInvalidDay($value);\n }\n\n $date = $this->getYear() . '-' . $this->getMonth();\n $lastDay = date('t', strtotime($date));\n if ($value > $lastDay) {\n throw I18nException::forInvalidOverDay($lastDay, $value);\n }\n\n return $this->setValue('day', $value);\n }", "public function setDate($year, $month, $day) : \\DateTime /*self invariant - PHP8:static*/\n {\n if ($this->frozen) {\n throw new \\RuntimeException(get_class($this) . ' is read-only, frozen.');\n }\n return parent::setDate($year, $month, $day);\n }", "private function getDatesInMonth() {\n $viewer = $this->getViewer();\n\n $timezone = new DateTimeZone($viewer->getTimezoneIdentifier());\n\n $month = $this->month;\n $year = $this->year;\n\n list($next_year, $next_month) = $this->getNextYearAndMonth();\n\n $end_date = new DateTime(\"{$next_year}-{$next_month}-01\", $timezone);\n\n list($start_of_week, $end_of_week) = $this->getWeekStartAndEnd();\n\n $days_in_month = id(clone $end_date)->modify('-1 day')->format('d');\n\n $first_month_day_date = new DateTime(\"{$year}-{$month}-01\", $timezone);\n $last_month_day_date = id(clone $end_date)->modify('-1 day');\n\n $first_weekday_of_month = $first_month_day_date->format('w');\n $last_weekday_of_month = $last_month_day_date->format('w');\n\n $day_date = id(clone $first_month_day_date);\n\n $num_days_display = $days_in_month;\n if ($start_of_week !== $first_weekday_of_month) {\n $interim_start_num = ($first_weekday_of_month + 7 - $start_of_week) % 7;\n $num_days_display += $interim_start_num;\n\n $day_date->modify('-'.$interim_start_num.' days');\n }\n if ($end_of_week !== $last_weekday_of_month) {\n $interim_end_day_num = ($end_of_week - $last_weekday_of_month + 7) % 7;\n $num_days_display += $interim_end_day_num;\n $end_date->modify('+'.$interim_end_day_num.' days');\n }\n\n $days = array();\n\n for ($day = 1; $day <= $num_days_display; $day++) {\n $day_epoch = $day_date->format('U');\n $end_epoch = $end_date->format('U');\n if ($day_epoch >= $end_epoch) {\n break;\n } else {\n $days[] = clone $day_date;\n }\n $day_date->modify('+1 day');\n }\n\n return $days;\n }", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public function setMonth($value)\n {\n if (is_numeric($value) && ($value < 1 || $value > 12)) {\n throw I18nException::forInvalidMonth($value);\n }\n\n if (is_string($value) && ! is_numeric($value)) {\n $value = date('m', strtotime(\"{$value} 1 2017\"));\n }\n\n return $this->setValue('month', $value);\n }", "public function testGetStartDateFeb31() {\n $now = new \\DateTimeImmutable('2019-09-15');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'day_of_month' => '31',\n 'month' => '2',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2020-02-29', $date->format('Y-m-d'));\n }", "public function setDoDate($value)\n {\n if (!array_key_exists('do_date', $this->fieldsModified)) {\n $this->fieldsModified['do_date'] = $this->data['fields']['do_date'];\n } elseif ($value === $this->fieldsModified['do_date']) {\n unset($this->fieldsModified['do_date']);\n }\n\n $this->data['fields']['do_date'] = $value;\n }", "function _data_first_month_day() {\r\n $month = date('m');\r\n $year = date('Y');\r\n return date('d/m/Y', mktime(0,0,0, $month, 1, $year));\r\n }", "public function is_month()\n {\n }", "function addDateMonths($mySQLFormatDate, $noOfMonthsToAdd)\n{\n\t\t$ed = strtotime('+' .$noOfMonthsToAdd . ' months', strtotime($mySQLFormatDate)); \n\t\t$retDate = date('Y-m-d', $ed); \n\t\treturn $retDate;\n}", "public static function getCurrentMonth() {\n return date('n');\n }", "public function setToDate($toDate)\n {\n if (stristr($toDate, \"-\")) {\n $toDate = strtotime($toDate);\n }\n $this->toDate = $toDate;\n }", "private function _setDate(){\n\t\tif($this->_year>=1970&&$this->_year<=2038){\n\t\t\t$this->_day = date('d', $this->_timestamp);\n\t\t\t$this->_month = date('m', $this->_timestamp);\n\t\t\t$this->_year = date('Y', $this->_timestamp);\n\t\t} else {\n\t\t\t$dateParts = self::_getDateParts($this->_timestamp, true);\n\t\t\t$this->_day = sprintf('%02s', $dateParts['mday']);\n\t\t\t$this->_month = sprintf('%02s', $dateParts['mon']);\n\t\t\t$this->_year = $dateParts['year'];\n\t\t}\n\t\t$this->_date = $this->_year.'-'.$this->_month.'-'.$this->_day;\n\t}", "function getDateMonth()\n{\n $dateMonth = strtotime(\"-1 month\");\n return $dateMonth;\n}" ]
[ "0.6985946", "0.6904768", "0.68322283", "0.67946976", "0.66019106", "0.64127034", "0.6305809", "0.62068987", "0.61927325", "0.6186671", "0.6160902", "0.61173034", "0.6074882", "0.59904605", "0.59343004", "0.59316885", "0.5914879", "0.5880269", "0.5869598", "0.57935035", "0.57489765", "0.5746794", "0.56709504", "0.5658973", "0.56526554", "0.56474054", "0.56177837", "0.560303", "0.55866927", "0.55822074", "0.55746174", "0.55670935", "0.5554644", "0.5553761", "0.55119383", "0.55023587", "0.54906607", "0.54894006", "0.54804915", "0.54685134", "0.54659873", "0.546132", "0.54349667", "0.5428933", "0.5425437", "0.5418499", "0.5416842", "0.5413248", "0.5409926", "0.538532", "0.5384575", "0.53739774", "0.53460556", "0.53242105", "0.5323394", "0.53193945", "0.5309754", "0.5308553", "0.5286891", "0.5283805", "0.5253105", "0.5241917", "0.5239609", "0.52293646", "0.5214224", "0.5209409", "0.5196628", "0.5189152", "0.5185223", "0.51773477", "0.5151902", "0.5150691", "0.51383215", "0.5128412", "0.51220995", "0.5119587", "0.5095391", "0.5094838", "0.50905126", "0.50832635", "0.50819486", "0.5066665", "0.5065557", "0.50634813", "0.505912", "0.5048976", "0.5047689", "0.504674", "0.5038495", "0.50324", "0.5032277", "0.5025614", "0.5024496", "0.50218254", "0.5021802", "0.50190413", "0.50173503", "0.50164396", "0.5013338", "0.5007396" ]
0.710681
0
Display a listing of the resource.
public function index(Request $request) { $query = Theme::select(); $role = auth()->user()->role; if ($request->has('onlyThemes')) { $query->whereUserId(auth()->id()); } if ($request->has('search')) { $search = $request->input('search'); $query->where('name', 'like', "%$search%"); } if ($request->has('user_id')){ $query->whereUserId($request->input('user_id')); } $themes = $query ->orderBy("id", "desc")->paginate(25) ->appends(request()->query()); // return $themes; return view('admin.themes.index', compact('themes', 'role')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('admin.themes.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $data = $request->validate([ 'plan_id' => 'required|numeric', 'theme_num' => 'required', 'name' => 'required', 'introduction' => 'nullable', 'exercise_type' => [ 'required', Rule::in(['matni', 'f_pdf']), ], 'matni_data' => 'nullable', 'f_pdf_file' => 'nullable|file', 'video' => 'nullable|file', 'pdf' => 'nullable|file', 'video_src' => 'nullable|string', 'pdf_src' => 'nullable|string', 'status' => 'nullable|boolean', 'is_show' => 'required|boolean', ]); $theme = new Theme; $theme->plan_id = $data['plan_id']; $theme->user_id = auth()->id(); $theme->theme_num = $data['theme_num']; $theme->name = $data['name']; $theme->status = $data['status'] ?? 0; $theme->is_show = $data['is_show'] ?? 0; $theme->introduction = $data['introduction'] ?? null; $theme->test = '{ "scripts": [ "\/js\/quiz4x1.js", "\/js\/matching.js", "\/js\/openQuiz.js" ], "styles": [ "\/css\/quiz4x1.css", "\/css\/matching.css", "\/css\/openQuiz.css" ], "tests": [ ] }'; if ($data['exercise_type'] == 'matni') $theme->pdf_exercise = $data['matni_data']; else $theme->pdf_exercise = $request->has('f_pdf_file') ? str_replace('public/uploads/pdf/', '', Storage::putFile('public/uploads/pdf', $request->file('f_pdf_file'))) : $data['f_pdf_file_src']; if (isset($data['video'])) $theme->video_src = str_replace('public/uploads/videos/', '', Storage::putFile('public/uploads/videos', $request->file('video'))); else $theme->video_src = $data['video_src']; if (isset($data['pdf'])) $theme->pdf_src = str_replace('public/uploads/pdf/', '', Storage::putFile('public/uploads/pdf', $request->file('pdf'))); else $theme->pdf_src = $data['pdf_src']; $theme->save(); if ($theme) { alert()->success('Мавзуъ бо муваффакият изофа шуд', 'Илова шуд'); return redirect(route('themes.index')); } return abort(419); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show(Theme $theme) { return $theme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Theme $theme) { $theme->load('plan.sinf', 'plan.subject'); $role = auth()->user()->role; return view('admin.themes.edit', compact('theme', 'role')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Theme $theme) { if ($request->input('isOnlyTestUpdate') && auth()->user()->role != 'moderator') { $theme->test = $request->input('data'); $theme->save(); return response(['status' => 'ok'], 200); } $isUpdatedSuccessfully = false; if (auth()->user()->role == 'moderator') { $status = $request->validate([ 'status' => 'required|boolean' ])['status']; $theme->status = $status; $theme->save(); $isUpdatedSuccessfully = true; } else { $data = $request->validate([ 'plan_id' => 'required|numeric', 'theme_num' => 'required', 'name' => 'required', 'introduction' => 'nullable', 'exercise_type' => [ 'required', Rule::in(['matni', 'f_pdf']), ], 'matni_data' => 'nullable', 'f_pdf_file' => 'nullable|file', 'video' => 'nullable|file', 'pdf' => 'nullable|file', 'video_src' => 'nullable|string', 'pdf_src' => 'nullable|string', 'f_pdf_file_src' => 'nullable|string', 'status' => 'nullable|boolean', 'is_show' => 'required|boolean', 'saveOldPdf' => 'nullable|boolean', 'saveOldVideos' => 'nullable|boolean', 'saveOldPdfExercise' => 'nullable|boolean' ]); if (auth()->user()->role == 'teacher') $data['status'] = $theme->status; $theme->plan_id = $data['plan_id']; $theme->theme_num = $data['theme_num']; $theme->name = $data['name']; $theme->is_show = $data['is_show'] ?? 0; $theme->status = $data['status'] ?? 0; $theme->introduction = $data['introduction'] ?? null; if (!isset($data['saveOldPdf'])) { if (isset($data['pdf']) && $request->has('pdf')) $theme->pdf_src = str_replace('public/uploads/pdf/', '', Storage::putFile('public/uploads/pdf', $request->file('pdf'))); else $theme->pdf_src = $data['pdf_src']; } if (!isset($data['saveOldVideos'])) { if (isset($data['video']) && $request->has('video')) $theme->video_src = str_replace('public/uploads/videos/', '', Storage::putFile('public/uploads/videos', $request->file('video'))); else $theme->video_src = $data['video_src']; } if ($data['exercise_type'] == 'f_pdf') { if (!isset($data['saveOldPdfExercise'])) { if (isset($data['f_pdf_file']) && $request->has('f_pdf_file')) $theme->pdf_exercise = str_replace('public/uploads/pdf/', '', Storage::putFile('public/uploads/pdf', $request->file('f_pdf_file'))); else $theme->pdf_exercise = $data['f_pdf_file_src']; } } else $theme->pdf_exercise = $data['matni_data']; $theme->save(); $isUpdatedSuccessfully = true; } if ($isUpdatedSuccessfully) { alert()->success('Мавзуъ бо муваффакият тағйир дода шуд', 'Тағйир ёфт'); return redirect('/admin/themes?page='.\request()->input('page')); } return abort(403); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(Theme $theme) { try { Storage::delete('/public/uploads/img/' . $theme->video_src); Storage::delete('/public/uploads/pdf/' . $theme->pdf_src); $theme->delete(); return response()->json([ 'status' => 'ok', 'message' => 'theme deleted successfully' ], 200); } catch (\Exception $e) { return response()->json([ 'status' => 'error', 'message' => 'error : ' . $e->getMessage() ], 401); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Redirigerer bruker til index.php og logget han ut hvis sessionen til brukeren er kapret
public static function session() { //Sjekker om en bruker er logget in if (isset($_SESSION['user'])) { //Hvis verifyUser() returnerer falskt er sessionene kapret if(!$_SESSION['user']->verifyUser()){ unset($_SESSION['user']); $alert = new Alert(Alert::ERROR, "Sessionen er kapret og du har blitt logget ut. Husk å bruke beskyttelse"); $alert->displayOnIndex(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n\t{\n\t\t$requestUrl = $this->input->get(\"redirect\");\n\t\t\n\t\tif ($this->login_util->isUserLoggedIn()){\n\t\t\t// session exists\n\t\t\tredirect($requestUrl, 'refresh');\n\t\t}\n\t\t\n\t\t$this->display_login($requestUrl);\n\t}", "public function index() { \n # Clear session\n session_unset();\n session_destroy();\n session_write_close(); \n setcookie(session_name(), \"\", 0, \"/\");\n \n header(\"Location:/\". PATH .\"/login\");\n }", "public function checsession() {\n // using the default layout 'protected/views/layouts/main.php'\n $session = Yii::app()->session['isLoggedIn'];\n if(empty($session)){\n $this->redirect(Yii::app()->baseUrl.'/index.php');\n }\n }", "function logged(){\n if(!empty($_SESSION['login'])){\n $host=$_SERVER['HTTP_HOST'];\n\t\t$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\\\');\n\t\t$extra=\"./index.php\";\n\t\theader(\"Location: http://$host$uri/$extra\");\n }\n}", "public function indexAction()\n {\n\t\t//$sso->start();\n\t\t$saveHandlerManager = new Kutu_Session_SaveHandler_Manager();\n\t\t$saveHandlerManager->setSaveHandler();\n\t\tZend_Session::start();\n\t\t//$this->_helper->layout->disableLayout();\n\t\t\n\t\t$sReturn = \"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t\t$sReturn = urlencode($sReturn);\n\t\t$this->view->returnTo = $sReturn;\n\t\t\n\t\t$id = Kutu_Application::getResource('identity');\n\t\t$this->view->loginUrl = $id->loginUrl;\n\t\t$this->view->logoutUrl = $id->logoutUrl;\n\t\t\n\t\t$auth = Zend_Auth::getInstance();\n\t\t\n\t\tif($auth->hasIdentity())\n\t\t{\n\t\t\t$username = $auth->getIdentity()->username;\n\t\t\t//echo $username;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//echo 'tidak ada';\n\t\t}\n\t\t$this->_forward('index','index','site');\n\t\t\n }", "public function index(){\r\n Session::createSession();\r\n if(isset($_SESSION['loggedin'])) {\r\n header('location:'.URL.'home');\r\n }else{\r\n $this->view->render('login/index');\r\n }\r\n \r\n }", "function index() {\n\t\t\tif (!isset($_SESSION['admin'])) {\n\t\t\t\tView::render(\"admin\" . DS . \"login\");\n\t\t\t}else {\n\t\t\t\theader(\"Location: ../contenido/principal/\");\n\t\t\t}\n\t\t}", "public function index(){\n \n $user = $_SESSION[\"User\"]?? null;\n if(null != $user){\n Header(\"Location:\".URL.\"Principal/principal\");\n }else{\n $this->view->render($this,\"index\");\n }\n // echo \"Metodo index\";\n \n }", "public function index()\n\t{\n\t\t$this->load->view('login');\n\t\t$this->session->msg = \"\";\n\t\t$this->session->type = \"\";\n\t}", "public function index()\n\t{\n\t\tif(is_login()){\n\t\t\theader('Location:'.base_url('index.php/dashboard'));\n\t\t\texit();\n\t\t}else{\n\t\t\theader('Location:'.base_url('index.php/login'));\n\t\t\texit();\n\t\t}\n\t}", "private function sesja() {\r\n session_start();\r\n if (!isset($_SESSION['id'])) {\r\n $_SESSION['id'] = 0;\r\n }\r\n }", "public function index()\n\t{\t\n\t\tsession_start();\n\t\tif(!isset ($_SESSION['id_usuario']) == true)\n\t\t{\t\n\t\t\tunset ($_SESSION['id_usuario']);\n \tunset ($_SESSION['email']);\n \tunset ($_SESSION['nome']);\n \t$this->load->view('login_view');\n\t\t}else{\n\t\t\tredirect(\"dashboard/\");\n\t\t}\n\t\t\n\t}", "function index()\n {\t \t\n \t$this->login(); \n }", "function verifSession(){\n if(!$_SESSION['rangId']){\n header('Location:'.base_url()); \n }\n }", "function requestSessionInfo()\n {\n //para pasarselo al aside;\n\n $sessionLevel = $this->loginController->GetSessionAuthLevel();\n $this->view->setSessionLevel($sessionLevel);\n\n $sessionName = $this->loginController->GetSessionUsername();\n $this->view->setSessionName($sessionName);\n }", "public function index()\n\t{\n\t\t$this->login();\n }", "function index()\r\n\t{\r\n\t\t\tredirect('c_login', 'refresh');\r\n\t}", "public function index()\n\t{\n\t\t$this->login();\n\t}", "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "public function index(){\r\n\r\n if(empty($_SESSION['rick_auto'])){\r\n $url= base_url().'admin/index/signin';\r\n redirect($url);\r\n\t\t\treturn;\r\n\t\t}else{\t\r\n\t\t\t$url= base_url().'admin/index/dashboard';\r\n\t\t\tredirect($url);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n }", "public function indexAction()\n {\n\t\tprint_scr(D, session_id());\t\n\t\t\n\t\t//Check if the session is already valid\n\t\tif(isset($this->session->name)) {\n\t\t\tif (isset($this->session->isFBUser)) {\n\t\t\t //Fb User has logged in\n\t\t\t\t\t$user_profile=$this->session->userProfile; \n\t\t\t\t\t$this->view->userFirstName = $user_profile['first_name'];\n\t\t\t\t\t$this->view->userLastName= $user_profile['last_name'];\n\t\t\t\t\t$this->view->fbUser = 1;\n\t\t\t} else {\n\t\t\t\t\t// regular user who has logged in\n\t\t\t\t\t$this->view->regularUser=1;\n\t\t\t\t\t$this->view->userFirstName=$this->session->userFirstName;\n\t\t\t\t\t$this->view->userLastName=$this->session->userLastName;\n\t\t\t}\n\t\t} else {\n\t\t\t//session expired or not started\n\t\t\tZend_Session::destroy( true );\n\t\t\tprint_scr(E,\"Session Expired OR Not Started!!\");\n\t\t}\n\n }", "public function doGet(){\n if($this->request->session->exist('user_logged')){\n $this->request->session->delete_session();\n }\n //Redirecciono al front\n redirect(\"\");\n }", "public function Index(){\n session_write_close();\n redirect('admin/login','refresh');\n exit;\n }", "public function index()\n {\n if ($this->session->userdata('is_login') != 1)\n redirect(site_url('login'), 'refresh');\n if ($this->session->userdata('etutor_login') == 1)\n redirect(site_url('etutor/dashboard'), 'refresh');\n }", "function is_log() {\n\tif (isset($_SESSION['login']) && $_SESSION['login']===TRUE) {\n\t} else {\n\t\theader('location:index.php');\n\t}\t\n}", "public function verificarLoginController(){\n\t\t//session_start();\n\t\tif(isset($_SESSION)){\n\t\t\tif(isset($_SESSION['login'])){\n if(!$_SESSION['login'])\n //header(\"view/login.php\");\n echo \"<script>window.location='index.php?action=login';</script>\"; \n }else{\n echo \"<script>window.location='index.php?action=login';</script>\"; \n }\n\t\t}else{\n\t\t\techo \"<script>window.location='index.php?action=login';</script>\";\n\t\t}\n\t}", "function admin_index(){ \n //pr($this->Session->read('Auth'));die;\n }", "public function index()\n\t{\n\t\tif ($this->session->userdata('reception_login') != 1)\n\t\t\tredirect(base_url() . 'index.php?login', 'refresh');\n\t\tif ($this->session->userdata('reception_login') == 1)\n\t\t\tredirect(base_url() . 'index.php?reception/dashboard', 'refresh');\n\t}", "public function index()\n\t{\n\t\tif ($this->session->userdata('reception_login') != 1)\n\t\t\tredirect(base_url() . 'index.php?login', 'refresh');\n\t\tif ($this->session->userdata('reception_login') == 1)\n\t\t\tredirect(base_url() . 'index.php?reception/dashboard', 'refresh');\n\t}", "public function indexAction()\n\t{\t\t\n\t\tif(!authorization::areWeLoggedIn())\n\t\t{\n\t\t\t//we do it this way so that certain applicatiob classes can override the super Login action\n\t\t\tglobalRegistry::getInstance()->setRegistryValue('event','login_application_grabs_control','true');\n\t\t\t$this->doLogin();\n\t\t}\n\t\t\n\t\t\n\t\t\t\t\n\t}", "public function redirect_if_logged_in()\n {\n Session::_start();\n if(isset($_SESSION['user']))\n {\n header('location: ' . URL_WITH_INDEX_FILE . 'results/index');\n exit();\n }\n }", "public function login()\n {\n if (!isset($_SESSION)) {\n session_start();\n }\n $_SESSION['email'] = $this->email;\n header('Location: index.php');\n }", "function Session () {\r\n session_start();\r\n }", "public function index() {\r\n self::acceso();\r\n $this->view->ver('login.php'); \r\n }", "public function index() {\n $_SESSION['kviz_end'] = 0;\n $this->prikaz(\"igrac\", []);\n }", "public function logged_in_redirect(){\n\n\t\tif (isset($_SESSION['user_id'])) {\n\t\t \t# code...\n\t\t \theader('Location: index.php');\n\t\t } \n\t}", "public function index() {\n if(isset($_SESSION['userId'])) {\n $data = [];\n $this->view('pages/dashboard', $data);\n } else {\n $this->view('pages/login', $data = []);\n // // // Working in test environment but not in live \n // header('location: ' . URLROOT . '/LoginController/login');\n // exit();\n }\n }", "public function index()\n\t{\n\t\tif ($this->session->userdata('patient_login') != 1)\n\t\t\tredirect(base_url() . 'index.php?login', 'refresh');\n\t\tif ($this->session->userdata('patient_login') == 1)\n\t\t\tredirect(base_url() . 'index.php?patient/dashboard', 'refresh');\n\t}", "function action_userLogged() {\n if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {\n $_SESSION['logged'] = false;\n header('Location: /');\n } else {\n $_SESSION['logged'] = true;\n header('Location: /home/track');\n // Include view for this page.\n @include_once APP_PATH . 'view/track_page.tpl.php';\n }\n }", "public function controlSession(){\n $session = $_SESSION['wifiGuardSharingEmail'];\n $sessionID = $_SESSION[\"wifiGuardSharingID\"];\n $uri = $_SERVER['REQUEST_URI'];\n \n if(!empty($session) && !empty($sessionID)){\n $result = dibi::query('SELECT sessionID\n FROM [user]\n WHERE [email] = %s', $session, 'LIMIT 1');\n $databaseSessionID = $result->fetchSingle();\n \n //if user is in index.php with valid session\n if (preg_match(\"/index.php/\",$uri) && $databaseSessionID===$sessionID){\n parent::redirection(\"app.php?page=showrecord\");\n }\n //if user try load app.php with invalid session\n elseif (preg_match(\"/app.php/\",$uri) && $databaseSessionID!==$sessionID){\n parent::redirection(\"index.php\");\n }\n } \n //if user try load app.php without session\n elseif(preg_match(\"/app.php/\",$uri)){\n parent::redirection(\"index.php\");\n }\n }", "public function session_start_controller(){\n\n\t\t\t$userName=mainModel::clean_string($_POST['loginUserName']);\n\t\t\t$userPass=mainModel::clean_string($_POST['loginUserPass']);\n\n\t\t\t//$userPass=mainModel::encryption($userPass);\n\n\t\t\t$dataLogin=[\n\t\t\t\t\"AccountUserName\"=>$userName,\n\t\t\t\t\"AccountPass\"=>$userPass\n\t\t\t];\n\n\t\t\tif($dataAccount=loginmodel::session_start_model($dataLogin)){\n\t\t\t\tif($dataAccount->rowCount()==1){\n\n\t\t\t\t\t$row=$dataAccount->fetch();\n\n session_start(['name'=>'ASUSAP']);\n $_SESSION['user_name_srce']=$row['usuario'];\n $_SESSION['user_token_srce']=$row['password'];\n // $_SESSION['user_token_srce']=md5(uniqid(mt_rand(), true));\n\n $dateNow=date(\"Y-m-d\");\n\t\t\t\t\t$yearNow=date(\"Y\");\n\t\t\t\t\t$timeNow=date(\"h:i:s a\");\n\n $url=SERVERURL.\"dashboard/\";\n\n\t\t\t\t}else{\n\t\t\t\t\t$dataAlert=[\n\t\t\t\t\t\t\"Title\"=>\"Ocurrió un error inesperado\",\n\t\t\t\t\t\t\"Text\"=>\"El nombre de usuario y contraseña no son correctos o su cuenta puede estar deshabilitada\",\n\t\t\t\t\t\t\"Type\"=>\"error\",\n\t\t\t\t\t\t\"Alert\"=>\"single\"\n\t\t\t\t\t];\n\t\t\t\t\treturn mainModel::sweet_alert($dataAlert);\n\t\t\t\t}\n return $urlLocation='<script type=\"text/javascript\"> window.location=\"'.$url.'\"; </script>';\n\t\t\t}else{\n\t\t\t\t$dataAlert=[\n\t\t\t\t\t\"Title\"=>\"Ocurrió un error inesperado\",\n\t\t\t\t\t\"Text\"=>\"No se pudo realizar la petición\",\n\t\t\t\t\t\"Type\"=>\"error\",\n\t\t\t\t\t\"Alert\"=>\"single\"\n\t\t\t\t];\n\t\t\t\treturn mainModel::sweet_alert($dataAlert);\n\t\t\t}\n\t\t}", "static function aggiungiserie ($watch){\n session_start();\nif(!FPersistentManager::existCorr($watch,$_SESSION['adding'])){\nFPersistentManager::storeCorrispondenze($watch,$_SESSION['adding']);\nunset($_SESSION['adding']);}\n if(isset($_SESSION['location']))\nheader('Location: /Progetto'.$_SESSION['location']);\nelse header('Location: /Progetto/Utente/homelog');\n\n}", "public function index() {\n\n\t\t//--------------------------Cargar variables del Metodo------------------------------ \t\n\n\t\t\t$titulo = 'SIC';\n\n\t\t//-----------------------------------------------------------------------------------\n\n\t\t\tlayout_view_login($titulo, $this->url); //Carga layout\n\n\t}", "public function index() {\n $this->login();\n }", "private function aim() {\n\t\t# The class pretends to use the session for storing the\n\t\t# permanent memory of one application\n\t\t# wheteher it does or doesn't a log in to execute it.\n\t\t# It has two ways of make the logout:\n\t\t#\ta) The logout is performed by calling to a website from\n\t\t#\t\twhich yhe user will need to login again to come back\n\t\t#\t\tinside the app.\n\t\t#\tb) The logout is performed changing to the anonymous user\n\t\t#\t\tand accessing to the places suitable for that user.\n\t}", "public function indexAction()\n {\n $this->loadLayout();\n\n // Init messages\n $this->_initLayoutMessages('mbiz_cc/session');\n\n $this->renderLayout();\n }", "function comprobarSession(){\n\tif (!isset($_SESSION['admin'])) {\n \theader('Location:http://localhost/sesion/login.php');\n\t}\n}", "function index(){\n if(!Auth::is_valid()){\n Router::redirect(\"sesion/index\");\n }\n \n\t\tFlash::info(\"Sistema para la gestión de la internacionalización\");\n\t}", "public function index() {\r\n if ($this->session->userdata('accountant_login') != 1)\r\n redirect(base_url() . 'index.php?login', 'refresh');\r\n if ($this->session->userdata('accountant_login') == 1)\r\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\r\n }", "public function index()\n {\n $this->uid = session('uid');\n $this->uname = session('uname'); \n $this->display();\n }", "function index(){\n\t\tif($this->session->userdata('status') != \"on\"){\n\t\t\tredirect(base_url('LogsInti/masuk'));\n\t\t}else{\n\t\t\tif($this->session->userdata('akses') == 2){\n\t\t\t\tredirect(base_url('posko/tampil/'.$this->session->userdata('id')));\n\t\t\t}else{\n\t\t\t\t$this->load->view('admin/app-profile');\n\t\t\t}\n\t\t}\n\t}", "public function index() {\n \tif ($this->session->userdata('user_login') != 'true')\n redirect(base_url() . 'login', 'refresh');\n if ($this->session->userdata('user_login') == 'true')\n redirect(base_url() . 'admin/dashboard', 'refresh');\n\n }", "function session()\n {\n if (!API_MODE) {\n session_name('SKELETON');\n session_start();\n } else {\n ini_set('session.use_cookies', '0');\n }\n }", "public function home() {\n $_SESSION['kviz_end'] = 0;\n $this->prikaz(\"igrac\", []);\n }", "public function index(){\n session_start();\n if(isset($_SESSION['idEmpleado'])){\n if($_SESSION['rolEmpleado'] == \"admin\" || $_SESSION['rolEmpleado'] == \"gerente\"){\n include('vista/admin/head/index.php');\n include('vista/admin/header/index.php');\n include('vista/admin/menu/index.php');\n\n include('vista/admin/proveedor/index.php');\n\n include('vista/admin/footer/index.php');\n }else{\n header(\"Location: \".URL.\"adminPuntoVenta\");\n }\n }else{\n header(\"Location: \".URL.\"adminLogin\");\n }\n }", "function verifica_logado() {\n\n if (@$_SESSION['usuario_logado'] == false) {\n\n print '<script>window.location = \"index.php\";</script>';\n }\n}", "public function index() {\n if ($this->session->userdata('adminLogged') != 'yes') {\n redirect(SITE_ADMIN_URL.'index_admin/index');\n } else {\n redirect(SITE_ADMIN_URL.'index_admin/index');\n }\n }", "function index()\n {\n if (!isset($_SESSION['username'])) {\n redirect('notfound/index');\n } else {\n $this->view->load('frontend/user/index');\n }\n }", "public function index()\n\t{\n\t\tif ($this->session->userdata('logged_in')) {\n\n\t\t\t$this->view_crud((object)array('output' => '', 'js_files' => array(), 'css_files' => array()));\n\t\t\t/**\n\t\t\t * Jika session tidak login\n\t\t\t */\n\t\t} else {\n\t\t\tredirect('dev/access');\n\t\t}\n\t}", "private function _sess_run() {\n\t\t// session\n\t\tini_set('session.save_handler', $this->sess_save_handler);\n\t\t$path = array();\n\t\tforeach ($this->sess_server as $server) {\n\t\t\tif (isset($server['host']) && isset($server['port'])) {\n\t\t\t\t$path[] = \"tcp://{$server['host']}:{$server['port']}?\" . http_build_query(isset($server['params']) ? $server['params'] : array());\n\t\t\t}\n\t\t}\n\t\tif (empty($path)) {\n\t\t\tshow_error('Session save_path is empty');\n\t\t}\n\t\tini_set('session.save_path', implode(',', $path));\n\n\t\tini_set('session.gc_maxlifetime', $this->sess_expiration);\t// 过期时间\n\t\t// cookie\n\t\tini_set('session.cookie_secure', 0);\t\t// 0 http:// 1 https://\n\t\tini_set('session.cookie_httponly', 1);\t\t// 不让JS读取session的cookie\n\t\tsession_name($this->sess_cookie_name);\n\n\t\tsession_start();\n\t\t// delete old flashdata (from last request)\n\t\t$this->_flashdata_sweep();\n\t\t// mark all new flashdata as old (data will be deleted before next request)\n\t\t$this->_flashdata_mark();\n\t}", "public function SessionStart ();", "public function login()\n {\n $this->vista->index();\n }", "public function init()\n {\n \n if(!isset($_SESSION[\"user_id\"]))\n $this->_redirect('index/login');\n }", "public function index()\n {\n echo \"Accion de Queja\"; die();\n }", "public function indexAction()\n {\n if ($this->_user) {\n $this->session->destroy();\n }\n\n if ($this->request->isPost()) {\n echo '<pre>';\n var_dump('x');\n echo '</pre>';\n die();\n }\n }", "public function __construct()\n {\n if(isset($_POST[\"login\"])){\n $this->Login();\n }\n //si les session exist on appel loginUser sinon on Actualise la page Accueil\n \n else if (isset($_SESSION[\"password1\"]) && isset($_SESSION[\"username1\"])){\n if(isset($_SESSION[\"pass\"]) && isset($_SESSION[\"user\"])){\n $this->LoginAdmin();\n } \n elseif(isset($_SESSION[\"password\"]) && isset($_SESSION[\"username\"])){\n $this->LoginUser();\n } \n else{\n echo \"rien\";\n }\n }\n \n else {\n echo \"wttf\";\n header(\"Location: http://127.0.0.1:8888/edsa-pfe-mvc/ \");\n } \n \n \n \n}", "public function init() {\n// $session->open();\n// if (empty($_SESSION['userid'])) {\n// return $this->redirect('index.php?r=login');\n// }\n }", "public function index()\n {\n if (get_setting('saml_sp_mode') == 1)\n redirect('sessions/samllogin');\n redirect('sessions/login');\n }", "private static function configureSession()\n {\n if(!isset($_SESSION))\n {\n session_start();\n }\n }", "public function checkLogged() {\n if (!PlonkSession::exists('id')) {\n PlonkWebsite::redirect($_SERVER['PHP_SELF'] . '?' . PlonkWebsite::$moduleKey . '=home&' . PlonkWebsite::$viewKey . '=home');\n } \n }", "public function index()\n\t{\n\t\tredirect(base_url(\"index.php\"));\n\t}", "function logueado(){\n \tsession_start();\n \t$url_acutal = basename($_SERVER['PHP_SELF']);\n\n \t\n \tif (strcasecmp($url_acutal, \"login.php\") <> 0) {\n \tif ( !isset($_SESSION['usuario']) ){\n \t\t$ruta = ruta(\"login.php\");\n \t\theader(\"Location: $ruta\");\n \t \t}\n \t}\n \t\n }", "public function login()\n {\n\t// if the user successfully logged in..\n\tif($this->yourauth->check() == TRUE)\n\t{\n\t session_start();\n\t $_SESSION['KCFINDER'] = array();\n\t $_SESSION['KCFINDER']['disabled'] = false;\n\n\t redirect('editor/index');\n\t}\n\n }", "public static function check_log_in ()\n {\n session_start();\n\n if (!$_SESSION['user_data']) {\n header('Location: ./../index.php');\n exit;\n }\n }", "function actionLogin(){\n\t\t//session_start();\n\t\t\n\t\tif (!empty($_POST['id'])){\n\t\t\t$url = 'http://localhost:8090/BlogServer/ServletDemo?username=%3Bl&password=';\n\t\t\t$html = file_get_contents($url); \n\t\t\t$respObject = json_decode($html);\n\t\t\tif (!Empty($respObject->user->$_POST['id'])){\t\t\t\t\n\t\t\t\t$_SESSION['views'] = $respObject->user->$_POST['id'];\n\t\t\t\t$art = new Article();\n\t\t\t\t$this->findall = $art->findAll();\n\t\t\t\t$this->display(\"kmblog/km_index.html\");\n\t\t\t}\n\t\t}\n\t}", "private function _cek_user_login() {\r\n //if ($this->session->userdata('VNAME')) {\r\n if (isset($_SESSION['VNAME'])) {\r\n //echo \"test\";exit; \r\n header('location:' . $this->data['base_url'] . \"index.php/backend/home\");\r\n }\r\n //$this->data['username'] = strtoupper($this->session->userdata('VUSERNAME'));\r\n //echo \"test22\". $this->session->userdata('username').\" lalala\";exit;\r\n }", "public function index()\n {\n if ($this->session->userdata('pre_student_login') != 1)\n redirect(site_url('login'), 'refresh');\n if ($this->session->userdata('pre_student_login') == 1)\n redirect(site_url('pre_student/dashboard'), 'refresh');\n }", "public static function init() {\n\t\t\t\n\t\t\t/* Run session */\n\t\t\tsession_start();\n\t\t\t\n\t\t}", "function re_login() {\n header(\"Location: start.php\");\n die();\n }", "public function index()\n {\n if (session()->get('logged_in')) {\n \techo render(HOME_PAGE, ['title' => 'Accueil']);\n }\n // Otherwise, the login page is displayed\n else $this->login();\n }", "public function Authentication(){\n if($_SESSION['account'] == NULL){\n // neu khong co nghia la chua dang nhap\n // t chuyen huong ve login\n header(\"location:login\");\n }\n }", "public function index() {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "public function index() {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "public function index()\n\t{\n\t\tif ( $this->auth->check() )\n\t\t{\t\t\n\t\t\t// MUESTRA LA PAGINA\n\t\t\t$this->show_page();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect ( $this->_base_url );\n\t\t}\n\t}", "public function must_be_logged_in()\n {\n Session::_start();\n if(!isset($_SESSION['user']))\n {\n Session::_destroy();\n header('location: ' . URL_WITH_INDEX_FILE . 'login/index');\n exit();\n }\n }", "public function index()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "function _loginRedirect(){\r\n \t// send user to the login page\r\n \theader(\"Location:/index.php\");\r\n }", "public function index()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(site_url('login'), 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(site_url('admin/dashboard'), 'refresh');\n }", "function kcsite_session_start() {\n\tif (!session_id()){\n\t\tsession_start();\n\t}\n}", "public function indexAction()\n {\n\t$this->session->remove('auth');\n $this->session->destroy();\n\treturn $this->response->redirect('index');\n }", "public function index()\n\t{\n\t\n\t$error=Session::get('error');\n\n\t\t//print_r($error);\n\tif(!empty($error)){\n\t\treturn view('Modules.HR.login.index')->with('error',$error);\n\t}\n\n\tif(isset($_COOKIE['ICS'])){\n\t\treturn redirect()->action('UIController@index');\n\t}\n\t\treturn view('Modules.HR.login.index');\n\t}", "public function index()\n {\n if(isset($_SESSION['user'])){\n //mostro l'index per gli utenti loggati\n if($_SESSION['user']['nome_ruolo'] == 'admin'){\n ViewLoader::load(\"_templates/header_admin\");\n ViewLoader::load(\"newUser/index\");\n ViewLoader::load(\"_templates/footer\");\n }elseif($_SESSION['user']['nome_ruolo'] == 'utente'){\n ViewLoader::load(\"_templates/header_user\");\n ViewLoader::load(\"home/index\");\n ViewLoader::load(\"_templates/footer\");\n }\n }else{\n //mostro l'index di base\n ViewLoader::load(\"_templates/header_base\");\n ViewLoader::load(\"home/index\");\n ViewLoader::load(\"_templates/footer\");\n }\n }", "public final function start() \n\t{\n\t\tif (isset($_SESSION)) return;\n\t\tsession_start();\n\t}", "public function login(){\n\t\t$this->user = $this->user->checkCredentials();\n\t\t$this->user = array_pop($this->user);\n\t\tif($this->user) {\n\t\t\t$_SESSION['id'] = $this->user['id'];\n\t\t\t$_SESSION['name'] = $this->user['name'];\n\t\t\t$_SESSION['admin'] = $this->user['admin'];\n\t\t\t$this->isAdmin();\n\t \t\theader('location: ../view/home.php');\n\t \t\texit;\n\t \t}\n\t\t$dados = array('msg' => 'Usuário ou senha incorreto!', 'type' => parent::$error);\n\t\t$_SESSION['data'] = $dados;\n\t\theader('location: ../view/login.php');\n \t\texit;\n\t}", "public function index()\n {\n $this->session()->deleteCookie();\n // Destroy session data\n $this->session()->destroy();\n // Unset the session vars\n $this->sessionStorage()->unsetVars(); \n // Start a new session\n $this->session()->start();\n\n return $this->renderWithResponse('login', ['homeUrl' => $this->generateUrl('home')]);\n }", "public static function sessionStart()\n\t{\n\t\t{\n\t\t\tsession_start();\n\t\t}\n\t}", "public function index(){\n \t$this->head = $this->fetch('head'); \n \t$this->foot = $this->fetch('foot');\n \t\n \t\n \tif(isset($_SESSION['user_id']))\n \t{\n \t\t\n \t}\n \telse\t\n \t{\n \t\t$this->whetherLogin = \"<div id=\\\"wb_login_btn\\\"></div>\";\n \t}\n \t\n \t$this->display(); \n \t\n }", "public static function session_check(){\n if(!isset($_SESSION)){\n session_start();\n }\n if( !isset( $_SESSION[\"loggedIn\"])){\n\n header(\"Location: login.php\");\n }\n }", "public function __construct() {\n\t\tsession_start();\n\t}", "protected function expulsaVisitante()\n {\n header( \"Location: \".self::index );\n }" ]
[ "0.73227537", "0.72661036", "0.7207731", "0.70369023", "0.7008581", "0.6988428", "0.6988056", "0.6935033", "0.69334096", "0.69324446", "0.69138324", "0.6883424", "0.68615294", "0.6846756", "0.6834195", "0.6830277", "0.6819093", "0.68182456", "0.68149257", "0.6803714", "0.6785766", "0.6770342", "0.6760907", "0.675145", "0.67403436", "0.6738947", "0.67173076", "0.67165416", "0.67165416", "0.6708409", "0.66678053", "0.6652299", "0.66304237", "0.6621828", "0.6621553", "0.6618078", "0.660761", "0.6601529", "0.6565921", "0.6556207", "0.65523434", "0.65439475", "0.6536086", "0.65347767", "0.6533294", "0.6527426", "0.6504744", "0.64942104", "0.64906096", "0.64882433", "0.64790785", "0.6478617", "0.64590704", "0.645811", "0.6452588", "0.64520055", "0.6450079", "0.64433634", "0.64433163", "0.64413714", "0.64361733", "0.64356774", "0.6430721", "0.64286315", "0.6427677", "0.64233065", "0.6421573", "0.64072555", "0.64068395", "0.64054626", "0.64035517", "0.6386461", "0.6384363", "0.6382244", "0.6381138", "0.6377662", "0.6375539", "0.6368211", "0.63659376", "0.63627976", "0.63599324", "0.63579", "0.63579", "0.63518983", "0.63512754", "0.6350971", "0.63504696", "0.6349733", "0.63451016", "0.6342458", "0.63398457", "0.63386106", "0.6336122", "0.63282555", "0.63234645", "0.63204265", "0.6320064", "0.631828", "0.6314675", "0.6309319" ]
0.7024311
4
Redirigerer bruker til login.php hvis bruker ikke er logget inn
public static function userLoggedIn() { //Hvis en bruker ikke er logget inn, vil han bli sent til login.php if (!isset($_SESSION['user'])) { //Lagrer siden brukeren er på nå slik at han kan bli redirigert hit etter han har logget inn $_SESSION['returnPage'] = $_SERVER['REQUEST_URI']; $alert = new Alert(Alert::ERROR, "Du er nøtt til å være logget inn for å se den siden. Ikke prøv deg på noe."); $alert->displayOnOtherPage('login.php'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function login() {\n\t\tif (isset($_REQUEST['username']) && !empty($_REQUEST['username'])) {\n\t\t\t$username = $_REQUEST['username'];\n\n\t\t\t$userDAO = implementationUserDAO_Dummy::getInstance();\n\t\t\t$users = $userDAO->getUsers();\n\n\t\t\tforeach ($users as $key => $user) {\n\t\t\t\tif ($user->getUsername() === $username) {\n\t\t\t\t\t$userFound = $user;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isset($userFound) && $userFound != null) {\n\n\t\t\t\tif (isset($_REQUEST['password']) && !empty($_REQUEST['password'])) {\n\t\t\t\t\t$password = $_REQUEST['password'];\n\n\t\t\t\t\tif ($userFound->getPassword() === $password) {\n\n\t\t\t\t\t\tsession_start();\n\t\t\t\t\t\t$_SESSION['USERNAME']= $username;\n\n\t\t\t\t\t\t$url = getPreviousUrl();\n\t\t\t\t\t\t$newUrl = substr($url, 0, strpos($url, \"?\"));\n\n\t\t\t\t\t\tredirectToUrl($newUrl);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\t$this->resendLoginPage('danger', 'Mot de passe invalide.');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\t// redirecting to login with bad password alert\n\t\t\t\t\t$this->resendLoginPage('danger', 'Mot de passe invalide.');\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->resendLoginPage('danger', 'Login invalide.');\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\t// redirecting to login page with bad username alert\n\t\t\t$this->resendLoginPage('danger', 'Login invalide.');\n\t\t}\n\n\n\t}", "public function p_login() {\n\n\t\t# Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t\t# Hash submitted password so we can compare it against one in the db\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t\t# Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \"SELECT token \n\t\t\tFROM users \n\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\tAND password = '\".$_POST['password'].\"'\";\n\n\t\t$token = DB::instance(DB_NAME)->select_field($q);\n\n\t\t# If we didn't find a matching token in the database, it means login failed\n\t\tif(!$token) {\n\n\t\t\t# Send them back to the login page\n\t\t\tRouter::redirect(\"/users/login/error\");\n\n\t\t# But if we did, login succeeded! \n\t\t} else {\n\t\t\tsetcookie(\"token\", $token, strtotime('+1 year'), '/');\n\t\t\t# Send them to the main page - or whever you want them to go\n\t\t\tRouter::redirect(\"/\");\n\t\t}\n\t}", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "public function login();", "public function login();", "public function do_login()\n {\n $this->userObject = new User();\n\n // grab the uID of the person signing in\n $uid = $this->userObject->checkUser($_POST['user_email'], $_POST['user_password']);\n\n // if the uID exists\n if ($uid) {\n\n $this->set('message', 'You logged in!');\n\n // grab the array of user-data from the database\n $user = $this->userObject->getUser($uid);\n\n // leave out the password\n unset($user['password']);\n unset($user[4]);\n\n // if (strlen($_SESSION['redirect']i) > 0) { // basically, if someone types in the url with the funciton after,\n // // supposed to redirect people to the pages they want.\n // $view = $_SESSION['redirect'];\n // unset($_SESSION['redirect']);\n // header('Location: ' . BASE_URL . $view);\n\n // make the SESSION key 'user' and set it equal to the aray of user-data\n $_SESSION['user'] = $user;\n\n header('Location: /index.php/');\n\n } else {\n\n $this->set('error', 'Sorry! Looks like something might be messed up with your Username or Password! :p');\n }\n }", "function Login()\n{\n\tglobal $txt, $context;\n\n\t// You're not a guest, why are you here?\n\tif (we::$is_member)\n\t\tredirectexit();\n\n\t// We need to load the Login template/language file.\n\tloadLanguage('Login');\n\tloadTemplate('Login');\n\twetem::load('login');\n\n\t// Get the template ready.... not really much else to do.\n\t$context['page_title'] = $txt['login'];\n\t$context['default_username'] =& $_REQUEST['u'];\n\t$context['default_password'] = '';\n\t$context['never_expire'] = false;\n\t$context['robot_no_index'] = true;\n\n\t// Add the login chain to the link tree.\n\tadd_linktree($txt['login'], '<URL>?action=login');\n\n\t// Set the login URL - will be used when the login process is done (but careful not to send us to an attachment).\n\tif (isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && strhas($_SESSION['old_url'], array('board=', 'topic=', 'board,', 'topic,')))\n\t\t$_SESSION['login_url'] = $_SESSION['old_url'];\n\telse\n\t\tunset($_SESSION['login_url']);\n}", "public function login(){\n\t\t$this->user = $this->user->checkCredentials();\n\t\t$this->user = array_pop($this->user);\n\t\tif($this->user) {\n\t\t\t$_SESSION['id'] = $this->user['id'];\n\t\t\t$_SESSION['name'] = $this->user['name'];\n\t\t\t$_SESSION['admin'] = $this->user['admin'];\n\t\t\t$this->isAdmin();\n\t \t\theader('location: ../view/home.php');\n\t \t\texit;\n\t \t}\n\t\t$dados = array('msg' => 'Usuário ou senha incorreto!', 'type' => parent::$error);\n\t\t$_SESSION['data'] = $dados;\n\t\theader('location: ../view/login.php');\n \t\texit;\n\t}", "public function login(){\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\" && isset($_POST[\"Anmelden\"]) && $_POST[\"Anmelden\"] == \"Anmelden\") {\n if ($this->error == false) {\n $datenbank = new DatenbankAufrufe;\n #Prüfung ob der Benutzer bereits existiert\n $result = $datenbank->existBenutzer();\n if ($result == true) {\n $dbPasswort = $datenbank->passwortAuslesen();\n $pwKrypto = new PasswortSpeichern;\n $result2 = $pwKrypto->passwortAbgleich($_POST['passwort'], $dbPasswort);\n if ($result2 == true) {\n #SESSION\n $session = new sessionClass;\n $name = $datenbank->benutzernameAuslesen();\n $session->SessionStart($name, $datenbank);\n\n header(\"Location: index.php?site=main\");\n }\n else {\n echo \"Das Passwort ist nicht korrekt\";\n }\n } else {\n echo \"Bitte zuerst Registrieren\";\n }\n }\n }\n }", "public function p_login() {\n\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\t\n\t# Search the db for this email and password\n\t# Retrieve the token if it's available\n\t$q = \"SELECT token \n\t\tFROM users \n\t\tWHERE email = '\".$_POST['email'].\"' \n\t\tAND password = '\".$_POST['password'].\"'\";\n\t\n\t$token = DB::instance(DB_NAME)->select_field($q);\t\n\t\t\t\t\n\t# If we didn't get a token back, login failed\n\tif(!$token) {\n\t\t\t\n\t\t# Send them back to the login page\n\n\t\tRouter::redirect(\"/users/login/error\");\n\n\t\t\n\t# But if we did, login succeeded! \n\t} else {\n\t\t\t\n\t\t# Store this token in a cookie\n\t\t@setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\t\t\n\t\tRouter::redirect(\"/users/profile\");\n\t\t\t\t\t\n\t}\n }", "public function login() {\r\n if (!empty($_POST)) {\r\n $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);\r\n $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\r\n\r\n $hash = hash('sha512', $password . Configuration::USER_SALT);\r\n unset($password);\r\n\r\n $user = UserModel::getByUsernameAndPasswordHash($username, $hash);\r\n unset($hash);\r\n\r\n if ($user) {\r\n Session::set('user_id', $user->user_id);\r\n Session::set('username', $username);\r\n Session::set('ip', filter_input(INPUT_SERVER, 'REMOTE_ADDR'));\r\n Session::set('ua', filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_STRING));\r\n\r\n Misc::redirect('');\r\n } else {\r\n $this->set('message', 'Nisu dobri login parametri.');\r\n sleep(1);\r\n }\r\n }\r\n }", "function _genLogin()\n {\n $this->mismatch = false;\n if (isset($_POST['login']) && $this->_verify() == \"\") {\n $this->name_post = $_POST['gebruikersnaam'];\n $this->pass_post = $_POST['wachtwoord'];\n\n $this->_getFromGebruikersDb($this->name_post);\n if ($this->_isMatch()) {\n $_SESSION['ingelogd'] = true;\n //toegevoegd door rens om een gebruikersnaam en rol te krijgen\n $_SESSION['gebruikersnaam'] = $this->name_post;\n $_SESSION['Rol'] = $this->role_db;\n header('location: Login_Redir.php');\n }\n }\n }", "private function login(){\n \n }", "public function login()\n\t{\n\t\t$mtg_login_failed = I18n::__('mtg_login_failed');\n\t\tR::selectDatabase('oxid');\n\t\t$sql = 'SELECT oxid, oxfname, oxlname FROM oxuser WHERE oxusername = ? AND oxactive = 1 AND oxpassword = MD5(CONCAT(?, UNHEX(oxpasssalt)))';\n\t\t$users = R::getAll($sql, array(\n\t\t\tFlight::request()->data->uname,\n\t\t\tFlight::request()->data->pw\n\t\t));\n\t\tR::selectDatabase('default');//before doing session stuff we have to return to db\n\t\tif ( ! empty($users) && count($users) == 1) {\n\t\t\t$_SESSION['oxuser'] = array(\n\t\t\t\t'id' => $users[0]['oxid'],\n\t\t\t\t'name' => $users[0]['oxfname'].' '.$users[0]['oxlname']\n\t\t\t);\n\t\t} else {\n\t\t\t$_SESSION['msg'] = $mtg_login_failed;\n\t\t}\n\t\t$this->redirect(Flight::request()->data->goto, true);\n\t}", "function login()\n\t{\n\t\t$username='admin';\n\t\t$password='admin';\n\n\t\t$input_username = $_POST['username'];\n\t\t$input_pwd = $_POST['password'];\n\t\t\n\t\tif(($input_username == $username)&&($input_pwd == $password))\n\t\t{\n \t\t//After the user validation, session is started\n\t\t\tsession_set_cookie_params(300);\n\t\t\tsession_start();\n\t\t\tsession_regenerate_id();\n\t\t\t\n\t\t \t//create the session cookie\n\t\t\tsetcookie('session_cookie', session_id(), time() + 300, '/');\n\t\t\t\n \t\t//generate CSRF Token\n\t\t\t$token = generate_token();\n\t\t\t\n \t\t//create CSRF token cookie\n \t\tsetcookie('CSRF_token', $token, time() + 300, '/');\n\t\t\t\n\t\t\t//User is redirected to the update address page\n\t\t\theader(\"Location:update.php\");\n \t\texit;\t\t\n\t\t}\n\t\telse\n\t\t{\n \t\t//if credentials are invalid\n\t\t\techo \"<script>alert('Credentials are invalid!')</script>\";\n\t\t}\n\t}", "public function loginForm(){\n self::$loginEmail = $_POST['login-email'];\n self::$loginPassword = $_POST['login-password'];\n \n self::sanitize();\n $this->tryLogIn();\n }", "function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db for this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the database, it means login failed\n if(!$token) {\n\n # Send them back to the login page\n Router::redirect(\"/users/login/error\");\n\n # But if we did, login succeeded! \n } else {\n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cookie (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+1 year'), '/');\n\n # update the last_login time for the user\n/* $_POST['last_login'] = Time::now();\n\n $user_id = DB::instance(DB_NAME)->update('users', $_POST); */\n\n # Send them to the main page - or whever you want them to go\n Router::redirect(\"/\");\n }\n }", "function login() {\n $this->checkAccess('user',true,true);\n\n\n $template = new Template;\n echo $template->render('header.html');\n echo $template->render('user/login.html');\n echo $template->render('footer.html');\n\n //clear error status\n $this->f3->set('SESSION.haserror', '');\n }", "function login();", "public function dologin() {\n $password=$this->model->getpassword($_POST['username']);\n if (!empty($_POST['password']) && !empty($password) && $password[0]['userpasswd']==$_POST['password']) {\n $_SESSION['username']=$_POST['username'];\n $id=$this->model->getid($_POST['username']);\n $_SESSION['userid']=$id[0]['userid'];\n $this->redirect('?v=project&a=show');\n } else {\n $this->view->set('errormessage', \"Błędny login lub hasło!\");\n $this->view->set('redirectto', \"?v=user&a=login\");\n $this->view->render('error_view');\n }\n }", "public function loginAction()\r\n\t{\r\n\t\t$this->setSubTitle($this->loginSubTitle);\r\n\t\t\r\n\t\t$this->view->form = new $this->loginFormClassName();\r\n\t\t\r\n\t\t$this->checkAuth();\r\n\t}", "function login() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n \n \n // check for cookies and if set validate and redirect to corresponding page\n\t\t$this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\t\t$this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n\t\t\n }", "function login()\n{\n\t$username = $this->Session->read('user');\n\tif ($username){\n\t$this->redirect('/inhabitants/');}\n\t\n\t$this->pageTitle = 'Login';\n\t\n\t$this->set('error', false);\n\t// jika form yg disubmit tidak kosong\n\tif ($this->data)\n\t{\n\t// jika username dan password cocok\n\t$results = $this->User->findByUsername($this->data['User']['username']);\n\t\tif ($results && $results['User']['password'] ==\n\t\tmd5($this->data['User']['password']))\n\t\t{\n\t\t\t$this->Session->write('user', $this->data['User']['username']);\n\t\t\t$this->Session->write('last_login', $results['User']['last_login']);\n\t\t\t$results['User']['last_login'] = date(\"Y-m-d H:i:s\");\n\t\t\t$this->User->save($results);\n\t\t\t// redirect\n\t\t\t$this->redirect('/users/');\n\t\t} else {\n\t\t\t$this->set('error', true);\n\t\t}\n\t}\n}", "private static function login() {\n if ( !self::validatePost() ) {\n return;\n }\n $_POST['email'] = strtolower($_POST['email']);\n \n $password = Helper::hash($_POST['password'].$_POST['email']);\n \n $result = Database::getUser($_POST['email'],$password);\n \n if ( $result === false || !is_array($result) ) {\n self::setError('Unbekannter Benutzername oder Passwort!<br>');\n return;\n }\n \n if ( count($result) != 1 ) {\n self::setError('Unbekannter Benutzername oder Passwort!<br>');\n return;\n }\n \n $_SESSION['user']['id'] = $result[0]['id'];\n $_SESSION['user']['email'] = $result[0]['email'];\n $_SESSION['user']['nickname'] = $result[0]['nickname'];\n $_SESSION['user']['verified'] = $result[0]['verified'];\n $_SESSION['user']['moderator'] = $result[0]['moderator'];\n $_SESSION['user']['supermoderator'] = $result[0]['supermoderator'];\n $_SESSION['loggedin'] = true;\n self::$loggedin = true;\n }", "public function login() {\n $messages = $this->messages;\n require_once $this->root_path_views.\"login.php\";\n }", "function login() {\n \t$this->set('indata',$this->data);\n\t\tif(empty($this->data)){\n\t\t\t$this->pageTitle = 'Log in';\n\t\t\t$cookie = $this->Cookie->read('Auth.User');\n\t\t}\n }", "function login() { }", "public function login()\n {\n // make sure request is post\n if( ! SCMUtility::requestIsPost())\n {\n View::make('templates/system/error.php',array());\n return;\n }\n\n $email = SCMUtility::stripTags( (isset($_POST['email'])) ? $_POST['email'] : '' );\n $password = SCMUtility::stripTags( (isset($_POST['password'])) ? $_POST['password'] : '' );\n\n if( ! Session::Auth($email,$password) )\n {\n SCMUtility::setFlashMessage('Invalid email/password.','danger');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n }", "public function setLogin(){\n \n\t\t\t$obUser = Model::getUserByEmail($this->table, $this->camp,$this->email);\n\t\t\tif (!$obUser instanceof Model) {\n\t\t\t\t$this->message = 'Usuario ou Senha incorretos';\n return false;\n\t\t\t}\n\t\t\tif (!password_verify($this->password, $obUser->senha)) {\n\t\t\t\t$this->message = 'Usuario ou Senha incorretos';\n return false;\n\t\t\t}\n\t\t\t\n\t\t\t$this->session($obUser);\n\n\t\t\theader('location: '.$this->location);\n\t\t\texit;\n\n\t\t}", "public function checkLogin() {\r\n\t\t$post = $this -> sanitize();\r\n\t\textract($post);\r\n\t\t// Hash the password that was entered into the form (if it was correct, it will match the hashed password in the database)\r\n\t\t$password = sha1($password);\r\n\t\t// Query\r\n\t\t$query = \"SELECT username, userID, profilePic, access, email FROM users WHERE username='$username' AND password='$password'\";\r\n\t\t$data = $this -> singleSelectQuery($query);\r\n\t\tif($data){\r\n\t\t\t//set up the session\r\n\t\t\t$_SESSION['userID'] = $data['userID'];\r\n\t\t\t$_SESSION['username'] = $data['username'];\r\n\t\t\t$_SESSION['profilePic'] = $data['profilePic'];\r\n\t\t\t$_SESSION['userType'] = $data['userType'];\r\n\t\t\t$_SESSION['access'] = $data['access'];\r\n\t\t\t//redirects to their profile\r\n\t\t\theader('location: index.php?page=profile&userID='.$_SESSION['userID']);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "public function login() {\n $this->db->sql = 'SELECT * FROM '.$this->db->dbTbl['users'].' WHERE username = :username LIMIT 1';\n\n $user = $this->db->fetch(array(\n ':username' => $this->getData('un')\n ));\n\n if($user['hash'] === $this->hashPw($user['salt'], $this->getData('pw'))) {\n $this->sessionId = md5($user['id']);\n $_SESSION['user'] = $user['username'];\n $_SESSION['valid'] = true;\n $this->output = array(\n 'success' => true,\n 'sKey' => $this->sessionId\n );\n } else {\n $this->logout();\n $this->output = array(\n 'success' => false,\n 'key' => 'WfzBq'\n );\n }\n\n $this->renderOutput();\n }", "function login() {\n\n $this->redirect(\"/staff/users/alllogin\");\n \n $this->layout = 'login_layout';\n\t\t// Display error message on failed authentication\n\t\tif (!empty($this->data) && !$this->Auth->_loggedIn) {\n\t\t\t$this->Session->setFlash($this->Auth->loginError);\t\t\t\n\t\t}\n\t\t// Redirect the logged in user to respective pages\n\t\t$this->setLoginRedirects();\n\t}", "public function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db fpr this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token\n FROM users\n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the db, it means login failed\n if(!$token) {\n\n Router::redirect(\"/users/login/error\");\n \n\n # But if we did, login succeeded!\n } else {\n\n \n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cookie (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n \n\n # Send them to the main page - or wherevr you want them to go\n Router::redirect(\"/\");\n # Send them back to the login page\n }\n }", "abstract protected function doLogin();", "public function logIn(){\n\t\t$email = $_POST['log_email'];\n\t\t$email = filter_var($email, FILTER_SANITIZE_EMAIL); //sanitize email\n\t\t$s_email = self::$db->escape($email);\n\n\t\t\n\t\t$myquery = \"SELECT * FROM users WHERE email = $s_email;\";\n\t\tif(!self::$db->query($myquery)){\n\t\t\tarray_push($_SESSION['error'], \"does not match\");\n\t\t\treturn false;\n\t\t}\n\n\t\t$user = self::$db->select($myquery);\n\t\t$hash = $user[0]['password'];\n\t\t$password = $_POST['log_password'];\n\t\t$unlocked = password_verify($password, $hash);\n\n\t\tif($unlocked){\n\t\t\t$this->setSessionVar($user[0]['id'],$hash);\n\t\t\t$_SESSION['allow']=true;\n\t\t\t$_SESSION['username'] = $user[0]['username'];\n \t\t\theader( \"refresh:0; url=index.php?page=home\");\n \t\t \t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tarray_push($_SESSION['error'] , 'does not match');\n\t\t\t$_SESSION['allow']=false;\n\t\t\treturn false ;\n\t\t}\n\t\tarray_push($_SESSION['error'] , 'does not match');\n\t\treturn false; \n\t}", "public function login()\n\t{\n\t\tredirect($this->config->item('bizz_url_ui'));\n\t\t// show_404();\n\t\t// ////import helpers and models\n\n\t\t// ////get data from database\n\n\t\t// //set page info\n\t\t// $pageInfo['pageName'] = strtolower(__FUNCTION__);\n\n\t\t// ////sort\n\t\t\n\t\t// //render\n\t\t// $this->_render($pageInfo);\n\t}", "public function log_in()\n\t{\n\t\tif( isset( $_POST['user_login'] ) && wp_verify_nonce( $_POST['login_nonce'], 'login-nonce') ) \n\t\t{\n\t\t\t/** Error when no password enter */\n\t\t\tif( ! isset( $_POST['user_pass']) || $_POST['user_pass'] == '') {\n\t\t\t\t$this->system_message['error'][] = __('Please enter a password');\n\t\t\t\treturn false;\n\t\t\t}\n\t \t\t\n\t\t\t// this returns the user ID and other info from the user name\n\t\t\t$user = get_user_by('login', $_POST['user_login'] );\n \n\t\t\tif( ! $user ) \n\t\t\t{\t\t\t\t\n\t\t\t\t$this->system_message['error'][] = __('Invalid ID or password');\n\t\t\t\treturn false;\n\t\t\t}\n\t \n\t\t\t// check the user's login with their password\n\t\t\tif( ! wp_check_password( $_POST['user_pass'], $user->user_pass, $user->ID) ) {\n\t\t\t\t// if the password is incorrect for the specified user\n\t\t\t\t$this->system_message['error'][] = __('Invalid ID or password');\n\t\t\t}\n\t \n\t\t\t// only log the user in if there are no errors\n\t\t\tif( empty( $this->system_message['error'] )) \n\t\t\t{\n\t\t\t\twp_set_auth_cookie( $user->ID, false, true );\n\t\t\t\twp_set_current_user( $user->ID );\t\n\t\t\t\tdo_action('wp_login', $_POST['user_login']);\n\t \n\t\t\t\twp_redirect( home_url() ); exit;\n\t\t\t}\n\t\t}\n\t}", "public function login() {\n $db = Db::getInstance();\n $user = new User($db);\n\n// preventing double submitting\n $token = self::setSubmitToken();\n\n// if user is already logged in redirect him to gallery\n if( $user->is_logged_in() ){\n call('posts', 'index');\n } else {\n// otherwise show login form\n require_once('views/login/index.php');\n// and refresh navigation (Login/Logout)\n require('views/navigation.php');\n }\n }", "public function login() {\r\n if ($this->request->is('post')) {\r\n \r\n //If the user is authenticated...\r\n if ($this->Auth->login()) {\r\n \r\n if ($this->isAdmin()) $this->redirect(\"/admin/halls\");\r\n else $this->redirect(\"/halls\");\r\n }\r\n else {\r\n $this->Session->setFlash(__('Invalid username or password, try again'));\r\n }\r\n }\r\n }", "public function handleLogin(){\n $username = htmlentities(trim($_POST['username']));\n $password = htmlentities(trim($_POST['password']));\n $loginSebagai = htmlentities(trim($_POST['login_sebagai']));\n\n $loginResult = WebDb::handleLogin($username,$password, $loginSebagai);\n\n if(!$loginResult) {\n Session::set(\"login_gagal\",\"Username atau password salah\");\n header(\"Location: /it-a\");\n die();\n }\n Session::set(\"user_id\",$username);\n Session::set(\"login_sebagai\",$loginSebagai);\n header(\"Location: /it-a/dashboard\");\n }", "function login()\r\n{\r\n append_content(\"<h2>Login</h2>\");\r\n\r\n // var_dump($_POST);\r\n\r\n if (!empty($_POST['Submit']) && ($_POST['Submit']==\"Login\"))\r\n {\r\n //authenticate User\r\n if (empty($_POST['username']) || empty($_POST['password']))\r\n {\r\n append_content(\"<h3 id='error'> Empty Username or Password </h3>\");\r\n append_content(DisplayLoginForm());\r\n }\r\n else\r\n {\r\n $username = Security::Sanitize_Text($_POST['username']);\r\n $password = Security::Sanitize_Text($_POST['password']);\r\n // echo $username.\" \".$password;\r\n $user = new User($username,$password);\r\n\r\n\r\n $uid = $user->GetUserID();\r\n\r\n\r\n if ($uid)\r\n {\r\n $_SESSION['userid'] = $uid;\r\n $_SESSION['username'] = $username;\r\n URL::Redirect('home');\r\n }\r\n else\r\n {\r\n append_content(\"<h3 id='error'> Login Failed! </h3>\");\r\n append_content(DisplayLoginForm());\r\n }\r\n }\r\n }\r\n else\r\n {\r\n append_content(DisplayLoginForm());\r\n }\r\n}", "protected function login( )\r\n {\r\n $this->sendData( 'USER', $this->_nick, $this->_nick . ' ' . $this->_user . ' : ' . $this->_realName );\r\n \r\n $this->sendData( 'NICK', $this->_nick );\r\n \r\n $this->_loggedOn = true;\r\n }", "public function login_action() \n\t{\n $rules = array(\n 'mail' => 'valid_email|required',\n 'pass' => 'required'\n );\n \n \n //validate the info\n $validated = FormValidation::is_valid($_POST, $rules);\n \n // Check if validation was successful\n if($validated !== TRUE): \n \n //exit with an error\n exit(Alert::error(false, true, $validated));\n\n endif;\n\n // they've passed the filter login try and log 'em in\n\t\tUserModel::login(); \n }", "private function login() {\n //Look for this username in the database\n $params = array($this->auth_username);\n $sql = \"SELECT id, password, salt \n FROM user \n WHERE username = ? \n AND deleted = 0\";\n //If there is a User with this name\n if ($row = $this->db->fetch_array($sql, $params)) {\n //And if password matches\n if (password_verify($this->auth_password.$row[0] ['salt'], $row[0] ['password'])) {\n $params = array(\n session_id(), //Session ID\n $row[0] ['id'], //User ID\n self::ISLOGGEDIN, //Login Status\n time() //Timestamp for last action\n );\n $sql = \"INSERT INTO user_session (session_id, user_id, logged_in, last_action) \n VALUES (?,?,?,?)\";\n $this->db->query($sql, $params);\n header('Location: ' . $_SERVER['HTTP_REFERER']);\n //User now officially logged in\n }\n //If password doesn't match\n else {\n //Send user back to login with error\n $this->login_form(self::ERR_NOUSERFOUND);\n }\n }\n //If there isn't a User with this name\n else {\n //Send user back to login with error\n $this->login_form(self::ERR_NOUSERFOUND);\n }\n }", "public function access() {\n \tif ($_SERVER['REQUEST_METHOD'] === 'POST') {\n\n \t\t$user = Auth::login($_POST['email'], $_POST['pw']);\n \t\tif($user) {\n \t\t\tApp::redirect('dashboard');\n \t\t}\n\t\t\tSession::set('_old_input', $_POST);\n\t\t\tSession::set('_errors', ['login' => \"Email y/o password incorrectos.\"]);\n\t\t\tApp::redirect('login');\n\n \t}\n\n }", "public static function checkLogin() {\n\t\t\n\t\tif(!isset($_SESSION[\"uid\"])) {\n ?>\n <script language=\"javascript\">\n window.location.href = \"login.php\"\n </script>\n <?php\n \t}\n\n\t}", "public function login_page()\n\t{\n\t\t$this->redirect( EagleAdminRoute::get_login_route() );\n\t}", "public function login() {\n\t\t$this -> load -> model('models_events254/m_clients');\n\t\t$this -> m_clients -> getUser();\n\t\tif ($this -> m_clients -> isUser == 'true') {\n\n\t\t\n\t\t\t/*create session data*/\n\t\t\t$newdata = array('email' => $this -> m_clients -> email, 'logged_in' => TRUE,'id' => $this ->m_clients->id);\n\t\t\t$this -> session -> set_userdata($newdata);\n\n\t\t\tredirect(base_url() . 'C_front/index', 'refresh');\n\t\n\n\t\t} else {\n\t\t\t#use an ajax request and not a whole refresh\n\t\t\t\n\t\t\t$data['message']=\"User Not Found\";\n\t\t\t$data['messageType']=\"error\";\n\t\t\t\n\t\t\t$this->load->view('login',$data);\n\t\t}\n\t}", "public function login() {\n\t\tif(!empty(Session::get('http_response'))) {\n\t\t\thttp_response_code(Session::get('http_response'));\n\t\t\tSession::delete('http_response');\n\t\t}\n\t\tif($_POST && isset($_POST['login']) && isset($_POST['password'])) {\n\t\t\t$user = $this->_model->getLogin(strtolower($_POST['login']));\n\t\t\tif($user && $user->enabled) {\n\t\t\t\tif(hash_equals($user->password,crypt($_POST['password'],$user->password))) {\n\t\t\t\t\tif($user->blocked) {\n\t\t\t\t\t\thttp_response_code(403);\n\t\t\t\t\t\tSession::setMessage(array('alert'=>'warning','icon'=>'exclamation','text'=>\"User is blocked\"));\n\t\t\t\t\t} elseif($user->verified) {\n\t\t\t\t\t\tSession::set('user',$user);\n\t\t\t\t\t\tSession::setMessage(array('alert'=>'success','icon'=>'check','text'=>\"User has logged in successfully\"));\n\t\t\t\t\t\t$redirect = Session::get('login_redirect');\n\t\t\t\t\t\tRouter::redirect(Session::get('login_redirect'));\n\t\t\t\t\t} else {\n\t\t\t\t\t\thttp_response_code(401);\n\t\t\t\t\t\tSession::setMessage(array('alert'=>'warning','icon'=>'exclamation','text'=>\"User is not yet confirmed\"));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thttp_response_code(401);\n\t\t\t\t\tSession::setMessage(array('alert'=>'danger','icon'=>'ban','text'=>\"Invalid login name or password\"));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\thttp_response_code(401);\n\t\t\t\tSession::setMessage(array('alert'=>'danger','icon'=>'ban','text'=>\"Invalid login name or password\"));\n\t\t\t}\t\n\t\t}\n\t}", "private function formLogin(){\n\t\tView::show(\"user/login\");\n\t}", "function verificar_login()\n {\n if (!isset($_SESSION['usuario'])) {\n $this->sign_out();\n }\n }", "public function login(){\n\t\t\tValidator::validateOrRedirect($_POST,\n\t\t\t\t\t[\n\t\t\t\t\t\t\t\"required\" => [\"txt-input\", \"password\",\"action\"],\n\t\t\t\t\t\t\t\"email\" => \"txt-input\",\n\t\t\t\t\t],\n\t\t\t\t\t\"/login\");\n\t\t\t$this->resetMessage();\n\t $username=$_POST[\"txt-input\"];\n\t $password=$_POST[\"password\"];\n\t $action=$_POST[\"action\"];\n\t\t\t$userList =[];\n\t\t\t$column_value=array('email'=>$username,'password'=>$password);\n\t\t\t$uss=new User();\n\t\t\t$login=$uss->getBy($column_value);\n\t\t\tif (is_array($login)) {\n\t\t\t\tif (count($login)>0) {\n\t\t\t\t\tforeach ($login as $user)\n\t\t\t {\n\t\t\t\t\t\t$userList[]= array(\n\t\t\t 'user' =>$user['user_name'],\n\t\t\t 'email' =>$user['email'],\n\t\t\t 'password' =>$user['password']);\n\t\t\t\t\t}\n\n\t\t\t\t\t$user=$userList[0][\"email\"];\n\t\t $pass=$userList[0][\"password\"];\n\t\t Redirect::to(\"/products\")->with([\n\t\t 'name'=>$userList[0][\"email\"],\n\t\t 'check'=>\"true\",\n\t\t ])->do();\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\tRedirect::to(\"/login\")->with([\n\t\t \"message\" => \"Ha ocurrido un error: usuario o contraseña incorrectos.</br> Revise por favor\",\n\t\t \"type\" => \"danger\",\n\t\t ])\n\t\t ->do();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse{\n\n\t\t\t\tRedirect::to(\"/login\")->with([\n\t \"message\" => $login,\n\t \"type\" => \"danger\",\n\t ])\n\t ->do();\n\t\t\t}\n\t }", "public function loginCheck()\n\t{\n\t}", "public function loginAction() {\n\t\tif (isset($_POST['password'])) {\n\t\t\t$entered = $_POST['password'];\n\t\t} elseif (isset($_COOKIE['password'])) {\n\t\t\t$entered = $_COOKIE['password'];\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->logIn($entered);\n\t\tif ($this->loggedIn()) {\n\t\t\t//setcookie('password', $entered, time() + 3600 * 24 * 30, '/');\n\t\t\t$this->forward(ChibiRegistry::getHelper('url')->url('/a/index'));\n\t\t\tChibiRegistry::getHelper('mg')->log('Correct password');\n\t\t} else {\n\t\t\tChibiRegistry::getView()->entered = $entered;\n\t\t\tChibiRegistry::getHelper('mg')->log('Wrong password: ' . $entered);\n\t\t}\n\t}", "function check_login(){\n\t\tif(!empty(yii::app()->request->cookies['uid']) && !empty(yii::app()->request->cookies['pass'])){\n\t\t\n\t\t\t//get the user's email\n\t\t\t$email=get_user_by_id(yii::app()->request->cookies['uid'])->email;\n\t\t\t\n\t\t\t//log the user in\n\t\t\tif($this->user_login($email,yii::app()->request->cookies['pass'],true)){\n\t\t\t\t//renew cookies for n days more\n\t\t\t\t$this->remember_login(yii::app()->request->cookies['pass'],true);\n\t\t\t}\n\t\t}\n\t}", "function login(){\n\t\t\n\t\tif (isset($_POST['submit'])) \n\t\t\t\n\t\t\tif ($_POST['email'] != \"\" && $_POST['password'] != \"\" ) {\n\t\t\t\t$usermodel = new UserModel();\n\t\t\t\t$r = mysqli_num_rows($usermodel->get_user_by_email($_POST['email']));\n\t\t\t\tif ($r!=0) {\n\t\t\t\t\t$row = mysqli_fetch_array($usermodel->get_user_by_email($_POST['email']));\n\t\t\t\t\tif ($row['matkhau'] == md5($_POST['password'])) {\n\t\t\t\t\t\t$_SESSION['nguoidung'] = $row['id'];\n\t\t\t\t\t\techo '<script language=\"javascript\">';\n\t\t\t\t\t\techo 'alert(\"Login success\");'; \n\t\t\t\t\t\techo 'window.location.href = \"/enovel\";';\n\t\t\t\t\t\techo '</script>';\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\techo '<script language=\"javascript\">';\n\t\t\t\t\t\techo 'alert(\"Error Password\");'; \n\t\t\t\t\t\techo '</script>';\n\t\t\t\t\t}\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\techo '<script language=\"javascript\">';\n\t\t\t\t\techo 'alert(\"Account not exist, You need to register or check mail\");'; \n\t\t\t\t\techo 'window.location.href = \"/enovel/user/login.php\";';\n\t\t\t\t\techo '</script>';\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function p_login() {\n\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t# Prevent SQL injection attacks by sanitizing user entered data\n\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t$q = \"SELECT token\n\tFROM users\n\tWHERE email = '\".$_POST['email'].\"'\n\tAND password = '\".$_POST['password'].\"'\n\t\";\n\n\t$token = DB::instance(DB_NAME)->select_field($q);\n\n\t#login failed\n\tif($token == \"\" || $_POST['email'] == \"\" || $_POST['password'] == \"\"){\n\n\n\n\tRouter::redirect(\"/users/login/error\");\n\t# send back to login page - should add indication what went wrong\n\t}\n\t#login successful\n\telse{\t\n\n\t\techo \"if we find a token, the user is logged in. Token:\".$token;\n\n\t\t#store token in a cookie\n\t\tsetcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\n\t\t#send them to the main page\n\t\tRouter::redirect(\"/issues\");\n\n\t\t#token name value and how long should last\n\t\t#send back to index page\n\t\t#authenticate baked into base controller\n\t\t#gets users credentials this->user->firstname\n\t}\n}", "function login() {\n // Check is already a user is logged in or not.\n if (!isset ($_SESSION['user_id'])) {\n include('blog/site/VIEW/Login.php');\n }\n else {\n header(\"location: /index.php/User/home\");\n }\n }", "function login()\n{\n// See if we have values already stored in the session\nif ($this->session->get('login_hash')) {\n$this->confirmAuth();\nreturn;\n}\n// If this is a fresh login, check $_POST variables\nif (!isset($_POST[USER_LOGIN_VAR]) ||\n!isset($_POST[USER_PASSW_VAR])) {\n$this->redirect();\n}\nif ($this->md5) {\n $password = md5($_POST[USER_PASSW_VAR]);\n} else {\n$password = $_POST[USER_PASSW_VAR];\n}\n// Escape the variables for the query\n$login = mysql_escape_string($_POST[USER_LOGIN_VAR]);\n$password = mysql_escape_string($password);\n// Query to count number of users with this combination\n$sql = \"SELECT COUNT(*) AS usuarios\nFROM \" . USER_TABLE . \"\nWHERE\n\" . USER_TABLE_LOGIN . \"='$login' AND\n\" . USER_TABLE_PASSW . \"='$password'\";\n$result = $this->db->query($sql);\n$row = $result->fetch();\n// If there isn't is exactly one entry, redirect\nif ($row['num_users'] != 1) {\n$this->redirect();\n// Else is a valid user; set the session variables\n} else {\n$this->storeAuth($login, $password);\n}\n\n}", "public function login()\n {\n\t// if the user successfully logged in..\n\tif($this->yourauth->check() == TRUE)\n\t{\n\t session_start();\n\t $_SESSION['KCFINDER'] = array();\n\t $_SESSION['KCFINDER']['disabled'] = false;\n\n\t redirect('editor/index');\n\t}\n\n }", "public function login(){\n\n }", "public function login(){\n\t\t// if already logged-in then redirect to index\n\t\tif($this->Session->check('Auth.User')){\n\t\t\t$this->redirect(array('action'=>'index'));\n\t\t}\n\n\t\t// if we got a post information, try to authenticate\n\t\tif($this->request->is('post')){\n\t\t\t// do login\n\t\t\tif($this->Auth->login()){\n\t\t\t\t// login successful\n\t\t\t\t$this->Session->setFlash(__('Welcome, ' . $this->Auth->user('username')));\n\t\t\t\t$this->redirect($this->Auth->redirectUrl());\n\t\t\t} else {\n\t\t\t\t// login fail\n\t\t\t\t$this->Session->setFlash(__('Invalid username and password'));\n\t\t\t}\n\t\t}\n\t}", "public function login()\n\t{\n\t\t// Method should not be directly accessible\n\t\tif( $this->uri->uri_string() == 'auth/login')\n\t\t\tshow_404();\n\n\t\tif($this->require_min_level(6) == 1)\n\t\t\tredirect('');\n\n\t\tif(strtolower( $_SERVER['REQUEST_METHOD'] ) == 'post')\n\t\t\t$this->require_min_level(1);\n\n\t\t$this->setup_login_form();\n\n\t\t$html = $this->load->view('auth/page_header', '', TRUE);\n\t\t$html .= $this->load->view('auth/login_form', '', TRUE);\n\t\t$html .= $this->load->view('auth/page_footer', '', TRUE);\n\n\t\techo $html;\n\t}", "public function validate_login() {\n\t\t$userid=$_POST['user_id'];\n\t\t$password=$_POST['password'];\n\t\t$compid=$_POST['company_id'];\n\t\t\n\n\t\t$sql=\"SELECT u.id, u.user_name FROM users u, hmz_cust_info ci where ci.id=u.cust_id\n\t\t\tand u.user_id='$userid' and u.password='$password' and ci.cust_id='$compid';\";\n\t\t$result=$this->runQuery(\"getAll\",$sql);\n\t\tif(count($result)>0) {\n\t\t\t$_SESSION['user_id']=$result[0];\n\t\t\t$_SESSION['user_name']=$result[1];\n\t\t\theader('location: ?a=P&b=dashboard');\n\t\t}\n\t\telse\n\t\t\theader('location: ?a=login&b=f');\n\n\t}", "function staff_alllogin() {\n \n $this->setLoginRedirects();\n \n $this->layout = 'login_layout';\n\t\t// Display error message on failed authentication\n\t\tif (!empty($this->data) && !$this->Auth->_loggedIn) {\n\t\t\t$this->Session->setFlash($this->Auth->loginError);\n $this->redirect(\"http://\" . $_SERVER['HTTP_HOST']);\n\t\t}else{\n $this->redirect(\"http://\" . $_SERVER['HTTP_HOST']);\n }\n\t\t// Redirect the logged in user to respective pages\n\t\t\n\t}", "public function loginValidate()\n\t{\n\n\t\t$this->__set('email', $_POST['email']);\n\t\t$this->__set('password', $_POST['password']);\n\n\t\t$result = $this->validar();\n\n\t\tif (empty($result)) {\n\t\t\theader('location: /?erro=0');\n\t\t} else {\n\t\t\tsession_start();\n\t\t\t$_SESSION = $result;\n\t\t\theader('location: /main');\n\t\t}\n\t}", "public function login() {\n\t\tprint_r($this->referer);\n\t\tif($this -> Auth -> loggedIn()) {\n\t\t\t //$this->Session->setFlash('You have already logged in.');\n\t\t\t $this->redirect($this->Auth->redirectUrl());\n\t\t}elseif ($this->request->is('post')) {\n\t if ($this->Auth->login()) {\n\t \t$this->Auth->allow();\n\t\t\t\tif($this->Session->check('beforeLogin_referer') )\n\t\t\t\t{\n\t\t\t\t\t$url = $this->Session->read('beforeLogin_referer');\n\t\t\t\t\t$this->Session->delete('beforeLogin_referer');\n\t\t\t\t\t$this->redirect($url);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n \t\t\t\t$this->redirect($this->referer($this->Auth->redirect(), true));\n\t\t\t\t}\n\t\t\t\t \n\t } else {\n\t $this->Session->setFlash('Your username/password combination was incorrect');\n\t }\n\t }\n\t\t$currentLoginUrl = strtolower( \"/\" .$this->name .\"/\" .$this->action );\n\t\tif($this->referer(null, true) != $currentLoginUrl)\n\t\t{\n \t\t$this->Session->write('beforeLogin_referer', $this->referer($this->Auth->redirect(), true)); //if referer can't be read, or if its not from local server, use $this->Auth->rediret() instead\n\t\t}\n\t\t$this -> set('title_for_layout', 'Log In');\n\t}", "function shopLogin()\r\n\t{\r\n\t\t$tpl_dir = BASE_DIR . \"/modules/login/templates/\";\r\n\t\t$lang_file = BASE_DIR . \"/modules/login/lang/\" . STD_LANG . \".txt\";\r\n\r\n\t//\t$login = new Login;\r\n\r\n\t\tif(!isset($_SESSION[\"cp_benutzerid\"]))\r\n\t\t\treturn $this->displayLoginform($tpl_dir,$lang_file);\r\n\t\telse\r\n\t\t\treturn $this->displayPanel($tpl_dir,$lang_file);\r\n\t}", "public function Login()\n\t{\n\t\t$this->user->email = $_POST['email'];\n\t\t$this->user->password = $_POST['password'];\n // Here we verify the nonce, so that only users can try to log in\n\t\t// to whom we've actually shown a login page. The first parameter\n\t\t// of Nonce::Verify needs to correspond to the parameter that we\n\t\t// used to create the nonce, but otherwise it can be anything\n\t\t// as long as they match.\n\t\tif (isset($_POST['nonce']) && ulNonce::Verify('login', $_POST['nonce'])){\n\t\t\t// We store it in the session if the user wants to be remembered. This is because\n\t\t\t// some auth backends redirect the user and we will need it after the user\n\t\t\t// arrives back.\n\t\t\t//echo \"login successful\";\n\t\t\t\n\t\t\t///echo $this->input->post('email');\n\n\t\t\tif (isset($_POST['autologin']))\n\t\t\t\t$_SESSION['appRememberMeRequested'] = true;\n\t\t\telse\n\t\t\t\tunset($_SESSION['appRememberMeRequested']);\n \n\t\t\t// This is the line where we actually try to authenticate against some kind\n\t\t\t// of user database. Note that depending on the auth backend, this function might\n\t\t\t// redirect the user to a different page, in which case it does not return.\n\t\t\t$this->ulogin->Authenticate($_POST['email'], $_POST['password']);\n\t\t\tif ($this->ulogin->IsAuthSuccess()){\n\t\t\t\t$_SESSION[\"loggedIn\"] = true;\n\t\t\t\techo \"success\";\n\t\t\t}else echo \"failed\";\n\t\t}else echo 'refresh';\n\t\t//$this->load->view('layout/home.php');\n\t}", "public function dologin() {\n\t\t$this->load->model('Users_model');\n\t\t$username = $_POST['username'];\n\t\tif($this->Users_model->checkLogin($username, sha1($_POST['password']))) {\n\t\t\t$this->session->set_userdata(\"username\",$username); // Initializing session\n\t\t\tredirect('user/view/'.$username, 'refresh'); // Redirect\n\t\t} else {\n\t\t\t$data['attempted'] = true;\n\t\t\t$this->load->view('view_login', $data);\n\t\t}\n\t}", "function login(){\n\t\tif(isset($_POST['login'])){//if login button pressed\n\t\t\t$userTable= new Table('users');//new table created\n\t\t\t$user= $userTable->findInDatabase('user_username', $_POST['username']);//querying users table\n\t\t\tif($user->rowCount()>0){//if data available\n\t\t\t\t$data=$user->fetch();//fetch data\n\t\t\t\tif (password_verify($_POST['password'], $data['user_password'])){//if password matches\n\t\t\t\t\t$_SESSION['session_id']=$data['user_id'];//session variable is set\n\t\t\t\t\t$_SESSION['type']=$data['user_type'];//session variable is set\n\t\t\t\t\t$_SESSION['fullname']=$data['user_firstname'].\" \".$data['user_lastname'];//session variable is set\n\t\t\t\t\theader(\"Location:index.php\");//redirect to another page\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\techo '<script> alert(\"Password is incorrect\"); </script>';//js alert is shown\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\techo '<script> alert(\"Username is incorrect\"); </script>';//js alert for username incorrect\n\t\t\t}\n\t\t}\n\t}", "private function processFormLogin(){\n\t\t$username = $_REQUEST[\"usuario\"];\n\t\t$password = $_REQUEST[\"password\"];\n\t\t$validar = $this->users->getProcessUser($username, $password);\n\t\tif($validar){\n\t\t\tif (Seguridad::getTipo() == \"0\")\n\t\t\t\tView::redireccion(\"selectTable\", \"userController\");\n\t\t\telse\n\t\t\t\tView::redireccion(\"selectTable\", \"userController\");\n\t\t} else {\n\t\t\t$data[\"informacion\"] = \"Nombre de usuario o contraseña incorrecta.\";\n\t\t\tView::show(\"user/login\", $data);\n\t\t}\n\t}", "public function login(){\n //we expect a form of ?controller=login&action=login to show the login page\n if($_SERVER['REQUEST_METHOD'] == 'GET') {\n require_once('views/login/login.php');\n } else {\n \n $login= Login::login($_POST['username'], $_POST['password'], $_POST['email']);\n \n if ($login){ \n Login::setSession($login);\n $user = Login::getUser($_POST['username']);\n require_once('views/login/userProfile.php');\n \n}\n }\n}", "public function login(){\r\n if(IS_POST){\r\n //判断用户名,密码是否正确\r\n $managerinfo=D('User')->where(array('username'=>$_POST['username'],'pwd'=>md5($_POST['pwd'])))->find();\r\n if($managerinfo!==null){\r\n //持久化用户信息\r\n session('admin_id',$managerinfo['id']);\r\n session('admin_name', $managerinfo['username']);\r\n $this->getpri($managerinfo['roleid']);\r\n //登录成功页面跳到后台\r\n $this->redirect('Index/index');\r\n }else{\r\n $this->error('用户名或密码错误',U('Login/login'),1);\r\n }\r\n return;\r\n }\r\n $this->display();\r\n }", "public function login() {\n\t\t/* if($this->Session->check('Auth.User')){\n\t\t\t$this->redirect(array('action' => 'home'));\t\n\t\t\t\t\t\n\t\t} */\n\t\t\n\t\t// if we get the post information, try to authenticate\n\t\tif ($this->request->is('post')) {\n\t\t\tif ($this->Auth->login()) {\n\t\t\t\t$this->Session->setFlash(__('Welcome, '. $this->Auth->user('username')));\n\t\t\t\t//$this->redirect($this->Auth->redirectUrl());\n\t\t\t\t$this->User->id = $this->Auth->user('id'); // target correct record\n\t\t\t\t$this->User->saveField('last_login_time', date(DATE_ATOM)); // save login time\n\t\t\t\t\n\t\t\t\t$this->redirect(array('action' => 'home'));\t\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash('Invalid username or password');\n\t\t\t}\n\t\t}\n\n\t}", "function login()\n\t{\n\t\tif(isset($this->cookie[$this->sets['cookie_prefix'] . 'user']) && isset($this->cookie[$this->sets['cookie_prefix'] . 'pass'])) {\n\t\t\t$cookie_user = intval($this->cookie[$this->sets['cookie_prefix'] . 'user']);\n\t\t\t$cookie_pass = $this->cookie[$this->sets['cookie_prefix'] . 'pass'];\n\t\t\t$user = $this->db->fetch(\"SELECT m.*, s.skin_dir, g.group_perms, g.group_file_perms, g.group_name, t.membertitle_icon\n\t\t\t\tFROM (%pskins s, %pgroups g, %pusers m)\n\t\t\t\tLEFT JOIN %pmembertitles t ON t.membertitle_id = m.user_level\n\t\t\t\tWHERE m.user_id=%d AND\n\t\t\t\t m.user_password='%s' AND\n\t\t\t\t s.skin_dir=m.user_skin AND\n\t\t\t\t g.group_id=m.user_group LIMIT 1\",\t$cookie_user, $cookie_pass);\n\t\t} else if(isset($_SESSION['user']) && isset($_SESSION['pass'])) {\n\t\t\t$session_user = intval($_SESSION['user']);\n\t\t\t$session_pass = $_SESSION['pass'];\n\t\t\t$user = $this->db->fetch(\"SELECT m.*, s.skin_dir, g.group_perms, g.group_file_perms, g.group_name, t.membertitle_icon\n\t\t\t\tFROM (%pskins s, %pgroups g, %pusers m)\n\t\t\t\tLEFT JOIN %pmembertitles t ON t.membertitle_id = m.user_level\n\t\t\t\tWHERE m.user_id=%d AND\n\t\t\t\t MD5(CONCAT(m.user_password,'%s'))='%s' AND\n\t\t\t\t s.skin_dir=m.user_skin AND\n\t\t\t\t g.group_id=m.user_group LIMIT 1\",\t$session_user, $this->ip, $session_pass);\n\t\t} else {\n\t\t\t$user = $this->db->fetch(\"SELECT m.*, s.skin_dir, g.group_perms, g.group_file_perms, g.group_name\n\t\t\t\tFROM (%pskins s, %pgroups g, %pusers m)\n\t\t\t\tWHERE m.user_id=%d AND\n\t\t\t\t s.skin_dir=m.user_skin AND\n\t\t\t\t g.group_id=m.user_group LIMIT 1\", USER_GUEST_UID);\n\t\t\t$user['user_language'] = $this->get_browser_lang($this->sets['default_lang']);\n\t\t}\n\n\t\tif (!isset($user['user_id'])) {\n\t\t\t$user = $this->db->fetch(\"SELECT m.*, s.skin_dir, g.group_perms, g.group_file_perms, g.group_name\n\t\t\t\tFROM (%pskins s, %pgroups g, %pusers m)\n\t\t\t\tWHERE m.user_id=%d AND\n\t\t\t\t s.skin_dir=m.user_skin AND\n\t\t\t\t g.group_id=m.user_group LIMIT 1\", USER_GUEST_UID);\n\n\t\t\tsetcookie($this->sets['cookie_prefix'] . 'user', '', $this->time - 9000, $this->sets['cookie_path'], $this->sets['cookie_domain'], $this->sets['cookie_secure'], true );\n\t\t\tsetcookie($this->sets['cookie_prefix'] . 'pass', '', $this->time - 9000, $this->sets['cookie_path'], $this->sets['cookie_domain'], $this->sets['cookie_secure'], true );\n\n\t\t\tunset($_SESSION['user']);\n\t\t\tunset($_SESSION['pass']);\n\t\t\t$user['user_language'] = $this->get_browser_lang($this->sets['default_lang']);\n\t\t}\n\t\treturn $user;\n\t}", "public function actionLogin()\r\n\t{\r\n\t $this->redirect(array('//user/auth'));\r\n\t}", "public function CheckLogin()\r\n {\r\n $visiteur = new Visiteur();\r\n \r\n //Appelle la fonction Attempt pour verifier le login et le password, si cela correspond $result prends la valeur ID correspondant a l'utilisateur\r\n $result = $visiteur->Attempt($_POST['login'],$_POST['password']);\r\n \r\n //SI l'ID a une valeur, stocke l'ID dans $_SESSION et ramene a la main mage\r\n if (isset($result)){\r\n $_SESSION['uid'] = $result->id;\r\n $this->MainPage();\r\n }\r\n //Sinon, ramene a la page de connexion\r\n else{\r\n $this->LoginPage();\r\n } \r\n }", "public function login()\n\t{\n\t\tif (isLogin()) {\n\t\t\tredirect('/backoffice');\n\t\t} else {\n\t\t\t$this->display(\n\t\t\t\t'backoffice/login.html.twig'\n\t\t\t);\n\t\t}\n\n\t}", "function _loginRedirect(){\r\n \t// send user to the login page\r\n \theader(\"Location:/index.php\");\r\n }", "public function loginAction() : object\n {\n $title = \"Logga in\";\n\n // Deal with incoming variables\n $user = getPost('user');\n $pass = getPost('pass');\n $pass = MD5($pass);\n\n if (hasKeyPost(\"login\")) {\n $sql = loginCheck();\n $res = $this->app->db->executeFetchAll($sql, [$user, $pass]);\n if ($res != null) {\n $this->app->session->set('user', $user);\n return $this->app->response->redirect(\"content\");\n }\n }\n\n // Add and render page to login\n $this->app->page->add(\"content/login\");\n return $this->app->page->render([\"title\" => $title,]);\n }", "public function test_login($username,$pass){\r\n $this->test_fields($username,$pass);\r\n\r\n //check if username and pass matches one in DB\r\n if($this->DBModel->login($username,$pass) == true){\r\n $_SESSION['username'] = $username;\r\n $this->DBModel->userLogin($username);\r\n echo \"<script> location.href='https://secure.digiovanni.dev/'; </script>\";\r\n } else {\r\n echo '<script type=\"text/javascript\"> $(document).ready(function() {window.openAlert(\"Login Failed - Password is invalid\"); });</script>';\r\n }\r\n }", "public function actionLogin() {\n $categories = array();\n $categories = Category::getCategoriesList();\n\n $email = '';\n $password = '';\n\n\n if (isset($_POST['submit'])) {\n $email = $_POST['email'];\n $password = $_POST['password'];\n\n $errors = false;\n\n if (!User::checkEmail($email)) {\n $errors[] = 'Invalid email.';\n }\n\n if (!User::checkPassword($password)) {\n $errors[] = 'Password should be at least 6 characters.';\n }\n\n $userId = User::checkUserData($email, $password);\n\n if ($userId == false) {\n $errors[] = 'User with such email and password does not exist. Please check your login details.';\n } else {\n User::auth($userId);\n\n header(\"Location: /profile/\");\n }\n }\n\n require_once (ROOT.'/views/user/login.php');\n\n return true;\n }", "function action_login() \t\t\t\t\t\t\t\t\t// Logs user $user into system.\n\t{\n\t\t$username = $_POST['username'];\n\t\t$password = $_POST['password'];\n\t\t$where = \"username='\".$username.\"' AND password=PASSWORD('\".$password.\"')\";\n\t\t$result = sql_select(\"users\",$where);\n\t\t$row = mysql_fetch_array($result);\n\t\tif($row['ID'])\n\t\t{\n\t\t\t\n\t\t\tses_set(\"userID\", $row['ID']);\n\t\t\tses_set(\"username\", $row['username']);\n\t\t\tses_set(\"fullname\", $row['surname'].\" \".$row['lastname']);\n\t\t\tses_set(\"admin\", $row['group']);\n\t\t\t\n\t\t\tmysql_query(\"UPDATE users SET visits = visits + 1 WHERE username='\".$username.\"'\") or die(\"Query failed : \" . mysql_error());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public function login()\n {\n if (!isset($_SESSION)) {\n session_start();\n }\n $_SESSION['email'] = $this->email;\n header('Location: index.php');\n }", "function login() {\n\n if(empty($this->data['btnSubmit']) == false)\n {\n // Here we validate the user by calling that method from the User model\n if(($user = $this->Usuario->validateLogin($this->data)) != false)\n {\n // Write some Session variables and redirect to our next page!\n $this->setMessage('success', \"Bienvenido a fletescr.com!\");\n\n $roles = $user['Rol'];\n $userRoles = array();\n\n foreach($roles as $rol){\n $userRoles[] = $rol['id'];\n }\n $this->Auth->login($user);\n $this->Session->write('roles', $userRoles);\n\n // Go to our first destination!\n $this->Redirect(array('controller' => 'transport', 'action' => 'index', 'success' => '1'));\n exit();\n }\n else\n {\n $this->setMessage('error', \"El usuario o clave ingresados son incorrectos.\");\n $this->Redirect(array('controller' => 'transport', 'action' => 'index'));\n exit();\n }\n }\n }", "private function login(){\n\t\tif (empty($_POST['username'])) {\n\t\t\t$this->errors[] = \"Username field was empty.\";\n } elseif (empty($_POST['password'])) {\n $this->errors[] = \"Password field was empty.\";\n } elseif (!empty($_POST['username']) && !empty($_POST['password'])) { \n\t\t\t$this->username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);\t\t\t\n \t\n\t\t\t//prepared statement to login user\n\t\t\t$sel = \"SELECT * FROM users WHERE username = ? OR email = ? \";\n \tif($stmt = $this->connection->prepare($sel)){\n \t\t$stmt->bind_param(\"ss\", $this->username, $this->username);\n \t\t$stmt->execute();\n \t\t//$stmt->bind_result();\n \t\t$res = $stmt->get_result();\n \t\t$user_info = $res->fetch_object();\n \t}\n\t\t\t\t\t\t\t\t\t\n\t\t\tif (password_verify($_POST['password'], $user_info->password)) {\n\t\t\t\t$_SESSION['username'] = $user_info->username;\n\t\t\t\t$_SESSION['email'] = $user_info->email;\n\t\t\t\t$_SESSION['user_login_status'] = 1;\n\t\t\t} else if(empty($user_info)){\n\t\t\t\t$this->errors[] = \"Wrong User name. Please try again\";\n\t\t\t} else {\n\t\t\t\t$this->errors[] = \"Wrong password. Please try again\";\n\t\t\t}\n\t\t}\n\t}", "public function login() {\n $this->FormHandler->setRequired('employeeCode');\n $this->FormHandler->setRequired('employeePassword');\n\n\n if ($this->FormHandler->run() === true) {\n $employeeCode = $this->FormHandler->getPostValue('employeeCode');\n $employePassword = $this->FormHandler->getPostValue('employeePassword');\n if ($this->User->checkLoginCredentials($employeeCode, $employePassword) === true) {\n // Log them in and redirect\n $this->User->loginClient($_SESSION, $employeeCode);\n redirect('employee/dashboard');\n }\n }\n else if ($this->User->checkIfClientIsLoggedIn($_SESSION) === true) {\n redirect('employee/dashboard');\n }\n\n loadHeader();\n include APP_PATH . '/view/user/login.php';\n loadFooter();\n }", "private function check_the_login(){\n \n if(isset($_SESSION['login_user'])){\n \n $this->login_user = $_SESSION['login_user'];\n $this->signed_in = true;\n \n }else{\n unset($this->login_user);\n $this->signed_in = false;\n }\n \n }", "function login()\n{\n\n}", "public function login()\n {\n\t\tif(isset($_POST['email']) && isset($_POST['senha'])){\n\t\t\t\n\t\t\t//verifica se os $_POST estão vazios\n\t\t\tif(empty($_POST['email']) && empty($_POST['senha'])){\n\t\t\t\theader('Location: /admin?inputvazio=true');\n\t\t\t\treturn true;\n }\n \n $login = Container::getModel('admin');\n $login->setEmail($_POST['email']);\n $login->setSenha($_POST['senha']);\n\n //se a senha e o e-mail é o mesmo do banco\n if($login->login()){\n //cria as sessões\n session_start();\n $_SESSION['logado'] = true;\n $_SESSION['id'] \t= $login->getId();\n $_SESSION['nome'] \t= $login->getNome();\n $_SESSION['nivelAcesso'] \t= $login->geNivelAcesso();\n header('Location: /dashboard');\n }else{\n header('Location: /admin?logado=false');\n }\n }\n }", "public function login()\n {\n //$this->username = $username; // we are gonnna use the above property: $username here\n //$this->password = $password;\n // we want to call authuser from within login so\n $this->auth_user(); // we don't need to pass any arguments here because we know the class properties above this line\n\n }", "public function login_user()\n\t{\n\t\t$form_filled = true;\n\n\t\t//a way to set default values\n\t\tif (isset($_POST['username']) && $_POST['username'] != \"\") \n\t\t{\n\t\t\t$username = $_POST[\"username\"];\n\t\t} else\n\t\t{\n\t\t\t$username = \"\";\n\t\t\t$form_filled = false;\n\t\t}\n\t\tif (isset($_POST['password']) && $_POST['password'] != \"\") \n\t\t{\n\t\t\t$password = $_POST[\"password\"];\n\t\t} else\n\t\t{\n\t\t\t$password = \"\";\n\t\t\t$form_filled = false;\n\t\t}\n\n\t\tif ($form_filled)\n\t\t{\n\t\t\t$table = $this->getTableFormat(\"users\");\n\t\t\t$results = DB::query(\"SELECT id, username, password FROM $table\");\n\t\t\tforeach ($results as $row) {\n\t\t\t\tif ($row['username'] == $username)\n\t\t\t\t{\n\t\t\t\t\tif (password_verify($password, $row['password']))\n\t\t\t\t\t{\n\t\t\t\t\t\t//echo \"Login Correct\";\n\t\t\t\t\t\t$logged_in = true;\n\t\t\t\t\t\t//$_SESSION['user'] = $row['id'];\n\n\t\t\t\t\t\t/*Add login to logins table*/\n\t\t\t\t\t\t$userid = $row['id'];\n\t\t\t\t\t\t$userip = $_SERVER['REMOTE_ADDR'];\n\t\t\t\t\t\tif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t\t\t\t\t\t$userip2 = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$userip2 = $userip;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$current_time = time();\n\t\t\t\t\t\t$table = $this->getTableFormat(\"logins\");\n\t\t\t\t\t\tDB::insert($table, array(\n\t\t\t\t\t\t 'userid' => $userid,\n\t\t\t\t\t\t 'user_ip' => $userip,\n\t\t\t\t\t\t 'user_ip_2' => $userip2,\n\t\t\t\t\t\t 'last_action' => $current_time\n\t\t\t\t\t\t));\n\n\t\t\t\t\t\t//now, lets get the id of the session, hash it, and save it in the session variable\n\t\t\t\t\t\t$login_results = DB::query(\"Select * FROM $table\");\n\t\t\t\t\t\tforeach ($login_results as $i)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($i['userid'] == $userid && $i['user_ip'] == $userip && $i['user_ip_2'] == $userip2 && $i['last_action'] == $current_time) {\n\t\t\t\t\t\t\t\t//echo \"found the record\";\n\t\t\t\t\t\t\t\t$_SESSION['user'] = hash('ripemd160', $i['id']);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t//echo \"Username or Password not correct\";\n\t\t\t\t\t$logged_in = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function login()\n {\n if(is_logged_in()) {\n redirect_to(url('thread/index'));\n }\n\n $user = new User;\n $page = Param::get('page_next', 'login');\n\n switch($page) {\n case 'login':\n break;\n\n case 'lobby':\n $user->username = Param::get('username');\n $user->password = Param::get('password');\n\n try {\n $user = $user->verify();\n $_SESSION['id'] = $user['id'];\n } catch (UserNotFoundException $e) {\n $page = 'login';\n }\n break;\n\n default:\n throw new UserNotFoundException(\"User not found\");\n }\n\n $this->set(get_defined_vars());\n $this->render($page);\n }", "function proLogin(){\n\t\t/* Initialize objects */\n\t\tglobal $session, $form;\n\t\t/* Login attempt */\n\t\t$retval = $session->loginUTS($_POST['login'], $_POST['password']);\n\t\t\n\t\t/* Login successful */\n\t\tif($retval){\n\t\t\theader(\"Location: \".$session->referrer);\n\t\t}\n\t\t/* Login failed */\n\t\telse{\n\t\t\t$_SESSION['value_array'] = $_POST;\n\t\t\t$_SESSION['error_array'] = $form->getErrorArray();\n\t\t\theader(\"Location: \".$session->referrer);\n\t\t}\n\t}", "function procLogin() {\n global $session, $form;\n /* Login attempt */\n $retval = $session->login($_POST['user'], $_POST['pass'], isset($_POST['remember']));\n /* Login successful */\n if ($retval) {\n header(\"Location: \" . $session->referrer);\n }\n /* Login failed */ else {\n $_SESSION['value_array'] = $_POST;\n $_SESSION['error_array'] = $form->getErrorArray();\n header(\"Location: \" . $session->referrer);\n }\n }", "function au_login() {\n\n\tglobal $aulis;\n\t\n\t// Error messages!\n\t$errormsg = array();\n\t\n\t// Are we currently attempting to login?\n\tif(isset($_POST['au_login'])) {\n\t\n\t\t// Did we provide our username?\n\t\tif(empty($_POST['au_username']))\n\t\t\t$errormsg[] = LOGIN_NO_USERNAME;\n\t\t\t\n\t\t// What about our password?\n\t\tif(empty($_POST['au_password']))\n\t\t\t$errormsg[] = LOGIN_NO_PASSWORD;\n\t\t\t\n\t\t// Create variables that are easier to type\n\t\t$login['username'] = $_POST['au_username'];\n\t\t$login['password'] = $_POST['au_password'];\n\t\t\t\n\t\t// Usernames don't contain HTML\n\t\tif($login['username'] != htmlspecialchars($login['username'], ENT_NOQUOTES, 'UTF-8', false))\n\t\t\t$errormsg[] = LOGIN_USERNAME_NO_HTML;\n\t\t\t\n\t\t// We don't want to mess up the database\n\t\t$login['username'] = mysqli_real_escape_string($aulis['connection'], $login['username']);\n\t\t\n\t\t// Hash the password\n\t\t$login['password'] = au_hash($login['password']);\n\t\t\n\t\t// Okay. Now check if the database has any record of the user\n\t\t$result = au_query(\"\n\t\t\tSELECT user_id, user_username, user_password\n\t\t\t\tFROM users\n\t\t\t\tWHERE user_username = '\" . $login['username'] . \"'\n\t\t\");\n\t\t\n\t\t\t// This is only run if the user exists\n\t\t\tforeach($result as $userlogin) {\n\t\t\t\n\t\t\t\t// Get the user id\n\t\t\t\t$userid = $userlogin['user_id'];\n\t\t\t\n\t\t\t\t// Does the password match?\n\t\t\t\tif($userlogin['user_password'] == $login['password'])\n\t\t\t\t\t$correctpass = true;\n\t\t\t\telse\n\t\t\t\t\t$errormsg[] = LOGIN_PASSWORD_FAIL;\n\t\t\t}\n\t\t\t\n\t\t// Can we login?\n\t\tif(!empty($correctpass)) {\n\t\t\n\t\t\t// The user agent\n\t\t\t$login['user_agent'] = mysqli_real_escape_string($aulis['connection'], $_SERVER['HTTP_USER_AGENT']);\n\t\t\t\n\t\t\t// The IP address\n\t\t\t$login['user_ip'] = addslashes($_SERVER['REMOTE_ADDR']);\n\t\t\n\t\t\t// How long should we keep the session active?\n\t\t\t$sessionlength = (!empty($_POST['au_forever']) ? '0' : '60');\n\t\t\n\t\t\t// Set the session\n\t\t\t$_SESSION[$setting['session_name']] = array(\n\t\t\t\t'user' => $userid,\n\t\t\t\t'agent' => $login['user_agent'],\n\t\t\t\t'ip' => $login['user_ip'],\n\t\t\t\t'sessionlength' => $sessionlength\n\t\t\t);\n\t\t\t\n\t\t\t// Show a nice information page\n\t\t\ttemplate_info(\n\t\t\t\t'login_success',\n\t\t\t\t'login_success_title',\n\t\t\t\t'user_green.png',\n\t\t\t\t$basefilenq,\n\t\t\t\t'login_link'\n\t\t\t);\n\t\t}\n\t}\n\t\n\t// This array is used in the login template\n\t$logindata = array(\n\t\t'errors' => (empty($_POST['au_login']) ? 0 : 1),\n\t\t'error_message' => $errormsg,\n\t\t'username' => (!empty($login['username']) ? $login['username'] : ''),\n\t);\n\n\t// Okay, load this app's template\n\tau_load_template('login', false);\n\t\n\t// Show the registration template\n\tau_template_login((!empty($login_complete) ? true : false));\n}", "public function login()\n {\n }", "public function login()\n {\n }", "public function check_login()\n\t{\n\t\tif(isset($_SESSION[\"user_id\"]))\n\t\t{\n\t\t $this->_user_id = $_SESSION[\"user_id\"];\n\t\t\t$this->_client = $_SESSION[\"client\"];\n\t\t\t$this->_loged_in = true;\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_loged_in = false;\n\t\t\t$this->_client = false;\n\t\t\tunset($this->_user_id);\n\t\t}\n\t}" ]
[ "0.7987698", "0.7910458", "0.7903905", "0.7796732", "0.7796732", "0.775574", "0.7678353", "0.76592714", "0.76436216", "0.7637845", "0.7634436", "0.76156664", "0.7563478", "0.753773", "0.7535239", "0.75236213", "0.75200534", "0.74956506", "0.74917024", "0.7491613", "0.7488763", "0.7480859", "0.7464709", "0.7454025", "0.7442191", "0.7426607", "0.74212986", "0.74177015", "0.7415844", "0.74075645", "0.7404524", "0.7401039", "0.73732615", "0.7365543", "0.734802", "0.7339974", "0.733226", "0.7332116", "0.7306516", "0.7305024", "0.7293927", "0.72913885", "0.72904515", "0.7281248", "0.7266591", "0.7233991", "0.72108835", "0.7205493", "0.7204113", "0.7193864", "0.71919894", "0.7166599", "0.71517396", "0.7150254", "0.71496713", "0.7144576", "0.71438295", "0.71421367", "0.71416974", "0.71402085", "0.7140074", "0.7139917", "0.71377516", "0.7135973", "0.7128103", "0.71188587", "0.7117654", "0.7113097", "0.71122813", "0.7111553", "0.71017784", "0.70992464", "0.70970285", "0.7094551", "0.7082157", "0.7081751", "0.7081284", "0.70774394", "0.70760727", "0.707429", "0.70720476", "0.7069591", "0.7066334", "0.7065989", "0.7064333", "0.7063477", "0.70614433", "0.7058411", "0.7058235", "0.70530874", "0.7046449", "0.7040438", "0.7040052", "0.7030611", "0.70243937", "0.70230204", "0.7018523", "0.7018141", "0.7018141", "0.70165026" ]
0.7040292
92
Redirigerer bruker til index.php hvis bruker ikke er admin
public static function adminLoggedIn(){ //Hvis en bruker ikke er logget inn eller han ikke er admin, vil han bli sent til login.php if (!isset($_SESSION['user']) || !$_SESSION['user']->isAdmin()) { //Lagrer siden brukeren er på nå slik at han kan bli redirigert hit etter han har logget inn $alert = new Alert(Alert::ERROR, "Du er nødt til å være administrator for å se den siden. Du er ikke administrator."); $alert->displayOnIndex(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function index() {\n\t\t\tif (!isset($_SESSION['admin'])) {\n\t\t\t\tView::render(\"admin\" . DS . \"login\");\n\t\t\t}else {\n\t\t\t\theader(\"Location: ../contenido/principal/\");\n\t\t\t}\n\t\t}", "public static function adminPage(){\n\t\tif(!self::isAdmin()){\n\t\t\theader(\"Location: index.php\");\n\t\t\texit;\n\t\t}\n\t}", "function admin_index()\n {\n if(!$this->Session->check('Admin'))\n {\n $this->redirect('/admin/login');\n }\n\n\n }", "public function indexAction(){\n \t\t\n \t\tif(!$this->_acl->isAllowed('skip_maintenance'))\n \t\t header('Location: /index.php/lynx/login');\n \t\telse\n \t\t $this->_template->content = 'Welcome!';\n \t\t \n \t\t$this->_template->title('Admin');\n \t}", "public function indexAction()\n {\n $this->view->title = 'Li-No | Admin Index';\n $this->_forward('login', 'auth');\n }", "public function index()\n {\n redirect(site_url('admin'));\n }", "public function indexAction()\r\n {\r\n echo 'User admin index';\r\n }", "public function actionIndex() {\n \n $this->redirect('admin');\n \n\t}", "public function indexAdmin()\n {\n $nodos = $this->mdlnodo->consultarnodos();\n require APP . 'view/_templates/headeradminodos.php';\n require APP . 'view/proyecto/admin/index.php';\n\t\t require APP . 'view/_footer/footeradminnodos.php';\n }", "function admin_index()\n\t{\n\t \n\t}", "public function index() {\n if ($this->session->userdata('adminLogged') != 'yes') {\n redirect(SITE_ADMIN_URL.'index_admin/index');\n } else {\n redirect(SITE_ADMIN_URL.'index_admin/index');\n }\n }", "public function admin() {\r\n $ruta = new Ruta($this->adapter);\r\n\r\n //Conseguimos todos los usuarios\r\n $allrut = $ruta->getAll();\r\n //Cargamos la vista index y le pasamos valores\r\n $this->view(\"Ruta/admin\", array(\"allrut\" => $allrut));\r\n \r\n }", "public function index()\n\t{\n\t\tView::render('admin');\n\t}", "public function action_index()\n\t{\n\t\tglobal $context, $modSettings;\n\n\t\t// Make sure the administrator has a valid session...\n\t\tvalidateSession();\n\n\t\t// Load the language and templates....\n\t\tTxt::load('Admin');\n\t\ttheme()->getTemplates()->load('Admin');\n\t\tloadCSSFile('admin.css');\n\t\tloadJavascriptFile('admin.js', array(), 'admin_script');\n\n\t\t// The Admin functions require Jquery UI ....\n\t\t$modSettings['jquery_include_ui'] = true;\n\n\t\t// No indexing evil stuff.\n\t\t$context['robot_no_index'] = true;\n\n\t\t// Need these to do much\n\t\trequire_once(SUBSDIR . '/Admin.subs.php');\n\n\t\t// Actually create the menu!\n\t\t$admin_include_data = $this->loadMenu();\n\t\t$this->buildLinktree($admin_include_data);\n\n\t\tcallMenu($admin_include_data);\n\t}", "public function admin_index() {\n\n\t\t\t/*get all data from table \"modules\"*/\n\t\t\t$modules=$this->Module->find(\"all\");\n\n\t\t\t/*set variables of page*/\n\t\t\t$this->set(\"title\", \"Gestion\");\n\t\t\t$this->set(\"legend\", \"Modules manager\");\n\t\t\t$this->set(\"modules\", $modules);\n\t\t\t}", "public function index()\n {\n if ($_SESSION['userData']['rol'] == \"Administrador\") {\n $this->vista->index();\n } else {\n header('Location: ' . base_url() . 'dashboard');\n }\n }", "public function index()\t{\n\tdie('Not allow to access direct');\n\n\t}", "public function indexAction(): void\n {\n echo 'User admin index';\n }", "public function actionIndex() {\n // renders the view file 'protected/views/site/index.php'\n // using the default layout 'protected/views/layouts/main.php'\n //echo \"admin/admin/index\";exit;\n //var_dump(Yii::app()->user->isRoot);exit;\n $this->render('index');\n }", "public function index()\n\t{\n\t\tif($this->session->userdata('admin_login') == 1)redirect(base_url().'index.php/admin/dashboard' , 'refresh');\n\t\telse redirect(base_url().'index.php/admin/login' , 'refresh');\n\t}", "public function index()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(site_url('login'), 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(site_url('admin/dashboard'), 'refresh');\n }", "public function showAdminAction()\n {\n header (\"location: admin.php?route=adminAccueil\");\n }", "public function actionAdministration()\n\t{\n\t $this->render('index');\n\t}", "public function index(){\r\n\r\n if(empty($_SESSION['rick_auto'])){\r\n $url= base_url().'admin/index/signin';\r\n redirect($url);\r\n\t\t\treturn;\r\n\t\t}else{\t\r\n\t\t\t$url= base_url().'admin/index/dashboard';\r\n\t\t\tredirect($url);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n }", "public function index() {\n $this->ograniczDostepTylkoDlaAdmina();\n $db = $this->registry->db; \n $login = isset($_SESSION['user']) ? $_SESSION['user'] : '';\n if ($db::isUserInRole($login, 'admin')) {\n $this->registry->template->results = $db::getTypyUrzadzenList();\n }\n //else\n //{\n //$thisd ->registry->template->results = $db::getUrzadeniaListByLogin($login); \n //}\n $this->registry->template->show('typy_urzadzen/typy_urzadzen_index');\n }", "public function index() {\n redirect(site_url('admin/dashboard'), 'refresh');\n }", "public function index()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "public function index()\n\t{\n\t\t$this->template\n\t\t\t->title('')\n\t\t\t->build('admin/index');\n\t}", "public function index() {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "public function index() {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "public function index()\n {\n echo \"Accion de Queja\"; die();\n }", "public function index()\n {\n\n //To make sure that only registered users can come to this page \n global $session;\n if (!$session->is_signed_in() && $_SESSION['role'] != ADMIN) header(\"Location: \" . URL . \"problem/\");\n\n // // load a models\n \n // // load views\n \n header(\"Location: \" . URL . \"administrateur/save_client\");\n\n }", "public function admin_page()\n {\n }", "public function admin_page()\n {\n }", "public function admin_index()\n {\n $this->set('title_for_layout', __('Dashboard'));\n\n $user = $this->Session->read('Auth.User');\n if (isset($user) === false) {\n $this->redirect(\n array(\n 'controller' => 'users',\n 'action' => 'login',\n 'admin' => true,\n )\n );\n }\n\n $this->SiStayConnected->readData();\n $this->set(compact('user'));\n\n }", "function controller()\n\t\t{\t\n\t\t\t$this->admin_page_header();\n\t\t\t$this->admin_menu();\n\t\t}", "public function index()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'login', 'refresh');\n }", "public function index()\n\t{\n\t\t$this->load->view('admin/index');\n\t}", "public function index() {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "public function action_index() {\r\n\r\n\t$main_content = View::forge(\"account/simpleauth\");\r\n $main_sidebar = View::forge(\"vlog/sidebar\");\r\n\r\n\t$this->template->page_content = $main_content;\r\n $this->template->page_sidebar = $main_sidebar;\r\n }", "public function admin_index() {\n\t\t$this->layout=\"admindefault\";\n\t\t$this->adminsessionchecked();\n\t\t$this->User->recursive = 0;\n\t\t$this->Paginator->settings=array(\n\t\t\t'conditions'=>array(\n\t\t\t\t'User.is_deleted'=>'0'\n\t\t\t)\n\t\t);\n\t\t$this->set('users', $this->Paginator->paginate());\n\t\t//$this->set('allowedimage',$this->allowedimageType);\n\t}", "public function index()\n {\n $this->data['noCabinetOrAdmin'] = true;\n\n $this->isUser();\n\n $this->render('index');\n }", "public function apymd()\n {\n session_start();\n\n if (!isset($_SESSION[\"Apoyo_admin\"])) {\n\n header(\"Location:\" . RUTA_URL . \"/inicio\");\n\n } else {\n\n $this->vista('apoyoAdministrador/menu');\n\n }\n\n }", "public function index() {\n\t\t$this->load->view('admin/admin1.php');\n\t}", "public function actionAdmin()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t$this->layout = 'admin';\n\n\t\t$this->render('admin');\n\t}", "public function action_index()\n\t{\n\t\tif ( ! Auth::instance()->logged_in('admin'))\n\t\t\tthrow new HTTP_Exception_403();\n\t\t\n\t\t// show admin page\n\t\t$companies = ORM::factory('company')->find_all();\n\t\t$this->template->content = View::factory('admin/admin')->bind('companies', $companies);\n\t\t\n\t}", "public function index()\n\t{\n\t\tif(is_login()){\n\t\t\theader('Location:'.base_url('index.php/dashboard'));\n\t\t\texit();\n\t\t}else{\n\t\t\theader('Location:'.base_url('index.php/login'));\n\t\t\texit();\n\t\t}\n\t}", "public function actionIndex()\n\t{\n\t\t// renders the view file 'protected/views/site/index.php'\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t\n\t\t\n\t\tif (Yii::app()->user->isGuest) {\n\t\t\t$this->render('index');\n\t\t} else {\n\t\t\t$this->redirect($this->createUrl('descargas/admin'));\n\t\t}\n\t}", "function admin()\n{\n # clear the user session by default upon reaching this page\n clearUserSession();\n\n header('Location: ./adminLogin');\n exit;\n}", "public function index() {\n if (!$this->ion_auth->logged_in()) {\n // redirect them to the login page\n redirect('admin/login', 'refresh');\n } else {\n $this->load->view('admin/dashboard');\n }\n }", "function index() {\n\t\tif($this->Session->check('Auth.Adminuser')){\n\t\t\t$this->redirect(array('controller'=>'roles','action' => \"home\"));\n\t\t}\n\t\telse {\n\t\t\t$this->Session->setFlash(__d('adminuser','You are not authorized to access this location.',true));\n\t\t\t$this->redirect(array('controller'=>'roles','action' => \"login\"));\n\t\t}\n\t}", "function admin()\n{\n global $app;\n\n $app->render('admin.html', [\n 'page' => mkPage(getMessageString('admin'), 0, 1),\n 'isadmin' => is_admin()]);\n}", "public function index(){\r\n\t\t$this->load->view('admin/index');\r\n\t}", "public function index()\n {\n if ($this->Session && $this->Permissions) {\n redirect('backend', 'refresh');\n } else {\n $this->load->view('admin/login');\n }\n }", "public function index(){\n\t\tredirect('/'.$this->data['language'].'/admin/dashboard');\n\t\t\n\n\t\t$this->load->view('en/1-admin/layout/_layout_main', $this->data);\t\n\t\t}", "public function administration()\n {\n\n if (!empty($_SESSION) && $_SESSION['login'] == 'admin') {\n\n if (isset($_GET['deconnexion'])) {\n\n session_destroy();\n header('Location: .');\n exit();\n } elseif (isset($_GET['Appli'])) {\n $this->ctrlAdminAppli->adminappli();\n } elseif (isset($_GET['Data'])) {\n\n $this->ctrlAdminData->admindata();\n } else {\n\n $this->ctrlAdminmenu->adminmenu();\n }\n } else {\n $this->ctrlConnexion->connexion();\n }\n }", "public function indexAdminAction(){\n $this->denyAccessUnlessGranted('ROLE_ADMIN', 'Vous n\\'avez pas accès à cette page' );\n return $this->render('LSIMarketBundle:admin:index.html.twig');\n }", "public function admin()\n {\n if ($this->loggedIn()) {\n $data['flights'] = $this->modalPage->getFlights();\n $data['name'] = $_SESSION['user_name'];\n $data['title'] = 'dashboard ' . $_SESSION['user_name'];\n $this->view(\"dashboard/\" . $_SESSION['user_role'], $data);\n\n } else {\n redirect('users/login');\n }\n\n }", "public function index()\n {\n return 'Wellcome! This is master admin panel.';\n }", "public function indexAction ()\n {\n $this->_pageTitle = ['Admin Console'];\n }", "public function index()\n\t{\n\t\tif ($this->checkLogin('A') == '') {\n\t\t\tredirect('admin');\n\t\t} else {\n\t\t\tredirect('admin/order/display_order_list');\n\t\t}\n\t}", "public function indexAction() {\n if (in_array(0, $this->_rolesUser) || in_array(1, $this->_rolesUser)) $this->_redirect(\"/admintool/index/go\");\n \n // traductores\n if (in_array(2, $this->_rolesUser)) $this->_redirect(\"/admintool/index/translate\"); \n }", "public function actionIndex()\n\t{\n\t\t// renders the view file 'protected/views/site/index.php'\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t$this->redirect( 'index.php?r=sales/dashboard/admin');\n\t}", "public function indexAction()\n {\n $this->tag->setTitle(__('Admin panel'));\n $this->siteDesc = __('Admin panel');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function adminmenu()\n {\n\n $vue = new ViewAdmin(\"Administration\");\n $vue->generer(array());\n }", "public function admin() {\r\n $Conductor = new Conductor($this->adapter);\r\n\r\n //Conseguimos todos los usuarios\r\n $allCon = $Conductor->getAllUsers();\r\n //Cargamos la vista index y le pasamos valores\r\n $this->view(\"Conductor/admin\", array(\"allCon\" => $allCon));\r\n \r\n }", "public function index()\n\t{\n\t\t$data['judul'] = 'Halaman Admin';\n\t\t$data['login'] = $this->session->userdata('login');\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('templates/nav', $data);\n\t\t$this->load->view('admin/index', $data);\n\t\t$this->load->view('templates/footer');\n\t}", "public function index()\n {\n if($_SESSION['Auth']['User']['typeUser'] == 'candidat')\n $this->redirect(['controller'=>'candidat','action' => 'accueil']);\n if($_SESSION['Auth']['User']['typeUser'] == 'chercheur')\n $this->redirect(['controller'=>'chercheur','action' => 'accueil']);\n\n $this->viewBuilder()->layout('adminLayout');\n\n $administrateur = $this->paginate($this->Administrateur);\n\n $this->set(compact('administrateur'));\n $this->set('_serialize', ['administrateur']);\n }", "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "public function index()\n\t{\n\t\tif ($this->accesscontrol->checkAuth()['correct']) {\n\t\t\t$this->load->view('shared/admin/header');\n\t\t\t$this->load->view('admin/adminProveedorHuevo');\n\t\t\t$this->load->view('shared/admin/footer');\n } else {\n\t\t\tredirect('Home/login', 'refresh');\n }\n\t}", "public function index()\n\t{\n\t\t$this->load->view(\"admin_view\");\n\t}", "public function index(){\t\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin');\n\t\t}else {\n\t\t\tredirect('admin/review/display_dispute_list');\n\t\t}\n\t}", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n\t{\n\t\tredirect(base_url(\"index.php\"));\n\t}", "public function index(){\n\t\t$this->Layout('Management');\n\t\t\n\t}", "public function index()\n\t{\n\t\tif ( $this->auth->check() )\n\t\t{\t\t\n\t\t\t// MUESTRA LA PAGINA\n\t\t\t$this->show_page();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect ( $this->_base_url );\n\t\t}\n\t}", "function index()\r\n\t{\r\n\t\tif (is_logged_in_user()) {\r\n\t\t\tredirect('menu/index');\r\n\t\t}\r\n\t}", "public function page_default_administration()\n\t{\n\t\tFsb::$tpl->set_file('adm_index.html');\n\n\t\t// Les 5 derniers logs administratifs\n\t\t$logs = Log::read(Log::ADMIN, 5);\n\t\tforeach ($logs['rows'] AS $log)\n\t\t{\n\t\t\tFsb::$tpl->set_blocks('log', array(\n\t\t\t\t'STR' =>\t$log['errstr'],\n\t\t\t\t'INFO' =>\tsprintf(Fsb::$session->lang('adm_list_log_info'), htmlspecialchars($log['u_nickname']), Fsb::$session->print_date($log['log_time'])),\n\t\t\t));\n\t\t}\n\n\t\t// On affiche tous les comptes ?\n\t\t$show_all = (Http::request('show_all')) ? true : false;\n\n\t\t// Liste des comptes en attente de validation\n\t\t$sql = 'SELECT u_id, u_nickname, u_joined, u_register_ip\n\t\t\t\tFROM ' . SQL_PREFIX . 'users\n\t\t\t\tWHERE u_activated = 0\n\t\t\t\t\tAND u_confirm_hash = \\'.\\'\n\t\t\t\t\tAND u_id <> ' . VISITOR_ID . '\n\t\t\t\tORDER BY u_joined DESC\n\t\t\t\t' . (($show_all) ? '' : 'LIMIT 5');\n\t\t$result = Fsb::$db->query($sql);\n\t\twhile ($row = Fsb::$db->row($result))\n\t\t{\n\t\t\tFsb::$tpl->set_blocks('wait', array(\n\t\t\t\t'NICKNAME' =>\t\thtmlspecialchars($row['u_nickname']),\n\t\t\t\t'JOINED_IP' =>\t\tsprintf(Fsb::$session->lang('adm_joined_ip'), Fsb::$session->print_date($row['u_joined']), $row['u_register_ip']),\n\n\t\t\t\t'U_EDIT' =>\t\t\tsid(ROOT . 'index.' . PHPEXT . '?p=modo&amp;module=user&amp;id=' . $row['u_id']),\n\t\t\t\t'U_VALIDATE' =>\t\tsid('index.' . PHPEXT . '?mode=validate&amp;id=' . $row['u_id']),\n\t\t\t));\n\t\t}\n\t\tFsb::$db->free($result);\n\n\t\t// Liste des membres en ligne\n\t\t$sql = 'SELECT s.s_id, s.s_ip, s.s_page, s.s_user_agent, u.u_nickname, u.u_color, u.u_activate_hidden, b.bot_id, b.bot_name\n\t\t\tFROM ' . SQL_PREFIX . 'sessions s\n\t\t\tLEFT JOIN ' . SQL_PREFIX . 'users u\n\t\t\t\tON u.u_id = s.s_id\n\t\t\tLEFT JOIN ' . SQL_PREFIX . 'bots b\n\t\t\t\tON s.s_bot = b.bot_id\n\t\t\tWHERE s.s_time > ' . intval(CURRENT_TIME - 300) . '\n\t\t\tORDER BY u.u_auth DESC, u.u_nickname, s.s_id';\n\t\t$result = Fsb::$db->query($sql);\n\t\t$id_array = array();\n\t\t$ip_array = array();\n\t\t$f_idx = $t_idx = $p_idx = array();\n\t\t$logged = array('users' => array(), 'visitors' => array());\n\t\twhile ($row = Fsb::$db->row($result))\n\t\t{\n\t\t\tif (!is_null($row['bot_id']) || $row['s_id'] == VISITOR_ID)\n\t\t\t{\n\t\t\t\tif (in_array($row['s_ip'], $ip_array))\n\t\t\t\t{\n\t\t\t\t\tcontinue ;\n\t\t\t\t}\n\t\t\t\t$ip_array[] = $row['s_ip'];\n\t\t\t\t$type = 'visitors';\n\n\t\t\t\t// Les bots ont leur propre couleur\n\t\t\t\tif (!is_null($row['bot_id']))\n\t\t\t\t{\n\t\t\t\t\t$row['u_color'] = 'class=\"bot\"';\n\t\t\t\t\t$row['u_nickname'] = $row['bot_name'];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (in_array($row['s_id'], $id_array))\n\t\t\t\t{\n\t\t\t\t\tcontinue ;\n\t\t\t\t}\n\t\t\t\t$id_array[] = $row['s_id'];\n\t\t\t\t$type = 'users';\n\t\t\t}\n\n\t\t\t// Position du membre sur le forum\n\t\t\t$id = null;\n\t\t\t$method = 'forums';\n\t\t\tif (strpos($row['s_page'], 'admin/') !== false)\n\t\t\t{\n\t\t\t\t$location = Fsb::$session->lang('adm_location_adm');\n\t\t\t\t$url = 'admin/index.' . PHPEXT;\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$page = basename($row['s_page']);\n\t\t\t\t$url = '';\n\t\t\t\t$location = '';\n\t\t\t\tif (preg_match('#^index\\.' . PHPEXT . '\\?p=([a-z0-9_]+)(&.*?)*$#', $page, $match) || preg_match('#^(forum|topic|sujet)-([0-9]+)-([0-9]+)\\.html$#i', $page, $match))\n\t\t\t\t{\n\t\t\t\t\t$url = $match[0];\n\t\t\t\t\tswitch ($match[1])\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 'forum' :\n\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_forum');\n\t\t\t\t\t\t\tif (count($match) == 4)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$id = $match[2];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpreg_match('#f_id=([0-9]+)#', $page, $match);\n\t\t\t\t\t\t\t\t$id = (isset($match[1])) ? $match[1] : null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ($id) $f_idx[] = $id;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 'topic' :\n\t\t\t\t\t\tcase 'sujet' :\n\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_topic');\n\t\t\t\t\t\t\tif (count($match) == 4)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$method = 'topics';\n\t\t\t\t\t\t\t\t$id = $match[2];\n\t\t\t\t\t\t\t\t$t_idx[] = $id;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (preg_match('#t_id=([0-9]+)#', $page, $match))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$method = 'topics';\n\t\t\t\t\t\t\t\t$id = (isset($match[1])) ? $match[1] : null;\n\t\t\t\t\t\t\t\tif ($id) $t_idx[] = $id;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$method = 'posts';\n\t\t\t\t\t\t\t\tpreg_match('#p_id=([0-9]+)#', $page, $match);\n\t\t\t\t\t\t\t\t$id = (isset($match[1])) ? $match[1] : null;\n\t\t\t\t\t\t\t\tif ($id) $p_idx[] = $id;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 'post' :\n\t\t\t\t\t\t\tpreg_match('#mode=([a-z_]+)#', $page, $mode);\n\t\t\t\t\t\t\tpreg_match('#id=([0-9]+)#', $page, $match);\n\t\t\t\t\t\t\t$id = (isset($match[1])) ? $match[1] : null;\n\t\t\t\t\t\t\tswitch ($mode[1])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcase 'topic' :\n\t\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_post_new');\n\t\t\t\t\t\t\t\t\tif ($id) $f_idx[] = $id;\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'reply' :\n\t\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_post_reply');\n\t\t\t\t\t\t\t\t\tif ($id) $t_idx[] = $id;\n\t\t\t\t\t\t\t\t\t$method = 'topics';\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'edit' :\n\t\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_post_edit');\n\t\t\t\t\t\t\t\t\tif ($id) $p_idx[] = $id;\n\t\t\t\t\t\t\t\t\t$method = 'posts';\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'mp' :\n\t\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_mp_write');\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'calendar_add' :\n\t\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_calendar_event');\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'calendar_edit' :\n\t\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_calendar_event_edit');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tif (Fsb::$session->lang('adm_location_' . $match[1]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$location = Fsb::$session->lang('adm_location_' . $match[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!$location)\n\t\t\t\t{\n\t\t\t\t\t$location = Fsb::$session->lang('adm_location_index');\n\t\t\t\t\t$url = 'index.' . PHPEXT;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$logged[$type][] = array(\n\t\t\t\t'nickname' =>\t\tHtml::nickname($row['u_nickname'], $row['s_id'], $row['u_color']),\n\t\t\t\t'agent' =>\t\t\t$row['s_user_agent'],\n\t\t\t\t'ip' =>\t\t\t\t$row['s_ip'],\n\t\t\t\t'location' =>\t\t$location,\n\t\t\t\t'url' =>\t\t\tsid(ROOT . $url),\n\t\t\t\t'method' =>\t\t\t$method,\n\t\t\t\t'id' =>\t\t\t\t$id,\n\t\t\t);\n\n\n\t\t}\n\t\tFsb::$db->free($result);\n\n\t\t// On recupere une liste des forums pour connaitre la position du membre sur le forum\n\t\t$forums = array();\n\t\tif ($f_idx)\n\t\t{\n\t\t\t$sql = 'SELECT f.f_id, f.f_name, cat.f_id AS cat_id, cat.f_name AS cat_name\n\t\t\t\t\tFROM ' . SQL_PREFIX . 'forums f\n\t\t\t\t\tLEFT JOIN ' . SQL_PREFIX . 'forums cat\n\t\t\t\t\t\tON f.f_cat_id = cat.f_id\n\t\t\t\t\tWHERE f.f_id IN (' . implode(', ', $f_idx) . ')';\n\t\t\t$result = Fsb::$db->query($sql, 'forums_');\n\t\t\t$forums = Fsb::$db->rows($result, 'assoc', 'f_id');\n\t\t}\n\n\t\t// On recupere une liste des sujets pour connaitre la position du membre sur le forum\n\t\t$topics = array();\n\t\tif ($t_idx)\n\t\t{\n\t\t\t$sql = 'SELECT f.f_id, f.f_name, cat.f_id AS cat_id, cat.f_name AS cat_name, t.t_id, t.t_title\n\t\t\t\t\tFROM ' . SQL_PREFIX . 'topics t\n\t\t\t\t\tLEFT JOIN ' . SQL_PREFIX . 'forums f\n\t\t\t\t\t\tON f.f_id = t.f_id\n\t\t\t\t\tLEFT JOIN ' . SQL_PREFIX . 'forums cat\n\t\t\t\t\t\tON f.f_cat_id = cat.f_id\n\t\t\t\t\tWHERE t.t_id IN (' . implode(', ', $t_idx) . ')';\n\t\t\t$result = Fsb::$db->query($sql, 'forums_');\n\t\t\t$topics = Fsb::$db->rows($result, 'assoc', 't_id');\n\t\t}\n\n\t\t// On recupere une liste des messages pour connaitre la position du membre sur le forum\n\t\t$posts = array();\n\t\tif ($p_idx)\n\t\t{\n\t\t\t$sql = 'SELECT f.f_id, f.f_name, cat.f_id AS cat_id, cat.f_name AS cat_name, p.p_id, t.t_id, t.t_title\n\t\t\t\t\tFROM ' . SQL_PREFIX . 'posts p\n\t\t\t\t\tLEFT JOIN ' . SQL_PREFIX . 'topics t\n\t\t\t\t\t\tON p.t_id = t.t_id\n\t\t\t\t\tLEFT JOIN ' . SQL_PREFIX . 'forums f\n\t\t\t\t\t\tON f.f_id = p.f_id\n\t\t\t\t\tLEFT JOIN ' . SQL_PREFIX . 'forums cat\n\t\t\t\t\t\tON f.f_cat_id = cat.f_id\n\t\t\t\t\tWHERE p.p_id IN (' . implode(', ', $p_idx) . ')';\n\t\t\t$result = Fsb::$db->query($sql, 'forums_');\n\t\t\t$posts = Fsb::$db->rows($result, 'assoc', 'p_id');\n\t\t}\n\n\t\t// On affiche les membres en ligne\n\t\tforeach ($logged AS $type => $list)\n\t\t{\n\t\t\tif ($list)\n\t\t\t{\n\t\t\t\tFsb::$tpl->set_blocks('logged', array(\n\t\t\t\t\t'TITLE' =>\t\tFsb::$session->lang('adm_list_logged_' . $type),\n\t\t\t\t));\n\n\t\t\t\tforeach ($list AS $u)\n\t\t\t\t{\n\t\t\t\t\t// On definit si on cherche la liste des forums dans $forums ou $topics\n\t\t\t\t\t$m = $u['method'];\n\t\t\t\t\t$data_exists = ($u['id'] && isset(${$m}[$u['id']])) ? true : false;\n\t\t\t\t\t$topic_exists = ($data_exists && isset(${$m}[$u['id']]['t_title'])) ? true : false;\n\n\t\t\t\t\tFsb::$tpl->set_blocks('logged.u', array(\n\t\t\t\t\t\t'NICKNAME' =>\t\t$u['nickname'],\n\t\t\t\t\t\t'AGENT' =>\t\t\t$u['agent'],\n\t\t\t\t\t\t'IP' =>\t\t\t\t$u['ip'],\n\t\t\t\t\t\t'LOCATION' =>\t\t$u['location'],\n\t\t\t\t\t\t'URL' =>\t\t\t$u['url'],\n\t\t\t\t\t\t'CAT_NAME' =>\t\t($data_exists) ? ${$m}[$u['id']]['cat_name'] : null,\n\t\t\t\t\t\t'FORUM_NAME' =>\t\t($data_exists) ? ${$m}[$u['id']]['f_name'] : null,\n\t\t\t\t\t\t'TOPIC_NAME' =>\t\t($topic_exists) ? Parser::title(${$m}[$u['id']]['t_title']) : '',\n\t\t\t\t\t\t'U_CAT' =>\t\t\t($data_exists) ? sid(ROOT . 'index.' . PHPEXT . '?p=index&amp;cat=' . ${$m}[$u['id']]['cat_id']) : null,\n\t\t\t\t\t\t'U_FORUM' =>\t\t($data_exists) ? sid(ROOT . 'index.' . PHPEXT . '?p=forum&amp;f_id=' . ${$m}[$u['id']]['f_id']) : null,\n\t\t\t\t\t\t'U_TOPIC' =>\t\t($topic_exists) ? sid(ROOT . 'index.' . PHPEXT . '?p=topic&amp;t_id=' . ${$m}[$u['id']]['t_id']) : null,\n\t\t\t\t\t\t'U_IP' =>\t\t\tsid(ROOT . 'index.' . PHPEXT . '?p=modo&amp;module=ip&amp;ip=' . $u['ip']),\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// On verifie si le SDK n'a pas ete desactive\n\t\tif(intval(Fsb::$cfg->get('disable_sdk')))\n\t\t{\n\t\t\tFsb::$tpl->set_switch('sdk_disabled');\n\t\t}\n\n\t\tFsb::$tpl->set_vars(array(\n\t\t\t'FSB_SUPPORT' =>\t\t'http://www.fire-soft-board.com',\n\t\t\t'FSB_LANG_SUPPORT' =>\tFsb::$session->lang('fsb_lang_support'),\n\t\t\t'NEW_VERSION' =>\t\t(!is_last_version(Fsb::$cfg->get('fsb_version'), Fsb::$cfg->get('fsb_last_version'))) ? sprintf(Fsb::$session->lang('adm_fsb_new_version'), Fsb::$cfg->get('fsb_version'), Fsb::$cfg->get('fsb_last_version')) : null,\n\t\t\t'SHOW_ALL' =>\t\t\t$show_all,\n\t\t\t'ROOT_SUPPORT' => \t\tsprintf(Fsb::$session->lang('adm_root_support_active_explain'), 'index.' . PHPEXT . '?p=mods_manager'),\n\n\t\t\t'U_SHOW_ALL' =>\t\t\tsid('index.' . PHPEXT . '?show_all=true'),\n\t\t\t'U_CHECK_VERSION' =>\tsid('index.' . PHPEXT . '?mode=version'),\n\t\t));\n\t}", "public function admin_page()\n {\n echo $this->return_admin_page();\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function admin()\n {\n $this->template_admin->displayad('admin');\n }", "protected function indexAction() {}", "public function getIndexAdmin()\n {\n if (!$this->di->get(\"session\")->has(\"account\")) {\n $this->di->get(\"response\")->redirect(\"user/login\");\n }\n\n $title = \"Admin\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n\n $user = new User();\n\n $username = $this->di->get(\"session\")->get(\"account\");\n $user->username = $username;\n $user->setDb($this->di->get(\"db\"));\n $user->find(\"username\", $username);\n\n $allUsers = new User();\n $allUsers->setDb($this->di->get(\"db\"));\n\n $data = [\n \"users\" => $allUsers->findAll(),\n ];\n\n $view->add(\"user/adminIndex\", $data);\n\n $pageRender->renderPage([\"title\" => $title]);\n }", "public function admin_index() {\n\n if ($this->session->userdata('admin') == TRUE) {\n $this->load->view('admin_header');\n $this->load->view('admin_footer');\n } else {\n $this->load->view('admin_login');\n }\n }", "public function index( ){\n\t\tif( Auth::check() ){\n\t\t\treturn View::make('admin.index');\n\t\t} else {\n\t\t\treturn Redirect::route('login');\n\t\t}\n\t\t// return View::make( 'welcome' );\n\t}", "function admin_login() {\n\t\t$this->layout = \"admin\";\n\t\t\n\t}", "function admin_login() {\n\t\t$this->layout = \"admin\";\n\t\t\n\t}", "public function indexAction()\n {\n\t\techo 'Module Admin IndexController indexAction';\n\t\t\n }", "public function index() {\r\n self::acceso();\r\n $this->view->ver('login.php'); \r\n }", "public function index()\n\t{\n\t\t$this->login();\n }", "public function index(){\n require_once('views/layout_admin/header.php');\n require_once('views/layout_admin/navbar.php');\n require_once('views/layout_admin/sidebar.php'); \n require_once('views/factura/index.php');\n require_once('views/layout_admin/footer.php');\n }", "public function index()\n\t{\n\t\t$this->login();\n\t}", "function admin_index(){\r\r\n\t\t$this->layout='backend/backend';\r\r\n\t\t$this->set(\"title_for_layout\",SETTING);\r\r\n\t}", "public function index()\n\t{\n\t\tif(is_user_active('', FALSE))\n\t\t{\n\t\t\tredirect('dashboard');\n\t\t}\n\t\t\t\t\n\t\t$data['base_url'] = base_url();\n\t\t$data['view_file'] = \"login\";\n\t\t$this->template->load_admin_login_template($data);\n\t}", "static function adminGateKeeper() {\n if (!loggedIn() || !adminLoggedIn()) {\n new SystemMessage(translate(\"system_message:not_allowed_to_view\"));\n forward(\"home\");\n }\n }", "public function admin_page() {\n echo $this->generateView('main', []);\n }", "public function index(){ \n require_once 'views/layouts users/header.php';\n require_once 'views/admin/index.php';\n require_once 'views/layouts users/footer.php';\n }", "function index(){\n set_theme();\n A(\"Taskadmin/Fun\")->islogin();//检测是否登录\n $access = I('get.access','000000');\n A(\"Api/Fun\")->isAccess($access);//判断菜单权限\n $this->display();\n }", "function index(){\n\t\tredirect('');\n\t}" ]
[ "0.80117494", "0.79279083", "0.78584063", "0.78345674", "0.7780742", "0.77141345", "0.7694183", "0.76849246", "0.7630402", "0.76169395", "0.7600241", "0.75846857", "0.7542423", "0.7539707", "0.7526333", "0.75154996", "0.75071114", "0.7477684", "0.745288", "0.74127674", "0.7393781", "0.7382489", "0.73819065", "0.7374555", "0.73601377", "0.7359862", "0.73569906", "0.73402977", "0.73380995", "0.73380995", "0.7332447", "0.732647", "0.7305893", "0.7305893", "0.72945", "0.72885066", "0.72840166", "0.72770876", "0.72635543", "0.7254463", "0.7240495", "0.72356325", "0.72356224", "0.7234329", "0.7233599", "0.7222058", "0.7204752", "0.72005296", "0.7190283", "0.71875316", "0.7167462", "0.7162815", "0.7162196", "0.7153703", "0.71487635", "0.71469444", "0.71443194", "0.7139157", "0.7130404", "0.7124577", "0.71116525", "0.7109551", "0.7109049", "0.710483", "0.70952517", "0.70949256", "0.709406", "0.7092457", "0.7090716", "0.708307", "0.70762366", "0.70714784", "0.7070696", "0.7062469", "0.7060062", "0.70590883", "0.7057255", "0.70510536", "0.7047767", "0.70470756", "0.7046498", "0.70361525", "0.7035314", "0.7034625", "0.7028861", "0.70232844", "0.7020149", "0.7020149", "0.70199484", "0.70189226", "0.7014545", "0.7011748", "0.7009446", "0.7003941", "0.7003813", "0.70005757", "0.6997069", "0.6996729", "0.6986423", "0.6986276" ]
0.70978975
64
Se Verify::session() og Verify::userLoggedIn()
public static function sessionAndUserLoggedIn(){ Verify::session(); Verify::userLoggedIn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sessionAndAdminLoggedIn(){\n Verify::session();\n Verify::adminLoggedIn();\n }", "abstract protected function isUserLoggedIn() ;", "public function isLoggedIn();", "public function isLoggedIn();", "protected function isUserLoggedIn() {}", "protected function isUserLoggedIn() {}", "private function _logged_in()\n {\n /*if(someone is logged in)\n RETURN TRUE;*/\n }", "static function verifyLogin(){\r\n\r\n // check if there's a session\r\n if(session_id() == '' && !isset($_SESSION)){\r\n session_start();\r\n }\r\n\r\n // if session is started, check if a user is login or not\r\n if(isset($_SESSION[\"loggedin\"])){\r\n \r\n return true;\r\n }\r\n else{\r\n session_destroy();\r\n \r\n return false;\r\n }\r\n }", "public function verify()\r\n\t{\r\n\t\tif ($this->session->userdata('isLoggedIn'))\r\n\t\t{\r\n\t\t\tif ($this->session->userdata('tipe') == \"Admin\")\r\n\t\t\t{\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->load->view('blank');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->load->view('login');\r\n\t\t}\r\n\t}", "public function _check_login()\n {\n\n }", "public function loginCheck()\n\t{\n\t}", "public function verify()\n\t{\n\t\tif ($this->session->userdata('isLoggedIn'))\n\t\t{\n\t\t\tif ($this->session->userdata('tipe') == \"Admin\")\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->load->view('blank');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->load->view('login');\n\t\t}\n\t}", "function login_check() {\n global $logvar;\n session_start();\n $obj = new Cryptography();\n\n if (isset($_SESSION[\"login_user\"])) {\n $de_log_var = $obj->decoding($_SESSION[\"login_user\"]);\n if ($de_log_var == $logvar) {\n\n return true;\n\n } else {\n\n return false;\n }\n\n } else {\n return false;\n\n }\n /*check for real user end*/\n}", "public function verify()\n {\n UserModel::authentication();\n\n //get the session user\n $user = UserModel::user();\n\n $this->View->Render('verify/verify');\n }", "public function checkUsersSession(){\n\t}", "function checkLogin() { //Determine status of the user in current session\n\n\t//If a user is currently logged in\n\tif(isset($_SESSION['userID'])) {\n\n\t\tlogout(); //Display components to allow user to logout\n\n\t} else {\n\n\t\tlogin(); //Otherwise display components to allow a guest to login\n\n\t}\n\n}", "function verificar_login()\n {\n if (!isset($_SESSION['usuario'])) {\n $this->sign_out();\n }\n }", "private function compare_with_login()\n {\n }", "function loggedin() {return $this->login_state!=0;}", "public function loggedIn(){\r\n if (isset($_SESSION['user_session']))\r\n return true;\r\n else\r\n return false;\r\n }", "private function check_the_login(){\n \n if(isset($_SESSION['login_user'])){\n \n $this->login_user = $_SESSION['login_user'];\n $this->signed_in = true;\n \n }else{\n unset($this->login_user);\n $this->signed_in = false;\n }\n \n }", "function verify_login()\n{\n if (id_in_session())\n {\n return;\n }\n else\n {\n print_error_message('User is not logged in!');\n redirect('index.php');\n }\n}", "public function checkAuth();", "public function checkAuth();", "public function is_logged_in() {\n\n\t}", "private function check_login(){\n if (isset($_SESSION['email'])){\n $this->email=$_SESSION['email'];\n\t\t\t$this->role=$_SESSION['role'];\n\t\t\t$this->id=$_SESSION['id'];\n $this->signed_in=true;\n }\n else{\n unset($this->email);\n $this->signed_in=false;\n }\n }", "public static function check_session() {\n\t\t\t// get redirect_to_default\n\t\t\t$redirect_to_default = Cookie::get('redirect_to_default');\n\t\t\t\n\t\t\t// if empty redirect_to_default set from default settings\n\t\t\tif(empty($redirect_to_default)){$redirect_to_default = REDIRECT_TO_DEFAULT;}\n\t\t\t\t\t\t\n\t\t\t// check if auth token is submitted\n\t\t\tif(isset($_GET['authtoken']))\n\t\t\t{\n\t\t\t\t// check auth token\n\t\t\t\t$authtoken = Functions::encrypt_decrypt('decrypt', $_GET['authtoken'], \"\\x73\\x6f\\x6d\\x31\\x34\\x31\\x30\\x40\\x73\\x6f\\x6d\\x6e\\x65\\x74\\x69\\x63\\x73\");\n\t\t\t\t\t\n\t\t\t\t// get auth token\n\t\t\t\t$authtoken = json_decode($authtoken);\n\t\t\t\t\n\t\t\t\t// set active session\n\t\t\t\tif(!isset($authtoken->keep_session)){$authtoken->keep_session = true;}\n\t\t\t\t\n\t\t\t\t// unset login state\n\t\t\t\tif(!$authtoken->keep_session){self::set_state(false);}\n\t\t\t}\n\t\t\t\n\t\t\t// if session exists\n\t\t\tif(!self::get_state())\n\t\t\t{\t\n\t\t\t\t// check requested url\n\t\t\t\tif(trim(REQUEST_URI) != trim(APP_PATH.'/'.$redirect_to_default))\n\t\t\t\t{\t\n\t\t\t\t\t// get return url\t\t\t\t\t\n\t\t\t\t\t$returnUrl = urlencode(ltrim(str_replace(APP_PATH, '', REQUEST_URI), '/'));\n\t\t\t\t\t\n\t\t\t\t\t// check if auth token is submitted\n\t\t\t\t\tif(isset($_GET['authtoken']))\n\t\t\t\t\t{\n\t\t\t\t\t\t/*\n // get guest user info\n\t\t\t\t\t\t$guest_user = ORM::for_table('sys_user_login');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user pass is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_pass))\n\t\t\t\t\t\t$guest_user = $guest_user->where('user_pass', $authtoken->auth_pass);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user company is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_comp))\n\t\t\t\t\t\t$guest_user = $guest_user->where('sys_company_id', $authtoken->auth_comp);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user name is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_name))\n\t\t\t\t\t\t\t$guest_user = $guest_user->where('user_name', $authtoken->auth_name)->find_one();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$guest_user = $guest_user->find_one($authtoken->auth_user);\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// check if user exists\n\t\t\t\t\t\tif(is_object($guest_user))\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t// start session and set session values\n\t\t\t\t\t\t\tself::set_state(true);\n\t\t\t\t\t\t\tself::set('user_id', $guest_user->id);\n\t\t\t\t\t\t\tself::set('user_name', $guest_user->user_name);\n\t\t\t\t\t\t\tself::set('first_name', $guest_user->first_name);\n\t\t\t\t\t\t\tself::set('last_name', $guest_user->last_name);\n\t\t\t\t\t\t\tself::set('full_name', trim($guest_user->first_name.' '.$guest_user->last_name));\n\t\t\t\t\t\t\tself::set('email', $guest_user->email);\n\t\t\t\t\t\t\tself::set('mobile', $guest_user->mobile);\n\t\t\t\t\t\t\tself::set('company_id', (empty($guest_user->sys_company_id) ? $authtoken->company_id : $guest_user->sys_company_id));\n\t\t\t\t\t\t\tself::set('is_super_admin', $guest_user->is_super_admin);\t\n\t\t\t\t\t\t\tself::set('is_guest', ($authtoken->auth_user==GUEST_ID ? 1 : 0));\t\n\t\t\t\t\t\t\tself::set('last_login', $guest_user->last_login);\t\n\t\t\t\t\t\t\tself::set('logged_with_master_password', false);\n\t\t\t\t\t\t\tself::set('authtoken', $authtoken);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.'/authtoken_error?authtoken='.$_GET['authtoken']);\n\t\t\t\t\t\t}\n */\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.(empty($returnUrl) ? '' : '?returnUrl='.$returnUrl));\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else\n\t\t\t{\n\t\t\t\t// check if auth token is submitted\n\t\t\t\tif(isset($_GET['authtoken']))\n\t\t\t\t{\n\t\t\t\t\t// check for valid auth user\n\t\t\t\t\tif($authtoken->auth_user!=GUEST_ID)\n\t\t\t\t\t{\n\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.'/authtoken_error?authtoken='.$_GET['authtoken']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}", "public function simple_verification()\r\n\t{\r\n\t\t$this->is_logged_in();\r\n\r\n\t\techo $this->load->view('examples/page_header', '', TRUE);\r\n\r\n\t\techo '<p>';\r\n\t\tif( ! empty( $this->auth_role ) )\r\n\t\t{\r\n\t\t\techo $this->auth_role . ' logged in!<br />\r\n\t\t\t\tUser ID is ' . $this->auth_user_id . '<br />\r\n\t\t\t\tAuth level is ' . $this->auth_level . '<br />\r\n\t\t\t\tUsername is ' . $this->auth_username;\r\n\r\n\t\t\tif( $http_user_cookie_contents = $this->input->cookie( config_item('http_user_cookie_name') ) )\r\n\t\t\t{\r\n\t\t\t\t$http_user_cookie_contents = unserialize( $http_user_cookie_contents );\r\n\r\n\t\t\t\techo '<br />\r\n\t\t\t\t\t<pre>';\r\n\r\n\t\t\t\tprint_r( $http_user_cookie_contents );\r\n\r\n\t\t\t\techo '</pre>';\r\n\t\t\t}\r\n\r\n\t\t\tif( config_item('add_acl_query_to_auth_functions') && $this->acl )\r\n\t\t\t{\r\n\t\t\t\techo '<br />\r\n\t\t\t\t\t<pre>';\r\n\r\n\t\t\t\tprint_r( $this->acl );\r\n\r\n\t\t\t\techo '</pre>';\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * ACL usage doesn't require ACL be added to auth vars.\r\n\t\t\t * If query not performed during authentication,\r\n\t\t\t * the acl_permits function will query the DB.\r\n\t\t\t */\r\n\t\t\tif( $this->acl_permits('general.secret_action') )\r\n\t\t\t{\r\n\t\t\t\techo '<p>ACL permission grants action!</p>';\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\techo 'Nobody logged in.';\r\n\t\t}\r\n\r\n\t\techo '</p>';\r\n\r\n\t\techo $this->load->view('examples/page_footer', '', TRUE);\r\n\t}", "function user_loggedin(){\n\t$app = \\Jolt\\Jolt::getInstance();\n\tif( !$app->store('user') ){\n\t\treturn false;\n\t}\n\treturn true;\n//\t$app->redirect( $app->getBaseUri().'/login',!$app->store('user') );\n}", "function confirmAuth()\n{\n $login = $this->session->get(USER_LOGIN_VAR);\n$password = $this->session->get(USER_PASSW_VAR);\n$hashKey = $this->session->get('login_hash');\nif (md5($this->hashKey . $login . $password) != $hashKey)\n{\n$this->logout(true);\n}\n}", "public function verify_login()\n\t{\n\t\t//set form rules to ensure login fields are not empty\n\t\t$this->load->library('form_validation');\n\t\t$this->form_validation->set_rules('username','Username','required|callback_verify_userinfo');\n\t\t$this->form_validation->set_rules('password','Password','required');\n\t\t\n\t\t//if login form entries pass validation test\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\t//save session data in an array\n\t\t\t$sessiondata = array('username' => $this->input->post('username'), 'is_logged_in' => 1);\n\t\t\t//create session with session data\n\t\t\t$this->session->set_userdata($sessiondata);\n\t\t\t\n\t\t\t$role=$this->session->userdata('role');\n\t\t\t\n\t\t\t//run homepage function of main controller\n\t\t\tredirect('main/home');\n\t\t}\n\t\telse \n\t\t{\n\t\t\t//reload login page\n\t\t\t$this->load->view('login_view');\n\t\t}\n\t}", "function user_login_check()\n{\n\t$Feul = new Feul;\n\t$Feul->checkLogin();\n\t/* \n\tIf Logout Link Is Clicked:\n\tLog Client Out (End Session) \n\t*/\n\tif(isset($_GET['logout']) && empty($_POST['login-form']))\n\t{\n\t\tif(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']))\n\t\t{\n\t\t\t$_SESSION = array(); \n\t\t\tsession_destroy();\n\t\t}\n\t}\t\n}", "function loggedIn(){\r\n\tif(Session::exists('loggedIn') && Session::get('loggedIn')==1){\r\n\t\treturn TRUE;\r\n\t}\r\n\telse\r\n\t\treturn FALSE;\r\n}", "public function check_login()\n\t{\n\t\tif(isset($_SESSION[\"user_id\"]))\n\t\t{\n\t\t $this->_user_id = $_SESSION[\"user_id\"];\n\t\t\t$this->_client = $_SESSION[\"client\"];\n\t\t\t$this->_loged_in = true;\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_loged_in = false;\n\t\t\t$this->_client = false;\n\t\t\tunset($this->_user_id);\n\t\t}\n\t}", "function checkLoginStatus($controller)\r\n{\r\n $result = FALSE;\r\n \r\n //cookie set and visit pages directly without login\r\n if(isset($_COOKIE[\"loginName\"]) && isset($_COOKIE[\"secret\"]) && !isset($_SESSION[\"loginUser\"])) {\r\n //check cookie validity\r\n $loginName = $_COOKIE[\"loginName\"];\r\n $secret = $_COOKIE[\"secret\"];\r\n $handler = new UserHandler();\r\n $currentUser = $handler->findLoginUserBySecret($loginName, $secret);\r\n \r\n //pass checking, recreate session\r\n if($currentUser){\r\n $_SESSION[\"loginUser\"] = $currentUser;\r\n $result = True;\r\n }\r\n \r\n }\r\n \r\n if ($controller != \"LogIn\" && $controller != \"Join\" && $controller != \"Default\"\r\n && !isset($_SESSION[\"loginUser\"])) {\r\n //no login & visit protected pages\r\n $result = FALSE;\r\n }\r\n else {\r\n $result = True;\r\n }\r\n return $result;\r\n}", "function middleware_Loggedin()\n{\n return isset($_SESSION['auth']);\n}", "public function isLogin();", "private function isLoggedIn()\n {\n return isset($_SESSION['user']); \n }", "public function check_login(){\n\t\tsession_start();\n\t\t$user = new InterfacePersonRepo;\n\t\t$tmp = $user->getRepository(Input::get('txtUsername'));\n\t\tif($tmp==NULL){\n\t\t\treturn View::make('alert/authen/alertLogin');\n\t\t}else{\n\t\t\tif (Hash::check(Input::get('txtPassword'), $tmp->getPassword())){\n\t\t\t\t$_SESSION[\"id\"] = $tmp->getUserID();\n\t\t\t\t$_SESSION[\"Username\"] = $tmp->getUsername();\n\t\t\t\t$_SESSION[\"Name\"] = $tmp->getName();\n\t\t\t\t$_SESSION[\"Surname\"] = $tmp->getSurname();\n\t\t\t\t$_SESSION[\"Address\"] = $tmp->getAddress();\n\t\t\t\t$_SESSION[\"Email\"] = $tmp->getEmail();\n\t\t\t\t$_SESSION[\"Phone\"] = $tmp->getPhone();\n\t\t\t\t$_SESSION[\"Status\"] = $tmp->getStatus();\n\t\t\t\t$_SESSION[\"Filename\"] = $tmp->getPath_file();\n\t\t\t\t$_SESSION[\"Fine\"] = $tmp->getFine();\n\n\t\t\t\tsession_write_close();\n\t\t\t\treturn Redirect::to(\"/main\");\n\t\t\t}else{\n\t\t\t\treturn View::make('alert/authen/alertLogin');\n\t\t\t}\n\t\t}\n\t}", "public function loginVerify(){\n\t\t$login = Validation::verify($_POST['login']);\n\t\t$password = Validation::verify($_POST['password']);\n\t\t$_SESSION['temp'] = $login;\n\t\t$loginData = '';\n\t\t$this->load->model('mainModel');\n\t\t$dbModel = new mainModel();\n\t\t$result = $dbModel->loginVerify($login, $password);\n\t\tif(($result->num_rows)==1){\n\t\t\t$_SESSION['temp'] = '';\n\t\t\t$loginData = $result->fetch_assoc();\n\t\t\tSession::setSession($loginData);\n\t\t\t$this->load->redirectIn();\n\t\t}\n\t\telse{\n\t\t\t$this->load->redirectIn('main/index/error/');\n\t\t}\n\t}", "function isLoggedIn(){\r\n APP::import('Component','Auth');\r\n $auth = new AuthComponent;\r\n $auth ->Session = $this->Session;\r\n $user = $auth->user();\r\n return !empty($user);\r\n \r\n }", "function isLogged();", "public function logged_in()\r\n\t{\r\n\t\treturn (bool) $this->session->userdata('identity');\r\n\t}", "public function verifySession()\n\t{\n\t\t$userData = array(\n\t\t\t'email' \t=> $this->input->post('email'),\n\t\t\t'password' \t=> sha1($this->input->post('password'))\n \t\t);\n\n\t\treturn $this->assistant_model->verifySession($userData);\n\t}", "public function check_login(){\n\t\t\tif( isset( $_SESSION['user_id'] ) ) {\n\t\t\t\t$this->user_id = $_SESSION['user_id'];\n\t\t\t\t$this->logged_in = true;\n\t\t\t} else {\n\t\t\t\tunset( $this->user_id );\n\t\t\t\t$this->logged_in = false;\n\t\t\t}\n\t\t}", "function is_logged_in()\r\n{\r\n $ini = get_instance();\r\n if (!$ini->session->userdata('nim')) {\r\n redirect('auth');\r\n }\r\n}", "function isLoggedIn(){\n return $this->auth->isLoggedIn();\n }", "function isLoggedIn(): bool\n{\n return isset($_SESSION['user']);\n}", "function checkLogin() {\n\t\t$fingerprint = fingerprint();\n\t\tsession_start();\n\t\tif (!isset($_SESSION['log_user']) || $_SESSION['log_fingerprint'] != $fingerprint) logout();\n\t\tsession_regenerate_id();\n\t}", "function logged_in() {\n\t\treturn isset($_SESSION['USERID']);\n \n\t}", "function logged_in()\n{\n $CI=get_instance();\n $info=$CI->session->userdata('logged_in');\n if(!$info)\n {\n return false;\n }else\n {\n return true;\n }\n}", "function isAuthenticated(){\n return Session::has('SESSION_USER_NAME') ? true:false;\n}", "function isLoggedIn()\n{\n if($_SESSION['valid']) return true;\n else return false;\n}", "private function checkThisSession(){\n// $checkUser = $_main->checkUserIfAdmin();\n// if ($checkUser == false){\n// return $this->redirectToRoute('login', array('status'=>'3'));\n// //return $this->redirect('../login?status=3');\n// }\n\n $_main = new Main();\n $loggedIn = $_main->checkUserIsLoggedIn();\n if($loggedIn == true){\n $checkUser = $_main->checkUserIfAdmin();\n if ($checkUser == false){\n // return $this->redirect('./login?status=3');\n return $this->redirectToRoute('login', array('status'=>'2'));\n }\n } else {\n return $this->redirectToRoute('login', array('status'=>'3'));\n }\n }", "function checkLogin () {\r\n //check is session has user\r\n if (isset($_SESSION['user'])) {\r\n //check if the credentials match\r\n if (verifyUser($_SESSION['user']['name'], $_SESSION['user']['hash'])) {\r\n return true;\r\n }\r\n }\r\n //returns false by default\r\n return false;\r\n}", "function authenticated() {\n return $_SESSION['auth'] == md5(config('security.password.hash') . $_SESSION['user']['id']);\n}", "private function checkLogin() {\n\t\t$session = $this->Session->read ( 'sessionLogado' );\n\t\tif (empty ( $session )) {\n\t\t\t$this->Session->write ( 'sessionLogado', false );\n\t\t}\n\t\t\n\t\tif ($this->params ['plugin'] == 'users') {\n\t\t\tif ($this->params ['controller'] == 'users' && $this->params ['action'] == 'home' && ! $session == true) {\n\t\t\t\t$this->redirect ( array (\n\t\t\t\t\t\t'controller' => 'users',\n\t\t\t\t\t\t'plugin' => 'users',\n\t\t\t\t\t\t'action' => 'login' \n\t\t\t\t) );\n\t\t\t}\n\t\t\tif ($this->params ['controller'] == 'users' && $this->params ['action'] == 'signatures' && ! $session == true) {\n\t\t\t\t$this->redirect ( array (\n\t\t\t\t\t\t'controller' => 'users',\n\t\t\t\t\t\t'plugin' => 'users',\n\t\t\t\t\t\t'action' => 'login' \n\t\t\t\t) );\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "function authenticated()\n{\n if (isset($_SESSION['sessionToken'])) {\n return true;\n }\n}", "public function checkFirstLogin();", "public function login();", "public function login();", "function check_login()\n // Make sure user is logged in. Redirect to login page if not.\n {\n if (!isset ($_SESSION['uid']) || !$_SESSION['uid'] || $_SESSION['ip']!=allIPs() || time()>=$_SESSION['expires_on'])\n {\n\t\t\theader(\"location: ../ressources/controleur/action/logout.php\");\n }\n $_SESSION['expires_on']=time()+INACTIVITY_TIMEOUT; // User accessed a page : Update his/her session expiration date.\n }", "function auth_isLoggedIn()\n{\n return ! auth_isAnonymous();\n}", "function verificalogin(){\n if(!isset($this->session->datosusu)){\n return true;\n }\n }", "function is_logged_in()\n{\n return isset($_SESSION['user']);\n}", "public function isAuthenticated()\r\n {\r\n if (!isset($_SESSION[\"ed\"])) {\r\n echo '<meta http-equiv=\"refresh\" content=\"0; url=' . (new CodeFlirt\\Handlers)->path(\"login\") . '\">';\r\n exit(0);\r\n }\r\n }", "public function isBackendUserLoggedIn() {}", "public function verify(){\n \tif(is_null($this->session->userdata('username')) && is_null($this->session->userdata('password'))){\n\t\t\tredirect(base_url());\n\t\t}\n\t\telse{\n\t\t\tif($this->admin_model->verify_user($this->session->userdata('username'),$this->session->userdata('password'))==false){\n\t\t\t\tredirect(base_url());\n\t\t\t}\n\t\t}\n }", "function is_login()\n {\n }", "function check_valid_user()\n// see if somebody is logged in and notify them if not\n{\n if (isset($_SESSION['valid_user'])) {\n \n return true;\n \n \n } else {\n // they are not logged in \n\n \n return false;\n // exit;\n \n }\n}", "function logged_in() {\r\n\t\treturn isset($_SESSION[\"admin_id\"]);\r\n\t}", "public function isLoggedIn()\n {\n return true;\n }", "function auth()\n\t{\n\t\t$_aok_ = $_COOKIE['_aok_'];\n\t\tif (isset($_aok_))\n\t\t{\n\t\t\t$query = mysql_query(\"SELECT sessionId FROM auth WHERE sessionId = '$_aok_'\");\n\t\t\tif (mysql_num_rows($query) > 0)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function checkLoggedIn(){\n\tif(isset($_SESSION['access_token']))return true;\n\telse return false;\n}", "function check_valid_user()\n {\n\t echo \"<hr />\";\n\t session_start();\n if(isset($_SESSION['valid_user']))\n\t echo \"Logged in as '\".$_SESSION['valid_user'].\"'<br/>\";\n\t else\n\t {\n\t //do_html_header('Problem:');\n\t\t echo \"You are not logged in.<br />\";\n\t\t do_html_url('login.php','Login');\n\t\t do_html_footer();\n\t\t exit;\n\t }\n }", "function logged_in() {\n\t\n\treturn isset( $_SESSION['user_id'] );\n}", "static public function isLoggedIn(){\n \treturn (self::getInstance()->getId()>1);\n }", "function checkSession()\r\n {\r\n if (!$this->Session->check('User'))\r\n {\r\n \t// Force the user to login\r\n $this->redirect('/user/login');\r\n exit();\r\n }\r\n }", "public function checkAuthentication() {}", "function loggedin() {\n return isset($_SESSION['username']);\n}", "function logged_in() {\n\treturn isset($_SESSION['admin_id']);\n}", "public function authUser(){\n if(!isset($this->sessionBool) || empty($this->sessionBool)){\n die($this->alerts->ACCESS_DENIED);\n }else{\n if(!$this->sessionBool){\n die($this->alerts->ACCESS_DENIED);\n }\n } \n }", "public static function check_log_in ()\n {\n session_start();\n\n if (!$_SESSION['user_data']) {\n header('Location: ./../index.php');\n exit;\n }\n }", "public function verifySession() {\n\t\t$this->reload();\n\t\tif ($this->getSession() == session_id())\n\t\t\treturn true;\n\t\telse {\n\t\t\tif($_SESSION[\"loginUser\"])\n\t\t\t\tunset($_SESSION[\"loginUser\"]);\n\t\t\treturn false;\n\t\t}\n\t}", "protected function loginIfRequested() {}", "public function isAuthenticated(){\n return $_SESSION['loggedIn'];\n }", "function isLoggedIn() {\n\tif(empty($_SESSION['valid'])) return false;\n\t\n elseif($_SESSION['valid']==1)\n return true;\n\n return false;\n}", "function getUserIsLoggedIn() {\r\n\r\n // For now, just return false\r\n return false;\r\n}", "public function loggedin() {\r\n\t\t// check if user is logged in\r\n\t\t$session_value = $this->session->userdata($this->sess_login_key);\r\n\t\tif (is_array($this->decode_session_value($session_value))) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t$this->logout();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function is_logged_in()\r\n{\r\n return isset($_SESSION['user_id']) || isset($_SESSION['pseudo']); //booleen : true or false. if one of them good : true\r\n}", "public function loggedin() {\n\n return ( bool ) $this->session->userdata( 'loggedin' );\n }", "function checkSession() \n {\n if (!$this->Session->check('User')) \n { \n // Force the user to login \n $this->redirect('/homes'); \n exit(); \n } \n }", "function checkSession()\n {\n if( !$this->session->userdata( 'logged_in' ) )\n redirect( 'login' );\n\n if ( $this->session->userdata( 'level' ) != 'guidance' )\n redirect( 'standard/unauthorized' );\n }", "function check_valid_user() {\n if (isset($_SESSION['valid_user'])) {\n echo \"Logged in as \".$_SESSION['valid_user'].\".<br />\";\n } else {\n // they are not logged in\n do_html_heading('Problem:');\n echo 'You are not logged in.<br />';\n do_html_url('login.php', 'Login');\n do_html_footer();\n exit;\n }\n}", "function Pico_VerifySession()\n{\n\tglobal $db;\n\n\t$check = $db->force_multi_assoc('SHOW TABLES LIKE ?', PICO_SESSIONS);\n\tif (!is_array($check)) \n\t{\n\t\t$session_table = PICO_SESSIONS;\n\t\t$db->run(<<<SQL\nCREATE TABLE IF NOT EXISTS `$session_table` (\n `session_id` varchar(100) NOT NULL,\n `user_id` bigint(11) NOT NULL,\n `expiration` bigint(11) NOT NULL,\n `auth_token` varchar(50) NOT NULL\n);\nSQL\n);\n\t}\n\n\tif (!isset($_COOKIE['keep_session'])) { return 0; }\n\n\t$session_data = unserialize(base64_decode($_COOKIE['keep_session']));\n\tif (!is_array($session_data)) { exit(); } // hack attempt\n\n\t// delete old sessions\n\t$db->run('DELETE FROM `'.PICO_SESSIONS.'` WHERE `expiration`<?', time());\n\n\t// see if a valid session\n\t$user_id = $db->result('SELECT `user_id` FROM `'.PICO_SESSIONS.'` WHERE `session_id`=? AND `auth_token`=?', \n\t\t$session_data['session_id'], decrypt($session_data['auth_token'])\n\t);\n\n\tif (is_numeric($user_id))\n\t{\n\t\t$user_data = $db->assoc('SELECT * FROM `'.DB_USER_TABLE.'` WHERE `id`=?', $user_id);\n\t\t$user_ip = getenv('REMOTE_ADDR');\n\t\t$db->run('UPDATE `'.DB_USER_TABLE.'` SET `last_login`=?, `last_ip`=? WHERE `id`=?', time(), $user_ip, $user_id);\n\n\t\treturn $user_data['id'];\n\n\t\t//define('USER_ACCESS', $user_data['access']);\n\t\t//define('USER_ID', $user_data['id']);\n\t}\n\telse\n\t{\n\t\t// destroy cookie\n\t\t$domain = CookieDomain();\n\t\tsetcookie('keep_session', '', time() - 3600, '/', $domain);\n\n\t\treturn 0;\n\t\t//define('USER_ACCESS', 0);\n\t}\n}", "public function checkLogin() {\n\n /* Check if user has been remembered */\n if (isset($_COOKIE['cookname']) && isset($_COOKIE['cookid'])) {\n $this->username = $_SESSION['username'] = $_COOKIE['cookname'];\n $this->userid = $_SESSION['user_id'] = $_COOKIE['cookid'];\n }\n\n /* Username and userid have been set and not guest */\n if (isset($_SESSION['username']) && isset($_SESSION['user_id']) &&\n $_SESSION['username'] != GUEST_NAME) {\n /* Confirm that username and userid are valid */\n if ($this->connection->confirmUserID($_SESSION['username'], $_SESSION['user_id']) != 0) {\n /* Variables are incorrect, user not logged in */\n unset($_SESSION['username']);\n unset($_SESSION['user_id']);\n return false;\n }\n\n /* User is logged in, set class variables */\n $this->userinfo = $this->connection->getUserInfo($_SESSION['username']);\n $this->username = $this->userinfo['username'];\n $this->userid = $this->userinfo['user_id'];\n $this->userlevel = $this->userinfo['userlevel'];\n return true;\n }\n /* User not logged in */ else {\n return false;\n }\n }", "public function checkLoggedIn()\n {\n if(!isset($_SESSION['user_id']))\n {\n redirect('pages/view/home');\n exit;\n }\n else\n {\n return $user_id=$_SESSION['user_id'];\n }\n }", "function is_logged_in()\n\t{\n\t\t//echo \"hello\"; $this->ci->session->userdata('DX_logged_in'); die;\n\t\treturn $this->ci->session->userdata('ciauth_logged_in');\n\t}", "function checkLogin() {\n /* Check if user has been remembered */\n if (isset($_COOKIE['cook_VenusetP_UserEmail']) && isset($_COOKIE['cook_Venueset_UserPassword'])) {\n $varUserEmail = $_COOKIE['cook_VenusetP_UserEmail'];\n $varUserPassword = $_COOKIE['cook_Venueset_UserPassword'];\n /* Confirm that username and password are valid */\n $arrUserFlds = array('pkUserID', 'UserEmail', 'UserPassword', 'UserFirstName');\n $varUserWhere = ' 1 AND UserEmail = \\'' . $varUserEmail . '\\' AND UserPassword = \\'' . md5(trim($varUserPassword)) . '\\'';\n //echo '<pre>';print_r($varUserWhere);exit;\n $arrUserList = $this->select(TABLE_USERS, $arrUserFlds, $varUserWhere);\n if (count($arrUserList) > 0) {\n /* $_SESSION['VenusetP_UserEmail'] = $arrUserList[0]['UserEmail'];\n $_SESSION['VenusetP_UserID'] = $arrUserList[0]['pkUserID'];\n $_SESSION['VenusetP_UserName'] = $arrUserList[0]['UserFirstName']; */\n }\n return true;\n } else {\n return false;\n }\n }", "public function verify()\n {\n $userName = $_POST['usuario'];\n $password = $_POST['password'];\n if(!empty($userName) && !empty($password)){\n $user = $this->model->getUser($userName);\n if((!empty($user)) && password_verify($password, $user[0]['password'])) {\n session_start();\n $_SESSION['usuario'] = $user[0]['nombre'];\n $_SESSION['LAST_ACTIVITY'] = time();\n $_SESSION['superAdmin']=$user[0]['superAdmin'];\n header('Location: '.HOME);\n die();\n // $this->controllerProduct->comparativa();\n }\n else{\n echo(\"User pass error\");\n }\n }\n }" ]
[ "0.8164314", "0.74357396", "0.74216634", "0.74216634", "0.73604894", "0.73604894", "0.73126495", "0.7282981", "0.7221229", "0.71809185", "0.71717423", "0.7168459", "0.7074229", "0.7067255", "0.70450217", "0.7032719", "0.7007882", "0.7001134", "0.69909316", "0.6967169", "0.69627625", "0.695397", "0.6949629", "0.6949629", "0.6945898", "0.6942603", "0.6930584", "0.69209677", "0.6917166", "0.690698", "0.69011813", "0.6900669", "0.6890518", "0.6867869", "0.68568987", "0.68359137", "0.6833045", "0.68239135", "0.68182105", "0.68121296", "0.6809064", "0.67908216", "0.6782962", "0.67822516", "0.6775228", "0.67651385", "0.6764515", "0.6763613", "0.67541105", "0.6742355", "0.67346984", "0.6733279", "0.6731758", "0.6728316", "0.67140245", "0.6713629", "0.67129916", "0.67076635", "0.6698856", "0.66919136", "0.66919136", "0.6688503", "0.66858983", "0.66856647", "0.66852623", "0.6680164", "0.66776216", "0.667751", "0.6675691", "0.66710687", "0.6660984", "0.66514087", "0.6650051", "0.6648799", "0.66472405", "0.66416913", "0.6640882", "0.6639989", "0.66380054", "0.66363233", "0.66343606", "0.66323566", "0.6629994", "0.6628121", "0.6627668", "0.6619973", "0.6614985", "0.66143036", "0.6612429", "0.66110826", "0.660816", "0.66058826", "0.6604313", "0.6600968", "0.65968573", "0.65942043", "0.65930474", "0.6591174", "0.65842336", "0.65837073" ]
0.8825787
0
Se Verify::session() og Verify::adminLoggedIn()
public static function sessionAndAdminLoggedIn(){ Verify::session(); Verify::adminLoggedIn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sessionAndUserLoggedIn(){\n Verify::session();\n Verify::userLoggedIn();\n }", "public function verify()\r\n\t{\r\n\t\tif ($this->session->userdata('isLoggedIn'))\r\n\t\t{\r\n\t\t\tif ($this->session->userdata('tipe') == \"Admin\")\r\n\t\t\t{\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->load->view('blank');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->load->view('login');\r\n\t\t}\r\n\t}", "public function isLoggedIn();", "public function isLoggedIn();", "public function verify()\n\t{\n\t\tif ($this->session->userdata('isLoggedIn'))\n\t\t{\n\t\t\tif ($this->session->userdata('tipe') == \"Admin\")\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->load->view('blank');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->load->view('login');\n\t\t}\n\t}", "function auth_check()\n {\n $ci =& get_instance();\n if(!$ci->session->has_userdata('is_admin_login'))\n {\n redirect('admin/auth/login', 'refresh');\n }\n }", "function auth_check()\n {\n $ci =& get_instance();\n if(!$ci->session->has_userdata('is_admin_login'))\n {\n redirect('admin/auth/login', 'refresh');\n }\n }", "public function _check_login()\n {\n\n }", "function admin_logged_in() \n{ \n\tsession_start();\n\treturn isset($_SESSION['username']) && isset($_SESSION['password']);\n}", "function logged_in() {\n\treturn isset($_SESSION['admin_id']);\n}", "function logged_in() {\r\n\t\treturn isset($_SESSION[\"admin_id\"]);\r\n\t}", "abstract protected function isUserLoggedIn() ;", "private function _logged_in()\n {\n /*if(someone is logged in)\n RETURN TRUE;*/\n }", "public function loginCheck()\n\t{\n\t}", "private function checkThisSession(){\n// $checkUser = $_main->checkUserIfAdmin();\n// if ($checkUser == false){\n// return $this->redirectToRoute('login', array('status'=>'3'));\n// //return $this->redirect('../login?status=3');\n// }\n\n $_main = new Main();\n $loggedIn = $_main->checkUserIsLoggedIn();\n if($loggedIn == true){\n $checkUser = $_main->checkUserIfAdmin();\n if ($checkUser == false){\n // return $this->redirect('./login?status=3');\n return $this->redirectToRoute('login', array('status'=>'2'));\n }\n } else {\n return $this->redirectToRoute('login', array('status'=>'3'));\n }\n }", "public function check_admin_session() {\n $admin_session = $this->input->cookie(APP_NAME.'_admin_session', FALSE);\n if ($admin_session != '') {\n $admin_id = $this->encrypt->decode($admin_session);\n $mode = $admin_session[APP_NAME.'_session_admin_mode'];\n $condition = array('admin_id' => $admin_id);\n $query = $this->admin_model->get_all_details($mode, $condition);\n if ($query->num_rows() == 1) {\n $privileges = $query->row()->privileges;\n\t\t\t\tif(is_array($privileges)){\n\t\t\t\t\t$priv =$privileges;\n\t\t\t\t} else {\n\t\t\t\t\t$priv = @unserialize($query->row()->privileges);\n\t\t\t\t}\n $admindata = array(\n APP_NAME.'_session_admin_id' => $query->row()->admin_id,\n APP_NAME.'_session_admin_name' => $query->row()->admin_name,\n APP_NAME.'_session_admin_email' => $query->row()->email,\n APP_NAME.'_session_admin_mode' => $mode,\n APP_NAME.'_session_admin_privileges' => $priv\n );\n $this->session->set_userdata($admindata);\n $newdata = array(\n 'last_login_date' => date(\"Y-m-d H:i:s\"),\n 'last_login_ip' => $this->input->ip_address()\n );\n $condition = array('admin_id' => $query->row()->admin_id);\n $this->admin_model->update_details(ADMIN, $newdata, $condition);\n }\n }\n }", "private function compare_with_login()\n {\n }", "protected function isUserLoggedIn() {}", "protected function isUserLoggedIn() {}", "function login(){\n if(isset($_SESSION['admin_id'])){\n return true;\n }\n }", "function logged_in() {\n\t\tif (isset($_SESSION['admin_id'])) {\n\t\t\tif($_SESSION['username'] === \"main_admin\"){ \n\t\t\t\treturn 1; \n\t\t\t}\n\t\t}\n\t\treturn 0; \n\t}", "public function AdminAuthCheck()\n {\n \t$admin_id=Session::get('admin_id');\n \tif($admin_id){\n \t\treturn;\n \t}else{\n \t\treturn Redirect::to('/admin')->send();\n \t}\n }", "public function checkAdmin(){\n $data = [\n 'emailError' => '',\n 'passwordError' => ''\n ];\n if(!isset($_SESSION['adminID'])){\n $this->view('admins/loginAdmin',$data);\n }\n }", "static function verifyLogin(){\r\n\r\n // check if there's a session\r\n if(session_id() == '' && !isset($_SESSION)){\r\n session_start();\r\n }\r\n\r\n // if session is started, check if a user is login or not\r\n if(isset($_SESSION[\"loggedin\"])){\r\n \r\n return true;\r\n }\r\n else{\r\n session_destroy();\r\n \r\n return false;\r\n }\r\n }", "public function BeforeAdminloginCheck(){\n\t\t\t$email=isset($_SESSION['email']) ? $_SESSION['email'] : '';\n\t\t\t$token=isset($_SESSION['admintoken']) ? $_SESSION['admintoken'] : '';\n\t\t\t$checkvalid=$this->CheckValidToken($token);\n\t\t\t$check=$this->db->prepare(\"SELECT email,user_type FROM admin_users WHERE email=:email AND status=1\");\n\t\t\t$check->execute(array(\"email\"=>$email));\n\t\t\t$rowchk=$check->fetch(PDO::FETCH_ASSOC);\n\t\t\t$admin_loggedin=isset($_SESSION['admin_loggedin']) ? $_SESSION['admin_loggedin'] : '';\n\n\t\t\tif($admin_loggedin == 1 && isset($admin_loggedin) && $checkvalid['status']==1 ){\n\t\t\t\theader(\"Location:\".SITEURL.\"app/admin/dashboard\");\n\t\t\t\texit();\n\t\t\t}\n\t }", "function verify_admin()\n{\n\t$config = new Config();\n\t$conn = $config->getConnection();\n\n\t$query = \"SELECT username,password from admin\";\n\t$result = $conn->query($query);\n\n\tif($result->num_rows > 0)\n\t{\n\t\twhile ($row = $result->fetch_assoc())\n\t\t{\n\t\t\tif($_POST['username'] == $row['username'] && $_POST['password'] == $row['password'])\n\t\t\t{\n\t\t\t\tsession_start();\n\t\t\t\t$_SESSION['username'] = $_POST['username'];\n\t\t\t\t$_SESSION['password'] = $_POST['password'];\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t}\n\treturn FALSE;\n}", "private function check_session()\n\t{\n\t\tif(isset($_SESSION['admin_id']))\n\t\t{\n\t\t\t/* \n\t\t\tTODO: check double device login\n\t\t\t*/\n\t\t}\n\t\telse if(isset($_SESSION['login_id']))\n\t\t{\n\t\t\tredirect(base_url() . 'contestant');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect(base_url());\n\t\t}\n\t}", "private function check_stored_login() {\n if(isset($_SESSION['admin_id'])) {\n $this->admin_id = $_SESSION['admin_id'];\n $this->username = $_SESSION['username'];\n $this->user_level = $_SESSION['user_level'];\n $this->last_login = $_SESSION['last_login'];\n }\n }", "function checkPermissionAdmin() \n\t{\n\t \n\t if(!isset($_SESSION['admin']['id']))\n\t {\n $this->Session->setFlash('Please sign in to view this page.');\n \t//$this->flash(__('Session Expired!!', true), array('controller'=>'admins','action'=>'adminLogin'));\n\t\t $this->redirect(array('controller'=>'admins','action'=>'login'), null, true);\n\t }\n\t}", "function check_authentication($redirect=FALSE)\n {\n $session = Session::getInstance();\n $username = $session->username;\n $password = $session->password;\n $logged = $session->logged;\n $auth = self::check($username, $logged);\n if (!$auth)\n {\n echo '<script>location.href=\"/admin\";</script>';\n }\n }", "public static function adminLoggedIn(){\n //Hvis en bruker ikke er logget inn eller han ikke er admin, vil han bli sent til login.php\n if (!isset($_SESSION['user']) || !$_SESSION['user']->isAdmin()) {\n //Lagrer siden brukeren er på nå slik at han kan bli redirigert hit etter han har logget inn\n $alert = new Alert(Alert::ERROR, \"Du er nødt til å være administrator for å se den siden. Du er ikke administrator.\");\n $alert->displayOnIndex();\n\n }\n }", "function check_admin() {\n\t\t// check session exists\n\t\tif(!$this->Session->check('Admin')) {\n\t\t\t$this->Session->setFlash(__('ERROR: You must be logged in for that action.', true));\n\t\t\t$this->redirect(array('controller'=>'contenders', 'action'=>'index', 'admin'=>false));\n\t\t}\n\t}", "function Admin_authetic(){\n\t\t\t\n\t\tif(!$_SESSION['adminid']) {\n\t\t\t$this->redirectUrl(\"login.php\");\n\t\t}\n\t}", "function authEstaAutenticado() {\n return isset($_SESSION['usuario_admin']);\n}", "public function checkAuth();", "public function checkAuth();", "public static function check(){\n\t\tif(session('admin') == 'true') {\n\t\t\treturn true;\n\t\t\t//return redirect()->route('dashboard');\n\t\t}\n\t}", "function is_admin_login()\r\n\t{\r\n\t\tif (!isset ($_SESSION[Seb_Adm_UsErId]))\r\n\t\t{\r\n\t\t\tprint '<script language=\"javascript\">window.location.href=\"index.php\"</script>';\r\n\t\t}\r\n\t}", "function checkLogin() { //Determine status of the user in current session\n\n\t//If a user is currently logged in\n\tif(isset($_SESSION['userID'])) {\n\n\t\tlogout(); //Display components to allow user to logout\n\n\t} else {\n\n\t\tlogin(); //Otherwise display components to allow a guest to login\n\n\t}\n\n}", "static public function isLoggedIn(){\n \treturn (self::getInstance()->getId()>1);\n }", "private function check_login(){\n if (isset($_SESSION['email'])){\n $this->email=$_SESSION['email'];\n\t\t\t$this->role=$_SESSION['role'];\n\t\t\t$this->id=$_SESSION['id'];\n $this->signed_in=true;\n }\n else{\n unset($this->email);\n $this->signed_in=false;\n }\n }", "public function checkUsersSession(){\n\t}", "function is_admin()\r\n{\r\n\tif (!isset($_SESSION['admin']))\r\n\t{\r\n\t\theader(\"Location:index.php?controller=user&action=login\");exit;\r\n\t}\r\n}", "function verificar_login()\n {\n if (!isset($_SESSION['usuario'])) {\n $this->sign_out();\n }\n }", "public function isLoggedIn()\n {\n $database = new Database();\n $loggedIn = $database->getAdminByUsername($_SESSION['user']);\n $admin = new Admin($loggedIn['adminId'], $loggedIn['username'], $loggedIn['adminLevel'], $loggedIn['active']);\n if(isset($_SESSION['user']) === true && strpos($admin->getAdminLevel(), Partner) !== false && $admin->getActive() == 1) {\n $testLogin = true;\n } else {\n $this->_f3->reroute('/Login');\n }\n $this->_f3->set('login', $testLogin);\n $this->_f3->set('admin', $admin);\n }", "public function checkAuthentication() \n {\n if(!isset($this->userInfo['admin_id']) && empty($this->userInfo['admin_id'])) \n {\n redirect('login/loginPage');\n }\n }", "public function is_logged_in() {\n\n\t}", "function user_login_check()\n{\n\t$Feul = new Feul;\n\t$Feul->checkLogin();\n\t/* \n\tIf Logout Link Is Clicked:\n\tLog Client Out (End Session) \n\t*/\n\tif(isset($_GET['logout']) && empty($_POST['login-form']))\n\t{\n\t\tif(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']))\n\t\t{\n\t\t\t$_SESSION = array(); \n\t\t\tsession_destroy();\n\t\t}\n\t}\t\n}", "function isLoggedAdmin(){\n return (isset($_SESSION['id']) \n && isset($_SESSION['login']) \n && isset($_SESSION['admin']) \n && $_SESSION['admin'] == true);\n}", "function checkadminlogin() {\n\t\tConfigure::write('debug', 0);\n\t\t$this->autoRender = false;\n\t\t\n\t\tif ($this->RequestHandler->isAjax()) {\n\t\t\t$username = $this->data['Member']['username'];\n\t\t\t$password = $this->data['Member']['pwd'];\n\t\t\t\n\t\t\t\n\t\t\t$user = $this->Member->find('count', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Member.email' => $username,\n\t\t\t\t\t'Member.pwd' => md5($password),\n\t\t\t\t\t'Member.active' => '1'\n\t\t\t\t)\n\t\t\t));\n\t\t\t\n\t\t\t\n\t\t\tif ($user) {\n\t\t\t\t$getAdminData = $this->Member->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Member.email' => $username,\n\t\t\t\t\t\t'Member.pwd' => md5($password),\n\t\t\t\t\t\t'Member.active' => '1'\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\tif (!empty($getAdminData)) {\n\t\t\t\t\t$this->Session->write('Admin.email', $getAdminData['Member']['email']);\n\t\t\t\t\t$this->Session->write('Admin.id', $getAdminData['Member']['id']);\n\t\t\t\t\t$this->Session->write('Admin.loginStatus', $getAdminData['Member']['login_status']);\n\t\t\t\t\t$this->Session->write('Admin.group_id', $getAdminData['Member']['group_id']);\n\t\t\t\t\t$this->Session->write('Admin.school_id', $getAdminData['Member']['school_id']);\n\t\t\t\t\t\n\t\t\t\t\techo \"authorized\";\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//echo $html->link('Forgot Password ?',array('controller'=>'Users','action'=>'requestPassword'));\n\t\t\t\techo \"Username and/or Password not matched !\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public function isBackendUserLoggedIn() {}", "function loggedin() {return $this->login_state!=0;}", "function admin_index(){ \n //pr($this->Session->read('Auth'));die;\n }", "function isLogged();", "public function isLoggedIn()\n {\n $database = new Database();\n $loggedIn = $database->getAdminByUsername($_SESSION['user']);\n $admin = new Admin($loggedIn['adminId'], $loggedIn['username'], $loggedIn['adminLevel'], $loggedIn['active']);\n if(isset($_SESSION['user']) === true && strpos($admin->getAdminLevel(), Resources) !== false && $admin->getActive() == 1) {\n $testLogin = true;\n } else {\n $this->_f3->reroute('/Login');\n }\n $this->_f3->set('login', $testLogin);\n $this->_f3->set('admin', $admin);\n }", "public function Checklogin()\n\t{\n\t\tif ($this->session->userdata('admin_admin_email') == '')\n\t\t{\n\t\t\tredirect('admin');\n\t\t}\n\t\n\t}", "public function Checklogin()\n\t{\n\t\tif ($this->session->userdata('admin_admin_email') == '')\n\t\t{\n\t\t\tredirect('admin');\n\t\t}\n\t\n\t}", "private function auth() {\n // If the user has previously been authenticated\n if(isset($_SESSION['adminUsername']) && isset($_SESSION['adminPassword'])) {\n $this->admin->username = $_SESSION['adminUsername'];\n $this->admin->password = $_SESSION['adminPassword'];\n $auth = $this->admin->get(1);\n\n if($this->admin->password == $auth['password']) {\n $logged = true;\n }\n }\n // If the user has long term login enabled\n elseif(isset($_COOKIE['adminUsername']) && isset($_COOKIE['adminToken'])) {\n $this->admin->username = $_COOKIE['adminUsername'];\n $this->admin->rememberToken = $_COOKIE['adminToken'];\n $auth = $this->admin->get(2);\n\n if($this->admin->rememberToken == $auth['remember_token'] && !empty($auth['remember_token'])) {\n $_SESSION['adminUsername'] = $this->admin->username;\n $this->setPassword($auth['password']);\n $logged = true;\n }\n }\n // If the user is authenticating\n else {\n $auth = $this->admin->get(0);\n\n // Set the sessions\n $_SESSION['adminUsername'] = $this->admin->username;\n $this->setPassword($this->admin->password);\n\n if(password_verify($this->admin->password, $auth['password'])) {\n if($this->admin->rememberToken) {\n $this->admin->renewToken();\n }\n session_regenerate_id();\n $logged = true;\n }\n }\n\n if(isset($logged)) {\n $_SESSION['isAdmin'] = true;\n return $auth;\n }\n\n return false;\n }", "public static function check_session() {\n\t\t\t// get redirect_to_default\n\t\t\t$redirect_to_default = Cookie::get('redirect_to_default');\n\t\t\t\n\t\t\t// if empty redirect_to_default set from default settings\n\t\t\tif(empty($redirect_to_default)){$redirect_to_default = REDIRECT_TO_DEFAULT;}\n\t\t\t\t\t\t\n\t\t\t// check if auth token is submitted\n\t\t\tif(isset($_GET['authtoken']))\n\t\t\t{\n\t\t\t\t// check auth token\n\t\t\t\t$authtoken = Functions::encrypt_decrypt('decrypt', $_GET['authtoken'], \"\\x73\\x6f\\x6d\\x31\\x34\\x31\\x30\\x40\\x73\\x6f\\x6d\\x6e\\x65\\x74\\x69\\x63\\x73\");\n\t\t\t\t\t\n\t\t\t\t// get auth token\n\t\t\t\t$authtoken = json_decode($authtoken);\n\t\t\t\t\n\t\t\t\t// set active session\n\t\t\t\tif(!isset($authtoken->keep_session)){$authtoken->keep_session = true;}\n\t\t\t\t\n\t\t\t\t// unset login state\n\t\t\t\tif(!$authtoken->keep_session){self::set_state(false);}\n\t\t\t}\n\t\t\t\n\t\t\t// if session exists\n\t\t\tif(!self::get_state())\n\t\t\t{\t\n\t\t\t\t// check requested url\n\t\t\t\tif(trim(REQUEST_URI) != trim(APP_PATH.'/'.$redirect_to_default))\n\t\t\t\t{\t\n\t\t\t\t\t// get return url\t\t\t\t\t\n\t\t\t\t\t$returnUrl = urlencode(ltrim(str_replace(APP_PATH, '', REQUEST_URI), '/'));\n\t\t\t\t\t\n\t\t\t\t\t// check if auth token is submitted\n\t\t\t\t\tif(isset($_GET['authtoken']))\n\t\t\t\t\t{\n\t\t\t\t\t\t/*\n // get guest user info\n\t\t\t\t\t\t$guest_user = ORM::for_table('sys_user_login');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user pass is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_pass))\n\t\t\t\t\t\t$guest_user = $guest_user->where('user_pass', $authtoken->auth_pass);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user company is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_comp))\n\t\t\t\t\t\t$guest_user = $guest_user->where('sys_company_id', $authtoken->auth_comp);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user name is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_name))\n\t\t\t\t\t\t\t$guest_user = $guest_user->where('user_name', $authtoken->auth_name)->find_one();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$guest_user = $guest_user->find_one($authtoken->auth_user);\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// check if user exists\n\t\t\t\t\t\tif(is_object($guest_user))\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t// start session and set session values\n\t\t\t\t\t\t\tself::set_state(true);\n\t\t\t\t\t\t\tself::set('user_id', $guest_user->id);\n\t\t\t\t\t\t\tself::set('user_name', $guest_user->user_name);\n\t\t\t\t\t\t\tself::set('first_name', $guest_user->first_name);\n\t\t\t\t\t\t\tself::set('last_name', $guest_user->last_name);\n\t\t\t\t\t\t\tself::set('full_name', trim($guest_user->first_name.' '.$guest_user->last_name));\n\t\t\t\t\t\t\tself::set('email', $guest_user->email);\n\t\t\t\t\t\t\tself::set('mobile', $guest_user->mobile);\n\t\t\t\t\t\t\tself::set('company_id', (empty($guest_user->sys_company_id) ? $authtoken->company_id : $guest_user->sys_company_id));\n\t\t\t\t\t\t\tself::set('is_super_admin', $guest_user->is_super_admin);\t\n\t\t\t\t\t\t\tself::set('is_guest', ($authtoken->auth_user==GUEST_ID ? 1 : 0));\t\n\t\t\t\t\t\t\tself::set('last_login', $guest_user->last_login);\t\n\t\t\t\t\t\t\tself::set('logged_with_master_password', false);\n\t\t\t\t\t\t\tself::set('authtoken', $authtoken);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.'/authtoken_error?authtoken='.$_GET['authtoken']);\n\t\t\t\t\t\t}\n */\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.(empty($returnUrl) ? '' : '?returnUrl='.$returnUrl));\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else\n\t\t\t{\n\t\t\t\t// check if auth token is submitted\n\t\t\t\tif(isset($_GET['authtoken']))\n\t\t\t\t{\n\t\t\t\t\t// check for valid auth user\n\t\t\t\t\tif($authtoken->auth_user!=GUEST_ID)\n\t\t\t\t\t{\n\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.'/authtoken_error?authtoken='.$_GET['authtoken']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}", "public function authUser(){\n if(!isset($this->sessionBool) || empty($this->sessionBool)){\n die($this->alerts->ACCESS_DENIED);\n }else{\n if(!$this->sessionBool){\n die($this->alerts->ACCESS_DENIED);\n }\n } \n }", "function admin_logged_in()\r\n{\r\n if (isset($_SESSION['admin_id']) && !empty($_SESSION['admin_id'])) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}", "public function Checklogin()\n\t{\n\t\tif ($this->session->userdata('admin_email') == '')\n\t\t{\n\t\t\tredirect('head/');\n\t\t}\n\t\n\t}", "public function Checklogin()\n\t{\n\t\tif ($this->session->userdata('admin_email') == '')\n\t\t{\n\t\t\tredirect('head/');\n\t\t}\n\t\n\t}", "public function simple_verification()\r\n\t{\r\n\t\t$this->is_logged_in();\r\n\r\n\t\techo $this->load->view('examples/page_header', '', TRUE);\r\n\r\n\t\techo '<p>';\r\n\t\tif( ! empty( $this->auth_role ) )\r\n\t\t{\r\n\t\t\techo $this->auth_role . ' logged in!<br />\r\n\t\t\t\tUser ID is ' . $this->auth_user_id . '<br />\r\n\t\t\t\tAuth level is ' . $this->auth_level . '<br />\r\n\t\t\t\tUsername is ' . $this->auth_username;\r\n\r\n\t\t\tif( $http_user_cookie_contents = $this->input->cookie( config_item('http_user_cookie_name') ) )\r\n\t\t\t{\r\n\t\t\t\t$http_user_cookie_contents = unserialize( $http_user_cookie_contents );\r\n\r\n\t\t\t\techo '<br />\r\n\t\t\t\t\t<pre>';\r\n\r\n\t\t\t\tprint_r( $http_user_cookie_contents );\r\n\r\n\t\t\t\techo '</pre>';\r\n\t\t\t}\r\n\r\n\t\t\tif( config_item('add_acl_query_to_auth_functions') && $this->acl )\r\n\t\t\t{\r\n\t\t\t\techo '<br />\r\n\t\t\t\t\t<pre>';\r\n\r\n\t\t\t\tprint_r( $this->acl );\r\n\r\n\t\t\t\techo '</pre>';\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * ACL usage doesn't require ACL be added to auth vars.\r\n\t\t\t * If query not performed during authentication,\r\n\t\t\t * the acl_permits function will query the DB.\r\n\t\t\t */\r\n\t\t\tif( $this->acl_permits('general.secret_action') )\r\n\t\t\t{\r\n\t\t\t\techo '<p>ACL permission grants action!</p>';\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\techo 'Nobody logged in.';\r\n\t\t}\r\n\r\n\t\techo '</p>';\r\n\r\n\t\techo $this->load->view('examples/page_footer', '', TRUE);\r\n\t}", "public function checkSession()\r\n {\r\n if(!$this->admin->sCheckUser())\r\n {\r\n return $this->redirect(array(\r\n 'module' => 'frontend',\r\n 'controller' => 'account',\r\n 'action' => 'login',\r\n 'sTarget' => 'sKUZOOffer'\r\n ));\r\n }\r\n }", "function verifyAdmin(){\n\n $email = $_POST[\"input_email\"];\n $pass = $_POST[\"input_pass\"];\n\n if (isset($email)) {\n $userFromDB = $this->model->getAdministrador($email);\n if (isset($userFromDB) && $userFromDB) {\n if (password_verify($pass, $userFromDB->password)) {\n session_start();\n $_SESSION[\"EMAIL\"] = $userFromDB->email; \n header(\"Location:\" . BASE_URL . \"home\");\n }else {\n $this->view->showLogin(\"contraseña incorrecta\");\n }\n }else {\n $this->view->showLogin(\"el usuario no existe\");\n }\n }\n }", "function confirmAuth()\n{\n $login = $this->session->get(USER_LOGIN_VAR);\n$password = $this->session->get(USER_PASSW_VAR);\n$hashKey = $this->session->get('login_hash');\nif (md5($this->hashKey . $login . $password) != $hashKey)\n{\n$this->logout(true);\n}\n}", "public static function pageAuth() {\r\n if (isset($_SESSION['username']) && (($_SESSION['authorized'] == 'ADMIN')\r\n OR ($_SESSION['authorized'] == 'SUPERUSER')\r\n OR ($_SESSION['authorized'] == 'MEMBER')))\r\n return true;\r\n else {\r\n exit();\r\n //header('location:index');\r\n }\r\n }", "function verificalogin(){\n if(!isset($this->session->datosusu)){\n return true;\n }\n }", "function login_check() {\n global $logvar;\n session_start();\n $obj = new Cryptography();\n\n if (isset($_SESSION[\"login_user\"])) {\n $de_log_var = $obj->decoding($_SESSION[\"login_user\"]);\n if ($de_log_var == $logvar) {\n\n return true;\n\n } else {\n\n return false;\n }\n\n } else {\n return false;\n\n }\n /*check for real user end*/\n}", "private function checkLogin() {\n\t\t$session = $this->Session->read ( 'sessionLogado' );\n\t\tif (empty ( $session )) {\n\t\t\t$this->Session->write ( 'sessionLogado', false );\n\t\t}\n\t\t\n\t\tif ($this->params ['plugin'] == 'users') {\n\t\t\tif ($this->params ['controller'] == 'users' && $this->params ['action'] == 'home' && ! $session == true) {\n\t\t\t\t$this->redirect ( array (\n\t\t\t\t\t\t'controller' => 'users',\n\t\t\t\t\t\t'plugin' => 'users',\n\t\t\t\t\t\t'action' => 'login' \n\t\t\t\t) );\n\t\t\t}\n\t\t\tif ($this->params ['controller'] == 'users' && $this->params ['action'] == 'signatures' && ! $session == true) {\n\t\t\t\t$this->redirect ( array (\n\t\t\t\t\t\t'controller' => 'users',\n\t\t\t\t\t\t'plugin' => 'users',\n\t\t\t\t\t\t'action' => 'login' \n\t\t\t\t) );\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function isLogin();", "function isLoggedIn(){\n return $this->auth->isLoggedIn();\n }", "function verify_login()\n{\n if (id_in_session())\n {\n return;\n }\n else\n {\n print_error_message('User is not logged in!');\n redirect('index.php');\n }\n}", "public function check_login()\n\t{\n\t\tif(isset($_SESSION[\"user_id\"]))\n\t\t{\n\t\t $this->_user_id = $_SESSION[\"user_id\"];\n\t\t\t$this->_client = $_SESSION[\"client\"];\n\t\t\t$this->_loged_in = true;\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_loged_in = false;\n\t\t\t$this->_client = false;\n\t\t\tunset($this->_user_id);\n\t\t}\n\t}", "public function requireAdmin(){\n if( ! Authentifiacation::isAdmin()){\n Authentifiacation::rememberRequestedPage();\n Flash::addMessage('You need to have admin status to access this page', Flash::INFO);\n self::redirect('/login/new');\n }\n }", "function middleware_Loggedin()\n{\n return isset($_SESSION['auth']);\n}", "function checkLoginStatus($controller)\r\n{\r\n $result = FALSE;\r\n \r\n //cookie set and visit pages directly without login\r\n if(isset($_COOKIE[\"loginName\"]) && isset($_COOKIE[\"secret\"]) && !isset($_SESSION[\"loginUser\"])) {\r\n //check cookie validity\r\n $loginName = $_COOKIE[\"loginName\"];\r\n $secret = $_COOKIE[\"secret\"];\r\n $handler = new UserHandler();\r\n $currentUser = $handler->findLoginUserBySecret($loginName, $secret);\r\n \r\n //pass checking, recreate session\r\n if($currentUser){\r\n $_SESSION[\"loginUser\"] = $currentUser;\r\n $result = True;\r\n }\r\n \r\n }\r\n \r\n if ($controller != \"LogIn\" && $controller != \"Join\" && $controller != \"Default\"\r\n && !isset($_SESSION[\"loginUser\"])) {\r\n //no login & visit protected pages\r\n $result = FALSE;\r\n }\r\n else {\r\n $result = True;\r\n }\r\n return $result;\r\n}", "function checkSession(){\n\tif(!isset($_SESSION['admin']) || $_SESSION['admin'] == \"\") {\n\t\tif(!isset($_SESSION['username']) || $_SESSION['username'] == \"\"){\n\t\t\theader(\"Location: index.php\");\n\t\t}\n\t}\n\telse{\n\t\treturn $_SESSION['admin'];\t\n\t\t\n\t}\n\t\n\n}", "function get_is_admin ()\r\n {\r\n return $_SESSION[\"is_admin\"];\r\n }", "public function isLoggedIn()\n {\n return true;\n }", "function validateLogin() {\n $this->check_lang();\n $logged_in = $this->session->userdata('logged_in');\n if ((isset($logged_in) || $logged_in == true)) {\n if ($logged_in != \"admin\") {\n redirect('/admin/index/login', 'refresh');\n }\n } else {\n redirect('/admin/index/login', 'refresh');\n }\n }", "function is_logged_in()\r\n{\r\n $ini = get_instance();\r\n if (!$ini->session->userdata('nim')) {\r\n redirect('auth');\r\n }\r\n}", "function is_admin_logged_in()\n{\n $CI =& get_instance();\n $admin = $CI->session->userdata('admin');\n if ($admin['admin_logged_in'] != false) {\n return true;\n }\n return false;\n}", "protected function loginIfRequested() {}", "function checkAdminLogin() \n{\n\tif(checkNotLogin())\n\t{\n\t\treturn false;\n\t}\n\t\n\t$user = $_SESSION['current_user'];\n\t\n\tif($user->isAdmin())\n\t{\n\t\treturn true;\n\t}\n\telse \n\t{\n\t\treturn false;\n\t}\n}", "private function check_the_login(){\n \n if(isset($_SESSION['login_user'])){\n \n $this->login_user = $_SESSION['login_user'];\n $this->signed_in = true;\n \n }else{\n unset($this->login_user);\n $this->signed_in = false;\n }\n \n }", "function admin()\n{\n # clear the user session by default upon reaching this page\n clearUserSession();\n\n header('Location: ./adminLogin');\n exit;\n}", "private function checkAdmin()\n {\n $admin = false;\n if (isset($_SESSION['admin'])) {\n F::set('admin', 1);\n $admin = true;\n }\n F::view()->assign(array('admin' => $admin));\n }", "function log_in_admin($admin){\r\n$_SESSION['admin_id'] = $admin['admin_id'];\r\n$_SESSION['last_login'] = time();\r\n$_SESSION['username'] = $admin['full_name'];\r\nreturn true;\r\n}", "function is_admin() {\r\n\tif ( !isset($_SESSION['sess_pseudo']) || $_SESSION['sess_admin']!=1 || !isset($_SESSION['sess_secure']) )\r\n\t\treturn false;\r\n\telse\r\n\t\treturn true;\r\n}", "function SubmitLoginDetails()\n\t{\n\t\t// Login logic is handled by Application::CheckAuth method\n\t\tAuthenticatedUser()->CheckAuth();\n\t}", "function AdminLogin() {\r\n\t\t$this->DB();\r\n\t}", "public function AfterAdminloginCheck(){\n\t\t\tif(!isset($_SESSION['admin_loggedin']) && $_SESSION['admin_loggedin']==0){\n\t\t\t\t header(\"Location:\".SITEURL.\"app/admin/logout\");\n\t\t\t\t exit();\n\t\t\t}\n\t }", "function checkadminlogin() {\n\t\tConfigure::write('debug', 0);\n\t\t$this->autoRender = false;\n\t\t$this->layout = \"\";\n\t\t\n\t\tif ($this->RequestHandler->isAjax()) {\n\t\t\t$username = $this->data['Member']['username'];\n\t\t\t$password = $this->data['Member']['pwd'];\n\t\t\t\n\t\t\t\n\t\t\t$groupId = array('1','2','3','4','5');\n\t\t\t\n\t\t\t\n\t\t\t$user = $this->Member->find('count', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Member.email' => $username,\n\t\t\t\t\t'Member.pwd' => md5($password),\n\t\t\t\t\t'Member.active' => '1',\n\t\t\t\t\t'Member.group_id' => $groupId,\n\t\t\t\t)\n\t\t\t));\n\t\t\t\n\t\t\t\n\t\t\tif ($user) {\n\t\t\t\t$getAdminData = $this->Member->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Member.email' => $username,\n\t\t\t\t\t\t'Member.pwd' => md5($password),\n\t\t\t\t\t\t'Member.active' => '1',\n\t\t\t\t\t\t'Member.group_id' => $groupId,\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\tif (!empty($getAdminData)) {\n\t\t\t\t\t$this->Session->write('Admin.email', $getAdminData['Member']['email']);\n\t\t\t\t\t$this->Session->write('Admin.id', $getAdminData['Member']['id']);\n\t\t\t\t\t$this->Session->write('Admin.loginStatus', $getAdminData['Member']['login_status']);\n\t\t\t\t\t$this->Session->write('Admin.group_id', $getAdminData['Member']['group_id']);\n\t\t\t\t\t$this->Session->write('Admin.school_id', $getAdminData['Member']['school_id']);\n\t\t\t\t\t\n\t\t\t\t\techo \"authorized\";\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//echo $html->link('Forgot Password ?',array('controller'=>'Users','action'=>'requestPassword'));\n\t\t\t\techo \"Username and/or Password not matched !\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "function is_login()\n {\n }", "function isAdmin(){\n if($_SESSION['admin'] == 1){\n return true;\n }\n}", "function is_logged_in($option) {\r\n // - Its presence indicates the admin is logged in.\r\n // - Its value tells which admin for looking up their record.\r\n if($option==0)\r\n return isset($_SESSION['admin_id']);\r\n else\r\n return isset($_SESSION['admin_id']) or isset($_SESSION['user_id']);\r\n}", "function checkSession()\n {\n if( !$this->session->userdata( 'logged_in' ) )\n redirect( 'login' );\n\n if ( $this->session->userdata( 'level' ) != 'guidance' )\n redirect( 'standard/unauthorized' );\n }", "public function login();" ]
[ "0.82444257", "0.7368534", "0.73297524", "0.73297524", "0.73295593", "0.7290907", "0.7290907", "0.72627383", "0.7204261", "0.72025365", "0.7196961", "0.718423", "0.71586174", "0.71524745", "0.713435", "0.71210456", "0.71059805", "0.7097308", "0.7097308", "0.7060199", "0.7036811", "0.7010245", "0.7007313", "0.6985508", "0.6977224", "0.6948747", "0.6941024", "0.69397646", "0.6939286", "0.6915427", "0.6908534", "0.6895433", "0.68813336", "0.68695647", "0.68659705", "0.68659705", "0.6864964", "0.6858119", "0.68579566", "0.6855426", "0.6854509", "0.684549", "0.6827496", "0.68167007", "0.6814624", "0.68120956", "0.6811656", "0.6801186", "0.68002087", "0.67889977", "0.6786914", "0.6784143", "0.678054", "0.6776448", "0.6769484", "0.6761256", "0.6761256", "0.6745777", "0.6742134", "0.67334473", "0.672655", "0.67259485", "0.67259485", "0.6718495", "0.6714819", "0.6714681", "0.6713738", "0.67119104", "0.6709105", "0.6705812", "0.6704823", "0.6697654", "0.6696885", "0.6694949", "0.66927564", "0.6692568", "0.66842353", "0.6664792", "0.66620755", "0.6661797", "0.6661725", "0.6661248", "0.6660531", "0.6658402", "0.6656045", "0.6642387", "0.66365784", "0.6636533", "0.6631428", "0.661733", "0.6616515", "0.66124", "0.66086733", "0.66075903", "0.6607442", "0.6604845", "0.6603405", "0.65974325", "0.65960836", "0.6586718" ]
0.8922399
0
/ | | Callback |
public function is_password_required() { $edit = $this->uri->segment(2); if ($edit != 'edit') { $password = $this->input->post('password', true); if (empty($password)) { $this->form_validation->set_message('is_password_required', '%s harus diisi.'); return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function callback();", "abstract protected function registerCallback();", "function handle_callback() {\r\n }", "public function getDefaultCallback();", "private function callCallback() {\n\t\tif ($this->callback !== null) {\n\t\t\t$response = $this->buildResponse();\n\t\t\tcall_user_func($this->callback, $response, $this->data);\n\t\t}\n\t}", "public function onSuccess();", "public function onSuccess();", "private function onCompletion()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "function completeCallback()\r\n { }", "public function getCallbackAction() {}", "public function getCallbackAction() {}", "public function testEventCallBackGet()\n {\n }", "public function CallBack($response) {\n\t\n\t}", "function callback_file(array $args)\n {\n }", "function callback($retval, $callinfo) {\r\n\r\n var_dump($callinfo);\r\n print_r($retval . PHP_EOL);\r\n\r\n}", "function example_callback( $example ) {\n echo \"HAI\";\n return $example;\n}", "public function testEventCallBackGetItem()\n {\n }", "function cb_init(){\n\t}", "public function CallBack($response);", "public function getAfterSendCallback(): array;", "public abstract function onSuccess();", "public function callback()\n {\n $this->jsonResponse([\n 'ok' => true\n ]);\n }", "function handle() ;", "public function setCallback($callback);", "public function onloadCallback();", "public function INTincScript_processCallback() {}", "public function getCallbacks(): array;", "public function callback(){\n $body = file_get_contents('php://input');\n $res = json_decode($body, true);\n \\Think\\Log::write('点播回调开始 begin');\n \n if($res['status'] == 'fail'){\n \\Think\\Log::write('点播回调失败 fail');\n }else{\n \\Think\\Log::write('点播回调成功 success');\n $this->_handle($res);\n }\n }", "public function success();", "public function callback() {\n\t\t$this->load->library('twconnect');\n\n\t\t$ok = $this->twconnect->twprocess_callback();\n\t\t\n\t\tif ( $ok ) { redirect('twtest/success'); }\n\t\telse redirect ('twtest/failure');\n\t}", "public function callNow()\n {\n $c = $this->callback;\n $c();\n }", "public function testEventCallBackCreate()\n {\n }", "public function done();", "public function call();", "public function call();", "function executeCallbacks() {\n\n\t\t// receive callbacks with a timeout (default: 2 ms)\n\t\t$this->client->resetError();\n\t\t$this->client->readCB();\n\n\t\t// now get the responses out of the 'buffer'\n\t\t$calls = $this->client->getCBResponses();\n\t\tif ($this->client->isError()) {\n\t\t\ttrigger_error('ExecCallbacks XMLRPC Error [' . $this->client->getErrorCode() . '] - ' . $this->client->getErrorMessage(), E_USER_ERROR);\n\t\t}\n\n\t\tif (!empty($calls)) {\n\t\t\twhile ($call = array_shift($calls)) {\n\t\t\t\tswitch ($call[0]) {\n\t\t\t\t\tcase 'TrackMania.PlayerConnect': // [0]=Login, [1]=IsSpectator\n\t\t\t\t\t\t$this->playerConnect($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerDisconnect': // [0]=Login\n\t\t\t\t\t\t$this->playerDisconnect($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerChat': // [0]=PlayerUid, [1]=Login, [2]=Text, [3]=IsRegistredCmd\n\t\t\t\t\t\t$this->playerChat($call[1]);\n\t\t\t\t\t\t$this->releaseEvent('onChat', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerCheckpoint': // [0]=PlayerUid, [1]=Login, [2]=TimeOrScore, [3]=CurLap, [4]=CheckpointIndex\n\t\t\t\t\t\tif (!$this->server->isrelay)\n\t\t\t\t\t\t\t$this->releaseEvent('onCheckpoint', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerFinish': // [0]=PlayerUid, [1]=Login, [2]=TimeOrScore\n\t\t\t\t\t\t$this->playerFinish($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginRace': // [0]=Challenge\n\t\t\t\t\t\t// ignore, use BeginChallenge\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.EndRace': // [0]=Rankings[], [1]=Challenge\n\t\t\t\t\t\t// ignore, use BeginChallenge\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginRound': // none\n\t\t\t\t\t\t$this->beginRound();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.EndRound': // none\n\t\t\t\t\t\t$this->endRound();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.StatusChanged': // [0]=StatusCode, [1]=StatusName\n\t\t\t\t\t\t// update status changes\n\t\t\t\t\t\t$this->prevstatus = $this->currstatus;\n\t\t\t\t\t\t$this->currstatus = $call[1][0];\n\t\t\t\t\t\t// check WarmUp state\n\t\t\t\t\t\tif ($this->currstatus == 3 || $this->currstatus == 5) {\n\t\t\t\t\t\t\t$this->client->query('GetWarmUp');\n\t\t\t\t\t\t\t$this->warmup_phase = $this->client->getResponse();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($this->currstatus == 4) { // Running - Play\n\t\t\t\t\t\t\t$this->runningPlay();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->releaseEvent('onStatusChangeTo' . $this->currstatus, $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginChallenge': // [0]=Challenge, [1]=WarmUp, [2]=MatchContinuation\n\t\t\t\t\t\t$this->beginMap($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.EndChallenge': // [0]=Rankings[], [1]=Challenge, [2]=WasWarmUp, [3]=MatchContinuesOnNextChallenge, [4]=RestartChallenge\n\t\t\t\t\t\t$this->endMap($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerManialinkPageAnswer': // [0]=PlayerUid, [1]=Login, [2]=Answer, [3]=Entries\n\t\t\t\t\t\t$this->releaseEvent('onPlayerManialinkPageAnswer', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BillUpdated': // [0]=BillId, [1]=State, [2]=StateName, [3]=TransactionId\n\t\t\t\t\t\t$this->releaseEvent('onBillUpdated', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.ChallengeListModified': // [0]=CurChallengeIndex, [1]=NextChallengeIndex, [2]=IsListModified\n\t\t\t\t\t\t$this->releaseEvent('onMapListModified', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerInfoChanged': // [0]=PlayerInfo\n\t\t\t\t\t\t$this->playerInfoChanged($call[1][0]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerIncoherence': // [0]=PlayerUid, [1]=Login\n\t\t\t\t\t\t$this->releaseEvent('onPlayerIncoherence', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.TunnelDataReceived': // [0]=PlayerUid, [1]=Login, [2]=Data\n\t\t\t\t\t\t$this->releaseEvent('onTunnelDataReceived', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.Echo': // [0]=Internal, [1]=Public\n\t\t\t\t\t\t$this->releaseEvent('onEcho', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.ManualFlowControlTransition': // [0]=Transition\n\t\t\t\t\t\t$this->releaseEvent('onManualFlowControlTransition', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.VoteUpdated': // [0]=StateName, [1]=Login, [2]=CmdName, [3]=CmdParam\n\t\t\t\t\t\t$this->releaseEvent('onVoteUpdated', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// new MP callbacks:\n\n\t\t\t\t\tcase 'TrackMania.RulesScriptCallback': // [0]=Param1, [1]=Param2\n\t\t\t\t\t\t$this->releaseEvent('onRulesScriptCallback', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $calls;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function callbackSuccess()\n { \n /*$xmlfile = ANAX_APP_PATH . 'rss/' . $this->id . \"_rss.xml\";\n if(file_exists($xmlfile)) {\n $rss = new \\Anax\\Rss\\RssFeed();\n $rss->setDI($this->di);\n $xml = $rss->getFeed($this->tag);\n $fh = fopen($xmlfile, 'w') or die(\"can't open file\");\n fwrite($fh, $xml);\n fclose($fh);\n }*/\n \n $this->redirectTo($this->redirect);\n }", "public function runSuccess();", "abstract public function handler() : void;", "abstract protected function onEnd(): void;", "public function _get_update_callback()\n {\n }", "function getCallback()\n {\n return $this->callback;\n }", "public function onEvent();", "public function testEventCallBackDelete()\n {\n }", "public function getCallback() {\n return $this->callback;\n }", "public function success(Closure $callback);", "protected abstract function onExecute();", "public function testEventCallBackGetInboundReferences()\n {\n }", "public function defaultCallback()\n {\n return func_get_arg(0);\n }", "public function getCallBackUrl()\r\n {\r\n \r\n }", "public function onCallback($param)\n\t{\n\t\t$this->raiseEvent('OnCallback', $this, $param);\n\t}", "public function onCallback($param)\n\t{\n\t\t$this->raiseEvent('OnCallback', $this, $param);\n\t}", "public function getCallback()\n\t{\n\t\treturn $this->callback;\n\t}", "public function getCallback()\n\t{\n\t\treturn $this->callback;\n\t}", "public function testEventCallBackPatch()\n {\n }", "public function getCallback(): ?callable;", "function executeCallbacks() {\n\n\t\t// receive callbacks with a timeout of 1 second ...\n\t\t$this->client->readCB(2000);\n\n\t\t// now get the responses out of the 'buffer' ...\n\t\t$calls = $this->client->getCBResponses();\n\n\t\tif (!empty($calls)) {\n\t\t\twhile ($call = array_shift($calls)) {\n\t\t\t\tswitch ($call[0]) {\n\t\t\t\t\tcase 'TrackMania.PlayerConnect':\n\t\t\t\t\t\t// event is released in the function!\n\t\t\t\t\t\t$this->playerConnect($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerDisconnect':\n\t\t\t\t\t\t// event is released in the function!\n\t\t\t\t\t\t$this->playerDisconnect($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerManialinkPageAnswer':\n\t\t\t\t\t\t$this->playerServerMessageAnswer($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BillUpdated':\n\t\t\t\t\t\t$this->releaseEvent('onBillUpdated', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerFinish':\n\t\t\t\t\t\t$this->playerFinish($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerChat':\n\t\t\t\t\t\t$this->playerChat($call[1]);\n\t\t\t\t\t\t$this->releaseEvent('onChat', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginRace':\n\t\t\t\t\t\t$this->beginRace($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.EndRace':\n\t\t\t\t\t\t$this->endRace($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerCheckpoint':\n\t\t\t\t\t\t$this->releaseEvent('onCheckpoint', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerIncoherence':\n\t\t\t\t\t\t$this->releaseEvent('onPlayerIncoherence', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginRound':\n\t\t\t\t\t\t$this->beginRound();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.StatusChanged':\n//\t\t\t\t\t\t$this->console_text($call[1][0].\" - \".$call[1][1]);\n\t\t\t\t\t\tif ( $call[1][0] == 4 )\t\t// Running - Play\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->runningPlay();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( $call[1][0] == 3 )\t\t// Synchronisation (always)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdisplayAllPlayerInfo($this, $this->server->challenge);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( $call[1][0] == 2 )\t\t// Launching (new map)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( $call[1][0] == 5 )\t\t// Finish (always)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// do nothing ...\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $calls;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_callback()\n\t{\n\t\treturn $this->callback;\n\t}", "function callback_url(array $args)\n {\n }", "public function onDownloaded()\n {\n }", "public function onDownloaded()\n {\n }", "function callback_select(array $args)\n {\n }", "function callback_text(array $args)\n {\n }", "protected function buildAccessCallback() {\n }", "public function complete();", "public function complete();", "public function callbackAction() {\n\t\t$request = $this->getRequest ();\n\t\t$response = $request->getParams ();\n\n\t\tif (! empty ( $response ['custom'] ) && is_numeric ( trim($response ['custom'] ))) {\n\t\t\t\n\t\t\t// Getting the md5 value in order to match with the class name.\n\t\t\t$classrequest = $request->gateway;\n\n\t\t\t// Orderid back from the bank\n\t\t\t$order_id = trim($response ['custom']);\n\t\t\t\n\t\t\t// Get the bank selected using the MD5 code\n\t\t\t$bank = Banks::findbyMD5 ( $classrequest );\n\t\t\tif (! empty ( $bank [0] ['classname'] )) {\n\t\t\t\tif (! empty ( $bank [0] ['classname'] ) && class_exists ( $bank [0] ['classname'] )) {\n\t\t\t\t\t\n\t\t\t\t\t$class = $bank [0] ['classname'];\n\t\t\t\t\t$payment = new $class ( $response ['custom'] );\n\t\t\t\t\t\n\t\t\t\t\t// Check if the method \"Response\" exists in the Payment class and send all the bank information to the payment module\n\t\t\t\t\tif (method_exists ( $class, \"Response\" )) {\n\t\t\t\t\t\tShineisp_Commons_Utilities::logs ( \"Callback called: $class\\nParameters: \" . json_encode ( $response ), \"payments.log\" );\n\t\t\t\t\t\t$payment->Callback ( $response );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdie ();\t\n\t}", "abstract public function onRegister(): void;", "public function getBeforeSendCallback(): array;", "public static function callbackStaticTestFunction() {}", "public function success() {\n }", "public function success() {\n\t}", "public function getOperationMade() {}", "function event_buffer_set_callback($event, $readcb, $writecb, $errorcb, $arg = NULL)\n{\n}", "public function getCallback()\n {\n return $this->callback;\n }", "public function getCallback()\n {\n return $this->callback;\n }", "public function getCallback()\n {\n return $this->callback;\n }", "public function getCallback()\n {\n return $this->callback;\n }", "public function invoke();", "public function add_callback($callback)\n {\n }", "public function after_run(){}", "abstract protected function register_hook_callbacks();", "function callBack (&$controller, &$request, &$context) {\n\t}", "public function registerCallbacks()\n {\n parent::registerCallbacks();\n }", "function complete();", "public function take_action()\n {\n }", "public function take_action()\n {\n }", "public function call()\n {\n // TODO: Implement call() method.\n }", "public function callback(AMQPMessage $req);", "public function callbackAction()\n {\n // set needed request method parameter\n if ($this->_request->isPost()) {\n $_SERVER['REQUEST_METHOD'] = 'post';\n } else {\n $_SERVER['REQUEST_METHOD'] = 'get';\n }\n\n // disable rendering\n $this->_helper->viewRenderer->setNoRender();\n\n // disable layout for Ajax requests\n $this->_helper->layout()->disableLayout();\n\n // get the subscription storage\n $subscriptionStorage = new PubSubHubbub_Subscription(\n $this->_subscriptionModelInstance,\n $this->_privateConfig->get('subscriptions')\n );\n\n //get the Callback instance and hond over the storage\n $callback = new PubSubHubbub_Subscriber_Callback;\n $callback->setStorage($subscriptionStorage);\n\n // handle request and immediatly send response, to avoid blocking the hub\n $callback->handle($this->_request->getParams(), true);\n\n // ######## Feed Update Handling ########\n // if hub sends you a couple of feed updates\n if (true === $callback->hasFeedUpdate()) {\n //get filepath for the feed update files\n $filePath = $this->_owApp->erfurt->getTmpDir() .\n \"pubsub_\" .\n $this->_request->getParam('xhub_subscription') .\n \"_\" .\n time() .\n \".xml\";\n\n // if filepath is not writable\n if ( false === ( $fh = fopen($filePath, 'w') ) ) {\n // can't open the file\n $m = \"No write permissions for \". $filePath;\n throw new CubeViz_Exception($m);\n }\n\n // write the hole feed update to the file\n fwrite($fh, $callback->getFeedUpdate() . \"\\n\");\n // set file mode\n chmod($filePath, 0755);\n // clsoe file\n fclose($fh);\n\n // collect all subscripton properties\n $subscriptionResourceData = $subscriptionStorage->getSubscription(\n $this->_request->getParam('xhub_subscription')\n );\n\n // create erfurt event\n $event = new Erfurt_Event('onFeedUpdate');\n\n // attach some information to the event\n $event->autoInsertFeedUpdates = 'true' == $this->_privateConfig\n ->get('subscriptions')\n ->get('autoInsertFeedUpdates') ? true : false;\n $event->feedUpdateFilePath = $filePath;\n $event->feedUpdates = $callback->getFeedUpdate();\n\n // extract model iri from subscription entry in subscriptions model\n $modelIriProperty = $this->_privateConfig->get('subscriptions')->get('modelIri');\n $modelIri = $subscriptionResourceData['resourceProperties'][$modelIriProperty][0]['uri'];\n $event->modelInstance = new Erfurt_Rdf_Model($modelIri);\n\n // add source resource to the event\n $event->sourceResource = $subscriptionStorage->getSourceResource(\n $this->_request->getParam('xhub_subscription')\n );\n\n // add subscripton properties to the event\n $event->subscriptionResourceProperties = $subscriptionResourceData['resourceProperties'];\n\n // trigger the event\n $event->trigger();\n }\n }", "function ds_callback(): void\n {\n # Save the redirect eg if present\n $redirectUrl = false;\n if (isset($_SESSION['eg'])) {\n $redirectUrl = $_SESSION['eg'];\n }\n # reset the session\n $this->ds_logout_internal();\n $this->authService->authCallback($redirectUrl);\n }", "function Connective_Callback($classname){\n\t\t//require_once(\"Connective.class.php\");\n\t}", "public function test_return() \n\t{\n\t\treturn 'Callback returns are also pretty cool';\n\t}", "public function setProgressCallback($callback)\n {\n# $this->progressCallback=$callback;\n }", "public function anotify() {\n\n\t$result = null;\n\tforeach( $this->callback_array as $callback ) {\n\t $result = $callback->do_callback( array(\n\t\t \n\t\t 'user_email_template' => $this->user_email_template ,\n\t\t 'user_email_field' => $this->user_email_field ,\n\t\t 'admin_email_template' => $this->admin_email_template,\n\t\t 'user_email_subject' => $this->user_email_subject,\n\t\t 'admin_email_subject' => $this->admin_email_subject,\n\t\t 'send_to_user'\t => $this->send_to_user,\n\t\t 'recipient'\t\t => $this->recipient,\n\t\t 'request'\t\t => $this->get_request()\n\t\t),\n\t\t $result\n\t );\n\t}\n\treturn $result;\n }", "public function callback()\n {\n $transaction = PaytmWallet::with('receive');\n\n $response = $transaction->response(); // To get raw response as array\n $invoiceId = $this->getInvoiceId($response['ORDERID']);\n \\Storage::put('/txn/_' . $response['ORDERID'] . '.json', json_encode($response));\n\n if ($transaction->isSuccessful()) {\n $payment = (new \\Modules\\Payments\\Helpers\\PaymentEngine('paytm', $response))->transact();\n toastr()->success('Payment received successfully', langapp('response_status'));\n return redirect()->route('invoices.index');\n }\n // Schedule Job to check transaction\n RecheckPaytmStatus::dispatch($response['ORDERID'])->delay(now()->addMinutes(3));\n toastr()->warning('We will verify your transaction shortly', langapp('response_status'));\n return redirect()->route('invoices.index');\n }" ]
[ "0.8579076", "0.7115503", "0.70075744", "0.6591629", "0.657076", "0.65610516", "0.65610516", "0.6521851", "0.6507751", "0.6507751", "0.6506287", "0.6506287", "0.6506257", "0.6503926", "0.6469617", "0.646801", "0.64635783", "0.6460965", "0.64589196", "0.6423858", "0.6401641", "0.6377962", "0.631261", "0.6274352", "0.62409693", "0.62373555", "0.6227633", "0.6209522", "0.62087554", "0.6205652", "0.6193188", "0.6171322", "0.6171287", "0.6166133", "0.6079897", "0.60764503", "0.6076071", "0.60699815", "0.60543007", "0.60543007", "0.6024376", "0.6019334", "0.60039425", "0.59947354", "0.5987009", "0.59780943", "0.59681416", "0.59430224", "0.59376574", "0.59222645", "0.5916346", "0.59148985", "0.5897127", "0.5887391", "0.5886304", "0.5885466", "0.5885466", "0.58766836", "0.58766836", "0.5875576", "0.587137", "0.58564967", "0.5854287", "0.58366114", "0.58335036", "0.58335036", "0.58217", "0.5809144", "0.5802878", "0.577749", "0.577749", "0.5766281", "0.5765662", "0.5764738", "0.57629377", "0.57521003", "0.5728856", "0.5726609", "0.57124674", "0.5710618", "0.5710618", "0.5710618", "0.5710618", "0.56972826", "0.5690189", "0.5683647", "0.5675651", "0.5659566", "0.5652913", "0.56345373", "0.56334335", "0.56334335", "0.56300646", "0.5629835", "0.5609102", "0.56088495", "0.5607761", "0.56074977", "0.5600984", "0.5596479", "0.5596115" ]
0.0
-1
FILTER_SUB_CATEGORY IS ONLY CHECKED IF EXISTS, NO VALUE USAGES
public function testFilterSubCategoryNull() { $filters = array( //set up conditions for test 'filter_category_id' => 'true', //necessary to access filter_sub_category 'filter_sub_category' => null, ); $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method $this->assertTrue(sizeof($products) == 0, sizeof($products) . ' Retrieved from filter_sub_category=>null, 0 products'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFilterSubCategoryNotEmptyExistingCategoryId() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", filter_category_id=>27, 1 products');\n }", "public function testFilterSubCategoryNullCatIdExisting() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => null,\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>null,');\n }", "public function testFilterSubCategoryNotEmpty() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", 0 products');\n }", "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n return;\n }\n\n $this->query->andWhere(['category' => $this->category]);\n }", "function filter(){\n //$_SESSION['filters'] = array('GPA' => ['2.0', '3.0']), 'Nationality' => ['saudi'], 'Company_size' => ['large'], 'Major' => ['Computer Science', 'Marketing', 'Finance']);\n if($_GET['checked'] == \"true\"){\n if(!isset($_SESSION['filters'])){\n $_SESSION['filters'] = array();\n }\n if(isset($_SESSION['filters'][$_GET['category']])){\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n } else{\n $_SESSION['filters'][$_GET['category']] = array();\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }else{\n if(isset($_SESSION['filters'][$_GET['category']])){\n unset($_SESSION['filters'][$_GET['category']][array_search($_GET['value'],$_SESSION['filters'][$_GET['category']])]);\n $_SESSION['filters'][$_GET['category']] = removeGaps($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters'][$_GET['category']]) === 0){\n unset($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters']) === 0){\n unset($_SESSION['filters']);\n }\n }\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }\n }", "public function testBadSubFilter()\n {\n $tests = array(\n array(\n 'label' => __LINE__ .': invalid filter type',\n 'filter' => '',\n 'connective' => ''\n ),\n array(\n 'label' => __LINE__ .': invalid connective',\n 'filter' => P4Cms_Record_Filter::create(),\n 'connective' => ''\n ),\n );\n\n foreach ($tests as $test) {\n extract($test);\n\n try {\n P4Cms_Record_Filter::create()->addSubFilter($filter, $connective);\n\n $this->fail($label.' Expected exception');\n } catch (InvalidArgumentException $e) {\n $this->assertTrue(true, $label);\n }\n }\n }", "public function testGetItemSubCategoryByFilter()\n {\n }", "private static function _getFilter() {}", "function get_product_category_filters($data) {\n $category_id = $data['category_id'];\n // Return category filters object\n return (object) [\n 'attributes' => get_product_category_attribute_terms($category_id),\n 'subcategories' => get_product_category_subcategories($category_id),\n 'price' => get_product_category_price_min_max($category_id)\n ];\n}", "private function get_filterItemCObj( $uid, $value )\n {\n static $firstLoop = true;\n static $loop = array();\n static $conf_array = null;\n\n//// #56339\n//$this->pObj->dev_var_dump( $uid, $this->markerArray['###UID###'] );\n//$this->pObj->dev_var_dump( $uid, $value );\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Item class\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n // #41753.01, 121010, dwildt, 4-\n// if($conf_name == 'CATEGORY_MENU')\n// {\n// $conf_array = $this->pObj->objJss->class_onchange($conf_name, $conf_array, $this->row_number);\n// }\n // #41753.01, 121010, dwildt, 10+\n switch ( true )\n {\n case( $conf_name == 'CATEGORY_MENU' ):\n case( $conf_name == 'TREEVIEW' ):\n $conf_array = $this->pObj->objJss->class_onchange( $conf_name, $conf_array, $this->row_number );\n break;\n default:\n // Follow the workflow\n break;\n }\n\n//var_dump( __METHOD__, __LINE__, $value, $conf_array );\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check AJAX ###ONCHANGE###';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n\n $this->markerArray[ '###CLASS###' ] = $this->replace_itemClass( $conf_array, '###CLASS###' );\n $this->markerArray[ '###STYLE###' ] = $this->replace_itemStyle( $conf_array, '###STYLE###' );\n $this->markerArray[ '###TITLE###' ] = $this->replace_itemTitle( '###TITLE###' );\n $this->markerArray[ '###URL###' ] = $this->replace_itemUrl( $conf_array, $uid, '###URL###' );\n // #i0129, 150218, dwildt, 1+\n $this->markerArray[ '###ID###' ] = $table . '__' . $field . '__' . $uid;\n $this->markerArray[ '###ITEM_SELECTED###' ] = $this->replace_itemSelected( $conf_array, $uid, $value, '###ITEM_SELECTED###' );\n // #40354, #40354, 4.1.7, 1+\n $this->markerArray[ '###TABLE.FIELD###' ] = $this->nicePiVar[ 'key_piVar' ];\n\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n //$conf_array = $this->replace_marker( $conf_array );\n // Get the COA configuration for the value\n // SWITCH first item\n switch ( true )\n {\n case( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] ):\n $cObj_name = $conf_array[ 'first_item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'first_item.' ][ 'cObject.' ];\n break;\n default:\n $cObj_name = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject.' ];\n break;\n }\n // SWITCH first item\n // Get the COA configuration for the value\n\n $this->cObjData_setFlagDisplayInCaseOfNoCounting();\n\n $item = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\n\n // 3.9.20\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n $item = $this->pObj->cObj->substituteMarkerArray( $item, $this->markerArray );\n\n // 3.9.20: Code is moved from above\n // Workaround: remove ###ONCHANGE###\n $item = str_replace( ' class=\" ###ONCHANGE###\"', null, $item );\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'class=\" ###ONCHANGE###\" is removed. Check the code!';\n t3lib_div::devlog( '[WARN/TODO] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // Workaround: remove ###ONCHANGE###\n\n $this->cObjData_unsetFlagDisplayInCaseOfNoCounting();\n\n // maxItemsTagEndBegin\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check maxItemsPerRow!';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n $item = $this->get_maxItemsTagEndBegin( $item );\n // maxItemsTagEndBegin\n\n\n $firstLoop = false;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "public function filtersExist();", "function getFilter() {\n\t\tif (isset($_POST['value'])){\n\t\t\tif ($_POST['value'] != \"all\"){\n\t\t\t\t$categoryName = $_POST['value'];\n\t\t\t\treturn $categoryName;\n\t\t\t}\n\t\t}\n\t\treturn 'all';\n\t}", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "protected function getFilterField(){\n $aField = parent::getFilterField();\n $oRequest = AMI::getSingleton('env/request');\n if(!$oRequest->get('category', 0)){\n $aField['disableSQL'] = TRUE;\n }\n return $aField;\n }", "public function get_adminstaff_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$description,$weight,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid); \n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t$description = trim($description);\n\t\t$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t $uid1 = trim($uid);\n\t\t$existsdata = $this->db->query(\"SELECT * from tb_admin_cart where userid='$uid1'\")->row_array();\n\t\tif(empty($existsdata))\n\t\t{\n\t\t\t$sql1=\"SELECT * from tb_products where ProductStatus=1\";\n\t\t\tif(!empty($parentid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t\t}\n\t\t\tif(!empty($subcatid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t\t}\n\t\t\tif(!empty($selectsublist))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t\t}\n\t\t\tif(!empty($selectgender))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t\t}\n\t\t\tif(!empty($description))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t\t}\n\t\t\tif(!empty($weight))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t\t}\n\t\t\tif(!empty($minprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t\t}\n\t\t\tif(!empty($maxprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t\t}\t\t\t\n\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql1=\"SELECT t1.* FROM tb_products as t1 WHERE t1.ProductId not IN (SELECT t2.products FROM tb_admin_cart as t2 WHERE t2.userid='$uid1') \";\n\t\t\n\t\t//$sql1 =\"select * from tb_products where ProductStatus=1\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\tif(!empty($description))\n\t\t{\n\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "protected function defineAdvancedFilter($type = 'primary')\n {\n // Define rank based on call parameter\n $rank = 1;\n $checkField = 'tx_displaycontroller_emptyfilter';\n if ($type === 'secondary') {\n $rank = 2;\n $checkField = 'tx_displaycontroller_emptyfilter2';\n }\n // Get the data filter\n try {\n // Get the filter's information\n $filterData = $this->getComponentData('filter', $rank);\n // Get the corresponding Data Filter component\n /** @var $datafilter \\Tesseract\\Tesseract\\Component\\DataFilterInterface */\n $datafilter = Tesseract::getComponent(\n 'datafilter',\n $filterData['tablenames'],\n array('table' => $filterData['tablenames'], 'uid' => $filterData['uid_foreign']),\n $this\n );\n // Initialise the filter\n $filter = $this->initFilter($filterData['uid_foreign']);\n // Pass the cached filter to the DataFilter\n $datafilter->setFilter($filter);\n try {\n $filter = $datafilter->getFilterStructure();\n // Store the filter in session\n $cacheKey = $this->prefixId . '_filterCache_' . $filterData['uid_foreign'] . '_' . $this->cObj->data['uid'] . '_' . $GLOBALS['TSFE']->id;\n $GLOBALS['TSFE']->fe_user->setKey('ses', $cacheKey, $filter);\n // Here handle case where the \"filters\" part of the filter is empty\n // If the display nothing flag has been set, we must somehow stop the process\n // The Data Provider should not even be called at all\n // and the Data Consumer should receive an empty (special?) structure\n if ($datafilter->isFilterEmpty() && empty($this->cObj->data[$checkField])) {\n $this->passStructure = false;\n }\n } catch (\\Exception $e) {\n $this->addMessage(\n $this->extKey,\n $e->getMessage() . ' (' . $e->getCode() . ')',\n $this->pi_getLL('error.get_filter'),\n FlashMessage::WARNING\n );\n }\n } catch (\\Exception $e) {\n throw new MissingComponentException($this->pi_getLL('exception.no_filter'), 1326454151);\n }\n return $filter;\n }", "public function filter_category() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! isset( $_POST['rank_math_filter_redirections_top'] ) && ! isset( $_POST['rank_math_filter_redirections_bottom'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! Helper::has_cap( 'redirections' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$category_filter = isset( $_POST['rank_math_filter_redirections_top'] ) ? $_POST['redirection_category_filter_top'] : $_POST['redirection_category_filter_bottom'];\n\t\tif ( ! $category_filter || 'none' === $category_filter ) {\n\t\t\twp_safe_redirect( Helper::get_admin_url( 'redirections' ) );\n\t\t\texit;\n\t\t}\n\n\t\twp_safe_redirect( Helper::get_admin_url( 'redirections', [ 'redirection_category' => $category_filter ] ) );\n\t\texit;\n\t}", "abstract protected function filterFieldvalue();", "protected function _beforeLoad()\n {\n if (isset($this->_productLimitationFilters['category_id']) &&\n is_array($this->_productLimitationFilters['category_id'])\n ) {\n $this->getSelect()->group('e.entity_id');\n }\n\n return parent::_beforeLoad();\n }", "private function _get_filters_section_settings() {\r\n\r\n // Get all product categories\r\n $termArgs = array(\r\n 'taxonomy' => 'product_cat',\r\n 'hide_empty' => false\r\n );\r\n $productTermsObject = get_terms( $termArgs );\r\n $productTerms = array();\r\n\r\n if ( !is_wp_error( $productTermsObject ) ) {\r\n\r\n foreach( $productTermsObject as $term )\r\n $productTerms[ $term->slug ] = $term->name;\r\n\r\n }\r\n\r\n foreach ( WWOF_Product_Listing_Helper::get_all_products( 'ID , post_title' ) as $post ){\r\n $product = wc_get_product( $post->ID );\r\n $allProducts[ WWOF_Functions::wwof_get_product_id( $product ) ] = '[ID : ' . WWOF_Functions::wwof_get_product_id( $product ) . '] ' . $post->post_title;\r\n }\r\n\r\n // Add \"None\" category selection for \"no default\" option\r\n $productTerms2 = array_merge( array ('none' => __( 'No Default' , 'woocommerce-wholesale-order-form' ) ), $productTerms );\r\n\r\n return array(\r\n\r\n array(\r\n 'title' => __( 'Filters Options', 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'title',\r\n 'desc' => '',\r\n 'id' => 'wwof_filters_main_title'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Product Category Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Only display products belonging to the selected category' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_product_category_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Product Categories...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $productTerms\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Exclude Product Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Exclude selected products' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_exclude_product_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Products...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $allProducts\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Default Product Category on Search Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'select',\r\n 'desc' => __( 'Select a product category to which product are under will be loaded by default in the order form.' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_general_default_product_category_search_filter',\r\n 'class' => 'chosen_select',\r\n 'options' => $productTerms2,\r\n 'default' => 'none'\r\n ),\r\n\r\n array(\r\n 'type' => 'sectionend',\r\n 'id' => 'wwof_filters_sectionend'\r\n )\r\n\r\n );\r\n\r\n }", "public function filterSpecificCategories($array){\n\n $newArray = [];\n\n foreach($array as $key => $value){\n $cat = trim(strtolower(strstr($value->getArticleID()->getCategory(), ' ')));\n if($cat == \"world news\" || $cat == \"football\"/* ||$cat == \"fashion\" || $cat == \"technology\"*/){\n //test fashion whs technology $numb raus? film und politics guuut 0.8\n $newArray[$key] = $value;\n }\n\n /* if($cat == \"sport\"|| $cat == \"football\" || $cat == \"culture\" || $cat == \"art and design\"){\n $newArray[$key] = $value;\n }*/\n\n /*if( $cat == \"sport\" || $cat == \"uk news\" || $cat == \"opinion\" || $cat == \"society\" || $cat == \"business\" ||\n $cat == \"politics\" || $cat == \"world news\" || $cat == \"life and style\" || $cat == \"environment\" || $cat == \"technology\"\n ||$cat == \"television & radio\" || $cat == \"culture\" || $cat == \"art and design\" || $cat == \"film\" || $cat == \"books\"\n ||$cat == \"us news\" || $cat == \"football\" || $cat == \"fashion\" || $cat == \"travel\" || $cat == \"science\"/*){ //20 categories\n $newArray[$key] = $value;\n }*/\n\n /* if( $cat == \"us news\" || $cat == \"technology\" || $cat == \"science\" || $cat == \"sport\" || $cat == \"opinion\" ||\n $cat == \"world news\" || $cat == \"football\" || $cat == \"politics\" || $cat == \"fashion\" || $cat == \"television & radio\"\n ||$cat == \"culture\" || $cat == \"environment\" || $cat == \"art and design\" || $cat == \"life and style\" || $cat == \"travel\"/*\n || $cat == \"books\" || $cat == \"uk news\" || $cat == \"business\" || $cat == \"film\" || $cat == \"society\"){ //20 categories\n $newArray[$key] = $value;\n }\n */\n\n }\n\n\n return $newArray;\n }", "function culturefeed_search_ui_default_filter_options($filter_form_number) {\n\n $defaults = array(\n 1 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n 2 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide long-running events',\n 'query-string' => 'no-periods',\n 'api-filter-query' => 'periods:false'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide permanent events',\n 'query-string' => 'no-permanent',\n 'api-filter-query' => 'permanent:false'\n ),\n ),\n 3 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n );\n\n return isset($defaults[$filter_form_number]) ? $defaults[$filter_form_number] : array();\n\n}", "private function _applyFilter($filter)\n\t{\n\t\tglobal $context, $scripturl;\n\n\t\tif (isset($filter['variable']))\n\t\t{\n\t\t\t$context['filter'] = &$filter;\n\n\t\t\t// Set the filtering context.\n\t\t\tswitch ($filter['variable'])\n\t\t\t{\n\t\t\t\tcase 'id_member':\n\t\t\t\t\t$id = $filter['value']['sql'];\n\t\t\t\t\tMembersList::load($id, false, 'minimal');\n\t\t\t\t\t$name = MembersList::get($id)->real_name;\n\t\t\t\t\t$context['filter']['value']['html'] = '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $id, 'name' => $name]) . '\">' . $name . '</a>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars((substr($filter['value']['sql'], 0, 1) === '?' ? $scripturl : '') . $filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array('\\_' => '_')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'message':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\t$context['filter']['value']['html'] = preg_replace('~&amp;lt;span class=&amp;quot;remove&amp;quot;&amp;gt;(.+?)&amp;lt;/span&amp;gt;~', '$1', $context['filter']['value']['html']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'error_type':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$context['filter']['value']['html'] = &$filter['value']['sql'];\n\t\t\t}\n\t\t}\n\t}", "function wpcoupon_filter_to_coupon_administration(){\r\n global $post_type;\r\n if($post_type == 'coupon'){\r\n\r\n $post_formats_args = array(\r\n //'show_option_all' => 'All Categories',\r\n 'show_option_none' => 'All Categories',\r\n 'option_none_value' => '',\r\n 'orderby' => 'NAME',\r\n 'order' => 'ASC',\r\n 'name' => 'coupon_category',\r\n 'taxonomy' => 'coupon_category'\r\n );\r\n\r\n //if we have a post format already selected, ensure that its value is set to be selected\r\n if(isset($_GET['coupon_category'])){\r\n $post_formats_args['selected'] = sanitize_text_field($_GET['coupon_category']);\r\n }\r\n wp_dropdown_categories($post_formats_args);\r\n\r\n $types = wpcoupon_get_coupon_types();\r\n\r\n $type = '';\r\n if(isset($_GET['c_type'])){\r\n $type = sanitize_text_field($_GET['c_type']);\r\n }\r\n ?>\r\n <select class=\"postform\" id=\"coupon_type\" name=\"c_type\">\r\n <option value=\"\"><?php esc_html_e( 'All coupon types', 'wp-coupon' ); ?></option>\r\n <?php foreach ( $types as $k => $v ) { ?>\r\n <option <?php selected( $type, $k ); ?> value=\"<?php echo esc_attr( $k ); ?>\"><?php echo esc_html( $v ); ?></option>\r\n <?php } ?>\r\n </select>\r\n <?php\r\n $s = '';\r\n if ( isset ( $_GET['c_s_store'] ) ) {\r\n $s = $_GET['c_s_store'];\r\n }\r\n ?>\r\n <input type=\"text\" id=\"search-coupon-store\" placeholder=\"<?php esc_attr_e( 'Filter store','wp-coupon' ); ?>\" value=\"<?php echo esc_attr( $s ); ?>\" name=\"c_s_store\">\r\n <?php\r\n\r\n }\r\n }", "public function filtering();", "public function checkSubcatNameExist($category_id,$sub_catname)\n{\n\ttry\n\t{\n\t\t$ifExist = subcategory::where('category_id','=',$category_id)->where('sub_category_name',$sub_catname)->get();\n\t\t//$ifExist = subcategory::where('category_id','=','1')->where('sub_category_name','=','Office Partition')->get();\n\t\t// return $ifExist;\n\t\tif(count($ifExist) <= 0)\n\t\t{\n\t\t\treturn '0';//no data\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '1'; //with data\n\t\t}\n\t}\n\tcatch(\\Exception $e)\n\t{\n\t\treturn '0';\n\t}\n}", "public function get_all_category_subtype2_for_category_type($type_name,$subtype_name,&$data_arr,&$data_count){\n if($type_name==\"\"){\n //no type specified so no filtering\n $data_count = 0;\n return true;\n }\n $q = \"select DISTINCT subtype2 from \".TP.\"transaction_type_master where type='\".$type_name.\"' and subtype1='\".$subtype_name.\"'\";\n $res = mysql_query($q);\n if(!$res){\n return false;\n }\n $data_count = mysql_num_rows($res);\n if($data_count == 0){\n //no recs\n return true;\n }\n //recs so\n while($row = mysql_fetch_assoc($res)){\n $data_arr[] = $row;\n }\n return true;\n }", "function ProcessMultilevelSubCategories()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"ProcessMultilevelSubCategories();\" . \"<HR>\";\n if ($this->listSettings->HasItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\")) {\n $this->sub_categories_count = $this->listSettings->GetItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\");\n for ($i = 0; $i < $this->sub_categories_count; $i ++) {\n $sub_category = array();\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\")) {\n $sub_category[\"library\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LIBRARY\", array(\n $i), true);\n }\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\")) {\n $sub_category[\"link_field\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LINK_FIELD\", array(\n $i), true);\n }\n $this->sub_categories[] = $sub_category;\n }\n\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORIES_COUNT\", array(), true);\n }\n\n }", "function SetupLookupFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_MainGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`MainGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `MainGroup`, `MainGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`MainGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_SubGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`SubGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `SubGroup`, `SubGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`SubGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_Article\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`Article` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"f2\" => '`SubGroup` = {filter_value}', \"t2\" => \"200\", \"fn2\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `Article`, `Article` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`Article` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\t}\n\t}", "function check_privacy_filtered($myprofileid,$hisprofileid)\n{\n\t$sql=\"select * from FILTERS where PROFILEID='$hisprofileid'\";\n\t$resultfilter=mysql_query_decide($sql) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sql,\"ShowErrTemplate\");\n\n\tif(mysql_num_rows($resultfilter)>0)\n\t{\n\t\t$filterrow=mysql_fetch_array($resultfilter);\t\t\t\t\t\t\t\n\t\tif($filterrow[\"AGE\"]==\"Y\" || $filterrow[\"MSTATUS\"]==\"Y\" || $filterrow[\"RELIGION\"]==\"Y\" || $filterrow[\"COUNTRY_RES\"]==\"Y\" || $filterrow[\"MTONGUE\"]==\"Y\"|| $filterrow[\"CITY_RES\"]==\"Y\" || $filterrow[\"INCOME\"]==\"Y\" || $filterrow[\"CASTE\"]==\"Y\")\n\t\t{\n\t\t\t$sqlfilter=\"select count(*) from JPROFILE where activatedKey=1 and PROFILEID='$myprofileid'\";\n\n\t\t\t//Sharding Concept added by Lavesh Rawat on table JPARTNER\t\n\t\t\tinclude_once($_SERVER['DOCUMENT_ROOT'].\"/classes/Jpartner.class.php\");\n\t\t\t$jpartnerObj= new Jpartner;\n\t\t\t$mysqlObj=new Mysql;\n\n\t\t\t$myDbName=getProfileDatabaseConnectionName($hisprofileid,'',$mysqlObj);\n\t\t\t$myDb=$mysqlObj->connect(\"$myDbName\");\n\t\t\t$jpartnerObj->setPartnerDetails($hisprofileid,$myDb,$mysqlObj,\"LAGE,HAGE,PARTNER_CASTE,PARTNER_COUNTRYRES,PARTNER_MSTATUS,PARTNER_MTONGUE\");\n\t\t\tif($jpartnerObj->isPartnerProfileExist($myDb,$mysqlObj,$hisprofileid))\n\t\t\t{\n\t\t\t\tif($filterrow[\"AGE\"]==\"Y\" && $jpartnerObj->getLAGE() && $jpartnerObj->getHAGE() )\n\t\t\t\t\t$sqlfilter.= \" AND AGE between \".$jpartnerObj->getLAGE().\" AND \".$jpartnerObj->getHAGE();\n\n\t\t\t\tif($filterrow[\"CASTE \"]==\"Y\" && $jpartnerObj->getPARTNER_CASTE())\n\t\t\t\t{\n\t\t\t\t\t//\t$caste_arr=explode(\"','\",trim($jpartnerObj->getPARTNER_CASTE(),\"'\"));\n\t\t\t\t\t$sqlfilter.=\" and CASTE in (\".$jpartnerObj->getPARTNER_CASTE().\")\";\n\t\t\t\t\t// implode(\"','\",get_all_caste($caste_arr)) . \"')\";\n\t\t\t\t}\t\n\t\t\t\tif($filterrow[\"RELIGION \"]==\"Y\" && $jpartnerObj->getPARTNER_RELIGION())\n\t\t\t\t\t$sqlfilter.=\" AND RELIGION in (\".$jpartnerObj->getPARTNER_RELIGION().\")\";\n\n\t\t\t\tif($filterrow[\"COUNTRY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_COUNTRYRES())\n\t\t\t\t\t$sqlfilter.=\" AND COUNTRY_RES in (\".$jpartnerObj->getPARTNER_COUNTRYRES().\")\";\n\n\t\t\t\tif($filterrow[\"CITY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_CITYRES())\n\t\t\t\t\t$sqlfilter.=\" AND CITY_RES in (\".$jpartnerObj->getPARTNER_CITYRES().\")\";\n\n\t\t\t\tif($filterrow[\"MSTATUS\"]==\"Y\" && $jpartnerObj->getPARTNER_MSTATUS())\n\t\t\t\t\t$sqlfilter.=\" and MSTATUS in (\".$jpartnerObj->getPARTNER_MSTATUS().\")\";\n\n\t\t\t\tif($filterrow[\"MTONGUE\"]==\"Y\" && $jpartnerObj->getPARTNER_MTONGUE())\n\t\t\t\t\t$sqlfilter.=\" and MTONGUE in (\".$jpartnerObj->getPARTNER_MTONGUE().\")\";\n\n\t\t\t\tif($filterrow[\"INCOME\"]==\"Y\" && $jpartnerObj->getPARTNER_INCOME())\n\t\t\t\t\t$sqlfilter.=\" and INCOME in (\".$jpartnerObj->getPARTNER_INCOME().\")\";\n\t\t\t}\n\t\t\t$resfil=mysql_query_decide($sqlfilter) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sqlfilter,\"ShowErrTemplate\");\n\t\t\t$finalfilterrow=mysql_fetch_row($resfil);\n\n\t\t\tif($finalfilterrow[0] <= 0)\n\t\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function tep_get_subCategory($tagValue){\n\tglobal $languages_id,$customer_group_id;\n\t//禁用的电池分类ID @nathan 2011-11-2\n\t//$disable_batteries = array(1,3,21,23,25,73,111,307,314,499);\n\t$disable_batteries = array(23,25,73,111,307,499);\n\t$disable_batteries_three = array(188,191,192,193,194,195,502,556,112,115,117,126,129,136,139,141,172,175,601,181,306,312,313,500,501,562,197,198,202,204,205,206,208,210,211,212,213,217,218,220,503,504,505,521,557,558,559,560,561,563,507,508,509,510,511,512,513,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,741);\n\t$jsonData = array();\n\tif (isset($tagValue) && !empty($tagValue)){\n\t\t# \n\t\t# URL\n\t\t# Ʒ\n\t\t# |_| |=|\n\t\t$topNavi_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$tagValue);\n\t\t$topNavi_categories_query = tep_db_query($topNavi_categories_sql);\n\t\tif (tep_db_num_rows($topNavi_categories_query) > 0){\n\t\t\t$i = 0;\n\t\t\twhile ($topNavi_categories = tep_db_fetch_array($topNavi_categories_query)) {\n\t\t\t\t//禁止显示的电池分类 @nathan 2011-11-2\n\t\t\t\tif($tagValue == 408 && in_array($topNavi_categories['categories_id'], $disable_batteries)) continue;\n\n\t\t\t\t$products_in_category = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\tif ($products_in_category > 0){\n\t\t\t\t\t$jsonData[$i]['name'] = $topNavi_categories['categories_name'];\n\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($topNavi_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t$jsonData[$i]['parent'] = '0';\n\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sub_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$topNavi_categories['categories_id']);\n\t\t\t\t\t$sub_categories_query = tep_db_query($sub_categories_sql);\n\t\t\t\t\tif (tep_db_num_rows($sub_categories_query) > 0){\n\t\t\t\t\t\twhile ($sub_categories = tep_db_fetch_array($sub_categories_query)) {\n\t\t\t\t\t\t\tif(in_array($sub_categories['categories_id'], $disable_batteries_three)) continue;\n\t\t\t\t\t\t\t$products_in_subcategory = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\tif ($products_in_subcategory > 0){\n\t\t\t\t\t\t\t\t$jsonData[$i]['name'] = $sub_categories['categories_name'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($sub_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t\t\t\t$jsonData[$i]['parent'] = $sub_categories['categories_id'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}unset($products_in_subcategory);\n\t\t\t\t\t\t}unset($sub_categories);\n\t\t\t\t\t}unset($sub_categories_query,$sub_categories_sql);\n\t\t\t\t}unset($products_in_category);\n\t\t\t}unset($topNavi_categories);\n\t\t}unset($topNavi_categories_query,$topNavi_categories_sql);\n\t\t//echo json_encode($jsonData);\n\t\treturn $jsonData;\n\t}else{\n\t\treturn false;\n\t}\n}", "private function filters() {\n\n\n\t}", "private function get_filterItem( $uid, $value )\n {\n static $loop = array();\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n // Make a backup\n $cObjDataBak = $this->pObj->cObj->data;\n // Add elements of current row to cObj->data\n $this->cObjData_updateRow( $uid );\n\n $this->set_markerArrayUpdateRow( $uid );\n\n // IF first_item, set the first item tree view\n if ( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] )\n {\n $this->set_firstItemTreeView();\n }\n // IF first_item, set the first item tree view\n // DEVELOPMENT: Browser engine 4.x\n switch ( $this->pObj->dev_browserEngine )\n {\n case( 3 ):\n // stdWrap the current value\n $item = $this->get_filterItemValueStdWrap( $conf_name, $conf_array, $uid, $value );\n break;\n case( 4 ):\n // #i0112, 141218, dwildt, 1+\n case( 5 ):\n // Wrap the current value by the cObject\n $this->updateWizard( 'filter_cObject' );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 1' );\n }\n $item = $this->get_filterItemCObj( $uid, $value );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 2' );\n }\n break;\n default:\n $header = 'FATAL ERROR!';\n $text = 'Sorry, this error shouldn\\'t occure: case is undefined.';\n $this->pObj->drs_die( $header, $text );\n break;\n }\n // DEVELOPMENT: Browser engine 4.x\n\n\n $this->set_itemCurrentNumber();\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 3' );\n }\n\n // Reset cObj->data\n $this->pObj->cObj->data = $cObjDataBak;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "private function getTypesFilterSubquery($sql = FALSE) {\n \n $this->loadTypes();\n $noticesQuery = $this->doctrine\n ->getEntityManager()\n ->getRepository('FenchyNoticeBundle:Notice')\n ->createQueryBuilder('n2')\n ->select($sql ? 'n2.id' : 'n2')\n ->leftJoin('n2.type', 't2')\n ->leftJoin('n2.values', 'v2')\n ->leftJoin('t2.properties', 'p2');\n\n $typeAlternatives = array();\n $parameters = array();\n foreach($this->types as $type) {\n\n if($this->isValidFilterTypeChecked($type->getId(), NULL, NULL)) {\n\n $typeAnd = array('n2.type = :condType'.$type->getId());\n $parameters['condType'.$type->getId()] = $type;\n\n // if type has subcategories/properties\n $typeKey = $this->getKeyValidFilter($type->getId(), NULL, NULL); \n if(\n array_key_exists('subcategories', $this->validFilter['types'][$typeKey]) && \n is_array($this->validFilter['types'][$typeKey]['subcategories']) &&\n !empty($this->validFilter['types'][$typeKey]['subcategories'])\n ) {\n\n foreach($this->validFilter['types'][$typeKey]['subcategories'] as $pId => $prop) {\n // if type has this property\n if( $property = $type->hasPropertyOfId($prop['id']) ) {\n $values = array();\n if(!$this->allUnchecked($prop['subcategories'])) {\n \n foreach($prop['subcategories'] as $val => $valData) {\n // if value is selected\n if(is_array($valData) && array_key_exists('checked', $valData) && $valData['checked']) {\n $values[] = $valData['id'];\n }\n }\n }\n if(!empty($values)) {\n // If there is more than one property for type, then we have to \n // join conditions for all of them by 'AND'\n // To do that we need to additionaly join each value separately.\n if(count($this->validFilter['types'][$typeKey]['subcategories']) > 1) {\n $noticesQuery->leftJoin('n2.values', 'v2'.$prop['id'], Expr\\Join::WITH, 'v2'.$prop['id'].'.property = '.$prop['id']);\n $typeAnd[] = 'v2'.$prop['id'].'.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n else {\n $typeAnd[] = 'v2.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n }\n } // if type has property\n } // foreach properties\n } // if type has properties\n if(!empty($typeAnd)) {\n $typeAlternatives[] = new Expr\\Andx($typeAnd);\n }\n } // if type in filter\n } // foreach type\n\n if(!empty($typeAlternatives))\n $noticesQuery->andWhere(new Expr\\Orx($typeAlternatives));\n if($sql)\n return $noticesQuery->getQuery()->getSQL();\n else return array($noticesQuery, $parameters);\n }", "public function filterByValueRecursive() {}", "public function get_user_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid);\n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t//$tagno = trim($tagno);\n\t\t//$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t\n\t\t\n\t\t $uid1 = trim($uid);\n\t\t \n\t\t // $a=$this->db->query(\"select * from tb_admin_cart where userid='$uid1'\")->row_array();\t \n\t\t//$b=$a['products'];\n\t\t\n\t\t$sql1 =\"SELECT t1.*,t2.pricestatus from tb_products as t1 inner join tb_admin_cart as t2 on t1.ProductId=t2.products where t1.ProductId = t2.products and t2.userid=' $uid'\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\t/*if(!empty($tagno))\n\t\t{\n\t\t\t$sql1.=\" AND tagno='$tagno'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}*/\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "public function fixVisibleButWithoutCategoryAndInConfigurable()\n {\n $visibilityAttribute = $this->eavConfig->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'visibility');\n $select = $this->_getWriteAdapter()->select();\n $select->join(['data_index' => $this->getMainTable()], 'data_index.entity_id = attribute.entity_id', []);\n $select->where('attribute.attribute_id = ?', $visibilityAttribute->getId());\n $select->where('data_index.is_in_configurable = ?', 1);\n $select->where('data_index.is_in_category = ?', 0);\n $select->where('data_index.visibility <> ?', Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE);\n $select->columns([\n 'value' => new Zend_Db_Expr(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)\n ]);\n $this->_getWriteAdapter()->query($select->crossUpdateFromSelect(\n ['attribute' => $visibilityAttribute->getBackendTable()]\n ));\n\n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_category_product')\n ->reindexAll();\n \n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_product_flat')\n ->reindexAll();\n }", "public function getOnlyCategorySubcatZipcodeDetail($category,$subCat)\r\n\t {\r\n\t\t\t\t $sql=\"SELECT distinct m.zip, (SELECT COUNT(storeName )FROM stores WHERE zip = m.zip) AS No_of_store FROM stores m, books b,inventory i WHERE (b.category = '$category' AND b.subCat = '$subCat') AND (b.isbn = i.isbn) AND (i.storeID=m.storeID)\";\r\n\t\t $result=mysql_query($sql);\r\n\t\t\t return $result;\t\r\n\t }", "abstract function display( $p_filter_value );", "function get_dropbox_categories($filter='')\r\n{\r\n\tglobal $_user;\r\n\tglobal $dropbox_cnf;\r\n\r\n\techo '<h1>'.$filter.'</h1>';\r\n\r\n\t$return_array=array();\r\n\r\n\t$sql=\"SELECT * FROM \".$dropbox_cnf['tbl_category'].\" WHERE user_id='\".$_user['user_id'].\"'\";\r\n\r\n\t$result=api_sql_query($sql);\r\n\twhile ($row=mysql_fetch_array($result))\r\n\t{\r\n\t\tif(($filter=='sent' AND $row['sent']==1) OR ($filter=='received' AND $row['received']==1) OR $filter=='')\r\n\t\t{\r\n\t\t\t$return_array[$row['cat_id']]=$row;\r\n\t\t}\r\n\t}\r\n\r\n\treturn $return_array;\r\n}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function getFilteredSubCategoriesForListing(ProductCategory $product_category);", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "public function hasFilter(): bool;", "function categoryCheck($cond = array())\n\t{\n\t\t$select = 'addoncategory_id';\n\t\treturn $this->CI->AdminModel->getCondSelectedData($cond,$select,$this->tableName);\n\t}", "protected abstract function filter();", "public function filter( )\n {\n global $UNDERQL;\n $l_args_num = func_num_args( );\n if ( $l_args_num < 3 )\n return false;\n $filter_name = func_get_arg( 0 );\n\n $l_filter_callback = $UNDERQL['filter']['prefix'] . $filter_name;\n\n if ( !function_exists( $l_filter_callback ))\n return false;\n\n switch(func_get_arg(1))\n {\n case UQL_FILTER_IN:\n\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->in_filters[$this->table_name][func_get_arg( $i )]))\n $this->in_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n else\n {\n $_temp = $this->in_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->in_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n }\n }\n return true;\n\n case UQL_FILTER_OUT:\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->out_filters[$this->table_name][func_get_arg( $i )]))\n {\n $this->out_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n }\n else\n {\n $_temp = $this->out_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->out_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n\n }\n }\n return true;\n default : return false;\n }\n }", "function xh_fetchFilter($filter_name)\r\n\t{\r\n\t}", "abstract public function filters();", "protected function _initCatagory()\r\n\t{\r\n\t\tMage::dispatchEvent('vendor_catalog_controller_category_init_before', array('controller_action' => $this));\r\n\t\t$categoryId = (int) $this->getRequest()->getParam('id', false);\r\n\t\tif (!$categoryId) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$category = Mage::getModel('vendorscategory/category')\r\n\t\t->load($categoryId);\r\n\t\tif (!Mage::helper('vendorscategory')->canShow($category)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!Mage::registry(\"vendor_id\") && !Mage::registry(\"vendor\") && !Mage::registry(\"current_vendor\")){\r\n\t\t\t//echo $category->getVendorId();exit;\r\n\t\t\t$vendorObj = Mage::getModel('vendors/vendor')->load($category->getVendorId());\r\n\r\n\t\t\t//var_dump($vendorObj->getData());exit;\r\n\t\t\tMage::register('vendor_id', $vendorObj->getVendorId());\r\n\t\t\tMage::register('vendor', $vendorObj);\r\n\t\t\tMage::register('current_vendor', $vendorObj);\r\n\t\t}\r\n\t\t\r\n\t\tMage::register('current_vendor_category', $category);\r\n\t\tMage::register('current_vendor_entity_key', $category->getPath());\r\n\t\ttry {\r\n\t\t\tMage::dispatchEvent(\r\n\t\t\t'vendor_catalog_controller_category_init_after',\r\n\t\t\tarray(\r\n\t\t\t'category' => $category,\r\n\t\t\t'controller_action' => $this\r\n\t\t\t)\r\n\t\t\t);\r\n\t\t} catch (Mage_Core_Exception $e) {\r\n\t\t\tMage::logException($e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\treturn $category;\r\n\t}", "function dataSubCategory( $parentcategory, $gcntyn=false ){\n\n\tglobal $db, $sess;\n\n\t$arrfileurl = explode('/',$_SERVER['SCRIPT_FILENAME']);\n\tif(in_array(\"m\", $arrfileurl) || in_array(\"m2\", $arrfileurl)){\n\t\t$hidden = \"hidden_mobile=0\";\n\t} else {\n\t\t$hidden = \"hidden=0\";\n\t}\n\t# 카테고리 정보\n\tfor ($i=0;$i<2;$i++){\n\t\t$length = strlen($parentcategory) + 3;\n\t\t$query = \"\n\t\tselect\n\t\t\tcategory,catnm,sort,level,level_auth\n\t\tfrom\n\t\t\t\".GD_CATEGORY.\"\n\t\twhere\n\t\t\tcategory like '$parentcategory%'\n\t\t\tand length(category)=$length\n\t\t\";\n\t\tif ($GLOBALS[ici_admin] === false) $query .= \"and \".$hidden;\n\t\t$res = $db->query($query);\n\n\t\tif ($db->count_($res)) break;\n\t\telse if ($length>6) $parentcategory = substr($parentcategory,0,-3);\n\t}\n\n\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\tif ( $gcntyn == true && _CATEGORY_NEW_METHOD_ === false ){\n\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"a.\".$hidden;\n\t\t$where[] = \"a.category like '$parentcategory%'\";\n\t\t$where[] = \"open\";\n\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"b.inpk_prdno!=''\";\n\n\t\t$query = \"\n\t\tselect\n\t\t\tleft(category,$length),count(distinct a.goodsno)\n\t\tfrom\n\t\t\t\".GD_GOODS_LINK.\" a,\n\t\t\t\".GD_GOODS.\" b\n\t\twhere\n\t\t\ta.goodsno = b.goodsno\n\t\t\tand \".implode(\" and \", $where).\"\n\t\tgroup by left(category,$length)\n\t\t\";\n\t\t$res2 = $db->query($query);\n\t\twhile ($data2=$db->fetch($res2)) $gcnt[$data2[0]] = $data2[1];\n\t}\n\n\t### 데이타 조작\n\t$i = 0;\n\twhile ($data=$db->fetch($res)){\n\t\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\t\tif ($gcntyn == true && _CATEGORY_NEW_METHOD_ === true) {\n\t\t\t$where\t= array();\n\t\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"gl.hidden=0\";\n\t\t\t$where[] = \"gl.category = '\".$data['category'].\"'\";\n\t\t\t$where[] = \"g.open = '1'\";\n\t\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"g.inpk_prdno!=''\";\n\n\t\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tCOUNT(g.goodsno) as cnt\n\t\t\tFROM\n\t\t\t\t\".GD_GOODS.\" g\n\t\t\tINNER JOIN\n\t\t\t\t\".GD_GOODS_LINK.\" gl ON g.goodsno = gl.goodsno\n\t\t\tWHERE\n\t\t\t\t\".implode(\" AND \", $where).\"\n\t\t\t\";\n\n\t\t\t$res2 = $db->query($query);\n\t\t\twhile ($data2=$db->fetch($res2, 1)) $gcnt[$data['category']] = $data2['cnt'];\n\t\t}\n\n\t\t$member_auth = false;\n\t\tif($data['level']){//권한 설정되어 있는지 체크\n\t\t\tswitch($data['level_auth']){//권한체크\n\t\t\t\tcase '1': //모두숨김\n\t\t\t\t\tif( (!$sess['level'] ? 0 : $sess['level']) >= $data['level'] ) $member_auth = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: $member_auth = true; break;\n\t\t\t}\n\t\t}\n\t\telse $member_auth = true;\n\n\t\tif($member_auth){\n\t\t\t$data['gcnt'] = $gcnt[ $data['category'] ];\n\t\t\t$cate[$data[sort]][] = $data;\n\t\t}\n\t}\n\n\t### 배열 순서 재정의\n\tif ($cate) $cate = resort($cate);\n\n\treturn $cate;\n}", "function _applyFilter($user, $info, $filter) {\n\t\tforeach($filter as $key => $pattern) {\n\t\t\t//sanitize pattern for use as regex\n\t\t\t$pattern = '/'.str_replace('/', '\\/', $pattern).'/i';\n\t\t\t\n\t\t\tif($key == 'user') {\n\t\t\t\tif(!preg_match($pattern, $user)) return false;\n\t\t\t} else if($key == 'grps') {\n\t\t\t\tif(!count(preg_grep($pattern, $info['grps']))) { \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!preg_match($pattern, $info[$key])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "abstract public function filter(Subscriber $subscriber, $root);", "function listProductsBySubCategory($category, $subcategory) {\r\n\t\t$query = \"SELECT * FROM \".TBL_PRODUCTS.\" WHERE available = '1' AND stock > 0 AND category = :category AND subcategory = :subcategory\";\r\n\t\t$stmt = $this->connection->prepare($query);\r\n\t\t$stmt->execute(array(':category' => $category, ':subcategory' => $subcategory));\r\n\t\t$dbarray = $stmt->fetchAll();\r\n\t\t$count = $stmt->rowCount();\r\n\t\tif(!$dbarray || $count < 1){\r\n\t\t\treturn false; // failure\r\n\t\t} else {\r\n\t\t\treturn $dbarray; // success\r\n\t\t}\r\n\t}", "function custom_post_type_cat_filter($query) {\n if ( !is_admin() && $query->is_main_query() ) {\n if ($query->is_category()) {\n $query->set( 'post_type', array( 'articles', 'guides', 'conseils' ) );\n }\n }\n}", "public function testUpdateItemSubCategory()\n {\n }", "public function rawFilter($filter) {\n\t\t$query = InventorySummary::orderBy('Client_SKU', 'asc');\n\t\tif(isset($filter['objectID']) && strlen($filter['objectID']) > 3) {\n\t\t\t$query = $query->where('objectID', 'like', $filter['objectID'] . '%');\n\t\t}\n\t\tif(isset($filter['Client_SKU']) && strlen($filter['Client_SKU']) > 3) {\n\t\t\t$query = $query->where('Client_SKU', 'like', $filter['Client_SKU'] . '%');\n\t\t}\n\t\tif(isset($filter['Description']) && strlen($filter['Description']) > 3) {\n\t\t\t$query = $query->where('Description', 'like', $filter['Description'] . '%');\n\t\t}\n\n /*\n * Pick face quantity choices\n */\n if(isset($filter['pickQty_rb'])) {\n if($filter['pickQty_rb'] == 'zero') {\n $query = $query->where('pickQty', '=', '0');\n } elseif($filter['pickQty_rb'] == 'belowMin') {\n $query = $query->where('pickQty', '<', '3');\n } elseif($filter['pickQty_rb'] == 'aboveMin') {\n $query = $query->where('pickQty', '>', '2');\n }\n }\n\n /*\n * Activity location quantity choices\n */\n if(isset($filter['actQty_rb'])) {\n if($filter['actQty_rb'] == 'zero') {\n $query = $query->where('actQty', '=', '0');\n } elseif($filter['actQty_rb'] == 'aboveZero') {\n $query = $query->where('actQty', '>', '0');\n }\n }\n\n /*\n * Reserve quantity choices\n */\n if(isset($filter['resQty_rb'])) {\n if($filter['resQty_rb'] == 'zero') {\n $query = $query->where('resQty', '=', '0');\n } elseif($filter['resQty_rb'] == 'aboveZero') {\n $query = $query->where('resQty', '>', '0');\n }\n }\n\n /*\n * Replen Priority choices\n */\n if(isset($filter['replenPrty_cb_noReplen'])\n or isset($filter['replenPrty_cb_20orBelow'])\n or isset($filter['replenPrty_cb_40orBelow'])\n or isset($filter['replenPrty_cb_60orBelow'])) {\n $query->where(function ($query) use ($filter) {\n if (isset($filter['replenPrty_cb_noReplen']) && $filter['replenPrty_cb_noReplen'] == 'on') {\n $query->orWhereNull('replenPrty')\n ->orWhere('replenPrty', '=', '0');\n }\n if (isset($filter['replenPrty_cb_20orBelow']) && $filter['replenPrty_cb_20orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['1', '20']);\n }\n if (isset($filter['replenPrty_cb_40orBelow']) && $filter['replenPrty_cb_40orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['21', '40']);\n }\n if (isset($filter['replenPrty_cb_60orBelow']) && $filter['replenPrty_cb_60orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['41', '60']);\n }\n });\n }\n //dd(__METHOD__.\"(\".__LINE__.\")\", compact('filter', 'query'));\n\n\t\tif(isset($filter['created_at']) && strlen($filter['created_at']) > 1) {\n\t\t\t$query = $query->where('created_at', 'like', $filter['created_at'] . '%');\n\t\t}\n\t\tif(isset($filter['updated_at']) && strlen($filter['updated_at']) > 1) {\n\t\t\t$query = $query->where('updated_at', 'like', $filter['updated_at'] . '%');\n\t\t}\n return $query;\n }", "public function hasFilter(){\n return $this->_has(5);\n }", "public function has_filters()\n {\n }", "protected static function _category_query_filters_condition($query, $parameters=array())\n {\n $price_category_code=Service_Product_Price::get_price_category_code(Service_User::instance()->get_user()->price_category);\n \n //die($price_category_code);\n \n $hodnota_procentni_slevy_pro_skupinu=(Service_Product_Price::get_price_category_percentual_value(Service_User::instance()->get_user()->price_category))/100;\n \n $query\n ->group_by(\"products.id\")\n //->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\")\n ->join(\"manufacturers\",\"LEFT\")->on(\"products.manufacturer_id\",\"=\",\"manufacturers.id\");\n// ->join(array(\"product_parameters_products\",\"ppp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp2.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv2\"))->on(\"ppp2.product_parameter_value_id\",\"=\",\"ppv2.id\")->on(\"ppv2.product_parameter_id\",\"=\",DB::expr(1))\n// ->join(array(\"product_parameters_products\",\"ppp1\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp1.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv1\"))->on(\"ppp1.product_parameter_value_id\",\"=\",\"ppv1.id\")->on(\"ppv1.product_parameter_id\",\"=\",DB::expr(2));\n \n $case_string=\"\n (\n CASE\n WHEN pc2.price_type_id =1\n THEN\n (\n CASE\n WHEN products.percentage_discount >0\n THEN pcp2.cena * ( 1 - ( products.percentage_discount /100 ) ) \n ELSE pcp2.cena\n END\n )\n WHEN $hodnota_procentni_slevy_pro_skupinu > (products.percentage_discount/100)\n THEN (`price_categories_products`.`cena` * ( 1 - ( $hodnota_procentni_slevy_pro_skupinu ) ) ) \n ELSE (`price_categories_products`.`cena` * ( 1 - ( products.percentage_discount/100) ) )\n END\n ) \n \";\n \n //$query->select(array(db::expr(\" (select hodnota from price_categories where kod = \\\"\".$price_category_code.\"\\\")\"),\"price_sleva\"));\n $query->select(array(db::expr($case_string),\"price\"));\n \n $query->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\");\n $query->join(\"price_categories\")->on(\"price_categories_products.price_category_id\",\"=\",\"price_categories.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"D0\\\"\"));\n $query->join(array(\"price_categories_products\",\"pcp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"pcp2.product_id\");\n $query->join(array(\"price_categories\",\"pc2\"),\"LEFT\")->on(\"pcp2.price_category_id\",\"=\",\"pc2.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"\".$price_category_code.\"\\\"\"));\n \n \n if(isset($parameters[\"price_selected_max\"])) $query->having(\"price\",\"<=\",$parameters[\"price_selected_max\"]);\n if(isset($parameters[\"price_selected_min\"])) $query->having(\"price\",\">=\",$parameters[\"price_selected_min\"]);\n //if(isset($parameters[\"products_filter_manufacturer\"])) $query->where(\"products.manufacturer_id\",\"=\",$parameters[\"products_filter_manufacturer\"]);\n if(isset($parameters[\"products_filter_manufacturers\"])) $query->where(\"products.manufacturer_id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_manufacturers\"]).\")\"));\n// if(isset($parameters[\"products_filter_colors\"]) && is_array($parameters[\"products_filter_colors\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_colors\"]).\")\"));\n// if(isset($parameters[\"products_filter_sizes\"]) && is_array($parameters[\"products_filter_sizes\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_sizes\"]).\")\"));\n// \n// if(isset($parameters[\"products_filter_size\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_size\"]).\")\"));\n// if(isset($parameters[\"products_filter_color\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_color\"]).\")\"));\n// \n return $query;\n }", "public static function getSubcatValues()\n\t{\n\t}", "function wpcoupon_add_filter_to_coupons( &$query){\r\n\r\n global $post_type, $pagenow;\r\n\r\n //if we are currently on the edit screen of the post type listings\r\n if($pagenow == 'edit.php' && $post_type == 'coupon'){\r\n if( isset( $_GET['coupon_category'] ) ){\r\n\r\n //get the desired post format\r\n $cat = sanitize_text_field($_GET['coupon_category']);\r\n //if the post format is not 0 (which means all)\r\n if( $cat != 0 ){\r\n $query->query_vars['tax_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'taxonomy' => 'coupon_category',\r\n 'field' => 'term_id',\r\n 'terms' => array( $cat )\r\n )\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * Search store by name\r\n * @see WPCoupon_Search::where()\r\n */\r\n\r\n if ( isset( $_GET['c_type'] ) ) {\r\n $t = trim( ( string ) $_GET['c_type'] );\r\n if ( $t ) {\r\n $query->query_vars['meta_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'key' => '_wpc_coupon_type',\r\n 'value' => $t,\r\n 'compare' => 'LIKE',\r\n )\r\n );\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }", "public function get_specific_filter( $filter_id, $number_of_values, $comparability )\t\t\t\t\t// filter id is an attribute id\r\n\t\t{\r\n\t\t\t$this->errno = DB_OK;\r\n\t\t\t$values = array();\r\n\t\t\t\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t\t$attr = new attribute( $this->con, $filter_id, $this->cat_id );\t\t\t\t\t\t\t\t\t\t//\tcreating an attribute object using the filter_id\r\n\t\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\r\n\r\n\t\t\t$is_filterable = $attr->is_filterable();\r\n\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $is_filterable == 0 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tchecking filterability\r\n\t\t\t{\r\n\t\t\t\t$this->errno = ATTRIBUTE_NOT_FILTERABLE;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"c_\";\r\n\t\t\t}\r\n\t\t\telse if ( $comparability == DISTINCT )\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"d_\";\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"u_\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( $number_of_values > 0 )\r\n\t\t\t{\r\n\r\n\t\t\t\t/*\tLocating and retrieving sorted the $number_of_values most common values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( $result->num_rows > $number_of_values )\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\treturn ;\t\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if ( $number_of_values == -1 )\r\n\t\t\t{\r\n\t\t\t\t/*\tLocating and retrieving sorted all the values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\t\r\n\t\t\t\treturn ;\t\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\twhile ( $row = $result->fetch_row() )\r\n\t\t\t{\r\n\t\t\t\t$values[] = array(\"value\" =>$row[0], \"count\"=>$row[1]);\r\n\t\t\t}\t\t\t\t\t\r\n\t\t\t\r\n\t\t\treturn $values;\r\n\t\t\t\r\n\t\t}", "abstract protected function getFilters();", "public function filter(Request $request )\n \n {\n $filter_1=$request->user()->id;\n $filter_2=$request->post_category_id ;\n $filter_3=$request->status;\n $filter_date=$request->updated_at;\n //Put $this $Field->value >>> If Field not Use , fill values='none' ! .\n $field_1='author_id'; \n $field_2='post_category_id';\n $field_3='status';\n $field_date='updated_at';\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_1, '=', $filter_1)\n ->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_2, '=', $filter_2)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_3, '=', $filter_3)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->orWhere($field_date, 'like', '%'.$filter_date.'%')\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2]\n \n ])\n ->orWhere([\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false; \n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3]\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_date, 'like', '%'.$filter_date.'%']\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->get()\n :false\n :false;\n\n return view('author.post.post-filter',['post_list'=>$post_list]);\n }", "public function filter($value, $filter) {\n if (is_array($value)) {\n foreach ($value as $i => $val)\n $value[$i] = $this->filter($val, $filter);\n }\n else if (is_array($filter)) {\n foreach ($filter as $f)\n $value = $this->filter($value, $f);\n }\n else {\n $fname = \"filter\";\n $arr = explode(\"_\", $filter);\n foreach ($arr as $a)\n $fname.= ucwords($a);\n if (is_callable([$this, $fname]))\n return $this->$fname($value);\n else\n return $value;\n }\n return $value;\n }", "public function hasAdditionalFilter($dataProvider = null);", "public function check_fts_status($CM_COMPLAINT_SUB_TYPE){\n\t\t$this->db->select('CSC_FTS_BASED');\n\t\t$this->db->where('CSC_NO',$CM_COMPLAINT_SUB_TYPE);\n\t\t$query = $this->db->get('COMPLAINT_SUB_CATEGORY');\n \t\t$row = $query->row();\n\t\tif (isset($row))\n\t\t return $row->CSC_FTS_BASED;\n\t}", "public function filter($filter)\n {\n }", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "private function _parseBFilterParam()\n\t{\n $map = array('a' => 'attribute', 'm' => 'manufacturer', 's' => 'stock_status', 'f' => 'filter', 'o' => 'option', 'r' => 'rating', 'c' => 'category');\n \n if (!isset($this->request->get['bfilter'])) {\n \n return;\n }\n\t\t$bfilter = $this->request->get['bfilter'];\n\n\t\t$params = explode(';', $bfilter);\n \n\t\tforeach ($params as $param) \n {\n if (!empty($param)) \n {\n $p = explode(':', $param);\n $pName = $p[0];\n $pValue = $p[1];\n if ($pName === 'price') \n {\n $p = explode('-', $pValue);\n if ((int)$p[0] > 0 || (int)$p[1] > 0) {\n $this->conditions->price = new stdClass();\n $this->conditions->price->min = null;\n $this->conditions->price->max = null;\n $this->conditions->price->inputMin = null;\n $this->conditions->price->inputMax = null;\n }\n if ((int)$p[0] > 0) {\n $this->conditions->price->min = $this->currency->convert($p[0], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMin = $p[0];\n }\n if ((int)$p[1] > 0) {\n $this->conditions->price->max = $this->currency->convert($p[1], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMax = $p[1];\n }\n } \n elseif ($pName === 'rating') \n {\n $this->conditions->rating = explode(',', $pValue);\n } \n elseif ($pName === 'search')\n {\n $this->conditions->search = $pValue;\n $this->searchNameString = $pValue;\n $this->searchTagString = $pValue;\n $this->searchDescriptionString = $pValue;\n }\n else \n {\n $type = $map[substr($pName, 0, 1)];\n $groupId = (int)substr($pName, 1);\n if ($type) {\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n if (isset($p[0]) && isset($p[1])) {\n $this->conditions->{$type}[$groupId] = array('min' => $p[0], 'max' => $p[1]);\n }\n } else {\n $this->conditions->{$type}[$groupId] = explode(',', $pValue);\n }\n\n if ($type !== 'rating') {\n $type = strtoupper($type);\n if (!isset($this->aggregate[$type])) {\n $this->aggregate[$type] = array();\n }\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n $range = $this->_getSliderIntermediateValues($type, $groupId, $p[0], $p[1]);\n if (!empty($range)) {\n $this->aggregate[$type][$groupId] = $range;\n }\n } else {\n $this->aggregate[$type][$groupId] = explode(',', $pValue);\n }\n }\n }\n }\n }\n\t\t}\n\t}", "protected function processFilter($filter)\n\t{\n\t\t$validOperators = '(!~|=~|==|!=|>|<|>=|<=|=@|!@)';\n\n\t\t$filter = preg_replace('/\\s\\s+/',' ',trim($filter)); //Clean duplicate whitespace\n//\t\t$filter = str_replace(array(',',';'),array('\\,','\\;'),$filter); //Escape Google Analytics reserved characters\n\t\t$filter = preg_replace('/(&&\\s*|\\|\\|\\s*|^)([a-z]+)(\\s*' . $validOperators . ')/i','$1ga:$2$3',$filter); //Prefix ga: to metrics and dimensions\n\t\t$filter = preg_replace('/[\\'\\\"]/i','',$filter); //Clear invalid quote characters\n\t\t$filter = preg_replace(array('/\\s*&&\\s*/','/\\s*\\|\\|\\s*/','/\\s*' . $validOperators . '\\s*/'),array(';',',','$1'),$filter); //Clean up operators\n\n\t\tif (strlen($filter)>0) {\n\t\t\treturn $filter;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function definePrimaryFilter()\n {\n $filter = $this->getEmptyFilter();\n if (!empty($this->cObj->data['tx_displaycontroller_filtertype'])) {\n switch ($this->cObj->data['tx_displaycontroller_filtertype']) {\n\n // Simple filter for single view\n // We expect the \"table\" and \"showUid\" parameters and assemble a filter based on those values\n case 'single':\n $filter = array();\n $filter['filters'] = array(\n 0 => array(\n 'table' => $this->piVars['table'],\n 'field' => 'uid',\n 'conditions' => array(\n 0 => array(\n 'operator' => '=',\n 'value' => $this->piVars['showUid'],\n )\n )\n )\n );\n break;\n\n // Simple filter for list view\n case 'list':\n $filter = $this->defineListFilter();\n break;\n\n // Handle advanced data filters\n case 'filter':\n $filter = $this->defineAdvancedFilter();\n break;\n }\n }\n return $filter;\n }", "abstract public function prepareFilters();", "function editSubUnderCategory()\n\t{\n\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t $sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT * FROM category_table where sub_category_parent_id='\".$obj->records[0]['sub_category_id'].\"' AND category_parent_id ='\".$obj->records[0]['category_id'].\"'\"; \n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\treturn Display_DManageProducts::displaySubUnderCategory($query->records,$obj->records[0]['sub_under_category_id']);\n\t\t\t\n\t }\n\n\n\t}", "function filterType($tbl, $tbl2, $tbl3, $col, $col2, $col3, $filter) {\n\t\tinclude('connect.php');\n\t\t$queryFilter = \"SELECT * FROM {$tbl} m, {$tbl2} g, {$tbl3} mg WHERE m.{$col} = mg.{$col} AND g.{$col2} = mg.{$col2} AND g.{$col3} = '{$filter}'\";\n\t\t$runFilter = mysqli_query($link, $queryFilter);\n\t\tif($runFilter){\n\t\t\treturn $runFilter;\n\t\t}else{\n\t\t\t$error = \"There was an error accessing this Information. Please contact your admin.\";\n\t\t\treturn $error;\n\t\t}\n\t\tmysqli_close($link);\n\t}", "function simplenews_build_issue_filter_query(EntityFieldQuery $query) {\n if (isset($_SESSION['simplenews_issue_filter'])) {\n foreach ($_SESSION['simplenews_issue_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n case 'newsletter':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->fieldCondition(variable_get('simplenews_newsletter_field', 'simplenews_newsletter'), 'target_id', $value);\n }\n break;\n }\n }\n }\n}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function get_sub_category_info( $sub_cate_id, $sub_cate_status = 0 )\n\t{\n\t\t$criteria = $sub_cate_status == 1 ? \"sub_cate_status = 1 AND \" : \"\";\n\t\t$q = \"SELECT * FROM title_dev_sub_categories WHERE \".$criteria.\" sub_cate_id = \".$sub_cate_id;\n\t\t$r = $this -> db -> getSingleRecord( $q );\n\t\tif( $r )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}", "function _prepareFilter(&$controller){\n \t\n\t\t$filter = array();\n if(isset($controller->data)){\n foreach($controller->data as $model=>$fields){\n foreach($fields as $key=>$field){\n if($field == ''){\n unset($controller->data[$model][$key]);\n }\n }\n }\n \n App::import('Sanitize');\n $sanit = new Sanitize();\n $controller->data = $sanit->clean($controller->data);\n $filter = $controller->data;\n }\n \n if (empty($filter)){\n \t\t$filter = $this->_checkParams($controller); \t\n }\n $controller->data = $filter;\n }", "function _create_filter_sql () {\n\t\t$SF = &$_SESSION[$this->_filter_name];\n\t\tforeach ((array)$SF as $k => $v) {\n\t\t\t$SF[$k] = trim($v);\n\t\t}\n\t\t// Generate filter for the common fileds\n\t\tif ($SF[\"category_id\"])\t{\n\t\t \t$sql[] = \" AND category_id = \".intval($SF[\"category_id\"]).\" \";\n\t\t}\n\t\tif ($SF[\"user_id\"])\t{\n\t\t \t$sql[] = \" AND user_id = \".intval($SF[\"user_id\"]).\" \";\n\t\t}\n\t\tif (strlen($SF[\"admin_priority\"])) {\n\t\t \t$sql[] = \" AND admin_priority = \".intval($SF[\"admin_priority\"]).\" \";\n\t\t}\n\t\tif ($this->DEF_VIEW_STATUS || $SF[\"status\"]) {\n\t\t\t$status = $SF[\"status\"] ? $SF[\"status\"] : $this->DEF_VIEW_STATUS;\n\t\t\tif ($status == \"not_closed\") {\n\t\t\t \t$sql[] = \" AND status != 'closed' \";\n\t\t\t} else {\n\t\t\t \t$sql[] = \" AND status = '\"._es($SF[\"status\"]).\"' \";\n\t\t\t}\n\t\t}\n\t\tif (strlen($SF[\"subject\"])) {\n\t\t\t$sql[] = \" AND subject LIKE '\"._es($SF[\"subject\"]).\"%' \";\n\t\t}\n\t\tif (strlen($SF[\"message\"])) {\n\t\t\t$sql[] = \" AND message LIKE '\"._es($SF[\"message\"]).\"%' \";\n\t\t}\n\t\tif (!empty($SF[\"email\"])) {\n\t\t\t$sql[] = \" AND email LIKE '\"._es($SF[\"email\"]).\"%' \";\n\t\t}\n\t\tif ($SF[\"assigned_to\"])\t{\n\t\t \t$sql[] = \" AND assigned_to = \".intval($SF[\"assigned_to\"]).\" \";\n\t\t}\n\t\t// Add subquery to users table\n\t\tif (!empty($users_sql)) {\n\t\t\t$sql[] = \" AND user_id IN( SELECT id FROM \".db('user').\" WHERE 1=1 \".$users_sql.\") \";\n\t\t}\n\t\t// Default sorting\n\t\tif (!$SF[\"sort_by\"]) {\n\t\t\t$SF[\"sort_by\"]\t\t= \"opened_date\";\n\t\t\t$SF[\"sort_order\"]\t= \"DESC\";\n\t\t}\n\t\t// Sorting here\n\t\tif ($SF[\"sort_by\"]) {\n\t\t \t$sql[] = \" ORDER BY \".($this->_sort_by[$SF[\"sort_by\"]] ? $this->_sort_by[$SF[\"sort_by\"]] : $SF[\"sort_by\"]).\" \";\n\t\t\tif (strlen($SF[\"sort_order\"])) {\n\t\t\t\t$sql[] = \" \".$SF[\"sort_order\"].\" \";\n\t\t\t}\n\t\t}\n\t\t$sql = implode(\"\\r\\n\", (array)$sql);\n\t\treturn $sql;\n\t}", "function editSubCategory()\n\t{ \n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT category_id,category_parent_id FROM category_table where category_id in(select category_id from products_table where category_id='\".$obj->records[0]['category_id'].\"')\";\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$category=Core_Settings_CManageProducts::displayCategory($query->records[0]['category_parent_id']);\n\t\t\t\n\t\t\t$sqlid='select category_id from category_table where category_id in(select sub_category_id from products_table where product_id='.$id.')';\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$subcat=Core_Settings_CManageProducts::displaySubCategory($query->records[0]['category_id']);\n\t\t\t\n\t\t\treturn $subcat;\n\t }\n\t}", "function getSelectionOptions($filter) {\r\n global $parentCategory;\r\n if ($filter->isConditional()) {\r\n //displays the filter if the parent category is in the children category list\r\n if (!in_array($parentCategory, $filter->getCategory())) {\r\n //if its not found the function is returned\r\n return;\r\n }\r\n }\r\n //subvalues is a list of the items to add to the selection drop down of the filter\r\n $subvalues = array();\r\n if ($filter->isEnum()) {\r\n $subvalues = explode(\"','\", getEnumValues($filter->getTable(), $filter->getColumn()));\r\n } else {\r\n $subvalues = getColumList($filter->getTable(), $filter->getColumn(), $filter->getJoinTable(), $filter->getJoinColumn(), $filter->getComparator());\r\n }\r\n //if the dropdown is not empty, it'll create a select drop down box and add the values as options\r\n if (!empty($subvalues)) {\r\n $filterName = $filter->getName();\r\n echo $filterName . \": \";\r\n echo '<select name=\"' . $filterName . '\">' . $filterName;\r\n echo '<option></option>';\r\n foreach($subvalues as $sub) {\r\n $option = clean($sub);\r\n echo '<option value=\"' . $option . '\"' . (($_GET[\"$filterName\"] == $option) ? \" selected\" : \"\") . '>' . $option . \"</option>\";\r\n }\r\n echo \"</select> \";\r\n }\r\n }", "function get_category_data( $adunit = false ) {\n\t$exposed_values = array();\n\t$parent_categories = array();\n\t$sub_categories = array();\n\t$exposed_values['parent_categories'] = 'no_value';\n\t$exposed_values['sub_categories'] = 'no_value';\n\tif ( is_single() ) {\n\t\tglobal $post;\n\t\t$category_tax = 'category';\n\t\t$categories = get_the_terms( $post->ID, $category_tax );\n\t\tif ( ! empty( $categories ) ) {\n\t\t\tforeach ( $categories as $term ) {\n\t\t\t\t$ancestors = get_ancestors( $term->term_id, $category_tax );\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\t\t\t\t\tforeach ( $ancestors as $ancestor ) {\n\t\t\t\t\t\t$remove[] = \"'\";\n\t\t\t\t\t\tif ( ! $adunit ) {\n\t\t\t\t\t\t\t$remove[] = '-';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ancestor_term = get_term( $ancestor );\n\t\t\t\t\t\tarray_push( $parent_categories, str_replace( $remove, '', $ancestor_term->slug ) );\n\t\t\t\t\t\tarray_push( $sub_categories, str_replace( $remove, '', $term->slug ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$term_slug = $term->slug;\n\t\t\t\t\tarray_push( $parent_categories, $term_slug );\n\t\t\t\t}\n\t\t\t}\n\t\t\t$filter_similar_parent_cats = array_unique( $parent_categories, SORT_STRING );\n\t\t\t$parent_categories = implode( ', ', $filter_similar_parent_cats );\n\t\t\t$filter_similar_sub_cats = array_unique( $sub_categories, SORT_STRING );\n\t\t\t$sub_categories = implode( ', ', $filter_similar_sub_cats );\n\t\t\tif ( ! empty( $parent_categories ) ) {\n\t\t\t\t$exposed_values['parent_categories'] = $parent_categories;\n\t\t\t}\n\t\t\tif ( ! empty( $sub_categories ) ) {\n\t\t\t\t$exposed_values['sub_categories'] = $sub_categories;\n\t\t\t}\n\t\t}\n\t} elseif ( is_category() || is_archive() ) {\n\t\t$q_object = get_queried_object();\n\t\t// WP_Post_Type archives don't have a \"slug\" property.\n\t\tif ( ! empty( $q_object->slug ) ) {\n\t\t\t$cat_slug = $q_object->slug;\n\t\t\t$exposed_values['parent_categories'] = $cat_slug;\n\t\t\t$exposed_values['sub_categories'] = $cat_slug;\n\t\t}\n\t\tif ( is_post_type_archive( 'joke' ) ) {\n\t\t\t$exposed_values['parent_categories'] = 'jokes';\n\t\t\t$exposed_values['sub_categories'] = 'jokes';\n\t\t}\n\t} elseif ( is_page() ) {\n\t\t$exposed_values['parent_categories'] = 'misc';\n\t\t$exposed_values['sub_categories'] = 'misc';\n\t} elseif ( is_home() && is_front_page() ) {\n\t\t$exposed_values['parent_categories'] = 'homepage';\n\t\t$exposed_values['sub_categories'] = 'homepage';\n\t}\n\treturn $exposed_values;\n}", "function simplenews_build_subscription_filter_query(SelectQueryInterface $query) {\n if (isset($_SESSION['simplenews_subscriptions_filter'])) {\n foreach ($_SESSION['simplenews_subscriptions_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->condition('su.' . $key, $value);\n }\n break;\n case 'email':\n if (!empty($value)) {\n $query->condition('sn.mail', '%' . $value . '%', 'LIKE');\n }\n break;\n }\n }\n }\n}", "public function hasCategory(): bool;", "public function getFilterArray() {\n\t\t$filter = null;\n\t\tif (isset($_GET['sub_category'])) {\n\t\t\t$filter = array('category' => array($_GET['sub_category']));\n\t\t} else if (isset($_GET['category'])) {\n\t\t\t$filter = array('category' => array($_GET['category']));\n\n\t\t\t$subcategory_list = $this->category_model->get_sub_category_list_by_category_id($_GET['category'], array('id'));\n\t\t\tforeach ($subcategory_list as $subcategory) {\n\t\t\t\tarray_push($filter['category'], $subcategory->id);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($_GET['course'])){\n\t\t\t\t$filter['title'] = $_GET['course'];\n\t\t}\n\n\t\tif (isset($_GET['search'])) {\n\t\t\t$filter['search_text'] = $_GET['search'];\n\t\t}\n\n\t\t\n\t\treturn $filter;\n\t}", "public function get_category_item_specifics($categoryID)\n {\n\n // Create the request object.\n $request = new Types\\GetCategorySpecificsRequestType();\n\n // An user token is required when using the Trading service.\n $request->RequesterCredentials = $this->requester_credentials;\n\n /**\n * Check Item Specifics are Enabled\n */\n $this->CI->load->library('ebay_category_features', $categoryID);\n $mode = $this->ebay_category_features->get_ItemSpecificsMode();\n //var_dump($$mode);\n\n\n if ($categoryID && $mode !== 'Disabled') {\n $request->CategoryID = [$categoryID];\n $response = $this->trading_service->getCategorySpecifics($request);\n // Check errors\n $checkError = $this->get_response($response);\n if ($checkError != 0) {\n if (count($response->Recommendations)) {\n $name_value_arr = array();\n foreach ($response->Recommendations as $Recommendation) {\n foreach ($Recommendation->NameRecommendation as $NameRecommendation) {\n $values_arr = array();\n if ($NameRecommendation->ValidationRules->SelectionMode == 'SelectionOnly') {\n $values_arr['custom']['SelectionOnly'] = true;\n }\n\n if ($NameRecommendation->ValidationRules->MinValues >= 1) {\n /**\n * Required item specifics have * in Name of Specific\n */\n //$name = $NameRecommendation->Name . '<strong>*</strong>';\n $values_arr['custom']['MinValues'] = true;\n }\n\n /*\n |--------------------------------------------------------------------------\n | Finally Helped\n |--------------------------------------------------------------------------\n |http://prntscr.com/g5zzn5\n |https://stackoverflow.com/questions/5421426/php-xml-xpath-node-element-iteration-and-inserting-into-array\n */\n\n $name = $NameRecommendation->Name;\n\n foreach ($NameRecommendation->ValueRecommendation as $ValueRecommendation) {\n $values = (string)$ValueRecommendation->Value;\n array_push($values_arr, $values);\n //$converted_values = explode(\",\",$value);\n // echo print_r($converted_values);\n }\n $name_value_arr[$name] = $values_arr;\n }\n }\n\n //var_dump($name_value_arr);\n\n $browse = [];\n\n foreach ($name_value_arr as $key => $value) {\n $custom = $this->findKey($value, 'custom');\n $selection_only = $this->findKey($value, 'SelectionOnly');\n $min_values = $this->findKey($value, 'MinValues');\n\n // var_dump($custom);\n // var_dump($value);\n\n $key = ($min_values) ? $key . '<strong>*</strong>' : $key;\n unset($value['custom']);\n $browse[$key] = $value;\n }\n\n //var_dump($browse);\n return json_encode($browse);\n // return $browse;\n\n }\n }\n } else return false;\n }", "public function getSubcategory() {\r\n return \\models\\Database::validateData($this->_subcategory, 'string|specialchars|strip_tags');\r\n }", "function is_filtered() {\n\t\tglobal $_chosen_attributes;\n\n\t\treturn ( sizeof( $_chosen_attributes ) > 0 || ( isset( $_GET['max_price'] ) && isset( $_GET['min_price'] ) ) ) ? true : false;\n\t}", "public function test_getItemCategoryByFilter() {\n\n }", "public function filtrationElements(){\n foreach(self::getElements() as $key=>$items){\n if(\n NULL!==$items->getFilters() &&\n is_array($items->getFilters()) &&\n count($items->getFilters())\n ){\n self::filtrationElement($items);\n }\n \n }\n }" ]
[ "0.69309103", "0.6885532", "0.6778163", "0.60254765", "0.588653", "0.5853831", "0.5836159", "0.5643095", "0.5594471", "0.5591669", "0.5583605", "0.55351704", "0.55215573", "0.5461978", "0.5447852", "0.54339767", "0.53721714", "0.536629", "0.53490764", "0.53429455", "0.5340119", "0.5338771", "0.5332024", "0.5329534", "0.5310291", "0.5304871", "0.5285568", "0.5270057", "0.5262751", "0.52351826", "0.5233582", "0.5231882", "0.5219089", "0.52103597", "0.5203143", "0.51807046", "0.5178017", "0.51751125", "0.51613075", "0.51611364", "0.5148685", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.5143698", "0.514174", "0.5137672", "0.51372474", "0.5137075", "0.51330036", "0.512782", "0.51203346", "0.51180863", "0.5116137", "0.51020455", "0.5100414", "0.50974303", "0.50970644", "0.50929433", "0.50925374", "0.50869167", "0.5076191", "0.5071506", "0.5064626", "0.50634503", "0.5040922", "0.50408113", "0.50327176", "0.50320446", "0.50295323", "0.5027698", "0.50216615", "0.5020405", "0.5019809", "0.50181544", "0.50166607", "0.5012108", "0.50098306", "0.5006884", "0.5003825", "0.50024796", "0.50024796", "0.5000618", "0.4999656", "0.4993988", "0.4991129", "0.4980848", "0.4979024", "0.49774238", "0.49633092", "0.49570376", "0.4953716", "0.49530804", "0.49479327", "0.4947665", "0.49421895" ]
0.6593092
3
FILTER_SUB_CATEGORY IS ONLY CHECKED IF EXISTS, NO VALUE USAGES
public function testFilterSubCategoryNullCatIdExisting() { $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method $filters = array( //set up conditions for test 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category 'filter_sub_category' => null, ); $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method $productsTotal = $this->model_catalog_product->getTotalProducts($filters); $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>null,'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFilterSubCategoryNotEmptyExistingCategoryId() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", filter_category_id=>27, 1 products');\n }", "public function testFilterSubCategoryNotEmpty() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", 0 products');\n }", "public function testFilterSubCategoryNull() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => null,\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $this->assertTrue(sizeof($products) == 0, sizeof($products) . ' Retrieved from filter_sub_category=>null, 0 products');\n }", "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n return;\n }\n\n $this->query->andWhere(['category' => $this->category]);\n }", "function filter(){\n //$_SESSION['filters'] = array('GPA' => ['2.0', '3.0']), 'Nationality' => ['saudi'], 'Company_size' => ['large'], 'Major' => ['Computer Science', 'Marketing', 'Finance']);\n if($_GET['checked'] == \"true\"){\n if(!isset($_SESSION['filters'])){\n $_SESSION['filters'] = array();\n }\n if(isset($_SESSION['filters'][$_GET['category']])){\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n } else{\n $_SESSION['filters'][$_GET['category']] = array();\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }else{\n if(isset($_SESSION['filters'][$_GET['category']])){\n unset($_SESSION['filters'][$_GET['category']][array_search($_GET['value'],$_SESSION['filters'][$_GET['category']])]);\n $_SESSION['filters'][$_GET['category']] = removeGaps($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters'][$_GET['category']]) === 0){\n unset($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters']) === 0){\n unset($_SESSION['filters']);\n }\n }\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }\n }", "public function testBadSubFilter()\n {\n $tests = array(\n array(\n 'label' => __LINE__ .': invalid filter type',\n 'filter' => '',\n 'connective' => ''\n ),\n array(\n 'label' => __LINE__ .': invalid connective',\n 'filter' => P4Cms_Record_Filter::create(),\n 'connective' => ''\n ),\n );\n\n foreach ($tests as $test) {\n extract($test);\n\n try {\n P4Cms_Record_Filter::create()->addSubFilter($filter, $connective);\n\n $this->fail($label.' Expected exception');\n } catch (InvalidArgumentException $e) {\n $this->assertTrue(true, $label);\n }\n }\n }", "public function testGetItemSubCategoryByFilter()\n {\n }", "private static function _getFilter() {}", "function get_product_category_filters($data) {\n $category_id = $data['category_id'];\n // Return category filters object\n return (object) [\n 'attributes' => get_product_category_attribute_terms($category_id),\n 'subcategories' => get_product_category_subcategories($category_id),\n 'price' => get_product_category_price_min_max($category_id)\n ];\n}", "private function get_filterItemCObj( $uid, $value )\n {\n static $firstLoop = true;\n static $loop = array();\n static $conf_array = null;\n\n//// #56339\n//$this->pObj->dev_var_dump( $uid, $this->markerArray['###UID###'] );\n//$this->pObj->dev_var_dump( $uid, $value );\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Item class\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n // #41753.01, 121010, dwildt, 4-\n// if($conf_name == 'CATEGORY_MENU')\n// {\n// $conf_array = $this->pObj->objJss->class_onchange($conf_name, $conf_array, $this->row_number);\n// }\n // #41753.01, 121010, dwildt, 10+\n switch ( true )\n {\n case( $conf_name == 'CATEGORY_MENU' ):\n case( $conf_name == 'TREEVIEW' ):\n $conf_array = $this->pObj->objJss->class_onchange( $conf_name, $conf_array, $this->row_number );\n break;\n default:\n // Follow the workflow\n break;\n }\n\n//var_dump( __METHOD__, __LINE__, $value, $conf_array );\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check AJAX ###ONCHANGE###';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n\n $this->markerArray[ '###CLASS###' ] = $this->replace_itemClass( $conf_array, '###CLASS###' );\n $this->markerArray[ '###STYLE###' ] = $this->replace_itemStyle( $conf_array, '###STYLE###' );\n $this->markerArray[ '###TITLE###' ] = $this->replace_itemTitle( '###TITLE###' );\n $this->markerArray[ '###URL###' ] = $this->replace_itemUrl( $conf_array, $uid, '###URL###' );\n // #i0129, 150218, dwildt, 1+\n $this->markerArray[ '###ID###' ] = $table . '__' . $field . '__' . $uid;\n $this->markerArray[ '###ITEM_SELECTED###' ] = $this->replace_itemSelected( $conf_array, $uid, $value, '###ITEM_SELECTED###' );\n // #40354, #40354, 4.1.7, 1+\n $this->markerArray[ '###TABLE.FIELD###' ] = $this->nicePiVar[ 'key_piVar' ];\n\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n //$conf_array = $this->replace_marker( $conf_array );\n // Get the COA configuration for the value\n // SWITCH first item\n switch ( true )\n {\n case( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] ):\n $cObj_name = $conf_array[ 'first_item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'first_item.' ][ 'cObject.' ];\n break;\n default:\n $cObj_name = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject.' ];\n break;\n }\n // SWITCH first item\n // Get the COA configuration for the value\n\n $this->cObjData_setFlagDisplayInCaseOfNoCounting();\n\n $item = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\n\n // 3.9.20\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n $item = $this->pObj->cObj->substituteMarkerArray( $item, $this->markerArray );\n\n // 3.9.20: Code is moved from above\n // Workaround: remove ###ONCHANGE###\n $item = str_replace( ' class=\" ###ONCHANGE###\"', null, $item );\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'class=\" ###ONCHANGE###\" is removed. Check the code!';\n t3lib_div::devlog( '[WARN/TODO] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // Workaround: remove ###ONCHANGE###\n\n $this->cObjData_unsetFlagDisplayInCaseOfNoCounting();\n\n // maxItemsTagEndBegin\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check maxItemsPerRow!';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n $item = $this->get_maxItemsTagEndBegin( $item );\n // maxItemsTagEndBegin\n\n\n $firstLoop = false;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "public function filtersExist();", "function getFilter() {\n\t\tif (isset($_POST['value'])){\n\t\t\tif ($_POST['value'] != \"all\"){\n\t\t\t\t$categoryName = $_POST['value'];\n\t\t\t\treturn $categoryName;\n\t\t\t}\n\t\t}\n\t\treturn 'all';\n\t}", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "protected function getFilterField(){\n $aField = parent::getFilterField();\n $oRequest = AMI::getSingleton('env/request');\n if(!$oRequest->get('category', 0)){\n $aField['disableSQL'] = TRUE;\n }\n return $aField;\n }", "public function get_adminstaff_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$description,$weight,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid); \n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t$description = trim($description);\n\t\t$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t $uid1 = trim($uid);\n\t\t$existsdata = $this->db->query(\"SELECT * from tb_admin_cart where userid='$uid1'\")->row_array();\n\t\tif(empty($existsdata))\n\t\t{\n\t\t\t$sql1=\"SELECT * from tb_products where ProductStatus=1\";\n\t\t\tif(!empty($parentid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t\t}\n\t\t\tif(!empty($subcatid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t\t}\n\t\t\tif(!empty($selectsublist))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t\t}\n\t\t\tif(!empty($selectgender))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t\t}\n\t\t\tif(!empty($description))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t\t}\n\t\t\tif(!empty($weight))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t\t}\n\t\t\tif(!empty($minprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t\t}\n\t\t\tif(!empty($maxprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t\t}\t\t\t\n\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql1=\"SELECT t1.* FROM tb_products as t1 WHERE t1.ProductId not IN (SELECT t2.products FROM tb_admin_cart as t2 WHERE t2.userid='$uid1') \";\n\t\t\n\t\t//$sql1 =\"select * from tb_products where ProductStatus=1\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\tif(!empty($description))\n\t\t{\n\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "protected function defineAdvancedFilter($type = 'primary')\n {\n // Define rank based on call parameter\n $rank = 1;\n $checkField = 'tx_displaycontroller_emptyfilter';\n if ($type === 'secondary') {\n $rank = 2;\n $checkField = 'tx_displaycontroller_emptyfilter2';\n }\n // Get the data filter\n try {\n // Get the filter's information\n $filterData = $this->getComponentData('filter', $rank);\n // Get the corresponding Data Filter component\n /** @var $datafilter \\Tesseract\\Tesseract\\Component\\DataFilterInterface */\n $datafilter = Tesseract::getComponent(\n 'datafilter',\n $filterData['tablenames'],\n array('table' => $filterData['tablenames'], 'uid' => $filterData['uid_foreign']),\n $this\n );\n // Initialise the filter\n $filter = $this->initFilter($filterData['uid_foreign']);\n // Pass the cached filter to the DataFilter\n $datafilter->setFilter($filter);\n try {\n $filter = $datafilter->getFilterStructure();\n // Store the filter in session\n $cacheKey = $this->prefixId . '_filterCache_' . $filterData['uid_foreign'] . '_' . $this->cObj->data['uid'] . '_' . $GLOBALS['TSFE']->id;\n $GLOBALS['TSFE']->fe_user->setKey('ses', $cacheKey, $filter);\n // Here handle case where the \"filters\" part of the filter is empty\n // If the display nothing flag has been set, we must somehow stop the process\n // The Data Provider should not even be called at all\n // and the Data Consumer should receive an empty (special?) structure\n if ($datafilter->isFilterEmpty() && empty($this->cObj->data[$checkField])) {\n $this->passStructure = false;\n }\n } catch (\\Exception $e) {\n $this->addMessage(\n $this->extKey,\n $e->getMessage() . ' (' . $e->getCode() . ')',\n $this->pi_getLL('error.get_filter'),\n FlashMessage::WARNING\n );\n }\n } catch (\\Exception $e) {\n throw new MissingComponentException($this->pi_getLL('exception.no_filter'), 1326454151);\n }\n return $filter;\n }", "public function filter_category() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! isset( $_POST['rank_math_filter_redirections_top'] ) && ! isset( $_POST['rank_math_filter_redirections_bottom'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! Helper::has_cap( 'redirections' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$category_filter = isset( $_POST['rank_math_filter_redirections_top'] ) ? $_POST['redirection_category_filter_top'] : $_POST['redirection_category_filter_bottom'];\n\t\tif ( ! $category_filter || 'none' === $category_filter ) {\n\t\t\twp_safe_redirect( Helper::get_admin_url( 'redirections' ) );\n\t\t\texit;\n\t\t}\n\n\t\twp_safe_redirect( Helper::get_admin_url( 'redirections', [ 'redirection_category' => $category_filter ] ) );\n\t\texit;\n\t}", "abstract protected function filterFieldvalue();", "protected function _beforeLoad()\n {\n if (isset($this->_productLimitationFilters['category_id']) &&\n is_array($this->_productLimitationFilters['category_id'])\n ) {\n $this->getSelect()->group('e.entity_id');\n }\n\n return parent::_beforeLoad();\n }", "private function _get_filters_section_settings() {\r\n\r\n // Get all product categories\r\n $termArgs = array(\r\n 'taxonomy' => 'product_cat',\r\n 'hide_empty' => false\r\n );\r\n $productTermsObject = get_terms( $termArgs );\r\n $productTerms = array();\r\n\r\n if ( !is_wp_error( $productTermsObject ) ) {\r\n\r\n foreach( $productTermsObject as $term )\r\n $productTerms[ $term->slug ] = $term->name;\r\n\r\n }\r\n\r\n foreach ( WWOF_Product_Listing_Helper::get_all_products( 'ID , post_title' ) as $post ){\r\n $product = wc_get_product( $post->ID );\r\n $allProducts[ WWOF_Functions::wwof_get_product_id( $product ) ] = '[ID : ' . WWOF_Functions::wwof_get_product_id( $product ) . '] ' . $post->post_title;\r\n }\r\n\r\n // Add \"None\" category selection for \"no default\" option\r\n $productTerms2 = array_merge( array ('none' => __( 'No Default' , 'woocommerce-wholesale-order-form' ) ), $productTerms );\r\n\r\n return array(\r\n\r\n array(\r\n 'title' => __( 'Filters Options', 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'title',\r\n 'desc' => '',\r\n 'id' => 'wwof_filters_main_title'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Product Category Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Only display products belonging to the selected category' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_product_category_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Product Categories...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $productTerms\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Exclude Product Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Exclude selected products' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_exclude_product_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Products...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $allProducts\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Default Product Category on Search Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'select',\r\n 'desc' => __( 'Select a product category to which product are under will be loaded by default in the order form.' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_general_default_product_category_search_filter',\r\n 'class' => 'chosen_select',\r\n 'options' => $productTerms2,\r\n 'default' => 'none'\r\n ),\r\n\r\n array(\r\n 'type' => 'sectionend',\r\n 'id' => 'wwof_filters_sectionend'\r\n )\r\n\r\n );\r\n\r\n }", "public function filterSpecificCategories($array){\n\n $newArray = [];\n\n foreach($array as $key => $value){\n $cat = trim(strtolower(strstr($value->getArticleID()->getCategory(), ' ')));\n if($cat == \"world news\" || $cat == \"football\"/* ||$cat == \"fashion\" || $cat == \"technology\"*/){\n //test fashion whs technology $numb raus? film und politics guuut 0.8\n $newArray[$key] = $value;\n }\n\n /* if($cat == \"sport\"|| $cat == \"football\" || $cat == \"culture\" || $cat == \"art and design\"){\n $newArray[$key] = $value;\n }*/\n\n /*if( $cat == \"sport\" || $cat == \"uk news\" || $cat == \"opinion\" || $cat == \"society\" || $cat == \"business\" ||\n $cat == \"politics\" || $cat == \"world news\" || $cat == \"life and style\" || $cat == \"environment\" || $cat == \"technology\"\n ||$cat == \"television & radio\" || $cat == \"culture\" || $cat == \"art and design\" || $cat == \"film\" || $cat == \"books\"\n ||$cat == \"us news\" || $cat == \"football\" || $cat == \"fashion\" || $cat == \"travel\" || $cat == \"science\"/*){ //20 categories\n $newArray[$key] = $value;\n }*/\n\n /* if( $cat == \"us news\" || $cat == \"technology\" || $cat == \"science\" || $cat == \"sport\" || $cat == \"opinion\" ||\n $cat == \"world news\" || $cat == \"football\" || $cat == \"politics\" || $cat == \"fashion\" || $cat == \"television & radio\"\n ||$cat == \"culture\" || $cat == \"environment\" || $cat == \"art and design\" || $cat == \"life and style\" || $cat == \"travel\"/*\n || $cat == \"books\" || $cat == \"uk news\" || $cat == \"business\" || $cat == \"film\" || $cat == \"society\"){ //20 categories\n $newArray[$key] = $value;\n }\n */\n\n }\n\n\n return $newArray;\n }", "function culturefeed_search_ui_default_filter_options($filter_form_number) {\n\n $defaults = array(\n 1 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n 2 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide long-running events',\n 'query-string' => 'no-periods',\n 'api-filter-query' => 'periods:false'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide permanent events',\n 'query-string' => 'no-permanent',\n 'api-filter-query' => 'permanent:false'\n ),\n ),\n 3 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n );\n\n return isset($defaults[$filter_form_number]) ? $defaults[$filter_form_number] : array();\n\n}", "private function _applyFilter($filter)\n\t{\n\t\tglobal $context, $scripturl;\n\n\t\tif (isset($filter['variable']))\n\t\t{\n\t\t\t$context['filter'] = &$filter;\n\n\t\t\t// Set the filtering context.\n\t\t\tswitch ($filter['variable'])\n\t\t\t{\n\t\t\t\tcase 'id_member':\n\t\t\t\t\t$id = $filter['value']['sql'];\n\t\t\t\t\tMembersList::load($id, false, 'minimal');\n\t\t\t\t\t$name = MembersList::get($id)->real_name;\n\t\t\t\t\t$context['filter']['value']['html'] = '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $id, 'name' => $name]) . '\">' . $name . '</a>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars((substr($filter['value']['sql'], 0, 1) === '?' ? $scripturl : '') . $filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array('\\_' => '_')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'message':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\t$context['filter']['value']['html'] = preg_replace('~&amp;lt;span class=&amp;quot;remove&amp;quot;&amp;gt;(.+?)&amp;lt;/span&amp;gt;~', '$1', $context['filter']['value']['html']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'error_type':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$context['filter']['value']['html'] = &$filter['value']['sql'];\n\t\t\t}\n\t\t}\n\t}", "function wpcoupon_filter_to_coupon_administration(){\r\n global $post_type;\r\n if($post_type == 'coupon'){\r\n\r\n $post_formats_args = array(\r\n //'show_option_all' => 'All Categories',\r\n 'show_option_none' => 'All Categories',\r\n 'option_none_value' => '',\r\n 'orderby' => 'NAME',\r\n 'order' => 'ASC',\r\n 'name' => 'coupon_category',\r\n 'taxonomy' => 'coupon_category'\r\n );\r\n\r\n //if we have a post format already selected, ensure that its value is set to be selected\r\n if(isset($_GET['coupon_category'])){\r\n $post_formats_args['selected'] = sanitize_text_field($_GET['coupon_category']);\r\n }\r\n wp_dropdown_categories($post_formats_args);\r\n\r\n $types = wpcoupon_get_coupon_types();\r\n\r\n $type = '';\r\n if(isset($_GET['c_type'])){\r\n $type = sanitize_text_field($_GET['c_type']);\r\n }\r\n ?>\r\n <select class=\"postform\" id=\"coupon_type\" name=\"c_type\">\r\n <option value=\"\"><?php esc_html_e( 'All coupon types', 'wp-coupon' ); ?></option>\r\n <?php foreach ( $types as $k => $v ) { ?>\r\n <option <?php selected( $type, $k ); ?> value=\"<?php echo esc_attr( $k ); ?>\"><?php echo esc_html( $v ); ?></option>\r\n <?php } ?>\r\n </select>\r\n <?php\r\n $s = '';\r\n if ( isset ( $_GET['c_s_store'] ) ) {\r\n $s = $_GET['c_s_store'];\r\n }\r\n ?>\r\n <input type=\"text\" id=\"search-coupon-store\" placeholder=\"<?php esc_attr_e( 'Filter store','wp-coupon' ); ?>\" value=\"<?php echo esc_attr( $s ); ?>\" name=\"c_s_store\">\r\n <?php\r\n\r\n }\r\n }", "public function filtering();", "public function checkSubcatNameExist($category_id,$sub_catname)\n{\n\ttry\n\t{\n\t\t$ifExist = subcategory::where('category_id','=',$category_id)->where('sub_category_name',$sub_catname)->get();\n\t\t//$ifExist = subcategory::where('category_id','=','1')->where('sub_category_name','=','Office Partition')->get();\n\t\t// return $ifExist;\n\t\tif(count($ifExist) <= 0)\n\t\t{\n\t\t\treturn '0';//no data\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '1'; //with data\n\t\t}\n\t}\n\tcatch(\\Exception $e)\n\t{\n\t\treturn '0';\n\t}\n}", "public function get_all_category_subtype2_for_category_type($type_name,$subtype_name,&$data_arr,&$data_count){\n if($type_name==\"\"){\n //no type specified so no filtering\n $data_count = 0;\n return true;\n }\n $q = \"select DISTINCT subtype2 from \".TP.\"transaction_type_master where type='\".$type_name.\"' and subtype1='\".$subtype_name.\"'\";\n $res = mysql_query($q);\n if(!$res){\n return false;\n }\n $data_count = mysql_num_rows($res);\n if($data_count == 0){\n //no recs\n return true;\n }\n //recs so\n while($row = mysql_fetch_assoc($res)){\n $data_arr[] = $row;\n }\n return true;\n }", "function ProcessMultilevelSubCategories()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"ProcessMultilevelSubCategories();\" . \"<HR>\";\n if ($this->listSettings->HasItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\")) {\n $this->sub_categories_count = $this->listSettings->GetItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\");\n for ($i = 0; $i < $this->sub_categories_count; $i ++) {\n $sub_category = array();\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\")) {\n $sub_category[\"library\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LIBRARY\", array(\n $i), true);\n }\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\")) {\n $sub_category[\"link_field\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LINK_FIELD\", array(\n $i), true);\n }\n $this->sub_categories[] = $sub_category;\n }\n\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORIES_COUNT\", array(), true);\n }\n\n }", "function SetupLookupFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_MainGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`MainGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `MainGroup`, `MainGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`MainGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_SubGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`SubGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `SubGroup`, `SubGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`SubGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_Article\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`Article` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"f2\" => '`SubGroup` = {filter_value}', \"t2\" => \"200\", \"fn2\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `Article`, `Article` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`Article` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\t}\n\t}", "function check_privacy_filtered($myprofileid,$hisprofileid)\n{\n\t$sql=\"select * from FILTERS where PROFILEID='$hisprofileid'\";\n\t$resultfilter=mysql_query_decide($sql) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sql,\"ShowErrTemplate\");\n\n\tif(mysql_num_rows($resultfilter)>0)\n\t{\n\t\t$filterrow=mysql_fetch_array($resultfilter);\t\t\t\t\t\t\t\n\t\tif($filterrow[\"AGE\"]==\"Y\" || $filterrow[\"MSTATUS\"]==\"Y\" || $filterrow[\"RELIGION\"]==\"Y\" || $filterrow[\"COUNTRY_RES\"]==\"Y\" || $filterrow[\"MTONGUE\"]==\"Y\"|| $filterrow[\"CITY_RES\"]==\"Y\" || $filterrow[\"INCOME\"]==\"Y\" || $filterrow[\"CASTE\"]==\"Y\")\n\t\t{\n\t\t\t$sqlfilter=\"select count(*) from JPROFILE where activatedKey=1 and PROFILEID='$myprofileid'\";\n\n\t\t\t//Sharding Concept added by Lavesh Rawat on table JPARTNER\t\n\t\t\tinclude_once($_SERVER['DOCUMENT_ROOT'].\"/classes/Jpartner.class.php\");\n\t\t\t$jpartnerObj= new Jpartner;\n\t\t\t$mysqlObj=new Mysql;\n\n\t\t\t$myDbName=getProfileDatabaseConnectionName($hisprofileid,'',$mysqlObj);\n\t\t\t$myDb=$mysqlObj->connect(\"$myDbName\");\n\t\t\t$jpartnerObj->setPartnerDetails($hisprofileid,$myDb,$mysqlObj,\"LAGE,HAGE,PARTNER_CASTE,PARTNER_COUNTRYRES,PARTNER_MSTATUS,PARTNER_MTONGUE\");\n\t\t\tif($jpartnerObj->isPartnerProfileExist($myDb,$mysqlObj,$hisprofileid))\n\t\t\t{\n\t\t\t\tif($filterrow[\"AGE\"]==\"Y\" && $jpartnerObj->getLAGE() && $jpartnerObj->getHAGE() )\n\t\t\t\t\t$sqlfilter.= \" AND AGE between \".$jpartnerObj->getLAGE().\" AND \".$jpartnerObj->getHAGE();\n\n\t\t\t\tif($filterrow[\"CASTE \"]==\"Y\" && $jpartnerObj->getPARTNER_CASTE())\n\t\t\t\t{\n\t\t\t\t\t//\t$caste_arr=explode(\"','\",trim($jpartnerObj->getPARTNER_CASTE(),\"'\"));\n\t\t\t\t\t$sqlfilter.=\" and CASTE in (\".$jpartnerObj->getPARTNER_CASTE().\")\";\n\t\t\t\t\t// implode(\"','\",get_all_caste($caste_arr)) . \"')\";\n\t\t\t\t}\t\n\t\t\t\tif($filterrow[\"RELIGION \"]==\"Y\" && $jpartnerObj->getPARTNER_RELIGION())\n\t\t\t\t\t$sqlfilter.=\" AND RELIGION in (\".$jpartnerObj->getPARTNER_RELIGION().\")\";\n\n\t\t\t\tif($filterrow[\"COUNTRY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_COUNTRYRES())\n\t\t\t\t\t$sqlfilter.=\" AND COUNTRY_RES in (\".$jpartnerObj->getPARTNER_COUNTRYRES().\")\";\n\n\t\t\t\tif($filterrow[\"CITY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_CITYRES())\n\t\t\t\t\t$sqlfilter.=\" AND CITY_RES in (\".$jpartnerObj->getPARTNER_CITYRES().\")\";\n\n\t\t\t\tif($filterrow[\"MSTATUS\"]==\"Y\" && $jpartnerObj->getPARTNER_MSTATUS())\n\t\t\t\t\t$sqlfilter.=\" and MSTATUS in (\".$jpartnerObj->getPARTNER_MSTATUS().\")\";\n\n\t\t\t\tif($filterrow[\"MTONGUE\"]==\"Y\" && $jpartnerObj->getPARTNER_MTONGUE())\n\t\t\t\t\t$sqlfilter.=\" and MTONGUE in (\".$jpartnerObj->getPARTNER_MTONGUE().\")\";\n\n\t\t\t\tif($filterrow[\"INCOME\"]==\"Y\" && $jpartnerObj->getPARTNER_INCOME())\n\t\t\t\t\t$sqlfilter.=\" and INCOME in (\".$jpartnerObj->getPARTNER_INCOME().\")\";\n\t\t\t}\n\t\t\t$resfil=mysql_query_decide($sqlfilter) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sqlfilter,\"ShowErrTemplate\");\n\t\t\t$finalfilterrow=mysql_fetch_row($resfil);\n\n\t\t\tif($finalfilterrow[0] <= 0)\n\t\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function tep_get_subCategory($tagValue){\n\tglobal $languages_id,$customer_group_id;\n\t//禁用的电池分类ID @nathan 2011-11-2\n\t//$disable_batteries = array(1,3,21,23,25,73,111,307,314,499);\n\t$disable_batteries = array(23,25,73,111,307,499);\n\t$disable_batteries_three = array(188,191,192,193,194,195,502,556,112,115,117,126,129,136,139,141,172,175,601,181,306,312,313,500,501,562,197,198,202,204,205,206,208,210,211,212,213,217,218,220,503,504,505,521,557,558,559,560,561,563,507,508,509,510,511,512,513,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,741);\n\t$jsonData = array();\n\tif (isset($tagValue) && !empty($tagValue)){\n\t\t# \n\t\t# URL\n\t\t# Ʒ\n\t\t# |_| |=|\n\t\t$topNavi_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$tagValue);\n\t\t$topNavi_categories_query = tep_db_query($topNavi_categories_sql);\n\t\tif (tep_db_num_rows($topNavi_categories_query) > 0){\n\t\t\t$i = 0;\n\t\t\twhile ($topNavi_categories = tep_db_fetch_array($topNavi_categories_query)) {\n\t\t\t\t//禁止显示的电池分类 @nathan 2011-11-2\n\t\t\t\tif($tagValue == 408 && in_array($topNavi_categories['categories_id'], $disable_batteries)) continue;\n\n\t\t\t\t$products_in_category = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\tif ($products_in_category > 0){\n\t\t\t\t\t$jsonData[$i]['name'] = $topNavi_categories['categories_name'];\n\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($topNavi_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t$jsonData[$i]['parent'] = '0';\n\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sub_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$topNavi_categories['categories_id']);\n\t\t\t\t\t$sub_categories_query = tep_db_query($sub_categories_sql);\n\t\t\t\t\tif (tep_db_num_rows($sub_categories_query) > 0){\n\t\t\t\t\t\twhile ($sub_categories = tep_db_fetch_array($sub_categories_query)) {\n\t\t\t\t\t\t\tif(in_array($sub_categories['categories_id'], $disable_batteries_three)) continue;\n\t\t\t\t\t\t\t$products_in_subcategory = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\tif ($products_in_subcategory > 0){\n\t\t\t\t\t\t\t\t$jsonData[$i]['name'] = $sub_categories['categories_name'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($sub_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t\t\t\t$jsonData[$i]['parent'] = $sub_categories['categories_id'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}unset($products_in_subcategory);\n\t\t\t\t\t\t}unset($sub_categories);\n\t\t\t\t\t}unset($sub_categories_query,$sub_categories_sql);\n\t\t\t\t}unset($products_in_category);\n\t\t\t}unset($topNavi_categories);\n\t\t}unset($topNavi_categories_query,$topNavi_categories_sql);\n\t\t//echo json_encode($jsonData);\n\t\treturn $jsonData;\n\t}else{\n\t\treturn false;\n\t}\n}", "private function filters() {\n\n\n\t}", "private function get_filterItem( $uid, $value )\n {\n static $loop = array();\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n // Make a backup\n $cObjDataBak = $this->pObj->cObj->data;\n // Add elements of current row to cObj->data\n $this->cObjData_updateRow( $uid );\n\n $this->set_markerArrayUpdateRow( $uid );\n\n // IF first_item, set the first item tree view\n if ( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] )\n {\n $this->set_firstItemTreeView();\n }\n // IF first_item, set the first item tree view\n // DEVELOPMENT: Browser engine 4.x\n switch ( $this->pObj->dev_browserEngine )\n {\n case( 3 ):\n // stdWrap the current value\n $item = $this->get_filterItemValueStdWrap( $conf_name, $conf_array, $uid, $value );\n break;\n case( 4 ):\n // #i0112, 141218, dwildt, 1+\n case( 5 ):\n // Wrap the current value by the cObject\n $this->updateWizard( 'filter_cObject' );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 1' );\n }\n $item = $this->get_filterItemCObj( $uid, $value );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 2' );\n }\n break;\n default:\n $header = 'FATAL ERROR!';\n $text = 'Sorry, this error shouldn\\'t occure: case is undefined.';\n $this->pObj->drs_die( $header, $text );\n break;\n }\n // DEVELOPMENT: Browser engine 4.x\n\n\n $this->set_itemCurrentNumber();\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 3' );\n }\n\n // Reset cObj->data\n $this->pObj->cObj->data = $cObjDataBak;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "private function getTypesFilterSubquery($sql = FALSE) {\n \n $this->loadTypes();\n $noticesQuery = $this->doctrine\n ->getEntityManager()\n ->getRepository('FenchyNoticeBundle:Notice')\n ->createQueryBuilder('n2')\n ->select($sql ? 'n2.id' : 'n2')\n ->leftJoin('n2.type', 't2')\n ->leftJoin('n2.values', 'v2')\n ->leftJoin('t2.properties', 'p2');\n\n $typeAlternatives = array();\n $parameters = array();\n foreach($this->types as $type) {\n\n if($this->isValidFilterTypeChecked($type->getId(), NULL, NULL)) {\n\n $typeAnd = array('n2.type = :condType'.$type->getId());\n $parameters['condType'.$type->getId()] = $type;\n\n // if type has subcategories/properties\n $typeKey = $this->getKeyValidFilter($type->getId(), NULL, NULL); \n if(\n array_key_exists('subcategories', $this->validFilter['types'][$typeKey]) && \n is_array($this->validFilter['types'][$typeKey]['subcategories']) &&\n !empty($this->validFilter['types'][$typeKey]['subcategories'])\n ) {\n\n foreach($this->validFilter['types'][$typeKey]['subcategories'] as $pId => $prop) {\n // if type has this property\n if( $property = $type->hasPropertyOfId($prop['id']) ) {\n $values = array();\n if(!$this->allUnchecked($prop['subcategories'])) {\n \n foreach($prop['subcategories'] as $val => $valData) {\n // if value is selected\n if(is_array($valData) && array_key_exists('checked', $valData) && $valData['checked']) {\n $values[] = $valData['id'];\n }\n }\n }\n if(!empty($values)) {\n // If there is more than one property for type, then we have to \n // join conditions for all of them by 'AND'\n // To do that we need to additionaly join each value separately.\n if(count($this->validFilter['types'][$typeKey]['subcategories']) > 1) {\n $noticesQuery->leftJoin('n2.values', 'v2'.$prop['id'], Expr\\Join::WITH, 'v2'.$prop['id'].'.property = '.$prop['id']);\n $typeAnd[] = 'v2'.$prop['id'].'.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n else {\n $typeAnd[] = 'v2.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n }\n } // if type has property\n } // foreach properties\n } // if type has properties\n if(!empty($typeAnd)) {\n $typeAlternatives[] = new Expr\\Andx($typeAnd);\n }\n } // if type in filter\n } // foreach type\n\n if(!empty($typeAlternatives))\n $noticesQuery->andWhere(new Expr\\Orx($typeAlternatives));\n if($sql)\n return $noticesQuery->getQuery()->getSQL();\n else return array($noticesQuery, $parameters);\n }", "public function filterByValueRecursive() {}", "public function get_user_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid);\n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t//$tagno = trim($tagno);\n\t\t//$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t\n\t\t\n\t\t $uid1 = trim($uid);\n\t\t \n\t\t // $a=$this->db->query(\"select * from tb_admin_cart where userid='$uid1'\")->row_array();\t \n\t\t//$b=$a['products'];\n\t\t\n\t\t$sql1 =\"SELECT t1.*,t2.pricestatus from tb_products as t1 inner join tb_admin_cart as t2 on t1.ProductId=t2.products where t1.ProductId = t2.products and t2.userid=' $uid'\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\t/*if(!empty($tagno))\n\t\t{\n\t\t\t$sql1.=\" AND tagno='$tagno'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}*/\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "public function fixVisibleButWithoutCategoryAndInConfigurable()\n {\n $visibilityAttribute = $this->eavConfig->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'visibility');\n $select = $this->_getWriteAdapter()->select();\n $select->join(['data_index' => $this->getMainTable()], 'data_index.entity_id = attribute.entity_id', []);\n $select->where('attribute.attribute_id = ?', $visibilityAttribute->getId());\n $select->where('data_index.is_in_configurable = ?', 1);\n $select->where('data_index.is_in_category = ?', 0);\n $select->where('data_index.visibility <> ?', Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE);\n $select->columns([\n 'value' => new Zend_Db_Expr(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)\n ]);\n $this->_getWriteAdapter()->query($select->crossUpdateFromSelect(\n ['attribute' => $visibilityAttribute->getBackendTable()]\n ));\n\n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_category_product')\n ->reindexAll();\n \n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_product_flat')\n ->reindexAll();\n }", "public function getOnlyCategorySubcatZipcodeDetail($category,$subCat)\r\n\t {\r\n\t\t\t\t $sql=\"SELECT distinct m.zip, (SELECT COUNT(storeName )FROM stores WHERE zip = m.zip) AS No_of_store FROM stores m, books b,inventory i WHERE (b.category = '$category' AND b.subCat = '$subCat') AND (b.isbn = i.isbn) AND (i.storeID=m.storeID)\";\r\n\t\t $result=mysql_query($sql);\r\n\t\t\t return $result;\t\r\n\t }", "abstract function display( $p_filter_value );", "function get_dropbox_categories($filter='')\r\n{\r\n\tglobal $_user;\r\n\tglobal $dropbox_cnf;\r\n\r\n\techo '<h1>'.$filter.'</h1>';\r\n\r\n\t$return_array=array();\r\n\r\n\t$sql=\"SELECT * FROM \".$dropbox_cnf['tbl_category'].\" WHERE user_id='\".$_user['user_id'].\"'\";\r\n\r\n\t$result=api_sql_query($sql);\r\n\twhile ($row=mysql_fetch_array($result))\r\n\t{\r\n\t\tif(($filter=='sent' AND $row['sent']==1) OR ($filter=='received' AND $row['received']==1) OR $filter=='')\r\n\t\t{\r\n\t\t\t$return_array[$row['cat_id']]=$row;\r\n\t\t}\r\n\t}\r\n\r\n\treturn $return_array;\r\n}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function getFilteredSubCategoriesForListing(ProductCategory $product_category);", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "public function hasFilter(): bool;", "function categoryCheck($cond = array())\n\t{\n\t\t$select = 'addoncategory_id';\n\t\treturn $this->CI->AdminModel->getCondSelectedData($cond,$select,$this->tableName);\n\t}", "protected abstract function filter();", "public function filter( )\n {\n global $UNDERQL;\n $l_args_num = func_num_args( );\n if ( $l_args_num < 3 )\n return false;\n $filter_name = func_get_arg( 0 );\n\n $l_filter_callback = $UNDERQL['filter']['prefix'] . $filter_name;\n\n if ( !function_exists( $l_filter_callback ))\n return false;\n\n switch(func_get_arg(1))\n {\n case UQL_FILTER_IN:\n\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->in_filters[$this->table_name][func_get_arg( $i )]))\n $this->in_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n else\n {\n $_temp = $this->in_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->in_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n }\n }\n return true;\n\n case UQL_FILTER_OUT:\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->out_filters[$this->table_name][func_get_arg( $i )]))\n {\n $this->out_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n }\n else\n {\n $_temp = $this->out_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->out_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n\n }\n }\n return true;\n default : return false;\n }\n }", "function xh_fetchFilter($filter_name)\r\n\t{\r\n\t}", "abstract public function filters();", "protected function _initCatagory()\r\n\t{\r\n\t\tMage::dispatchEvent('vendor_catalog_controller_category_init_before', array('controller_action' => $this));\r\n\t\t$categoryId = (int) $this->getRequest()->getParam('id', false);\r\n\t\tif (!$categoryId) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$category = Mage::getModel('vendorscategory/category')\r\n\t\t->load($categoryId);\r\n\t\tif (!Mage::helper('vendorscategory')->canShow($category)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!Mage::registry(\"vendor_id\") && !Mage::registry(\"vendor\") && !Mage::registry(\"current_vendor\")){\r\n\t\t\t//echo $category->getVendorId();exit;\r\n\t\t\t$vendorObj = Mage::getModel('vendors/vendor')->load($category->getVendorId());\r\n\r\n\t\t\t//var_dump($vendorObj->getData());exit;\r\n\t\t\tMage::register('vendor_id', $vendorObj->getVendorId());\r\n\t\t\tMage::register('vendor', $vendorObj);\r\n\t\t\tMage::register('current_vendor', $vendorObj);\r\n\t\t}\r\n\t\t\r\n\t\tMage::register('current_vendor_category', $category);\r\n\t\tMage::register('current_vendor_entity_key', $category->getPath());\r\n\t\ttry {\r\n\t\t\tMage::dispatchEvent(\r\n\t\t\t'vendor_catalog_controller_category_init_after',\r\n\t\t\tarray(\r\n\t\t\t'category' => $category,\r\n\t\t\t'controller_action' => $this\r\n\t\t\t)\r\n\t\t\t);\r\n\t\t} catch (Mage_Core_Exception $e) {\r\n\t\t\tMage::logException($e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\treturn $category;\r\n\t}", "function dataSubCategory( $parentcategory, $gcntyn=false ){\n\n\tglobal $db, $sess;\n\n\t$arrfileurl = explode('/',$_SERVER['SCRIPT_FILENAME']);\n\tif(in_array(\"m\", $arrfileurl) || in_array(\"m2\", $arrfileurl)){\n\t\t$hidden = \"hidden_mobile=0\";\n\t} else {\n\t\t$hidden = \"hidden=0\";\n\t}\n\t# 카테고리 정보\n\tfor ($i=0;$i<2;$i++){\n\t\t$length = strlen($parentcategory) + 3;\n\t\t$query = \"\n\t\tselect\n\t\t\tcategory,catnm,sort,level,level_auth\n\t\tfrom\n\t\t\t\".GD_CATEGORY.\"\n\t\twhere\n\t\t\tcategory like '$parentcategory%'\n\t\t\tand length(category)=$length\n\t\t\";\n\t\tif ($GLOBALS[ici_admin] === false) $query .= \"and \".$hidden;\n\t\t$res = $db->query($query);\n\n\t\tif ($db->count_($res)) break;\n\t\telse if ($length>6) $parentcategory = substr($parentcategory,0,-3);\n\t}\n\n\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\tif ( $gcntyn == true && _CATEGORY_NEW_METHOD_ === false ){\n\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"a.\".$hidden;\n\t\t$where[] = \"a.category like '$parentcategory%'\";\n\t\t$where[] = \"open\";\n\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"b.inpk_prdno!=''\";\n\n\t\t$query = \"\n\t\tselect\n\t\t\tleft(category,$length),count(distinct a.goodsno)\n\t\tfrom\n\t\t\t\".GD_GOODS_LINK.\" a,\n\t\t\t\".GD_GOODS.\" b\n\t\twhere\n\t\t\ta.goodsno = b.goodsno\n\t\t\tand \".implode(\" and \", $where).\"\n\t\tgroup by left(category,$length)\n\t\t\";\n\t\t$res2 = $db->query($query);\n\t\twhile ($data2=$db->fetch($res2)) $gcnt[$data2[0]] = $data2[1];\n\t}\n\n\t### 데이타 조작\n\t$i = 0;\n\twhile ($data=$db->fetch($res)){\n\t\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\t\tif ($gcntyn == true && _CATEGORY_NEW_METHOD_ === true) {\n\t\t\t$where\t= array();\n\t\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"gl.hidden=0\";\n\t\t\t$where[] = \"gl.category = '\".$data['category'].\"'\";\n\t\t\t$where[] = \"g.open = '1'\";\n\t\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"g.inpk_prdno!=''\";\n\n\t\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tCOUNT(g.goodsno) as cnt\n\t\t\tFROM\n\t\t\t\t\".GD_GOODS.\" g\n\t\t\tINNER JOIN\n\t\t\t\t\".GD_GOODS_LINK.\" gl ON g.goodsno = gl.goodsno\n\t\t\tWHERE\n\t\t\t\t\".implode(\" AND \", $where).\"\n\t\t\t\";\n\n\t\t\t$res2 = $db->query($query);\n\t\t\twhile ($data2=$db->fetch($res2, 1)) $gcnt[$data['category']] = $data2['cnt'];\n\t\t}\n\n\t\t$member_auth = false;\n\t\tif($data['level']){//권한 설정되어 있는지 체크\n\t\t\tswitch($data['level_auth']){//권한체크\n\t\t\t\tcase '1': //모두숨김\n\t\t\t\t\tif( (!$sess['level'] ? 0 : $sess['level']) >= $data['level'] ) $member_auth = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: $member_auth = true; break;\n\t\t\t}\n\t\t}\n\t\telse $member_auth = true;\n\n\t\tif($member_auth){\n\t\t\t$data['gcnt'] = $gcnt[ $data['category'] ];\n\t\t\t$cate[$data[sort]][] = $data;\n\t\t}\n\t}\n\n\t### 배열 순서 재정의\n\tif ($cate) $cate = resort($cate);\n\n\treturn $cate;\n}", "function _applyFilter($user, $info, $filter) {\n\t\tforeach($filter as $key => $pattern) {\n\t\t\t//sanitize pattern for use as regex\n\t\t\t$pattern = '/'.str_replace('/', '\\/', $pattern).'/i';\n\t\t\t\n\t\t\tif($key == 'user') {\n\t\t\t\tif(!preg_match($pattern, $user)) return false;\n\t\t\t} else if($key == 'grps') {\n\t\t\t\tif(!count(preg_grep($pattern, $info['grps']))) { \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!preg_match($pattern, $info[$key])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "abstract public function filter(Subscriber $subscriber, $root);", "function listProductsBySubCategory($category, $subcategory) {\r\n\t\t$query = \"SELECT * FROM \".TBL_PRODUCTS.\" WHERE available = '1' AND stock > 0 AND category = :category AND subcategory = :subcategory\";\r\n\t\t$stmt = $this->connection->prepare($query);\r\n\t\t$stmt->execute(array(':category' => $category, ':subcategory' => $subcategory));\r\n\t\t$dbarray = $stmt->fetchAll();\r\n\t\t$count = $stmt->rowCount();\r\n\t\tif(!$dbarray || $count < 1){\r\n\t\t\treturn false; // failure\r\n\t\t} else {\r\n\t\t\treturn $dbarray; // success\r\n\t\t}\r\n\t}", "function custom_post_type_cat_filter($query) {\n if ( !is_admin() && $query->is_main_query() ) {\n if ($query->is_category()) {\n $query->set( 'post_type', array( 'articles', 'guides', 'conseils' ) );\n }\n }\n}", "public function testUpdateItemSubCategory()\n {\n }", "public function rawFilter($filter) {\n\t\t$query = InventorySummary::orderBy('Client_SKU', 'asc');\n\t\tif(isset($filter['objectID']) && strlen($filter['objectID']) > 3) {\n\t\t\t$query = $query->where('objectID', 'like', $filter['objectID'] . '%');\n\t\t}\n\t\tif(isset($filter['Client_SKU']) && strlen($filter['Client_SKU']) > 3) {\n\t\t\t$query = $query->where('Client_SKU', 'like', $filter['Client_SKU'] . '%');\n\t\t}\n\t\tif(isset($filter['Description']) && strlen($filter['Description']) > 3) {\n\t\t\t$query = $query->where('Description', 'like', $filter['Description'] . '%');\n\t\t}\n\n /*\n * Pick face quantity choices\n */\n if(isset($filter['pickQty_rb'])) {\n if($filter['pickQty_rb'] == 'zero') {\n $query = $query->where('pickQty', '=', '0');\n } elseif($filter['pickQty_rb'] == 'belowMin') {\n $query = $query->where('pickQty', '<', '3');\n } elseif($filter['pickQty_rb'] == 'aboveMin') {\n $query = $query->where('pickQty', '>', '2');\n }\n }\n\n /*\n * Activity location quantity choices\n */\n if(isset($filter['actQty_rb'])) {\n if($filter['actQty_rb'] == 'zero') {\n $query = $query->where('actQty', '=', '0');\n } elseif($filter['actQty_rb'] == 'aboveZero') {\n $query = $query->where('actQty', '>', '0');\n }\n }\n\n /*\n * Reserve quantity choices\n */\n if(isset($filter['resQty_rb'])) {\n if($filter['resQty_rb'] == 'zero') {\n $query = $query->where('resQty', '=', '0');\n } elseif($filter['resQty_rb'] == 'aboveZero') {\n $query = $query->where('resQty', '>', '0');\n }\n }\n\n /*\n * Replen Priority choices\n */\n if(isset($filter['replenPrty_cb_noReplen'])\n or isset($filter['replenPrty_cb_20orBelow'])\n or isset($filter['replenPrty_cb_40orBelow'])\n or isset($filter['replenPrty_cb_60orBelow'])) {\n $query->where(function ($query) use ($filter) {\n if (isset($filter['replenPrty_cb_noReplen']) && $filter['replenPrty_cb_noReplen'] == 'on') {\n $query->orWhereNull('replenPrty')\n ->orWhere('replenPrty', '=', '0');\n }\n if (isset($filter['replenPrty_cb_20orBelow']) && $filter['replenPrty_cb_20orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['1', '20']);\n }\n if (isset($filter['replenPrty_cb_40orBelow']) && $filter['replenPrty_cb_40orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['21', '40']);\n }\n if (isset($filter['replenPrty_cb_60orBelow']) && $filter['replenPrty_cb_60orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['41', '60']);\n }\n });\n }\n //dd(__METHOD__.\"(\".__LINE__.\")\", compact('filter', 'query'));\n\n\t\tif(isset($filter['created_at']) && strlen($filter['created_at']) > 1) {\n\t\t\t$query = $query->where('created_at', 'like', $filter['created_at'] . '%');\n\t\t}\n\t\tif(isset($filter['updated_at']) && strlen($filter['updated_at']) > 1) {\n\t\t\t$query = $query->where('updated_at', 'like', $filter['updated_at'] . '%');\n\t\t}\n return $query;\n }", "public function hasFilter(){\n return $this->_has(5);\n }", "public function has_filters()\n {\n }", "protected static function _category_query_filters_condition($query, $parameters=array())\n {\n $price_category_code=Service_Product_Price::get_price_category_code(Service_User::instance()->get_user()->price_category);\n \n //die($price_category_code);\n \n $hodnota_procentni_slevy_pro_skupinu=(Service_Product_Price::get_price_category_percentual_value(Service_User::instance()->get_user()->price_category))/100;\n \n $query\n ->group_by(\"products.id\")\n //->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\")\n ->join(\"manufacturers\",\"LEFT\")->on(\"products.manufacturer_id\",\"=\",\"manufacturers.id\");\n// ->join(array(\"product_parameters_products\",\"ppp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp2.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv2\"))->on(\"ppp2.product_parameter_value_id\",\"=\",\"ppv2.id\")->on(\"ppv2.product_parameter_id\",\"=\",DB::expr(1))\n// ->join(array(\"product_parameters_products\",\"ppp1\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp1.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv1\"))->on(\"ppp1.product_parameter_value_id\",\"=\",\"ppv1.id\")->on(\"ppv1.product_parameter_id\",\"=\",DB::expr(2));\n \n $case_string=\"\n (\n CASE\n WHEN pc2.price_type_id =1\n THEN\n (\n CASE\n WHEN products.percentage_discount >0\n THEN pcp2.cena * ( 1 - ( products.percentage_discount /100 ) ) \n ELSE pcp2.cena\n END\n )\n WHEN $hodnota_procentni_slevy_pro_skupinu > (products.percentage_discount/100)\n THEN (`price_categories_products`.`cena` * ( 1 - ( $hodnota_procentni_slevy_pro_skupinu ) ) ) \n ELSE (`price_categories_products`.`cena` * ( 1 - ( products.percentage_discount/100) ) )\n END\n ) \n \";\n \n //$query->select(array(db::expr(\" (select hodnota from price_categories where kod = \\\"\".$price_category_code.\"\\\")\"),\"price_sleva\"));\n $query->select(array(db::expr($case_string),\"price\"));\n \n $query->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\");\n $query->join(\"price_categories\")->on(\"price_categories_products.price_category_id\",\"=\",\"price_categories.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"D0\\\"\"));\n $query->join(array(\"price_categories_products\",\"pcp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"pcp2.product_id\");\n $query->join(array(\"price_categories\",\"pc2\"),\"LEFT\")->on(\"pcp2.price_category_id\",\"=\",\"pc2.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"\".$price_category_code.\"\\\"\"));\n \n \n if(isset($parameters[\"price_selected_max\"])) $query->having(\"price\",\"<=\",$parameters[\"price_selected_max\"]);\n if(isset($parameters[\"price_selected_min\"])) $query->having(\"price\",\">=\",$parameters[\"price_selected_min\"]);\n //if(isset($parameters[\"products_filter_manufacturer\"])) $query->where(\"products.manufacturer_id\",\"=\",$parameters[\"products_filter_manufacturer\"]);\n if(isset($parameters[\"products_filter_manufacturers\"])) $query->where(\"products.manufacturer_id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_manufacturers\"]).\")\"));\n// if(isset($parameters[\"products_filter_colors\"]) && is_array($parameters[\"products_filter_colors\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_colors\"]).\")\"));\n// if(isset($parameters[\"products_filter_sizes\"]) && is_array($parameters[\"products_filter_sizes\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_sizes\"]).\")\"));\n// \n// if(isset($parameters[\"products_filter_size\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_size\"]).\")\"));\n// if(isset($parameters[\"products_filter_color\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_color\"]).\")\"));\n// \n return $query;\n }", "public static function getSubcatValues()\n\t{\n\t}", "function wpcoupon_add_filter_to_coupons( &$query){\r\n\r\n global $post_type, $pagenow;\r\n\r\n //if we are currently on the edit screen of the post type listings\r\n if($pagenow == 'edit.php' && $post_type == 'coupon'){\r\n if( isset( $_GET['coupon_category'] ) ){\r\n\r\n //get the desired post format\r\n $cat = sanitize_text_field($_GET['coupon_category']);\r\n //if the post format is not 0 (which means all)\r\n if( $cat != 0 ){\r\n $query->query_vars['tax_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'taxonomy' => 'coupon_category',\r\n 'field' => 'term_id',\r\n 'terms' => array( $cat )\r\n )\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * Search store by name\r\n * @see WPCoupon_Search::where()\r\n */\r\n\r\n if ( isset( $_GET['c_type'] ) ) {\r\n $t = trim( ( string ) $_GET['c_type'] );\r\n if ( $t ) {\r\n $query->query_vars['meta_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'key' => '_wpc_coupon_type',\r\n 'value' => $t,\r\n 'compare' => 'LIKE',\r\n )\r\n );\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }", "public function get_specific_filter( $filter_id, $number_of_values, $comparability )\t\t\t\t\t// filter id is an attribute id\r\n\t\t{\r\n\t\t\t$this->errno = DB_OK;\r\n\t\t\t$values = array();\r\n\t\t\t\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t\t$attr = new attribute( $this->con, $filter_id, $this->cat_id );\t\t\t\t\t\t\t\t\t\t//\tcreating an attribute object using the filter_id\r\n\t\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\r\n\r\n\t\t\t$is_filterable = $attr->is_filterable();\r\n\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $is_filterable == 0 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tchecking filterability\r\n\t\t\t{\r\n\t\t\t\t$this->errno = ATTRIBUTE_NOT_FILTERABLE;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"c_\";\r\n\t\t\t}\r\n\t\t\telse if ( $comparability == DISTINCT )\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"d_\";\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"u_\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( $number_of_values > 0 )\r\n\t\t\t{\r\n\r\n\t\t\t\t/*\tLocating and retrieving sorted the $number_of_values most common values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( $result->num_rows > $number_of_values )\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\treturn ;\t\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if ( $number_of_values == -1 )\r\n\t\t\t{\r\n\t\t\t\t/*\tLocating and retrieving sorted all the values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\t\r\n\t\t\t\treturn ;\t\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\twhile ( $row = $result->fetch_row() )\r\n\t\t\t{\r\n\t\t\t\t$values[] = array(\"value\" =>$row[0], \"count\"=>$row[1]);\r\n\t\t\t}\t\t\t\t\t\r\n\t\t\t\r\n\t\t\treturn $values;\r\n\t\t\t\r\n\t\t}", "abstract protected function getFilters();", "public function filter(Request $request )\n \n {\n $filter_1=$request->user()->id;\n $filter_2=$request->post_category_id ;\n $filter_3=$request->status;\n $filter_date=$request->updated_at;\n //Put $this $Field->value >>> If Field not Use , fill values='none' ! .\n $field_1='author_id'; \n $field_2='post_category_id';\n $field_3='status';\n $field_date='updated_at';\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_1, '=', $filter_1)\n ->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_2, '=', $filter_2)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_3, '=', $filter_3)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->orWhere($field_date, 'like', '%'.$filter_date.'%')\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2]\n \n ])\n ->orWhere([\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false; \n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3]\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_date, 'like', '%'.$filter_date.'%']\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->get()\n :false\n :false;\n\n return view('author.post.post-filter',['post_list'=>$post_list]);\n }", "public function filter($value, $filter) {\n if (is_array($value)) {\n foreach ($value as $i => $val)\n $value[$i] = $this->filter($val, $filter);\n }\n else if (is_array($filter)) {\n foreach ($filter as $f)\n $value = $this->filter($value, $f);\n }\n else {\n $fname = \"filter\";\n $arr = explode(\"_\", $filter);\n foreach ($arr as $a)\n $fname.= ucwords($a);\n if (is_callable([$this, $fname]))\n return $this->$fname($value);\n else\n return $value;\n }\n return $value;\n }", "public function hasAdditionalFilter($dataProvider = null);", "public function check_fts_status($CM_COMPLAINT_SUB_TYPE){\n\t\t$this->db->select('CSC_FTS_BASED');\n\t\t$this->db->where('CSC_NO',$CM_COMPLAINT_SUB_TYPE);\n\t\t$query = $this->db->get('COMPLAINT_SUB_CATEGORY');\n \t\t$row = $query->row();\n\t\tif (isset($row))\n\t\t return $row->CSC_FTS_BASED;\n\t}", "public function filter($filter)\n {\n }", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "private function _parseBFilterParam()\n\t{\n $map = array('a' => 'attribute', 'm' => 'manufacturer', 's' => 'stock_status', 'f' => 'filter', 'o' => 'option', 'r' => 'rating', 'c' => 'category');\n \n if (!isset($this->request->get['bfilter'])) {\n \n return;\n }\n\t\t$bfilter = $this->request->get['bfilter'];\n\n\t\t$params = explode(';', $bfilter);\n \n\t\tforeach ($params as $param) \n {\n if (!empty($param)) \n {\n $p = explode(':', $param);\n $pName = $p[0];\n $pValue = $p[1];\n if ($pName === 'price') \n {\n $p = explode('-', $pValue);\n if ((int)$p[0] > 0 || (int)$p[1] > 0) {\n $this->conditions->price = new stdClass();\n $this->conditions->price->min = null;\n $this->conditions->price->max = null;\n $this->conditions->price->inputMin = null;\n $this->conditions->price->inputMax = null;\n }\n if ((int)$p[0] > 0) {\n $this->conditions->price->min = $this->currency->convert($p[0], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMin = $p[0];\n }\n if ((int)$p[1] > 0) {\n $this->conditions->price->max = $this->currency->convert($p[1], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMax = $p[1];\n }\n } \n elseif ($pName === 'rating') \n {\n $this->conditions->rating = explode(',', $pValue);\n } \n elseif ($pName === 'search')\n {\n $this->conditions->search = $pValue;\n $this->searchNameString = $pValue;\n $this->searchTagString = $pValue;\n $this->searchDescriptionString = $pValue;\n }\n else \n {\n $type = $map[substr($pName, 0, 1)];\n $groupId = (int)substr($pName, 1);\n if ($type) {\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n if (isset($p[0]) && isset($p[1])) {\n $this->conditions->{$type}[$groupId] = array('min' => $p[0], 'max' => $p[1]);\n }\n } else {\n $this->conditions->{$type}[$groupId] = explode(',', $pValue);\n }\n\n if ($type !== 'rating') {\n $type = strtoupper($type);\n if (!isset($this->aggregate[$type])) {\n $this->aggregate[$type] = array();\n }\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n $range = $this->_getSliderIntermediateValues($type, $groupId, $p[0], $p[1]);\n if (!empty($range)) {\n $this->aggregate[$type][$groupId] = $range;\n }\n } else {\n $this->aggregate[$type][$groupId] = explode(',', $pValue);\n }\n }\n }\n }\n }\n\t\t}\n\t}", "protected function processFilter($filter)\n\t{\n\t\t$validOperators = '(!~|=~|==|!=|>|<|>=|<=|=@|!@)';\n\n\t\t$filter = preg_replace('/\\s\\s+/',' ',trim($filter)); //Clean duplicate whitespace\n//\t\t$filter = str_replace(array(',',';'),array('\\,','\\;'),$filter); //Escape Google Analytics reserved characters\n\t\t$filter = preg_replace('/(&&\\s*|\\|\\|\\s*|^)([a-z]+)(\\s*' . $validOperators . ')/i','$1ga:$2$3',$filter); //Prefix ga: to metrics and dimensions\n\t\t$filter = preg_replace('/[\\'\\\"]/i','',$filter); //Clear invalid quote characters\n\t\t$filter = preg_replace(array('/\\s*&&\\s*/','/\\s*\\|\\|\\s*/','/\\s*' . $validOperators . '\\s*/'),array(';',',','$1'),$filter); //Clean up operators\n\n\t\tif (strlen($filter)>0) {\n\t\t\treturn $filter;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function definePrimaryFilter()\n {\n $filter = $this->getEmptyFilter();\n if (!empty($this->cObj->data['tx_displaycontroller_filtertype'])) {\n switch ($this->cObj->data['tx_displaycontroller_filtertype']) {\n\n // Simple filter for single view\n // We expect the \"table\" and \"showUid\" parameters and assemble a filter based on those values\n case 'single':\n $filter = array();\n $filter['filters'] = array(\n 0 => array(\n 'table' => $this->piVars['table'],\n 'field' => 'uid',\n 'conditions' => array(\n 0 => array(\n 'operator' => '=',\n 'value' => $this->piVars['showUid'],\n )\n )\n )\n );\n break;\n\n // Simple filter for list view\n case 'list':\n $filter = $this->defineListFilter();\n break;\n\n // Handle advanced data filters\n case 'filter':\n $filter = $this->defineAdvancedFilter();\n break;\n }\n }\n return $filter;\n }", "abstract public function prepareFilters();", "function editSubUnderCategory()\n\t{\n\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t $sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT * FROM category_table where sub_category_parent_id='\".$obj->records[0]['sub_category_id'].\"' AND category_parent_id ='\".$obj->records[0]['category_id'].\"'\"; \n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\treturn Display_DManageProducts::displaySubUnderCategory($query->records,$obj->records[0]['sub_under_category_id']);\n\t\t\t\n\t }\n\n\n\t}", "function filterType($tbl, $tbl2, $tbl3, $col, $col2, $col3, $filter) {\n\t\tinclude('connect.php');\n\t\t$queryFilter = \"SELECT * FROM {$tbl} m, {$tbl2} g, {$tbl3} mg WHERE m.{$col} = mg.{$col} AND g.{$col2} = mg.{$col2} AND g.{$col3} = '{$filter}'\";\n\t\t$runFilter = mysqli_query($link, $queryFilter);\n\t\tif($runFilter){\n\t\t\treturn $runFilter;\n\t\t}else{\n\t\t\t$error = \"There was an error accessing this Information. Please contact your admin.\";\n\t\t\treturn $error;\n\t\t}\n\t\tmysqli_close($link);\n\t}", "function simplenews_build_issue_filter_query(EntityFieldQuery $query) {\n if (isset($_SESSION['simplenews_issue_filter'])) {\n foreach ($_SESSION['simplenews_issue_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n case 'newsletter':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->fieldCondition(variable_get('simplenews_newsletter_field', 'simplenews_newsletter'), 'target_id', $value);\n }\n break;\n }\n }\n }\n}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function get_sub_category_info( $sub_cate_id, $sub_cate_status = 0 )\n\t{\n\t\t$criteria = $sub_cate_status == 1 ? \"sub_cate_status = 1 AND \" : \"\";\n\t\t$q = \"SELECT * FROM title_dev_sub_categories WHERE \".$criteria.\" sub_cate_id = \".$sub_cate_id;\n\t\t$r = $this -> db -> getSingleRecord( $q );\n\t\tif( $r )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}", "function _prepareFilter(&$controller){\n \t\n\t\t$filter = array();\n if(isset($controller->data)){\n foreach($controller->data as $model=>$fields){\n foreach($fields as $key=>$field){\n if($field == ''){\n unset($controller->data[$model][$key]);\n }\n }\n }\n \n App::import('Sanitize');\n $sanit = new Sanitize();\n $controller->data = $sanit->clean($controller->data);\n $filter = $controller->data;\n }\n \n if (empty($filter)){\n \t\t$filter = $this->_checkParams($controller); \t\n }\n $controller->data = $filter;\n }", "function _create_filter_sql () {\n\t\t$SF = &$_SESSION[$this->_filter_name];\n\t\tforeach ((array)$SF as $k => $v) {\n\t\t\t$SF[$k] = trim($v);\n\t\t}\n\t\t// Generate filter for the common fileds\n\t\tif ($SF[\"category_id\"])\t{\n\t\t \t$sql[] = \" AND category_id = \".intval($SF[\"category_id\"]).\" \";\n\t\t}\n\t\tif ($SF[\"user_id\"])\t{\n\t\t \t$sql[] = \" AND user_id = \".intval($SF[\"user_id\"]).\" \";\n\t\t}\n\t\tif (strlen($SF[\"admin_priority\"])) {\n\t\t \t$sql[] = \" AND admin_priority = \".intval($SF[\"admin_priority\"]).\" \";\n\t\t}\n\t\tif ($this->DEF_VIEW_STATUS || $SF[\"status\"]) {\n\t\t\t$status = $SF[\"status\"] ? $SF[\"status\"] : $this->DEF_VIEW_STATUS;\n\t\t\tif ($status == \"not_closed\") {\n\t\t\t \t$sql[] = \" AND status != 'closed' \";\n\t\t\t} else {\n\t\t\t \t$sql[] = \" AND status = '\"._es($SF[\"status\"]).\"' \";\n\t\t\t}\n\t\t}\n\t\tif (strlen($SF[\"subject\"])) {\n\t\t\t$sql[] = \" AND subject LIKE '\"._es($SF[\"subject\"]).\"%' \";\n\t\t}\n\t\tif (strlen($SF[\"message\"])) {\n\t\t\t$sql[] = \" AND message LIKE '\"._es($SF[\"message\"]).\"%' \";\n\t\t}\n\t\tif (!empty($SF[\"email\"])) {\n\t\t\t$sql[] = \" AND email LIKE '\"._es($SF[\"email\"]).\"%' \";\n\t\t}\n\t\tif ($SF[\"assigned_to\"])\t{\n\t\t \t$sql[] = \" AND assigned_to = \".intval($SF[\"assigned_to\"]).\" \";\n\t\t}\n\t\t// Add subquery to users table\n\t\tif (!empty($users_sql)) {\n\t\t\t$sql[] = \" AND user_id IN( SELECT id FROM \".db('user').\" WHERE 1=1 \".$users_sql.\") \";\n\t\t}\n\t\t// Default sorting\n\t\tif (!$SF[\"sort_by\"]) {\n\t\t\t$SF[\"sort_by\"]\t\t= \"opened_date\";\n\t\t\t$SF[\"sort_order\"]\t= \"DESC\";\n\t\t}\n\t\t// Sorting here\n\t\tif ($SF[\"sort_by\"]) {\n\t\t \t$sql[] = \" ORDER BY \".($this->_sort_by[$SF[\"sort_by\"]] ? $this->_sort_by[$SF[\"sort_by\"]] : $SF[\"sort_by\"]).\" \";\n\t\t\tif (strlen($SF[\"sort_order\"])) {\n\t\t\t\t$sql[] = \" \".$SF[\"sort_order\"].\" \";\n\t\t\t}\n\t\t}\n\t\t$sql = implode(\"\\r\\n\", (array)$sql);\n\t\treturn $sql;\n\t}", "function editSubCategory()\n\t{ \n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT category_id,category_parent_id FROM category_table where category_id in(select category_id from products_table where category_id='\".$obj->records[0]['category_id'].\"')\";\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$category=Core_Settings_CManageProducts::displayCategory($query->records[0]['category_parent_id']);\n\t\t\t\n\t\t\t$sqlid='select category_id from category_table where category_id in(select sub_category_id from products_table where product_id='.$id.')';\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$subcat=Core_Settings_CManageProducts::displaySubCategory($query->records[0]['category_id']);\n\t\t\t\n\t\t\treturn $subcat;\n\t }\n\t}", "function getSelectionOptions($filter) {\r\n global $parentCategory;\r\n if ($filter->isConditional()) {\r\n //displays the filter if the parent category is in the children category list\r\n if (!in_array($parentCategory, $filter->getCategory())) {\r\n //if its not found the function is returned\r\n return;\r\n }\r\n }\r\n //subvalues is a list of the items to add to the selection drop down of the filter\r\n $subvalues = array();\r\n if ($filter->isEnum()) {\r\n $subvalues = explode(\"','\", getEnumValues($filter->getTable(), $filter->getColumn()));\r\n } else {\r\n $subvalues = getColumList($filter->getTable(), $filter->getColumn(), $filter->getJoinTable(), $filter->getJoinColumn(), $filter->getComparator());\r\n }\r\n //if the dropdown is not empty, it'll create a select drop down box and add the values as options\r\n if (!empty($subvalues)) {\r\n $filterName = $filter->getName();\r\n echo $filterName . \": \";\r\n echo '<select name=\"' . $filterName . '\">' . $filterName;\r\n echo '<option></option>';\r\n foreach($subvalues as $sub) {\r\n $option = clean($sub);\r\n echo '<option value=\"' . $option . '\"' . (($_GET[\"$filterName\"] == $option) ? \" selected\" : \"\") . '>' . $option . \"</option>\";\r\n }\r\n echo \"</select> \";\r\n }\r\n }", "function get_category_data( $adunit = false ) {\n\t$exposed_values = array();\n\t$parent_categories = array();\n\t$sub_categories = array();\n\t$exposed_values['parent_categories'] = 'no_value';\n\t$exposed_values['sub_categories'] = 'no_value';\n\tif ( is_single() ) {\n\t\tglobal $post;\n\t\t$category_tax = 'category';\n\t\t$categories = get_the_terms( $post->ID, $category_tax );\n\t\tif ( ! empty( $categories ) ) {\n\t\t\tforeach ( $categories as $term ) {\n\t\t\t\t$ancestors = get_ancestors( $term->term_id, $category_tax );\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\t\t\t\t\tforeach ( $ancestors as $ancestor ) {\n\t\t\t\t\t\t$remove[] = \"'\";\n\t\t\t\t\t\tif ( ! $adunit ) {\n\t\t\t\t\t\t\t$remove[] = '-';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ancestor_term = get_term( $ancestor );\n\t\t\t\t\t\tarray_push( $parent_categories, str_replace( $remove, '', $ancestor_term->slug ) );\n\t\t\t\t\t\tarray_push( $sub_categories, str_replace( $remove, '', $term->slug ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$term_slug = $term->slug;\n\t\t\t\t\tarray_push( $parent_categories, $term_slug );\n\t\t\t\t}\n\t\t\t}\n\t\t\t$filter_similar_parent_cats = array_unique( $parent_categories, SORT_STRING );\n\t\t\t$parent_categories = implode( ', ', $filter_similar_parent_cats );\n\t\t\t$filter_similar_sub_cats = array_unique( $sub_categories, SORT_STRING );\n\t\t\t$sub_categories = implode( ', ', $filter_similar_sub_cats );\n\t\t\tif ( ! empty( $parent_categories ) ) {\n\t\t\t\t$exposed_values['parent_categories'] = $parent_categories;\n\t\t\t}\n\t\t\tif ( ! empty( $sub_categories ) ) {\n\t\t\t\t$exposed_values['sub_categories'] = $sub_categories;\n\t\t\t}\n\t\t}\n\t} elseif ( is_category() || is_archive() ) {\n\t\t$q_object = get_queried_object();\n\t\t// WP_Post_Type archives don't have a \"slug\" property.\n\t\tif ( ! empty( $q_object->slug ) ) {\n\t\t\t$cat_slug = $q_object->slug;\n\t\t\t$exposed_values['parent_categories'] = $cat_slug;\n\t\t\t$exposed_values['sub_categories'] = $cat_slug;\n\t\t}\n\t\tif ( is_post_type_archive( 'joke' ) ) {\n\t\t\t$exposed_values['parent_categories'] = 'jokes';\n\t\t\t$exposed_values['sub_categories'] = 'jokes';\n\t\t}\n\t} elseif ( is_page() ) {\n\t\t$exposed_values['parent_categories'] = 'misc';\n\t\t$exposed_values['sub_categories'] = 'misc';\n\t} elseif ( is_home() && is_front_page() ) {\n\t\t$exposed_values['parent_categories'] = 'homepage';\n\t\t$exposed_values['sub_categories'] = 'homepage';\n\t}\n\treturn $exposed_values;\n}", "function simplenews_build_subscription_filter_query(SelectQueryInterface $query) {\n if (isset($_SESSION['simplenews_subscriptions_filter'])) {\n foreach ($_SESSION['simplenews_subscriptions_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->condition('su.' . $key, $value);\n }\n break;\n case 'email':\n if (!empty($value)) {\n $query->condition('sn.mail', '%' . $value . '%', 'LIKE');\n }\n break;\n }\n }\n }\n}", "public function hasCategory(): bool;", "public function getFilterArray() {\n\t\t$filter = null;\n\t\tif (isset($_GET['sub_category'])) {\n\t\t\t$filter = array('category' => array($_GET['sub_category']));\n\t\t} else if (isset($_GET['category'])) {\n\t\t\t$filter = array('category' => array($_GET['category']));\n\n\t\t\t$subcategory_list = $this->category_model->get_sub_category_list_by_category_id($_GET['category'], array('id'));\n\t\t\tforeach ($subcategory_list as $subcategory) {\n\t\t\t\tarray_push($filter['category'], $subcategory->id);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($_GET['course'])){\n\t\t\t\t$filter['title'] = $_GET['course'];\n\t\t}\n\n\t\tif (isset($_GET['search'])) {\n\t\t\t$filter['search_text'] = $_GET['search'];\n\t\t}\n\n\t\t\n\t\treturn $filter;\n\t}", "public function get_category_item_specifics($categoryID)\n {\n\n // Create the request object.\n $request = new Types\\GetCategorySpecificsRequestType();\n\n // An user token is required when using the Trading service.\n $request->RequesterCredentials = $this->requester_credentials;\n\n /**\n * Check Item Specifics are Enabled\n */\n $this->CI->load->library('ebay_category_features', $categoryID);\n $mode = $this->ebay_category_features->get_ItemSpecificsMode();\n //var_dump($$mode);\n\n\n if ($categoryID && $mode !== 'Disabled') {\n $request->CategoryID = [$categoryID];\n $response = $this->trading_service->getCategorySpecifics($request);\n // Check errors\n $checkError = $this->get_response($response);\n if ($checkError != 0) {\n if (count($response->Recommendations)) {\n $name_value_arr = array();\n foreach ($response->Recommendations as $Recommendation) {\n foreach ($Recommendation->NameRecommendation as $NameRecommendation) {\n $values_arr = array();\n if ($NameRecommendation->ValidationRules->SelectionMode == 'SelectionOnly') {\n $values_arr['custom']['SelectionOnly'] = true;\n }\n\n if ($NameRecommendation->ValidationRules->MinValues >= 1) {\n /**\n * Required item specifics have * in Name of Specific\n */\n //$name = $NameRecommendation->Name . '<strong>*</strong>';\n $values_arr['custom']['MinValues'] = true;\n }\n\n /*\n |--------------------------------------------------------------------------\n | Finally Helped\n |--------------------------------------------------------------------------\n |http://prntscr.com/g5zzn5\n |https://stackoverflow.com/questions/5421426/php-xml-xpath-node-element-iteration-and-inserting-into-array\n */\n\n $name = $NameRecommendation->Name;\n\n foreach ($NameRecommendation->ValueRecommendation as $ValueRecommendation) {\n $values = (string)$ValueRecommendation->Value;\n array_push($values_arr, $values);\n //$converted_values = explode(\",\",$value);\n // echo print_r($converted_values);\n }\n $name_value_arr[$name] = $values_arr;\n }\n }\n\n //var_dump($name_value_arr);\n\n $browse = [];\n\n foreach ($name_value_arr as $key => $value) {\n $custom = $this->findKey($value, 'custom');\n $selection_only = $this->findKey($value, 'SelectionOnly');\n $min_values = $this->findKey($value, 'MinValues');\n\n // var_dump($custom);\n // var_dump($value);\n\n $key = ($min_values) ? $key . '<strong>*</strong>' : $key;\n unset($value['custom']);\n $browse[$key] = $value;\n }\n\n //var_dump($browse);\n return json_encode($browse);\n // return $browse;\n\n }\n }\n } else return false;\n }", "public function getSubcategory() {\r\n return \\models\\Database::validateData($this->_subcategory, 'string|specialchars|strip_tags');\r\n }", "function is_filtered() {\n\t\tglobal $_chosen_attributes;\n\n\t\treturn ( sizeof( $_chosen_attributes ) > 0 || ( isset( $_GET['max_price'] ) && isset( $_GET['min_price'] ) ) ) ? true : false;\n\t}", "public function test_getItemCategoryByFilter() {\n\n }", "public function filtrationElements(){\n foreach(self::getElements() as $key=>$items){\n if(\n NULL!==$items->getFilters() &&\n is_array($items->getFilters()) &&\n count($items->getFilters())\n ){\n self::filtrationElement($items);\n }\n \n }\n }" ]
[ "0.69309103", "0.6778163", "0.6593092", "0.60254765", "0.588653", "0.5853831", "0.5836159", "0.5643095", "0.5594471", "0.5591669", "0.5583605", "0.55351704", "0.55215573", "0.5461978", "0.5447852", "0.54339767", "0.53721714", "0.536629", "0.53490764", "0.53429455", "0.5340119", "0.5338771", "0.5332024", "0.5329534", "0.5310291", "0.5304871", "0.5285568", "0.5270057", "0.5262751", "0.52351826", "0.5233582", "0.5231882", "0.5219089", "0.52103597", "0.5203143", "0.51807046", "0.5178017", "0.51751125", "0.51613075", "0.51611364", "0.5148685", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.51470315", "0.5143698", "0.514174", "0.5137672", "0.51372474", "0.5137075", "0.51330036", "0.512782", "0.51203346", "0.51180863", "0.5116137", "0.51020455", "0.5100414", "0.50974303", "0.50970644", "0.50929433", "0.50925374", "0.50869167", "0.5076191", "0.5071506", "0.5064626", "0.50634503", "0.5040922", "0.50408113", "0.50327176", "0.50320446", "0.50295323", "0.5027698", "0.50216615", "0.5020405", "0.5019809", "0.50181544", "0.50166607", "0.5012108", "0.50098306", "0.5006884", "0.5003825", "0.50024796", "0.50024796", "0.5000618", "0.4999656", "0.4993988", "0.4991129", "0.4980848", "0.4979024", "0.49774238", "0.49633092", "0.49570376", "0.4953716", "0.49530804", "0.49479327", "0.4947665", "0.49421895" ]
0.6885532
1
FILTER_SUB_CATEGORY IS ONLY CHECKED IF EXISTS, NO VALUE USAGES
public function testFilterSubCategoryNotEmpty() { $filters = array( //set up conditions for test 'filter_category_id' => 'true', //necessary to access filter_sub_category 'filter_sub_category' => 'true', ); $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method $productsTotal = $this->model_catalog_product->getTotalProducts($filters); $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>"true", 0 products'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFilterSubCategoryNotEmptyExistingCategoryId() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", filter_category_id=>27, 1 products');\n }", "public function testFilterSubCategoryNullCatIdExisting() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => null,\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>null,');\n }", "public function testFilterSubCategoryNull() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => null,\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $this->assertTrue(sizeof($products) == 0, sizeof($products) . ' Retrieved from filter_sub_category=>null, 0 products');\n }", "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n return;\n }\n\n $this->query->andWhere(['category' => $this->category]);\n }", "function filter(){\n //$_SESSION['filters'] = array('GPA' => ['2.0', '3.0']), 'Nationality' => ['saudi'], 'Company_size' => ['large'], 'Major' => ['Computer Science', 'Marketing', 'Finance']);\n if($_GET['checked'] == \"true\"){\n if(!isset($_SESSION['filters'])){\n $_SESSION['filters'] = array();\n }\n if(isset($_SESSION['filters'][$_GET['category']])){\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n } else{\n $_SESSION['filters'][$_GET['category']] = array();\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }else{\n if(isset($_SESSION['filters'][$_GET['category']])){\n unset($_SESSION['filters'][$_GET['category']][array_search($_GET['value'],$_SESSION['filters'][$_GET['category']])]);\n $_SESSION['filters'][$_GET['category']] = removeGaps($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters'][$_GET['category']]) === 0){\n unset($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters']) === 0){\n unset($_SESSION['filters']);\n }\n }\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }\n }", "public function testBadSubFilter()\n {\n $tests = array(\n array(\n 'label' => __LINE__ .': invalid filter type',\n 'filter' => '',\n 'connective' => ''\n ),\n array(\n 'label' => __LINE__ .': invalid connective',\n 'filter' => P4Cms_Record_Filter::create(),\n 'connective' => ''\n ),\n );\n\n foreach ($tests as $test) {\n extract($test);\n\n try {\n P4Cms_Record_Filter::create()->addSubFilter($filter, $connective);\n\n $this->fail($label.' Expected exception');\n } catch (InvalidArgumentException $e) {\n $this->assertTrue(true, $label);\n }\n }\n }", "public function testGetItemSubCategoryByFilter()\n {\n }", "private static function _getFilter() {}", "function get_product_category_filters($data) {\n $category_id = $data['category_id'];\n // Return category filters object\n return (object) [\n 'attributes' => get_product_category_attribute_terms($category_id),\n 'subcategories' => get_product_category_subcategories($category_id),\n 'price' => get_product_category_price_min_max($category_id)\n ];\n}", "private function get_filterItemCObj( $uid, $value )\n {\n static $firstLoop = true;\n static $loop = array();\n static $conf_array = null;\n\n//// #56339\n//$this->pObj->dev_var_dump( $uid, $this->markerArray['###UID###'] );\n//$this->pObj->dev_var_dump( $uid, $value );\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Item class\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n // #41753.01, 121010, dwildt, 4-\n// if($conf_name == 'CATEGORY_MENU')\n// {\n// $conf_array = $this->pObj->objJss->class_onchange($conf_name, $conf_array, $this->row_number);\n// }\n // #41753.01, 121010, dwildt, 10+\n switch ( true )\n {\n case( $conf_name == 'CATEGORY_MENU' ):\n case( $conf_name == 'TREEVIEW' ):\n $conf_array = $this->pObj->objJss->class_onchange( $conf_name, $conf_array, $this->row_number );\n break;\n default:\n // Follow the workflow\n break;\n }\n\n//var_dump( __METHOD__, __LINE__, $value, $conf_array );\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check AJAX ###ONCHANGE###';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n\n $this->markerArray[ '###CLASS###' ] = $this->replace_itemClass( $conf_array, '###CLASS###' );\n $this->markerArray[ '###STYLE###' ] = $this->replace_itemStyle( $conf_array, '###STYLE###' );\n $this->markerArray[ '###TITLE###' ] = $this->replace_itemTitle( '###TITLE###' );\n $this->markerArray[ '###URL###' ] = $this->replace_itemUrl( $conf_array, $uid, '###URL###' );\n // #i0129, 150218, dwildt, 1+\n $this->markerArray[ '###ID###' ] = $table . '__' . $field . '__' . $uid;\n $this->markerArray[ '###ITEM_SELECTED###' ] = $this->replace_itemSelected( $conf_array, $uid, $value, '###ITEM_SELECTED###' );\n // #40354, #40354, 4.1.7, 1+\n $this->markerArray[ '###TABLE.FIELD###' ] = $this->nicePiVar[ 'key_piVar' ];\n\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n //$conf_array = $this->replace_marker( $conf_array );\n // Get the COA configuration for the value\n // SWITCH first item\n switch ( true )\n {\n case( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] ):\n $cObj_name = $conf_array[ 'first_item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'first_item.' ][ 'cObject.' ];\n break;\n default:\n $cObj_name = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject.' ];\n break;\n }\n // SWITCH first item\n // Get the COA configuration for the value\n\n $this->cObjData_setFlagDisplayInCaseOfNoCounting();\n\n $item = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\n\n // 3.9.20\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n $item = $this->pObj->cObj->substituteMarkerArray( $item, $this->markerArray );\n\n // 3.9.20: Code is moved from above\n // Workaround: remove ###ONCHANGE###\n $item = str_replace( ' class=\" ###ONCHANGE###\"', null, $item );\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'class=\" ###ONCHANGE###\" is removed. Check the code!';\n t3lib_div::devlog( '[WARN/TODO] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // Workaround: remove ###ONCHANGE###\n\n $this->cObjData_unsetFlagDisplayInCaseOfNoCounting();\n\n // maxItemsTagEndBegin\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check maxItemsPerRow!';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n $item = $this->get_maxItemsTagEndBegin( $item );\n // maxItemsTagEndBegin\n\n\n $firstLoop = false;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "public function filtersExist();", "function getFilter() {\n\t\tif (isset($_POST['value'])){\n\t\t\tif ($_POST['value'] != \"all\"){\n\t\t\t\t$categoryName = $_POST['value'];\n\t\t\t\treturn $categoryName;\n\t\t\t}\n\t\t}\n\t\treturn 'all';\n\t}", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "protected function getFilterField(){\n $aField = parent::getFilterField();\n $oRequest = AMI::getSingleton('env/request');\n if(!$oRequest->get('category', 0)){\n $aField['disableSQL'] = TRUE;\n }\n return $aField;\n }", "public function get_adminstaff_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$description,$weight,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid); \n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t$description = trim($description);\n\t\t$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t $uid1 = trim($uid);\n\t\t$existsdata = $this->db->query(\"SELECT * from tb_admin_cart where userid='$uid1'\")->row_array();\n\t\tif(empty($existsdata))\n\t\t{\n\t\t\t$sql1=\"SELECT * from tb_products where ProductStatus=1\";\n\t\t\tif(!empty($parentid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t\t}\n\t\t\tif(!empty($subcatid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t\t}\n\t\t\tif(!empty($selectsublist))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t\t}\n\t\t\tif(!empty($selectgender))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t\t}\n\t\t\tif(!empty($description))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t\t}\n\t\t\tif(!empty($weight))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t\t}\n\t\t\tif(!empty($minprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t\t}\n\t\t\tif(!empty($maxprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t\t}\t\t\t\n\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql1=\"SELECT t1.* FROM tb_products as t1 WHERE t1.ProductId not IN (SELECT t2.products FROM tb_admin_cart as t2 WHERE t2.userid='$uid1') \";\n\t\t\n\t\t//$sql1 =\"select * from tb_products where ProductStatus=1\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\tif(!empty($description))\n\t\t{\n\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "protected function defineAdvancedFilter($type = 'primary')\n {\n // Define rank based on call parameter\n $rank = 1;\n $checkField = 'tx_displaycontroller_emptyfilter';\n if ($type === 'secondary') {\n $rank = 2;\n $checkField = 'tx_displaycontroller_emptyfilter2';\n }\n // Get the data filter\n try {\n // Get the filter's information\n $filterData = $this->getComponentData('filter', $rank);\n // Get the corresponding Data Filter component\n /** @var $datafilter \\Tesseract\\Tesseract\\Component\\DataFilterInterface */\n $datafilter = Tesseract::getComponent(\n 'datafilter',\n $filterData['tablenames'],\n array('table' => $filterData['tablenames'], 'uid' => $filterData['uid_foreign']),\n $this\n );\n // Initialise the filter\n $filter = $this->initFilter($filterData['uid_foreign']);\n // Pass the cached filter to the DataFilter\n $datafilter->setFilter($filter);\n try {\n $filter = $datafilter->getFilterStructure();\n // Store the filter in session\n $cacheKey = $this->prefixId . '_filterCache_' . $filterData['uid_foreign'] . '_' . $this->cObj->data['uid'] . '_' . $GLOBALS['TSFE']->id;\n $GLOBALS['TSFE']->fe_user->setKey('ses', $cacheKey, $filter);\n // Here handle case where the \"filters\" part of the filter is empty\n // If the display nothing flag has been set, we must somehow stop the process\n // The Data Provider should not even be called at all\n // and the Data Consumer should receive an empty (special?) structure\n if ($datafilter->isFilterEmpty() && empty($this->cObj->data[$checkField])) {\n $this->passStructure = false;\n }\n } catch (\\Exception $e) {\n $this->addMessage(\n $this->extKey,\n $e->getMessage() . ' (' . $e->getCode() . ')',\n $this->pi_getLL('error.get_filter'),\n FlashMessage::WARNING\n );\n }\n } catch (\\Exception $e) {\n throw new MissingComponentException($this->pi_getLL('exception.no_filter'), 1326454151);\n }\n return $filter;\n }", "public function filter_category() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! isset( $_POST['rank_math_filter_redirections_top'] ) && ! isset( $_POST['rank_math_filter_redirections_bottom'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! Helper::has_cap( 'redirections' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$category_filter = isset( $_POST['rank_math_filter_redirections_top'] ) ? $_POST['redirection_category_filter_top'] : $_POST['redirection_category_filter_bottom'];\n\t\tif ( ! $category_filter || 'none' === $category_filter ) {\n\t\t\twp_safe_redirect( Helper::get_admin_url( 'redirections' ) );\n\t\t\texit;\n\t\t}\n\n\t\twp_safe_redirect( Helper::get_admin_url( 'redirections', [ 'redirection_category' => $category_filter ] ) );\n\t\texit;\n\t}", "abstract protected function filterFieldvalue();", "protected function _beforeLoad()\n {\n if (isset($this->_productLimitationFilters['category_id']) &&\n is_array($this->_productLimitationFilters['category_id'])\n ) {\n $this->getSelect()->group('e.entity_id');\n }\n\n return parent::_beforeLoad();\n }", "private function _get_filters_section_settings() {\r\n\r\n // Get all product categories\r\n $termArgs = array(\r\n 'taxonomy' => 'product_cat',\r\n 'hide_empty' => false\r\n );\r\n $productTermsObject = get_terms( $termArgs );\r\n $productTerms = array();\r\n\r\n if ( !is_wp_error( $productTermsObject ) ) {\r\n\r\n foreach( $productTermsObject as $term )\r\n $productTerms[ $term->slug ] = $term->name;\r\n\r\n }\r\n\r\n foreach ( WWOF_Product_Listing_Helper::get_all_products( 'ID , post_title' ) as $post ){\r\n $product = wc_get_product( $post->ID );\r\n $allProducts[ WWOF_Functions::wwof_get_product_id( $product ) ] = '[ID : ' . WWOF_Functions::wwof_get_product_id( $product ) . '] ' . $post->post_title;\r\n }\r\n\r\n // Add \"None\" category selection for \"no default\" option\r\n $productTerms2 = array_merge( array ('none' => __( 'No Default' , 'woocommerce-wholesale-order-form' ) ), $productTerms );\r\n\r\n return array(\r\n\r\n array(\r\n 'title' => __( 'Filters Options', 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'title',\r\n 'desc' => '',\r\n 'id' => 'wwof_filters_main_title'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Product Category Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Only display products belonging to the selected category' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_product_category_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Product Categories...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $productTerms\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Exclude Product Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Exclude selected products' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_exclude_product_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Products...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $allProducts\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Default Product Category on Search Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'select',\r\n 'desc' => __( 'Select a product category to which product are under will be loaded by default in the order form.' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_general_default_product_category_search_filter',\r\n 'class' => 'chosen_select',\r\n 'options' => $productTerms2,\r\n 'default' => 'none'\r\n ),\r\n\r\n array(\r\n 'type' => 'sectionend',\r\n 'id' => 'wwof_filters_sectionend'\r\n )\r\n\r\n );\r\n\r\n }", "public function filterSpecificCategories($array){\n\n $newArray = [];\n\n foreach($array as $key => $value){\n $cat = trim(strtolower(strstr($value->getArticleID()->getCategory(), ' ')));\n if($cat == \"world news\" || $cat == \"football\"/* ||$cat == \"fashion\" || $cat == \"technology\"*/){\n //test fashion whs technology $numb raus? film und politics guuut 0.8\n $newArray[$key] = $value;\n }\n\n /* if($cat == \"sport\"|| $cat == \"football\" || $cat == \"culture\" || $cat == \"art and design\"){\n $newArray[$key] = $value;\n }*/\n\n /*if( $cat == \"sport\" || $cat == \"uk news\" || $cat == \"opinion\" || $cat == \"society\" || $cat == \"business\" ||\n $cat == \"politics\" || $cat == \"world news\" || $cat == \"life and style\" || $cat == \"environment\" || $cat == \"technology\"\n ||$cat == \"television & radio\" || $cat == \"culture\" || $cat == \"art and design\" || $cat == \"film\" || $cat == \"books\"\n ||$cat == \"us news\" || $cat == \"football\" || $cat == \"fashion\" || $cat == \"travel\" || $cat == \"science\"/*){ //20 categories\n $newArray[$key] = $value;\n }*/\n\n /* if( $cat == \"us news\" || $cat == \"technology\" || $cat == \"science\" || $cat == \"sport\" || $cat == \"opinion\" ||\n $cat == \"world news\" || $cat == \"football\" || $cat == \"politics\" || $cat == \"fashion\" || $cat == \"television & radio\"\n ||$cat == \"culture\" || $cat == \"environment\" || $cat == \"art and design\" || $cat == \"life and style\" || $cat == \"travel\"/*\n || $cat == \"books\" || $cat == \"uk news\" || $cat == \"business\" || $cat == \"film\" || $cat == \"society\"){ //20 categories\n $newArray[$key] = $value;\n }\n */\n\n }\n\n\n return $newArray;\n }", "function culturefeed_search_ui_default_filter_options($filter_form_number) {\n\n $defaults = array(\n 1 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n 2 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide long-running events',\n 'query-string' => 'no-periods',\n 'api-filter-query' => 'periods:false'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide permanent events',\n 'query-string' => 'no-permanent',\n 'api-filter-query' => 'permanent:false'\n ),\n ),\n 3 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n );\n\n return isset($defaults[$filter_form_number]) ? $defaults[$filter_form_number] : array();\n\n}", "private function _applyFilter($filter)\n\t{\n\t\tglobal $context, $scripturl;\n\n\t\tif (isset($filter['variable']))\n\t\t{\n\t\t\t$context['filter'] = &$filter;\n\n\t\t\t// Set the filtering context.\n\t\t\tswitch ($filter['variable'])\n\t\t\t{\n\t\t\t\tcase 'id_member':\n\t\t\t\t\t$id = $filter['value']['sql'];\n\t\t\t\t\tMembersList::load($id, false, 'minimal');\n\t\t\t\t\t$name = MembersList::get($id)->real_name;\n\t\t\t\t\t$context['filter']['value']['html'] = '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $id, 'name' => $name]) . '\">' . $name . '</a>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars((substr($filter['value']['sql'], 0, 1) === '?' ? $scripturl : '') . $filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array('\\_' => '_')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'message':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\t$context['filter']['value']['html'] = preg_replace('~&amp;lt;span class=&amp;quot;remove&amp;quot;&amp;gt;(.+?)&amp;lt;/span&amp;gt;~', '$1', $context['filter']['value']['html']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'error_type':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$context['filter']['value']['html'] = &$filter['value']['sql'];\n\t\t\t}\n\t\t}\n\t}", "function wpcoupon_filter_to_coupon_administration(){\r\n global $post_type;\r\n if($post_type == 'coupon'){\r\n\r\n $post_formats_args = array(\r\n //'show_option_all' => 'All Categories',\r\n 'show_option_none' => 'All Categories',\r\n 'option_none_value' => '',\r\n 'orderby' => 'NAME',\r\n 'order' => 'ASC',\r\n 'name' => 'coupon_category',\r\n 'taxonomy' => 'coupon_category'\r\n );\r\n\r\n //if we have a post format already selected, ensure that its value is set to be selected\r\n if(isset($_GET['coupon_category'])){\r\n $post_formats_args['selected'] = sanitize_text_field($_GET['coupon_category']);\r\n }\r\n wp_dropdown_categories($post_formats_args);\r\n\r\n $types = wpcoupon_get_coupon_types();\r\n\r\n $type = '';\r\n if(isset($_GET['c_type'])){\r\n $type = sanitize_text_field($_GET['c_type']);\r\n }\r\n ?>\r\n <select class=\"postform\" id=\"coupon_type\" name=\"c_type\">\r\n <option value=\"\"><?php esc_html_e( 'All coupon types', 'wp-coupon' ); ?></option>\r\n <?php foreach ( $types as $k => $v ) { ?>\r\n <option <?php selected( $type, $k ); ?> value=\"<?php echo esc_attr( $k ); ?>\"><?php echo esc_html( $v ); ?></option>\r\n <?php } ?>\r\n </select>\r\n <?php\r\n $s = '';\r\n if ( isset ( $_GET['c_s_store'] ) ) {\r\n $s = $_GET['c_s_store'];\r\n }\r\n ?>\r\n <input type=\"text\" id=\"search-coupon-store\" placeholder=\"<?php esc_attr_e( 'Filter store','wp-coupon' ); ?>\" value=\"<?php echo esc_attr( $s ); ?>\" name=\"c_s_store\">\r\n <?php\r\n\r\n }\r\n }", "public function filtering();", "public function checkSubcatNameExist($category_id,$sub_catname)\n{\n\ttry\n\t{\n\t\t$ifExist = subcategory::where('category_id','=',$category_id)->where('sub_category_name',$sub_catname)->get();\n\t\t//$ifExist = subcategory::where('category_id','=','1')->where('sub_category_name','=','Office Partition')->get();\n\t\t// return $ifExist;\n\t\tif(count($ifExist) <= 0)\n\t\t{\n\t\t\treturn '0';//no data\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '1'; //with data\n\t\t}\n\t}\n\tcatch(\\Exception $e)\n\t{\n\t\treturn '0';\n\t}\n}", "public function get_all_category_subtype2_for_category_type($type_name,$subtype_name,&$data_arr,&$data_count){\n if($type_name==\"\"){\n //no type specified so no filtering\n $data_count = 0;\n return true;\n }\n $q = \"select DISTINCT subtype2 from \".TP.\"transaction_type_master where type='\".$type_name.\"' and subtype1='\".$subtype_name.\"'\";\n $res = mysql_query($q);\n if(!$res){\n return false;\n }\n $data_count = mysql_num_rows($res);\n if($data_count == 0){\n //no recs\n return true;\n }\n //recs so\n while($row = mysql_fetch_assoc($res)){\n $data_arr[] = $row;\n }\n return true;\n }", "function ProcessMultilevelSubCategories()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"ProcessMultilevelSubCategories();\" . \"<HR>\";\n if ($this->listSettings->HasItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\")) {\n $this->sub_categories_count = $this->listSettings->GetItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\");\n for ($i = 0; $i < $this->sub_categories_count; $i ++) {\n $sub_category = array();\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\")) {\n $sub_category[\"library\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LIBRARY\", array(\n $i), true);\n }\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\")) {\n $sub_category[\"link_field\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LINK_FIELD\", array(\n $i), true);\n }\n $this->sub_categories[] = $sub_category;\n }\n\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORIES_COUNT\", array(), true);\n }\n\n }", "function SetupLookupFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_MainGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`MainGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `MainGroup`, `MainGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`MainGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_SubGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`SubGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `SubGroup`, `SubGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`SubGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_Article\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`Article` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"f2\" => '`SubGroup` = {filter_value}', \"t2\" => \"200\", \"fn2\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `Article`, `Article` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`Article` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\t}\n\t}", "function check_privacy_filtered($myprofileid,$hisprofileid)\n{\n\t$sql=\"select * from FILTERS where PROFILEID='$hisprofileid'\";\n\t$resultfilter=mysql_query_decide($sql) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sql,\"ShowErrTemplate\");\n\n\tif(mysql_num_rows($resultfilter)>0)\n\t{\n\t\t$filterrow=mysql_fetch_array($resultfilter);\t\t\t\t\t\t\t\n\t\tif($filterrow[\"AGE\"]==\"Y\" || $filterrow[\"MSTATUS\"]==\"Y\" || $filterrow[\"RELIGION\"]==\"Y\" || $filterrow[\"COUNTRY_RES\"]==\"Y\" || $filterrow[\"MTONGUE\"]==\"Y\"|| $filterrow[\"CITY_RES\"]==\"Y\" || $filterrow[\"INCOME\"]==\"Y\" || $filterrow[\"CASTE\"]==\"Y\")\n\t\t{\n\t\t\t$sqlfilter=\"select count(*) from JPROFILE where activatedKey=1 and PROFILEID='$myprofileid'\";\n\n\t\t\t//Sharding Concept added by Lavesh Rawat on table JPARTNER\t\n\t\t\tinclude_once($_SERVER['DOCUMENT_ROOT'].\"/classes/Jpartner.class.php\");\n\t\t\t$jpartnerObj= new Jpartner;\n\t\t\t$mysqlObj=new Mysql;\n\n\t\t\t$myDbName=getProfileDatabaseConnectionName($hisprofileid,'',$mysqlObj);\n\t\t\t$myDb=$mysqlObj->connect(\"$myDbName\");\n\t\t\t$jpartnerObj->setPartnerDetails($hisprofileid,$myDb,$mysqlObj,\"LAGE,HAGE,PARTNER_CASTE,PARTNER_COUNTRYRES,PARTNER_MSTATUS,PARTNER_MTONGUE\");\n\t\t\tif($jpartnerObj->isPartnerProfileExist($myDb,$mysqlObj,$hisprofileid))\n\t\t\t{\n\t\t\t\tif($filterrow[\"AGE\"]==\"Y\" && $jpartnerObj->getLAGE() && $jpartnerObj->getHAGE() )\n\t\t\t\t\t$sqlfilter.= \" AND AGE between \".$jpartnerObj->getLAGE().\" AND \".$jpartnerObj->getHAGE();\n\n\t\t\t\tif($filterrow[\"CASTE \"]==\"Y\" && $jpartnerObj->getPARTNER_CASTE())\n\t\t\t\t{\n\t\t\t\t\t//\t$caste_arr=explode(\"','\",trim($jpartnerObj->getPARTNER_CASTE(),\"'\"));\n\t\t\t\t\t$sqlfilter.=\" and CASTE in (\".$jpartnerObj->getPARTNER_CASTE().\")\";\n\t\t\t\t\t// implode(\"','\",get_all_caste($caste_arr)) . \"')\";\n\t\t\t\t}\t\n\t\t\t\tif($filterrow[\"RELIGION \"]==\"Y\" && $jpartnerObj->getPARTNER_RELIGION())\n\t\t\t\t\t$sqlfilter.=\" AND RELIGION in (\".$jpartnerObj->getPARTNER_RELIGION().\")\";\n\n\t\t\t\tif($filterrow[\"COUNTRY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_COUNTRYRES())\n\t\t\t\t\t$sqlfilter.=\" AND COUNTRY_RES in (\".$jpartnerObj->getPARTNER_COUNTRYRES().\")\";\n\n\t\t\t\tif($filterrow[\"CITY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_CITYRES())\n\t\t\t\t\t$sqlfilter.=\" AND CITY_RES in (\".$jpartnerObj->getPARTNER_CITYRES().\")\";\n\n\t\t\t\tif($filterrow[\"MSTATUS\"]==\"Y\" && $jpartnerObj->getPARTNER_MSTATUS())\n\t\t\t\t\t$sqlfilter.=\" and MSTATUS in (\".$jpartnerObj->getPARTNER_MSTATUS().\")\";\n\n\t\t\t\tif($filterrow[\"MTONGUE\"]==\"Y\" && $jpartnerObj->getPARTNER_MTONGUE())\n\t\t\t\t\t$sqlfilter.=\" and MTONGUE in (\".$jpartnerObj->getPARTNER_MTONGUE().\")\";\n\n\t\t\t\tif($filterrow[\"INCOME\"]==\"Y\" && $jpartnerObj->getPARTNER_INCOME())\n\t\t\t\t\t$sqlfilter.=\" and INCOME in (\".$jpartnerObj->getPARTNER_INCOME().\")\";\n\t\t\t}\n\t\t\t$resfil=mysql_query_decide($sqlfilter) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sqlfilter,\"ShowErrTemplate\");\n\t\t\t$finalfilterrow=mysql_fetch_row($resfil);\n\n\t\t\tif($finalfilterrow[0] <= 0)\n\t\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function tep_get_subCategory($tagValue){\n\tglobal $languages_id,$customer_group_id;\n\t//禁用的电池分类ID @nathan 2011-11-2\n\t//$disable_batteries = array(1,3,21,23,25,73,111,307,314,499);\n\t$disable_batteries = array(23,25,73,111,307,499);\n\t$disable_batteries_three = array(188,191,192,193,194,195,502,556,112,115,117,126,129,136,139,141,172,175,601,181,306,312,313,500,501,562,197,198,202,204,205,206,208,210,211,212,213,217,218,220,503,504,505,521,557,558,559,560,561,563,507,508,509,510,511,512,513,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,741);\n\t$jsonData = array();\n\tif (isset($tagValue) && !empty($tagValue)){\n\t\t# \n\t\t# URL\n\t\t# Ʒ\n\t\t# |_| |=|\n\t\t$topNavi_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$tagValue);\n\t\t$topNavi_categories_query = tep_db_query($topNavi_categories_sql);\n\t\tif (tep_db_num_rows($topNavi_categories_query) > 0){\n\t\t\t$i = 0;\n\t\t\twhile ($topNavi_categories = tep_db_fetch_array($topNavi_categories_query)) {\n\t\t\t\t//禁止显示的电池分类 @nathan 2011-11-2\n\t\t\t\tif($tagValue == 408 && in_array($topNavi_categories['categories_id'], $disable_batteries)) continue;\n\n\t\t\t\t$products_in_category = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\tif ($products_in_category > 0){\n\t\t\t\t\t$jsonData[$i]['name'] = $topNavi_categories['categories_name'];\n\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($topNavi_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t$jsonData[$i]['parent'] = '0';\n\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sub_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$topNavi_categories['categories_id']);\n\t\t\t\t\t$sub_categories_query = tep_db_query($sub_categories_sql);\n\t\t\t\t\tif (tep_db_num_rows($sub_categories_query) > 0){\n\t\t\t\t\t\twhile ($sub_categories = tep_db_fetch_array($sub_categories_query)) {\n\t\t\t\t\t\t\tif(in_array($sub_categories['categories_id'], $disable_batteries_three)) continue;\n\t\t\t\t\t\t\t$products_in_subcategory = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\tif ($products_in_subcategory > 0){\n\t\t\t\t\t\t\t\t$jsonData[$i]['name'] = $sub_categories['categories_name'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($sub_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t\t\t\t$jsonData[$i]['parent'] = $sub_categories['categories_id'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}unset($products_in_subcategory);\n\t\t\t\t\t\t}unset($sub_categories);\n\t\t\t\t\t}unset($sub_categories_query,$sub_categories_sql);\n\t\t\t\t}unset($products_in_category);\n\t\t\t}unset($topNavi_categories);\n\t\t}unset($topNavi_categories_query,$topNavi_categories_sql);\n\t\t//echo json_encode($jsonData);\n\t\treturn $jsonData;\n\t}else{\n\t\treturn false;\n\t}\n}", "private function filters() {\n\n\n\t}", "private function get_filterItem( $uid, $value )\n {\n static $loop = array();\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n // Make a backup\n $cObjDataBak = $this->pObj->cObj->data;\n // Add elements of current row to cObj->data\n $this->cObjData_updateRow( $uid );\n\n $this->set_markerArrayUpdateRow( $uid );\n\n // IF first_item, set the first item tree view\n if ( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] )\n {\n $this->set_firstItemTreeView();\n }\n // IF first_item, set the first item tree view\n // DEVELOPMENT: Browser engine 4.x\n switch ( $this->pObj->dev_browserEngine )\n {\n case( 3 ):\n // stdWrap the current value\n $item = $this->get_filterItemValueStdWrap( $conf_name, $conf_array, $uid, $value );\n break;\n case( 4 ):\n // #i0112, 141218, dwildt, 1+\n case( 5 ):\n // Wrap the current value by the cObject\n $this->updateWizard( 'filter_cObject' );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 1' );\n }\n $item = $this->get_filterItemCObj( $uid, $value );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 2' );\n }\n break;\n default:\n $header = 'FATAL ERROR!';\n $text = 'Sorry, this error shouldn\\'t occure: case is undefined.';\n $this->pObj->drs_die( $header, $text );\n break;\n }\n // DEVELOPMENT: Browser engine 4.x\n\n\n $this->set_itemCurrentNumber();\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 3' );\n }\n\n // Reset cObj->data\n $this->pObj->cObj->data = $cObjDataBak;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "private function getTypesFilterSubquery($sql = FALSE) {\n \n $this->loadTypes();\n $noticesQuery = $this->doctrine\n ->getEntityManager()\n ->getRepository('FenchyNoticeBundle:Notice')\n ->createQueryBuilder('n2')\n ->select($sql ? 'n2.id' : 'n2')\n ->leftJoin('n2.type', 't2')\n ->leftJoin('n2.values', 'v2')\n ->leftJoin('t2.properties', 'p2');\n\n $typeAlternatives = array();\n $parameters = array();\n foreach($this->types as $type) {\n\n if($this->isValidFilterTypeChecked($type->getId(), NULL, NULL)) {\n\n $typeAnd = array('n2.type = :condType'.$type->getId());\n $parameters['condType'.$type->getId()] = $type;\n\n // if type has subcategories/properties\n $typeKey = $this->getKeyValidFilter($type->getId(), NULL, NULL); \n if(\n array_key_exists('subcategories', $this->validFilter['types'][$typeKey]) && \n is_array($this->validFilter['types'][$typeKey]['subcategories']) &&\n !empty($this->validFilter['types'][$typeKey]['subcategories'])\n ) {\n\n foreach($this->validFilter['types'][$typeKey]['subcategories'] as $pId => $prop) {\n // if type has this property\n if( $property = $type->hasPropertyOfId($prop['id']) ) {\n $values = array();\n if(!$this->allUnchecked($prop['subcategories'])) {\n \n foreach($prop['subcategories'] as $val => $valData) {\n // if value is selected\n if(is_array($valData) && array_key_exists('checked', $valData) && $valData['checked']) {\n $values[] = $valData['id'];\n }\n }\n }\n if(!empty($values)) {\n // If there is more than one property for type, then we have to \n // join conditions for all of them by 'AND'\n // To do that we need to additionaly join each value separately.\n if(count($this->validFilter['types'][$typeKey]['subcategories']) > 1) {\n $noticesQuery->leftJoin('n2.values', 'v2'.$prop['id'], Expr\\Join::WITH, 'v2'.$prop['id'].'.property = '.$prop['id']);\n $typeAnd[] = 'v2'.$prop['id'].'.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n else {\n $typeAnd[] = 'v2.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n }\n } // if type has property\n } // foreach properties\n } // if type has properties\n if(!empty($typeAnd)) {\n $typeAlternatives[] = new Expr\\Andx($typeAnd);\n }\n } // if type in filter\n } // foreach type\n\n if(!empty($typeAlternatives))\n $noticesQuery->andWhere(new Expr\\Orx($typeAlternatives));\n if($sql)\n return $noticesQuery->getQuery()->getSQL();\n else return array($noticesQuery, $parameters);\n }", "public function filterByValueRecursive() {}", "public function get_user_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid);\n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t//$tagno = trim($tagno);\n\t\t//$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t\n\t\t\n\t\t $uid1 = trim($uid);\n\t\t \n\t\t // $a=$this->db->query(\"select * from tb_admin_cart where userid='$uid1'\")->row_array();\t \n\t\t//$b=$a['products'];\n\t\t\n\t\t$sql1 =\"SELECT t1.*,t2.pricestatus from tb_products as t1 inner join tb_admin_cart as t2 on t1.ProductId=t2.products where t1.ProductId = t2.products and t2.userid=' $uid'\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\t/*if(!empty($tagno))\n\t\t{\n\t\t\t$sql1.=\" AND tagno='$tagno'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}*/\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "public function fixVisibleButWithoutCategoryAndInConfigurable()\n {\n $visibilityAttribute = $this->eavConfig->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'visibility');\n $select = $this->_getWriteAdapter()->select();\n $select->join(['data_index' => $this->getMainTable()], 'data_index.entity_id = attribute.entity_id', []);\n $select->where('attribute.attribute_id = ?', $visibilityAttribute->getId());\n $select->where('data_index.is_in_configurable = ?', 1);\n $select->where('data_index.is_in_category = ?', 0);\n $select->where('data_index.visibility <> ?', Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE);\n $select->columns([\n 'value' => new Zend_Db_Expr(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)\n ]);\n $this->_getWriteAdapter()->query($select->crossUpdateFromSelect(\n ['attribute' => $visibilityAttribute->getBackendTable()]\n ));\n\n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_category_product')\n ->reindexAll();\n \n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_product_flat')\n ->reindexAll();\n }", "public function getOnlyCategorySubcatZipcodeDetail($category,$subCat)\r\n\t {\r\n\t\t\t\t $sql=\"SELECT distinct m.zip, (SELECT COUNT(storeName )FROM stores WHERE zip = m.zip) AS No_of_store FROM stores m, books b,inventory i WHERE (b.category = '$category' AND b.subCat = '$subCat') AND (b.isbn = i.isbn) AND (i.storeID=m.storeID)\";\r\n\t\t $result=mysql_query($sql);\r\n\t\t\t return $result;\t\r\n\t }", "abstract function display( $p_filter_value );", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function get_dropbox_categories($filter='')\r\n{\r\n\tglobal $_user;\r\n\tglobal $dropbox_cnf;\r\n\r\n\techo '<h1>'.$filter.'</h1>';\r\n\r\n\t$return_array=array();\r\n\r\n\t$sql=\"SELECT * FROM \".$dropbox_cnf['tbl_category'].\" WHERE user_id='\".$_user['user_id'].\"'\";\r\n\r\n\t$result=api_sql_query($sql);\r\n\twhile ($row=mysql_fetch_array($result))\r\n\t{\r\n\t\tif(($filter=='sent' AND $row['sent']==1) OR ($filter=='received' AND $row['received']==1) OR $filter=='')\r\n\t\t{\r\n\t\t\t$return_array[$row['cat_id']]=$row;\r\n\t\t}\r\n\t}\r\n\r\n\treturn $return_array;\r\n}", "public function getFilteredSubCategoriesForListing(ProductCategory $product_category);", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "function categoryCheck($cond = array())\n\t{\n\t\t$select = 'addoncategory_id';\n\t\treturn $this->CI->AdminModel->getCondSelectedData($cond,$select,$this->tableName);\n\t}", "public function hasFilter(): bool;", "protected abstract function filter();", "public function filter( )\n {\n global $UNDERQL;\n $l_args_num = func_num_args( );\n if ( $l_args_num < 3 )\n return false;\n $filter_name = func_get_arg( 0 );\n\n $l_filter_callback = $UNDERQL['filter']['prefix'] . $filter_name;\n\n if ( !function_exists( $l_filter_callback ))\n return false;\n\n switch(func_get_arg(1))\n {\n case UQL_FILTER_IN:\n\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->in_filters[$this->table_name][func_get_arg( $i )]))\n $this->in_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n else\n {\n $_temp = $this->in_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->in_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n }\n }\n return true;\n\n case UQL_FILTER_OUT:\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->out_filters[$this->table_name][func_get_arg( $i )]))\n {\n $this->out_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n }\n else\n {\n $_temp = $this->out_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->out_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n\n }\n }\n return true;\n default : return false;\n }\n }", "function xh_fetchFilter($filter_name)\r\n\t{\r\n\t}", "abstract public function filters();", "protected function _initCatagory()\r\n\t{\r\n\t\tMage::dispatchEvent('vendor_catalog_controller_category_init_before', array('controller_action' => $this));\r\n\t\t$categoryId = (int) $this->getRequest()->getParam('id', false);\r\n\t\tif (!$categoryId) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$category = Mage::getModel('vendorscategory/category')\r\n\t\t->load($categoryId);\r\n\t\tif (!Mage::helper('vendorscategory')->canShow($category)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!Mage::registry(\"vendor_id\") && !Mage::registry(\"vendor\") && !Mage::registry(\"current_vendor\")){\r\n\t\t\t//echo $category->getVendorId();exit;\r\n\t\t\t$vendorObj = Mage::getModel('vendors/vendor')->load($category->getVendorId());\r\n\r\n\t\t\t//var_dump($vendorObj->getData());exit;\r\n\t\t\tMage::register('vendor_id', $vendorObj->getVendorId());\r\n\t\t\tMage::register('vendor', $vendorObj);\r\n\t\t\tMage::register('current_vendor', $vendorObj);\r\n\t\t}\r\n\t\t\r\n\t\tMage::register('current_vendor_category', $category);\r\n\t\tMage::register('current_vendor_entity_key', $category->getPath());\r\n\t\ttry {\r\n\t\t\tMage::dispatchEvent(\r\n\t\t\t'vendor_catalog_controller_category_init_after',\r\n\t\t\tarray(\r\n\t\t\t'category' => $category,\r\n\t\t\t'controller_action' => $this\r\n\t\t\t)\r\n\t\t\t);\r\n\t\t} catch (Mage_Core_Exception $e) {\r\n\t\t\tMage::logException($e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\treturn $category;\r\n\t}", "function dataSubCategory( $parentcategory, $gcntyn=false ){\n\n\tglobal $db, $sess;\n\n\t$arrfileurl = explode('/',$_SERVER['SCRIPT_FILENAME']);\n\tif(in_array(\"m\", $arrfileurl) || in_array(\"m2\", $arrfileurl)){\n\t\t$hidden = \"hidden_mobile=0\";\n\t} else {\n\t\t$hidden = \"hidden=0\";\n\t}\n\t# 카테고리 정보\n\tfor ($i=0;$i<2;$i++){\n\t\t$length = strlen($parentcategory) + 3;\n\t\t$query = \"\n\t\tselect\n\t\t\tcategory,catnm,sort,level,level_auth\n\t\tfrom\n\t\t\t\".GD_CATEGORY.\"\n\t\twhere\n\t\t\tcategory like '$parentcategory%'\n\t\t\tand length(category)=$length\n\t\t\";\n\t\tif ($GLOBALS[ici_admin] === false) $query .= \"and \".$hidden;\n\t\t$res = $db->query($query);\n\n\t\tif ($db->count_($res)) break;\n\t\telse if ($length>6) $parentcategory = substr($parentcategory,0,-3);\n\t}\n\n\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\tif ( $gcntyn == true && _CATEGORY_NEW_METHOD_ === false ){\n\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"a.\".$hidden;\n\t\t$where[] = \"a.category like '$parentcategory%'\";\n\t\t$where[] = \"open\";\n\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"b.inpk_prdno!=''\";\n\n\t\t$query = \"\n\t\tselect\n\t\t\tleft(category,$length),count(distinct a.goodsno)\n\t\tfrom\n\t\t\t\".GD_GOODS_LINK.\" a,\n\t\t\t\".GD_GOODS.\" b\n\t\twhere\n\t\t\ta.goodsno = b.goodsno\n\t\t\tand \".implode(\" and \", $where).\"\n\t\tgroup by left(category,$length)\n\t\t\";\n\t\t$res2 = $db->query($query);\n\t\twhile ($data2=$db->fetch($res2)) $gcnt[$data2[0]] = $data2[1];\n\t}\n\n\t### 데이타 조작\n\t$i = 0;\n\twhile ($data=$db->fetch($res)){\n\t\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\t\tif ($gcntyn == true && _CATEGORY_NEW_METHOD_ === true) {\n\t\t\t$where\t= array();\n\t\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"gl.hidden=0\";\n\t\t\t$where[] = \"gl.category = '\".$data['category'].\"'\";\n\t\t\t$where[] = \"g.open = '1'\";\n\t\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"g.inpk_prdno!=''\";\n\n\t\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tCOUNT(g.goodsno) as cnt\n\t\t\tFROM\n\t\t\t\t\".GD_GOODS.\" g\n\t\t\tINNER JOIN\n\t\t\t\t\".GD_GOODS_LINK.\" gl ON g.goodsno = gl.goodsno\n\t\t\tWHERE\n\t\t\t\t\".implode(\" AND \", $where).\"\n\t\t\t\";\n\n\t\t\t$res2 = $db->query($query);\n\t\t\twhile ($data2=$db->fetch($res2, 1)) $gcnt[$data['category']] = $data2['cnt'];\n\t\t}\n\n\t\t$member_auth = false;\n\t\tif($data['level']){//권한 설정되어 있는지 체크\n\t\t\tswitch($data['level_auth']){//권한체크\n\t\t\t\tcase '1': //모두숨김\n\t\t\t\t\tif( (!$sess['level'] ? 0 : $sess['level']) >= $data['level'] ) $member_auth = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: $member_auth = true; break;\n\t\t\t}\n\t\t}\n\t\telse $member_auth = true;\n\n\t\tif($member_auth){\n\t\t\t$data['gcnt'] = $gcnt[ $data['category'] ];\n\t\t\t$cate[$data[sort]][] = $data;\n\t\t}\n\t}\n\n\t### 배열 순서 재정의\n\tif ($cate) $cate = resort($cate);\n\n\treturn $cate;\n}", "function _applyFilter($user, $info, $filter) {\n\t\tforeach($filter as $key => $pattern) {\n\t\t\t//sanitize pattern for use as regex\n\t\t\t$pattern = '/'.str_replace('/', '\\/', $pattern).'/i';\n\t\t\t\n\t\t\tif($key == 'user') {\n\t\t\t\tif(!preg_match($pattern, $user)) return false;\n\t\t\t} else if($key == 'grps') {\n\t\t\t\tif(!count(preg_grep($pattern, $info['grps']))) { \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!preg_match($pattern, $info[$key])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "abstract public function filter(Subscriber $subscriber, $root);", "function listProductsBySubCategory($category, $subcategory) {\r\n\t\t$query = \"SELECT * FROM \".TBL_PRODUCTS.\" WHERE available = '1' AND stock > 0 AND category = :category AND subcategory = :subcategory\";\r\n\t\t$stmt = $this->connection->prepare($query);\r\n\t\t$stmt->execute(array(':category' => $category, ':subcategory' => $subcategory));\r\n\t\t$dbarray = $stmt->fetchAll();\r\n\t\t$count = $stmt->rowCount();\r\n\t\tif(!$dbarray || $count < 1){\r\n\t\t\treturn false; // failure\r\n\t\t} else {\r\n\t\t\treturn $dbarray; // success\r\n\t\t}\r\n\t}", "function custom_post_type_cat_filter($query) {\n if ( !is_admin() && $query->is_main_query() ) {\n if ($query->is_category()) {\n $query->set( 'post_type', array( 'articles', 'guides', 'conseils' ) );\n }\n }\n}", "public function testUpdateItemSubCategory()\n {\n }", "public function rawFilter($filter) {\n\t\t$query = InventorySummary::orderBy('Client_SKU', 'asc');\n\t\tif(isset($filter['objectID']) && strlen($filter['objectID']) > 3) {\n\t\t\t$query = $query->where('objectID', 'like', $filter['objectID'] . '%');\n\t\t}\n\t\tif(isset($filter['Client_SKU']) && strlen($filter['Client_SKU']) > 3) {\n\t\t\t$query = $query->where('Client_SKU', 'like', $filter['Client_SKU'] . '%');\n\t\t}\n\t\tif(isset($filter['Description']) && strlen($filter['Description']) > 3) {\n\t\t\t$query = $query->where('Description', 'like', $filter['Description'] . '%');\n\t\t}\n\n /*\n * Pick face quantity choices\n */\n if(isset($filter['pickQty_rb'])) {\n if($filter['pickQty_rb'] == 'zero') {\n $query = $query->where('pickQty', '=', '0');\n } elseif($filter['pickQty_rb'] == 'belowMin') {\n $query = $query->where('pickQty', '<', '3');\n } elseif($filter['pickQty_rb'] == 'aboveMin') {\n $query = $query->where('pickQty', '>', '2');\n }\n }\n\n /*\n * Activity location quantity choices\n */\n if(isset($filter['actQty_rb'])) {\n if($filter['actQty_rb'] == 'zero') {\n $query = $query->where('actQty', '=', '0');\n } elseif($filter['actQty_rb'] == 'aboveZero') {\n $query = $query->where('actQty', '>', '0');\n }\n }\n\n /*\n * Reserve quantity choices\n */\n if(isset($filter['resQty_rb'])) {\n if($filter['resQty_rb'] == 'zero') {\n $query = $query->where('resQty', '=', '0');\n } elseif($filter['resQty_rb'] == 'aboveZero') {\n $query = $query->where('resQty', '>', '0');\n }\n }\n\n /*\n * Replen Priority choices\n */\n if(isset($filter['replenPrty_cb_noReplen'])\n or isset($filter['replenPrty_cb_20orBelow'])\n or isset($filter['replenPrty_cb_40orBelow'])\n or isset($filter['replenPrty_cb_60orBelow'])) {\n $query->where(function ($query) use ($filter) {\n if (isset($filter['replenPrty_cb_noReplen']) && $filter['replenPrty_cb_noReplen'] == 'on') {\n $query->orWhereNull('replenPrty')\n ->orWhere('replenPrty', '=', '0');\n }\n if (isset($filter['replenPrty_cb_20orBelow']) && $filter['replenPrty_cb_20orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['1', '20']);\n }\n if (isset($filter['replenPrty_cb_40orBelow']) && $filter['replenPrty_cb_40orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['21', '40']);\n }\n if (isset($filter['replenPrty_cb_60orBelow']) && $filter['replenPrty_cb_60orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['41', '60']);\n }\n });\n }\n //dd(__METHOD__.\"(\".__LINE__.\")\", compact('filter', 'query'));\n\n\t\tif(isset($filter['created_at']) && strlen($filter['created_at']) > 1) {\n\t\t\t$query = $query->where('created_at', 'like', $filter['created_at'] . '%');\n\t\t}\n\t\tif(isset($filter['updated_at']) && strlen($filter['updated_at']) > 1) {\n\t\t\t$query = $query->where('updated_at', 'like', $filter['updated_at'] . '%');\n\t\t}\n return $query;\n }", "public function hasFilter(){\n return $this->_has(5);\n }", "public function has_filters()\n {\n }", "protected static function _category_query_filters_condition($query, $parameters=array())\n {\n $price_category_code=Service_Product_Price::get_price_category_code(Service_User::instance()->get_user()->price_category);\n \n //die($price_category_code);\n \n $hodnota_procentni_slevy_pro_skupinu=(Service_Product_Price::get_price_category_percentual_value(Service_User::instance()->get_user()->price_category))/100;\n \n $query\n ->group_by(\"products.id\")\n //->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\")\n ->join(\"manufacturers\",\"LEFT\")->on(\"products.manufacturer_id\",\"=\",\"manufacturers.id\");\n// ->join(array(\"product_parameters_products\",\"ppp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp2.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv2\"))->on(\"ppp2.product_parameter_value_id\",\"=\",\"ppv2.id\")->on(\"ppv2.product_parameter_id\",\"=\",DB::expr(1))\n// ->join(array(\"product_parameters_products\",\"ppp1\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp1.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv1\"))->on(\"ppp1.product_parameter_value_id\",\"=\",\"ppv1.id\")->on(\"ppv1.product_parameter_id\",\"=\",DB::expr(2));\n \n $case_string=\"\n (\n CASE\n WHEN pc2.price_type_id =1\n THEN\n (\n CASE\n WHEN products.percentage_discount >0\n THEN pcp2.cena * ( 1 - ( products.percentage_discount /100 ) ) \n ELSE pcp2.cena\n END\n )\n WHEN $hodnota_procentni_slevy_pro_skupinu > (products.percentage_discount/100)\n THEN (`price_categories_products`.`cena` * ( 1 - ( $hodnota_procentni_slevy_pro_skupinu ) ) ) \n ELSE (`price_categories_products`.`cena` * ( 1 - ( products.percentage_discount/100) ) )\n END\n ) \n \";\n \n //$query->select(array(db::expr(\" (select hodnota from price_categories where kod = \\\"\".$price_category_code.\"\\\")\"),\"price_sleva\"));\n $query->select(array(db::expr($case_string),\"price\"));\n \n $query->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\");\n $query->join(\"price_categories\")->on(\"price_categories_products.price_category_id\",\"=\",\"price_categories.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"D0\\\"\"));\n $query->join(array(\"price_categories_products\",\"pcp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"pcp2.product_id\");\n $query->join(array(\"price_categories\",\"pc2\"),\"LEFT\")->on(\"pcp2.price_category_id\",\"=\",\"pc2.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"\".$price_category_code.\"\\\"\"));\n \n \n if(isset($parameters[\"price_selected_max\"])) $query->having(\"price\",\"<=\",$parameters[\"price_selected_max\"]);\n if(isset($parameters[\"price_selected_min\"])) $query->having(\"price\",\">=\",$parameters[\"price_selected_min\"]);\n //if(isset($parameters[\"products_filter_manufacturer\"])) $query->where(\"products.manufacturer_id\",\"=\",$parameters[\"products_filter_manufacturer\"]);\n if(isset($parameters[\"products_filter_manufacturers\"])) $query->where(\"products.manufacturer_id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_manufacturers\"]).\")\"));\n// if(isset($parameters[\"products_filter_colors\"]) && is_array($parameters[\"products_filter_colors\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_colors\"]).\")\"));\n// if(isset($parameters[\"products_filter_sizes\"]) && is_array($parameters[\"products_filter_sizes\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_sizes\"]).\")\"));\n// \n// if(isset($parameters[\"products_filter_size\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_size\"]).\")\"));\n// if(isset($parameters[\"products_filter_color\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_color\"]).\")\"));\n// \n return $query;\n }", "public static function getSubcatValues()\n\t{\n\t}", "function wpcoupon_add_filter_to_coupons( &$query){\r\n\r\n global $post_type, $pagenow;\r\n\r\n //if we are currently on the edit screen of the post type listings\r\n if($pagenow == 'edit.php' && $post_type == 'coupon'){\r\n if( isset( $_GET['coupon_category'] ) ){\r\n\r\n //get the desired post format\r\n $cat = sanitize_text_field($_GET['coupon_category']);\r\n //if the post format is not 0 (which means all)\r\n if( $cat != 0 ){\r\n $query->query_vars['tax_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'taxonomy' => 'coupon_category',\r\n 'field' => 'term_id',\r\n 'terms' => array( $cat )\r\n )\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * Search store by name\r\n * @see WPCoupon_Search::where()\r\n */\r\n\r\n if ( isset( $_GET['c_type'] ) ) {\r\n $t = trim( ( string ) $_GET['c_type'] );\r\n if ( $t ) {\r\n $query->query_vars['meta_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'key' => '_wpc_coupon_type',\r\n 'value' => $t,\r\n 'compare' => 'LIKE',\r\n )\r\n );\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }", "public function get_specific_filter( $filter_id, $number_of_values, $comparability )\t\t\t\t\t// filter id is an attribute id\r\n\t\t{\r\n\t\t\t$this->errno = DB_OK;\r\n\t\t\t$values = array();\r\n\t\t\t\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t\t$attr = new attribute( $this->con, $filter_id, $this->cat_id );\t\t\t\t\t\t\t\t\t\t//\tcreating an attribute object using the filter_id\r\n\t\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\r\n\r\n\t\t\t$is_filterable = $attr->is_filterable();\r\n\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $is_filterable == 0 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tchecking filterability\r\n\t\t\t{\r\n\t\t\t\t$this->errno = ATTRIBUTE_NOT_FILTERABLE;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"c_\";\r\n\t\t\t}\r\n\t\t\telse if ( $comparability == DISTINCT )\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"d_\";\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"u_\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( $number_of_values > 0 )\r\n\t\t\t{\r\n\r\n\t\t\t\t/*\tLocating and retrieving sorted the $number_of_values most common values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( $result->num_rows > $number_of_values )\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\treturn ;\t\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if ( $number_of_values == -1 )\r\n\t\t\t{\r\n\t\t\t\t/*\tLocating and retrieving sorted all the values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\t\r\n\t\t\t\treturn ;\t\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\twhile ( $row = $result->fetch_row() )\r\n\t\t\t{\r\n\t\t\t\t$values[] = array(\"value\" =>$row[0], \"count\"=>$row[1]);\r\n\t\t\t}\t\t\t\t\t\r\n\t\t\t\r\n\t\t\treturn $values;\r\n\t\t\t\r\n\t\t}", "abstract protected function getFilters();", "public function filter($value, $filter) {\n if (is_array($value)) {\n foreach ($value as $i => $val)\n $value[$i] = $this->filter($val, $filter);\n }\n else if (is_array($filter)) {\n foreach ($filter as $f)\n $value = $this->filter($value, $f);\n }\n else {\n $fname = \"filter\";\n $arr = explode(\"_\", $filter);\n foreach ($arr as $a)\n $fname.= ucwords($a);\n if (is_callable([$this, $fname]))\n return $this->$fname($value);\n else\n return $value;\n }\n return $value;\n }", "public function filter(Request $request )\n \n {\n $filter_1=$request->user()->id;\n $filter_2=$request->post_category_id ;\n $filter_3=$request->status;\n $filter_date=$request->updated_at;\n //Put $this $Field->value >>> If Field not Use , fill values='none' ! .\n $field_1='author_id'; \n $field_2='post_category_id';\n $field_3='status';\n $field_date='updated_at';\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_1, '=', $filter_1)\n ->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_2, '=', $filter_2)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_3, '=', $filter_3)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->orWhere($field_date, 'like', '%'.$filter_date.'%')\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2]\n \n ])\n ->orWhere([\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false; \n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3]\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_date, 'like', '%'.$filter_date.'%']\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->get()\n :false\n :false;\n\n return view('author.post.post-filter',['post_list'=>$post_list]);\n }", "public function hasAdditionalFilter($dataProvider = null);", "public function check_fts_status($CM_COMPLAINT_SUB_TYPE){\n\t\t$this->db->select('CSC_FTS_BASED');\n\t\t$this->db->where('CSC_NO',$CM_COMPLAINT_SUB_TYPE);\n\t\t$query = $this->db->get('COMPLAINT_SUB_CATEGORY');\n \t\t$row = $query->row();\n\t\tif (isset($row))\n\t\t return $row->CSC_FTS_BASED;\n\t}", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "public function filter($filter)\n {\n }", "private function _parseBFilterParam()\n\t{\n $map = array('a' => 'attribute', 'm' => 'manufacturer', 's' => 'stock_status', 'f' => 'filter', 'o' => 'option', 'r' => 'rating', 'c' => 'category');\n \n if (!isset($this->request->get['bfilter'])) {\n \n return;\n }\n\t\t$bfilter = $this->request->get['bfilter'];\n\n\t\t$params = explode(';', $bfilter);\n \n\t\tforeach ($params as $param) \n {\n if (!empty($param)) \n {\n $p = explode(':', $param);\n $pName = $p[0];\n $pValue = $p[1];\n if ($pName === 'price') \n {\n $p = explode('-', $pValue);\n if ((int)$p[0] > 0 || (int)$p[1] > 0) {\n $this->conditions->price = new stdClass();\n $this->conditions->price->min = null;\n $this->conditions->price->max = null;\n $this->conditions->price->inputMin = null;\n $this->conditions->price->inputMax = null;\n }\n if ((int)$p[0] > 0) {\n $this->conditions->price->min = $this->currency->convert($p[0], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMin = $p[0];\n }\n if ((int)$p[1] > 0) {\n $this->conditions->price->max = $this->currency->convert($p[1], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMax = $p[1];\n }\n } \n elseif ($pName === 'rating') \n {\n $this->conditions->rating = explode(',', $pValue);\n } \n elseif ($pName === 'search')\n {\n $this->conditions->search = $pValue;\n $this->searchNameString = $pValue;\n $this->searchTagString = $pValue;\n $this->searchDescriptionString = $pValue;\n }\n else \n {\n $type = $map[substr($pName, 0, 1)];\n $groupId = (int)substr($pName, 1);\n if ($type) {\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n if (isset($p[0]) && isset($p[1])) {\n $this->conditions->{$type}[$groupId] = array('min' => $p[0], 'max' => $p[1]);\n }\n } else {\n $this->conditions->{$type}[$groupId] = explode(',', $pValue);\n }\n\n if ($type !== 'rating') {\n $type = strtoupper($type);\n if (!isset($this->aggregate[$type])) {\n $this->aggregate[$type] = array();\n }\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n $range = $this->_getSliderIntermediateValues($type, $groupId, $p[0], $p[1]);\n if (!empty($range)) {\n $this->aggregate[$type][$groupId] = $range;\n }\n } else {\n $this->aggregate[$type][$groupId] = explode(',', $pValue);\n }\n }\n }\n }\n }\n\t\t}\n\t}", "protected function processFilter($filter)\n\t{\n\t\t$validOperators = '(!~|=~|==|!=|>|<|>=|<=|=@|!@)';\n\n\t\t$filter = preg_replace('/\\s\\s+/',' ',trim($filter)); //Clean duplicate whitespace\n//\t\t$filter = str_replace(array(',',';'),array('\\,','\\;'),$filter); //Escape Google Analytics reserved characters\n\t\t$filter = preg_replace('/(&&\\s*|\\|\\|\\s*|^)([a-z]+)(\\s*' . $validOperators . ')/i','$1ga:$2$3',$filter); //Prefix ga: to metrics and dimensions\n\t\t$filter = preg_replace('/[\\'\\\"]/i','',$filter); //Clear invalid quote characters\n\t\t$filter = preg_replace(array('/\\s*&&\\s*/','/\\s*\\|\\|\\s*/','/\\s*' . $validOperators . '\\s*/'),array(';',',','$1'),$filter); //Clean up operators\n\n\t\tif (strlen($filter)>0) {\n\t\t\treturn $filter;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function definePrimaryFilter()\n {\n $filter = $this->getEmptyFilter();\n if (!empty($this->cObj->data['tx_displaycontroller_filtertype'])) {\n switch ($this->cObj->data['tx_displaycontroller_filtertype']) {\n\n // Simple filter for single view\n // We expect the \"table\" and \"showUid\" parameters and assemble a filter based on those values\n case 'single':\n $filter = array();\n $filter['filters'] = array(\n 0 => array(\n 'table' => $this->piVars['table'],\n 'field' => 'uid',\n 'conditions' => array(\n 0 => array(\n 'operator' => '=',\n 'value' => $this->piVars['showUid'],\n )\n )\n )\n );\n break;\n\n // Simple filter for list view\n case 'list':\n $filter = $this->defineListFilter();\n break;\n\n // Handle advanced data filters\n case 'filter':\n $filter = $this->defineAdvancedFilter();\n break;\n }\n }\n return $filter;\n }", "function editSubUnderCategory()\n\t{\n\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t $sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT * FROM category_table where sub_category_parent_id='\".$obj->records[0]['sub_category_id'].\"' AND category_parent_id ='\".$obj->records[0]['category_id'].\"'\"; \n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\treturn Display_DManageProducts::displaySubUnderCategory($query->records,$obj->records[0]['sub_under_category_id']);\n\t\t\t\n\t }\n\n\n\t}", "abstract public function prepareFilters();", "function filterType($tbl, $tbl2, $tbl3, $col, $col2, $col3, $filter) {\n\t\tinclude('connect.php');\n\t\t$queryFilter = \"SELECT * FROM {$tbl} m, {$tbl2} g, {$tbl3} mg WHERE m.{$col} = mg.{$col} AND g.{$col2} = mg.{$col2} AND g.{$col3} = '{$filter}'\";\n\t\t$runFilter = mysqli_query($link, $queryFilter);\n\t\tif($runFilter){\n\t\t\treturn $runFilter;\n\t\t}else{\n\t\t\t$error = \"There was an error accessing this Information. Please contact your admin.\";\n\t\t\treturn $error;\n\t\t}\n\t\tmysqli_close($link);\n\t}", "function simplenews_build_issue_filter_query(EntityFieldQuery $query) {\n if (isset($_SESSION['simplenews_issue_filter'])) {\n foreach ($_SESSION['simplenews_issue_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n case 'newsletter':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->fieldCondition(variable_get('simplenews_newsletter_field', 'simplenews_newsletter'), 'target_id', $value);\n }\n break;\n }\n }\n }\n}", "function get_sub_category_info( $sub_cate_id, $sub_cate_status = 0 )\n\t{\n\t\t$criteria = $sub_cate_status == 1 ? \"sub_cate_status = 1 AND \" : \"\";\n\t\t$q = \"SELECT * FROM title_dev_sub_categories WHERE \".$criteria.\" sub_cate_id = \".$sub_cate_id;\n\t\t$r = $this -> db -> getSingleRecord( $q );\n\t\tif( $r )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function _prepareFilter(&$controller){\n \t\n\t\t$filter = array();\n if(isset($controller->data)){\n foreach($controller->data as $model=>$fields){\n foreach($fields as $key=>$field){\n if($field == ''){\n unset($controller->data[$model][$key]);\n }\n }\n }\n \n App::import('Sanitize');\n $sanit = new Sanitize();\n $controller->data = $sanit->clean($controller->data);\n $filter = $controller->data;\n }\n \n if (empty($filter)){\n \t\t$filter = $this->_checkParams($controller); \t\n }\n $controller->data = $filter;\n }", "function _create_filter_sql () {\n\t\t$SF = &$_SESSION[$this->_filter_name];\n\t\tforeach ((array)$SF as $k => $v) {\n\t\t\t$SF[$k] = trim($v);\n\t\t}\n\t\t// Generate filter for the common fileds\n\t\tif ($SF[\"category_id\"])\t{\n\t\t \t$sql[] = \" AND category_id = \".intval($SF[\"category_id\"]).\" \";\n\t\t}\n\t\tif ($SF[\"user_id\"])\t{\n\t\t \t$sql[] = \" AND user_id = \".intval($SF[\"user_id\"]).\" \";\n\t\t}\n\t\tif (strlen($SF[\"admin_priority\"])) {\n\t\t \t$sql[] = \" AND admin_priority = \".intval($SF[\"admin_priority\"]).\" \";\n\t\t}\n\t\tif ($this->DEF_VIEW_STATUS || $SF[\"status\"]) {\n\t\t\t$status = $SF[\"status\"] ? $SF[\"status\"] : $this->DEF_VIEW_STATUS;\n\t\t\tif ($status == \"not_closed\") {\n\t\t\t \t$sql[] = \" AND status != 'closed' \";\n\t\t\t} else {\n\t\t\t \t$sql[] = \" AND status = '\"._es($SF[\"status\"]).\"' \";\n\t\t\t}\n\t\t}\n\t\tif (strlen($SF[\"subject\"])) {\n\t\t\t$sql[] = \" AND subject LIKE '\"._es($SF[\"subject\"]).\"%' \";\n\t\t}\n\t\tif (strlen($SF[\"message\"])) {\n\t\t\t$sql[] = \" AND message LIKE '\"._es($SF[\"message\"]).\"%' \";\n\t\t}\n\t\tif (!empty($SF[\"email\"])) {\n\t\t\t$sql[] = \" AND email LIKE '\"._es($SF[\"email\"]).\"%' \";\n\t\t}\n\t\tif ($SF[\"assigned_to\"])\t{\n\t\t \t$sql[] = \" AND assigned_to = \".intval($SF[\"assigned_to\"]).\" \";\n\t\t}\n\t\t// Add subquery to users table\n\t\tif (!empty($users_sql)) {\n\t\t\t$sql[] = \" AND user_id IN( SELECT id FROM \".db('user').\" WHERE 1=1 \".$users_sql.\") \";\n\t\t}\n\t\t// Default sorting\n\t\tif (!$SF[\"sort_by\"]) {\n\t\t\t$SF[\"sort_by\"]\t\t= \"opened_date\";\n\t\t\t$SF[\"sort_order\"]\t= \"DESC\";\n\t\t}\n\t\t// Sorting here\n\t\tif ($SF[\"sort_by\"]) {\n\t\t \t$sql[] = \" ORDER BY \".($this->_sort_by[$SF[\"sort_by\"]] ? $this->_sort_by[$SF[\"sort_by\"]] : $SF[\"sort_by\"]).\" \";\n\t\t\tif (strlen($SF[\"sort_order\"])) {\n\t\t\t\t$sql[] = \" \".$SF[\"sort_order\"].\" \";\n\t\t\t}\n\t\t}\n\t\t$sql = implode(\"\\r\\n\", (array)$sql);\n\t\treturn $sql;\n\t}", "function editSubCategory()\n\t{ \n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT category_id,category_parent_id FROM category_table where category_id in(select category_id from products_table where category_id='\".$obj->records[0]['category_id'].\"')\";\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$category=Core_Settings_CManageProducts::displayCategory($query->records[0]['category_parent_id']);\n\t\t\t\n\t\t\t$sqlid='select category_id from category_table where category_id in(select sub_category_id from products_table where product_id='.$id.')';\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$subcat=Core_Settings_CManageProducts::displaySubCategory($query->records[0]['category_id']);\n\t\t\t\n\t\t\treturn $subcat;\n\t }\n\t}", "function get_category_data( $adunit = false ) {\n\t$exposed_values = array();\n\t$parent_categories = array();\n\t$sub_categories = array();\n\t$exposed_values['parent_categories'] = 'no_value';\n\t$exposed_values['sub_categories'] = 'no_value';\n\tif ( is_single() ) {\n\t\tglobal $post;\n\t\t$category_tax = 'category';\n\t\t$categories = get_the_terms( $post->ID, $category_tax );\n\t\tif ( ! empty( $categories ) ) {\n\t\t\tforeach ( $categories as $term ) {\n\t\t\t\t$ancestors = get_ancestors( $term->term_id, $category_tax );\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\t\t\t\t\tforeach ( $ancestors as $ancestor ) {\n\t\t\t\t\t\t$remove[] = \"'\";\n\t\t\t\t\t\tif ( ! $adunit ) {\n\t\t\t\t\t\t\t$remove[] = '-';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ancestor_term = get_term( $ancestor );\n\t\t\t\t\t\tarray_push( $parent_categories, str_replace( $remove, '', $ancestor_term->slug ) );\n\t\t\t\t\t\tarray_push( $sub_categories, str_replace( $remove, '', $term->slug ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$term_slug = $term->slug;\n\t\t\t\t\tarray_push( $parent_categories, $term_slug );\n\t\t\t\t}\n\t\t\t}\n\t\t\t$filter_similar_parent_cats = array_unique( $parent_categories, SORT_STRING );\n\t\t\t$parent_categories = implode( ', ', $filter_similar_parent_cats );\n\t\t\t$filter_similar_sub_cats = array_unique( $sub_categories, SORT_STRING );\n\t\t\t$sub_categories = implode( ', ', $filter_similar_sub_cats );\n\t\t\tif ( ! empty( $parent_categories ) ) {\n\t\t\t\t$exposed_values['parent_categories'] = $parent_categories;\n\t\t\t}\n\t\t\tif ( ! empty( $sub_categories ) ) {\n\t\t\t\t$exposed_values['sub_categories'] = $sub_categories;\n\t\t\t}\n\t\t}\n\t} elseif ( is_category() || is_archive() ) {\n\t\t$q_object = get_queried_object();\n\t\t// WP_Post_Type archives don't have a \"slug\" property.\n\t\tif ( ! empty( $q_object->slug ) ) {\n\t\t\t$cat_slug = $q_object->slug;\n\t\t\t$exposed_values['parent_categories'] = $cat_slug;\n\t\t\t$exposed_values['sub_categories'] = $cat_slug;\n\t\t}\n\t\tif ( is_post_type_archive( 'joke' ) ) {\n\t\t\t$exposed_values['parent_categories'] = 'jokes';\n\t\t\t$exposed_values['sub_categories'] = 'jokes';\n\t\t}\n\t} elseif ( is_page() ) {\n\t\t$exposed_values['parent_categories'] = 'misc';\n\t\t$exposed_values['sub_categories'] = 'misc';\n\t} elseif ( is_home() && is_front_page() ) {\n\t\t$exposed_values['parent_categories'] = 'homepage';\n\t\t$exposed_values['sub_categories'] = 'homepage';\n\t}\n\treturn $exposed_values;\n}", "function getSelectionOptions($filter) {\r\n global $parentCategory;\r\n if ($filter->isConditional()) {\r\n //displays the filter if the parent category is in the children category list\r\n if (!in_array($parentCategory, $filter->getCategory())) {\r\n //if its not found the function is returned\r\n return;\r\n }\r\n }\r\n //subvalues is a list of the items to add to the selection drop down of the filter\r\n $subvalues = array();\r\n if ($filter->isEnum()) {\r\n $subvalues = explode(\"','\", getEnumValues($filter->getTable(), $filter->getColumn()));\r\n } else {\r\n $subvalues = getColumList($filter->getTable(), $filter->getColumn(), $filter->getJoinTable(), $filter->getJoinColumn(), $filter->getComparator());\r\n }\r\n //if the dropdown is not empty, it'll create a select drop down box and add the values as options\r\n if (!empty($subvalues)) {\r\n $filterName = $filter->getName();\r\n echo $filterName . \": \";\r\n echo '<select name=\"' . $filterName . '\">' . $filterName;\r\n echo '<option></option>';\r\n foreach($subvalues as $sub) {\r\n $option = clean($sub);\r\n echo '<option value=\"' . $option . '\"' . (($_GET[\"$filterName\"] == $option) ? \" selected\" : \"\") . '>' . $option . \"</option>\";\r\n }\r\n echo \"</select> \";\r\n }\r\n }", "function simplenews_build_subscription_filter_query(SelectQueryInterface $query) {\n if (isset($_SESSION['simplenews_subscriptions_filter'])) {\n foreach ($_SESSION['simplenews_subscriptions_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->condition('su.' . $key, $value);\n }\n break;\n case 'email':\n if (!empty($value)) {\n $query->condition('sn.mail', '%' . $value . '%', 'LIKE');\n }\n break;\n }\n }\n }\n}", "public function hasCategory(): bool;", "public function getFilterArray() {\n\t\t$filter = null;\n\t\tif (isset($_GET['sub_category'])) {\n\t\t\t$filter = array('category' => array($_GET['sub_category']));\n\t\t} else if (isset($_GET['category'])) {\n\t\t\t$filter = array('category' => array($_GET['category']));\n\n\t\t\t$subcategory_list = $this->category_model->get_sub_category_list_by_category_id($_GET['category'], array('id'));\n\t\t\tforeach ($subcategory_list as $subcategory) {\n\t\t\t\tarray_push($filter['category'], $subcategory->id);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($_GET['course'])){\n\t\t\t\t$filter['title'] = $_GET['course'];\n\t\t}\n\n\t\tif (isset($_GET['search'])) {\n\t\t\t$filter['search_text'] = $_GET['search'];\n\t\t}\n\n\t\t\n\t\treturn $filter;\n\t}", "public function getSubcategory() {\r\n return \\models\\Database::validateData($this->_subcategory, 'string|specialchars|strip_tags');\r\n }", "public function get_category_item_specifics($categoryID)\n {\n\n // Create the request object.\n $request = new Types\\GetCategorySpecificsRequestType();\n\n // An user token is required when using the Trading service.\n $request->RequesterCredentials = $this->requester_credentials;\n\n /**\n * Check Item Specifics are Enabled\n */\n $this->CI->load->library('ebay_category_features', $categoryID);\n $mode = $this->ebay_category_features->get_ItemSpecificsMode();\n //var_dump($$mode);\n\n\n if ($categoryID && $mode !== 'Disabled') {\n $request->CategoryID = [$categoryID];\n $response = $this->trading_service->getCategorySpecifics($request);\n // Check errors\n $checkError = $this->get_response($response);\n if ($checkError != 0) {\n if (count($response->Recommendations)) {\n $name_value_arr = array();\n foreach ($response->Recommendations as $Recommendation) {\n foreach ($Recommendation->NameRecommendation as $NameRecommendation) {\n $values_arr = array();\n if ($NameRecommendation->ValidationRules->SelectionMode == 'SelectionOnly') {\n $values_arr['custom']['SelectionOnly'] = true;\n }\n\n if ($NameRecommendation->ValidationRules->MinValues >= 1) {\n /**\n * Required item specifics have * in Name of Specific\n */\n //$name = $NameRecommendation->Name . '<strong>*</strong>';\n $values_arr['custom']['MinValues'] = true;\n }\n\n /*\n |--------------------------------------------------------------------------\n | Finally Helped\n |--------------------------------------------------------------------------\n |http://prntscr.com/g5zzn5\n |https://stackoverflow.com/questions/5421426/php-xml-xpath-node-element-iteration-and-inserting-into-array\n */\n\n $name = $NameRecommendation->Name;\n\n foreach ($NameRecommendation->ValueRecommendation as $ValueRecommendation) {\n $values = (string)$ValueRecommendation->Value;\n array_push($values_arr, $values);\n //$converted_values = explode(\",\",$value);\n // echo print_r($converted_values);\n }\n $name_value_arr[$name] = $values_arr;\n }\n }\n\n //var_dump($name_value_arr);\n\n $browse = [];\n\n foreach ($name_value_arr as $key => $value) {\n $custom = $this->findKey($value, 'custom');\n $selection_only = $this->findKey($value, 'SelectionOnly');\n $min_values = $this->findKey($value, 'MinValues');\n\n // var_dump($custom);\n // var_dump($value);\n\n $key = ($min_values) ? $key . '<strong>*</strong>' : $key;\n unset($value['custom']);\n $browse[$key] = $value;\n }\n\n //var_dump($browse);\n return json_encode($browse);\n // return $browse;\n\n }\n }\n } else return false;\n }", "function is_filtered() {\n\t\tglobal $_chosen_attributes;\n\n\t\treturn ( sizeof( $_chosen_attributes ) > 0 || ( isset( $_GET['max_price'] ) && isset( $_GET['min_price'] ) ) ) ? true : false;\n\t}", "public function test_getItemCategoryByFilter() {\n\n }", "private function _simple_filter($param, $attr)\n\t{\n\t\tif ($param = $this->EE->TMPL->fetch_param($param))\n\t\t{\n\t\t\t// Determine which channels to filter by\n\t\t\tlist($param, $in) = low_explode_param($param);\n\n\t\t\t// Adjust query accordingly\n\t\t\t$this->EE->db->{($in ? 'where_in' : 'where_not_in')}($attr, $param);\n\t\t}\n\t}" ]
[ "0.69320214", "0.6886842", "0.6594613", "0.60258275", "0.58863175", "0.5853618", "0.5836213", "0.56416875", "0.55941606", "0.5590396", "0.5583012", "0.55328673", "0.55207276", "0.5462382", "0.54468715", "0.5434906", "0.5371336", "0.5366614", "0.53482354", "0.5342405", "0.53394", "0.53378105", "0.53309214", "0.5329127", "0.5309769", "0.5303265", "0.52858305", "0.527018", "0.52632266", "0.5234712", "0.5233026", "0.5231849", "0.52176595", "0.5210275", "0.52036035", "0.5180973", "0.51790756", "0.5173558", "0.5162349", "0.51609355", "0.51468545", "0.51468545", "0.51468545", "0.51468545", "0.51468545", "0.51468545", "0.51468545", "0.5146796", "0.51444095", "0.51416916", "0.5137014", "0.513595", "0.5135522", "0.51331484", "0.5126324", "0.5118487", "0.5117697", "0.5116215", "0.5101664", "0.51005065", "0.5097268", "0.5096927", "0.50935405", "0.5092201", "0.5085945", "0.5075377", "0.50712335", "0.50650483", "0.50628954", "0.5039524", "0.503852", "0.5032566", "0.50322586", "0.50284183", "0.5028051", "0.5021373", "0.50209135", "0.5018619", "0.5017567", "0.50157905", "0.5010722", "0.5009658", "0.50057584", "0.50028634", "0.50017416", "0.50009716", "0.50009716", "0.49986446", "0.49933517", "0.49918878", "0.49800318", "0.49800196", "0.49769503", "0.49624285", "0.4956504", "0.49541053", "0.49527642", "0.49470127", "0.49469233", "0.49421266" ]
0.67796326
2
FILTER_SUB_CATEGORY IS ONLY CHECKED IF EXISTS, NO VALUE USAGES
public function testFilterSubCategoryNotEmptyExistingCategoryId() { $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method $filters = array( //set up conditions for test 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category 'filter_sub_category' => 'true', ); $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method $productsTotal = $this->model_catalog_product->getTotalProducts($filters); $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>"true", filter_category_id=>27, 1 products'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFilterSubCategoryNullCatIdExisting() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => null,\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>null,');\n }", "public function testFilterSubCategoryNotEmpty() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", 0 products');\n }", "public function testFilterSubCategoryNull() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => null,\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $this->assertTrue(sizeof($products) == 0, sizeof($products) . ' Retrieved from filter_sub_category=>null, 0 products');\n }", "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n return;\n }\n\n $this->query->andWhere(['category' => $this->category]);\n }", "function filter(){\n //$_SESSION['filters'] = array('GPA' => ['2.0', '3.0']), 'Nationality' => ['saudi'], 'Company_size' => ['large'], 'Major' => ['Computer Science', 'Marketing', 'Finance']);\n if($_GET['checked'] == \"true\"){\n if(!isset($_SESSION['filters'])){\n $_SESSION['filters'] = array();\n }\n if(isset($_SESSION['filters'][$_GET['category']])){\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n } else{\n $_SESSION['filters'][$_GET['category']] = array();\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }else{\n if(isset($_SESSION['filters'][$_GET['category']])){\n unset($_SESSION['filters'][$_GET['category']][array_search($_GET['value'],$_SESSION['filters'][$_GET['category']])]);\n $_SESSION['filters'][$_GET['category']] = removeGaps($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters'][$_GET['category']]) === 0){\n unset($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters']) === 0){\n unset($_SESSION['filters']);\n }\n }\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }\n }", "public function testBadSubFilter()\n {\n $tests = array(\n array(\n 'label' => __LINE__ .': invalid filter type',\n 'filter' => '',\n 'connective' => ''\n ),\n array(\n 'label' => __LINE__ .': invalid connective',\n 'filter' => P4Cms_Record_Filter::create(),\n 'connective' => ''\n ),\n );\n\n foreach ($tests as $test) {\n extract($test);\n\n try {\n P4Cms_Record_Filter::create()->addSubFilter($filter, $connective);\n\n $this->fail($label.' Expected exception');\n } catch (InvalidArgumentException $e) {\n $this->assertTrue(true, $label);\n }\n }\n }", "public function testGetItemSubCategoryByFilter()\n {\n }", "private static function _getFilter() {}", "function get_product_category_filters($data) {\n $category_id = $data['category_id'];\n // Return category filters object\n return (object) [\n 'attributes' => get_product_category_attribute_terms($category_id),\n 'subcategories' => get_product_category_subcategories($category_id),\n 'price' => get_product_category_price_min_max($category_id)\n ];\n}", "private function get_filterItemCObj( $uid, $value )\n {\n static $firstLoop = true;\n static $loop = array();\n static $conf_array = null;\n\n//// #56339\n//$this->pObj->dev_var_dump( $uid, $this->markerArray['###UID###'] );\n//$this->pObj->dev_var_dump( $uid, $value );\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Item class\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n // #41753.01, 121010, dwildt, 4-\n// if($conf_name == 'CATEGORY_MENU')\n// {\n// $conf_array = $this->pObj->objJss->class_onchange($conf_name, $conf_array, $this->row_number);\n// }\n // #41753.01, 121010, dwildt, 10+\n switch ( true )\n {\n case( $conf_name == 'CATEGORY_MENU' ):\n case( $conf_name == 'TREEVIEW' ):\n $conf_array = $this->pObj->objJss->class_onchange( $conf_name, $conf_array, $this->row_number );\n break;\n default:\n // Follow the workflow\n break;\n }\n\n//var_dump( __METHOD__, __LINE__, $value, $conf_array );\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check AJAX ###ONCHANGE###';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n\n $this->markerArray[ '###CLASS###' ] = $this->replace_itemClass( $conf_array, '###CLASS###' );\n $this->markerArray[ '###STYLE###' ] = $this->replace_itemStyle( $conf_array, '###STYLE###' );\n $this->markerArray[ '###TITLE###' ] = $this->replace_itemTitle( '###TITLE###' );\n $this->markerArray[ '###URL###' ] = $this->replace_itemUrl( $conf_array, $uid, '###URL###' );\n // #i0129, 150218, dwildt, 1+\n $this->markerArray[ '###ID###' ] = $table . '__' . $field . '__' . $uid;\n $this->markerArray[ '###ITEM_SELECTED###' ] = $this->replace_itemSelected( $conf_array, $uid, $value, '###ITEM_SELECTED###' );\n // #40354, #40354, 4.1.7, 1+\n $this->markerArray[ '###TABLE.FIELD###' ] = $this->nicePiVar[ 'key_piVar' ];\n\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n //$conf_array = $this->replace_marker( $conf_array );\n // Get the COA configuration for the value\n // SWITCH first item\n switch ( true )\n {\n case( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] ):\n $cObj_name = $conf_array[ 'first_item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'first_item.' ][ 'cObject.' ];\n break;\n default:\n $cObj_name = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject' ];\n $cObj_conf = $conf_array[ 'wrap.' ][ 'item.' ][ 'cObject.' ];\n break;\n }\n // SWITCH first item\n // Get the COA configuration for the value\n\n $this->cObjData_setFlagDisplayInCaseOfNoCounting();\n\n $item = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\n\n // 3.9.20\n // 3.9.20: Be careful: Method need 10 milliseconds. Can be a\n // performance problem in case of a lot records!\n $item = $this->pObj->cObj->substituteMarkerArray( $item, $this->markerArray );\n\n // 3.9.20: Code is moved from above\n // Workaround: remove ###ONCHANGE###\n $item = str_replace( ' class=\" ###ONCHANGE###\"', null, $item );\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'class=\" ###ONCHANGE###\" is removed. Check the code!';\n t3lib_div::devlog( '[WARN/TODO] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // Workaround: remove ###ONCHANGE###\n\n $this->cObjData_unsetFlagDisplayInCaseOfNoCounting();\n\n // maxItemsTagEndBegin\n // DRS :TODO:\n if ( $firstLoop && $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check maxItemsPerRow!';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n $item = $this->get_maxItemsTagEndBegin( $item );\n // maxItemsTagEndBegin\n\n\n $firstLoop = false;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "public function filtersExist();", "function getFilter() {\n\t\tif (isset($_POST['value'])){\n\t\t\tif ($_POST['value'] != \"all\"){\n\t\t\t\t$categoryName = $_POST['value'];\n\t\t\t\treturn $categoryName;\n\t\t\t}\n\t\t}\n\t\treturn 'all';\n\t}", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "protected function getFilterField(){\n $aField = parent::getFilterField();\n $oRequest = AMI::getSingleton('env/request');\n if(!$oRequest->get('category', 0)){\n $aField['disableSQL'] = TRUE;\n }\n return $aField;\n }", "public function get_adminstaff_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$description,$weight,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid); \n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t$description = trim($description);\n\t\t$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t $uid1 = trim($uid);\n\t\t$existsdata = $this->db->query(\"SELECT * from tb_admin_cart where userid='$uid1'\")->row_array();\n\t\tif(empty($existsdata))\n\t\t{\n\t\t\t$sql1=\"SELECT * from tb_products where ProductStatus=1\";\n\t\t\tif(!empty($parentid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t\t}\n\t\t\tif(!empty($subcatid))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t\t}\n\t\t\tif(!empty($selectsublist))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t\t}\n\t\t\tif(!empty($selectgender))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t\t}\n\t\t\tif(!empty($description))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t\t}\n\t\t\tif(!empty($weight))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t\t}\n\t\t\tif(!empty($minprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t\t}\n\t\t\tif(!empty($maxprice))\n\t\t\t{\n\t\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t\t}\t\t\t\n\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql1=\"SELECT t1.* FROM tb_products as t1 WHERE t1.ProductId not IN (SELECT t2.products FROM tb_admin_cart as t2 WHERE t2.userid='$uid1') \";\n\t\t\n\t\t//$sql1 =\"select * from tb_products where ProductStatus=1\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\tif(!empty($description))\n\t\t{\n\t\t\t$sql1.=\" AND productdescription like '%$description'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "protected function defineAdvancedFilter($type = 'primary')\n {\n // Define rank based on call parameter\n $rank = 1;\n $checkField = 'tx_displaycontroller_emptyfilter';\n if ($type === 'secondary') {\n $rank = 2;\n $checkField = 'tx_displaycontroller_emptyfilter2';\n }\n // Get the data filter\n try {\n // Get the filter's information\n $filterData = $this->getComponentData('filter', $rank);\n // Get the corresponding Data Filter component\n /** @var $datafilter \\Tesseract\\Tesseract\\Component\\DataFilterInterface */\n $datafilter = Tesseract::getComponent(\n 'datafilter',\n $filterData['tablenames'],\n array('table' => $filterData['tablenames'], 'uid' => $filterData['uid_foreign']),\n $this\n );\n // Initialise the filter\n $filter = $this->initFilter($filterData['uid_foreign']);\n // Pass the cached filter to the DataFilter\n $datafilter->setFilter($filter);\n try {\n $filter = $datafilter->getFilterStructure();\n // Store the filter in session\n $cacheKey = $this->prefixId . '_filterCache_' . $filterData['uid_foreign'] . '_' . $this->cObj->data['uid'] . '_' . $GLOBALS['TSFE']->id;\n $GLOBALS['TSFE']->fe_user->setKey('ses', $cacheKey, $filter);\n // Here handle case where the \"filters\" part of the filter is empty\n // If the display nothing flag has been set, we must somehow stop the process\n // The Data Provider should not even be called at all\n // and the Data Consumer should receive an empty (special?) structure\n if ($datafilter->isFilterEmpty() && empty($this->cObj->data[$checkField])) {\n $this->passStructure = false;\n }\n } catch (\\Exception $e) {\n $this->addMessage(\n $this->extKey,\n $e->getMessage() . ' (' . $e->getCode() . ')',\n $this->pi_getLL('error.get_filter'),\n FlashMessage::WARNING\n );\n }\n } catch (\\Exception $e) {\n throw new MissingComponentException($this->pi_getLL('exception.no_filter'), 1326454151);\n }\n return $filter;\n }", "public function filter_category() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! isset( $_POST['rank_math_filter_redirections_top'] ) && ! isset( $_POST['rank_math_filter_redirections_bottom'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! Helper::has_cap( 'redirections' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$category_filter = isset( $_POST['rank_math_filter_redirections_top'] ) ? $_POST['redirection_category_filter_top'] : $_POST['redirection_category_filter_bottom'];\n\t\tif ( ! $category_filter || 'none' === $category_filter ) {\n\t\t\twp_safe_redirect( Helper::get_admin_url( 'redirections' ) );\n\t\t\texit;\n\t\t}\n\n\t\twp_safe_redirect( Helper::get_admin_url( 'redirections', [ 'redirection_category' => $category_filter ] ) );\n\t\texit;\n\t}", "abstract protected function filterFieldvalue();", "protected function _beforeLoad()\n {\n if (isset($this->_productLimitationFilters['category_id']) &&\n is_array($this->_productLimitationFilters['category_id'])\n ) {\n $this->getSelect()->group('e.entity_id');\n }\n\n return parent::_beforeLoad();\n }", "private function _get_filters_section_settings() {\r\n\r\n // Get all product categories\r\n $termArgs = array(\r\n 'taxonomy' => 'product_cat',\r\n 'hide_empty' => false\r\n );\r\n $productTermsObject = get_terms( $termArgs );\r\n $productTerms = array();\r\n\r\n if ( !is_wp_error( $productTermsObject ) ) {\r\n\r\n foreach( $productTermsObject as $term )\r\n $productTerms[ $term->slug ] = $term->name;\r\n\r\n }\r\n\r\n foreach ( WWOF_Product_Listing_Helper::get_all_products( 'ID , post_title' ) as $post ){\r\n $product = wc_get_product( $post->ID );\r\n $allProducts[ WWOF_Functions::wwof_get_product_id( $product ) ] = '[ID : ' . WWOF_Functions::wwof_get_product_id( $product ) . '] ' . $post->post_title;\r\n }\r\n\r\n // Add \"None\" category selection for \"no default\" option\r\n $productTerms2 = array_merge( array ('none' => __( 'No Default' , 'woocommerce-wholesale-order-form' ) ), $productTerms );\r\n\r\n return array(\r\n\r\n array(\r\n 'title' => __( 'Filters Options', 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'title',\r\n 'desc' => '',\r\n 'id' => 'wwof_filters_main_title'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Product Category Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Only display products belonging to the selected category' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_product_category_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Product Categories...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $productTerms\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Exclude Product Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Exclude selected products' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_filters_exclude_product_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some Products...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $allProducts\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Default Product Category on Search Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'select',\r\n 'desc' => __( 'Select a product category to which product are under will be loaded by default in the order form.' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_general_default_product_category_search_filter',\r\n 'class' => 'chosen_select',\r\n 'options' => $productTerms2,\r\n 'default' => 'none'\r\n ),\r\n\r\n array(\r\n 'type' => 'sectionend',\r\n 'id' => 'wwof_filters_sectionend'\r\n )\r\n\r\n );\r\n\r\n }", "public function filterSpecificCategories($array){\n\n $newArray = [];\n\n foreach($array as $key => $value){\n $cat = trim(strtolower(strstr($value->getArticleID()->getCategory(), ' ')));\n if($cat == \"world news\" || $cat == \"football\"/* ||$cat == \"fashion\" || $cat == \"technology\"*/){\n //test fashion whs technology $numb raus? film und politics guuut 0.8\n $newArray[$key] = $value;\n }\n\n /* if($cat == \"sport\"|| $cat == \"football\" || $cat == \"culture\" || $cat == \"art and design\"){\n $newArray[$key] = $value;\n }*/\n\n /*if( $cat == \"sport\" || $cat == \"uk news\" || $cat == \"opinion\" || $cat == \"society\" || $cat == \"business\" ||\n $cat == \"politics\" || $cat == \"world news\" || $cat == \"life and style\" || $cat == \"environment\" || $cat == \"technology\"\n ||$cat == \"television & radio\" || $cat == \"culture\" || $cat == \"art and design\" || $cat == \"film\" || $cat == \"books\"\n ||$cat == \"us news\" || $cat == \"football\" || $cat == \"fashion\" || $cat == \"travel\" || $cat == \"science\"/*){ //20 categories\n $newArray[$key] = $value;\n }*/\n\n /* if( $cat == \"us news\" || $cat == \"technology\" || $cat == \"science\" || $cat == \"sport\" || $cat == \"opinion\" ||\n $cat == \"world news\" || $cat == \"football\" || $cat == \"politics\" || $cat == \"fashion\" || $cat == \"television & radio\"\n ||$cat == \"culture\" || $cat == \"environment\" || $cat == \"art and design\" || $cat == \"life and style\" || $cat == \"travel\"/*\n || $cat == \"books\" || $cat == \"uk news\" || $cat == \"business\" || $cat == \"film\" || $cat == \"society\"){ //20 categories\n $newArray[$key] = $value;\n }\n */\n\n }\n\n\n return $newArray;\n }", "function culturefeed_search_ui_default_filter_options($filter_form_number) {\n\n $defaults = array(\n 1 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n 2 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide long-running events',\n 'query-string' => 'no-periods',\n 'api-filter-query' => 'periods:false'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide permanent events',\n 'query-string' => 'no-permanent',\n 'api-filter-query' => 'permanent:false'\n ),\n ),\n 3 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n );\n\n return isset($defaults[$filter_form_number]) ? $defaults[$filter_form_number] : array();\n\n}", "private function _applyFilter($filter)\n\t{\n\t\tglobal $context, $scripturl;\n\n\t\tif (isset($filter['variable']))\n\t\t{\n\t\t\t$context['filter'] = &$filter;\n\n\t\t\t// Set the filtering context.\n\t\t\tswitch ($filter['variable'])\n\t\t\t{\n\t\t\t\tcase 'id_member':\n\t\t\t\t\t$id = $filter['value']['sql'];\n\t\t\t\t\tMembersList::load($id, false, 'minimal');\n\t\t\t\t\t$name = MembersList::get($id)->real_name;\n\t\t\t\t\t$context['filter']['value']['html'] = '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $id, 'name' => $name]) . '\">' . $name . '</a>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars((substr($filter['value']['sql'], 0, 1) === '?' ? $scripturl : '') . $filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array('\\_' => '_')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'message':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\t$context['filter']['value']['html'] = preg_replace('~&amp;lt;span class=&amp;quot;remove&amp;quot;&amp;gt;(.+?)&amp;lt;/span&amp;gt;~', '$1', $context['filter']['value']['html']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'error_type':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$context['filter']['value']['html'] = &$filter['value']['sql'];\n\t\t\t}\n\t\t}\n\t}", "function wpcoupon_filter_to_coupon_administration(){\r\n global $post_type;\r\n if($post_type == 'coupon'){\r\n\r\n $post_formats_args = array(\r\n //'show_option_all' => 'All Categories',\r\n 'show_option_none' => 'All Categories',\r\n 'option_none_value' => '',\r\n 'orderby' => 'NAME',\r\n 'order' => 'ASC',\r\n 'name' => 'coupon_category',\r\n 'taxonomy' => 'coupon_category'\r\n );\r\n\r\n //if we have a post format already selected, ensure that its value is set to be selected\r\n if(isset($_GET['coupon_category'])){\r\n $post_formats_args['selected'] = sanitize_text_field($_GET['coupon_category']);\r\n }\r\n wp_dropdown_categories($post_formats_args);\r\n\r\n $types = wpcoupon_get_coupon_types();\r\n\r\n $type = '';\r\n if(isset($_GET['c_type'])){\r\n $type = sanitize_text_field($_GET['c_type']);\r\n }\r\n ?>\r\n <select class=\"postform\" id=\"coupon_type\" name=\"c_type\">\r\n <option value=\"\"><?php esc_html_e( 'All coupon types', 'wp-coupon' ); ?></option>\r\n <?php foreach ( $types as $k => $v ) { ?>\r\n <option <?php selected( $type, $k ); ?> value=\"<?php echo esc_attr( $k ); ?>\"><?php echo esc_html( $v ); ?></option>\r\n <?php } ?>\r\n </select>\r\n <?php\r\n $s = '';\r\n if ( isset ( $_GET['c_s_store'] ) ) {\r\n $s = $_GET['c_s_store'];\r\n }\r\n ?>\r\n <input type=\"text\" id=\"search-coupon-store\" placeholder=\"<?php esc_attr_e( 'Filter store','wp-coupon' ); ?>\" value=\"<?php echo esc_attr( $s ); ?>\" name=\"c_s_store\">\r\n <?php\r\n\r\n }\r\n }", "public function filtering();", "public function checkSubcatNameExist($category_id,$sub_catname)\n{\n\ttry\n\t{\n\t\t$ifExist = subcategory::where('category_id','=',$category_id)->where('sub_category_name',$sub_catname)->get();\n\t\t//$ifExist = subcategory::where('category_id','=','1')->where('sub_category_name','=','Office Partition')->get();\n\t\t// return $ifExist;\n\t\tif(count($ifExist) <= 0)\n\t\t{\n\t\t\treturn '0';//no data\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '1'; //with data\n\t\t}\n\t}\n\tcatch(\\Exception $e)\n\t{\n\t\treturn '0';\n\t}\n}", "public function get_all_category_subtype2_for_category_type($type_name,$subtype_name,&$data_arr,&$data_count){\n if($type_name==\"\"){\n //no type specified so no filtering\n $data_count = 0;\n return true;\n }\n $q = \"select DISTINCT subtype2 from \".TP.\"transaction_type_master where type='\".$type_name.\"' and subtype1='\".$subtype_name.\"'\";\n $res = mysql_query($q);\n if(!$res){\n return false;\n }\n $data_count = mysql_num_rows($res);\n if($data_count == 0){\n //no recs\n return true;\n }\n //recs so\n while($row = mysql_fetch_assoc($res)){\n $data_arr[] = $row;\n }\n return true;\n }", "function ProcessMultilevelSubCategories()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"ProcessMultilevelSubCategories();\" . \"<HR>\";\n if ($this->listSettings->HasItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\")) {\n $this->sub_categories_count = $this->listSettings->GetItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\");\n for ($i = 0; $i < $this->sub_categories_count; $i ++) {\n $sub_category = array();\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\")) {\n $sub_category[\"library\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LIBRARY\", array(\n $i), true);\n }\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\")) {\n $sub_category[\"link_field\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LINK_FIELD\", array(\n $i), true);\n }\n $this->sub_categories[] = $sub_category;\n }\n\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORIES_COUNT\", array(), true);\n }\n\n }", "function SetupLookupFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_MainGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`MainGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `MainGroup`, `MainGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`MainGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_SubGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`SubGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `SubGroup`, `SubGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`SubGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_Article\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`Article` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"f2\" => '`SubGroup` = {filter_value}', \"t2\" => \"200\", \"fn2\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `Article`, `Article` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`Article` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\t}\n\t}", "function check_privacy_filtered($myprofileid,$hisprofileid)\n{\n\t$sql=\"select * from FILTERS where PROFILEID='$hisprofileid'\";\n\t$resultfilter=mysql_query_decide($sql) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sql,\"ShowErrTemplate\");\n\n\tif(mysql_num_rows($resultfilter)>0)\n\t{\n\t\t$filterrow=mysql_fetch_array($resultfilter);\t\t\t\t\t\t\t\n\t\tif($filterrow[\"AGE\"]==\"Y\" || $filterrow[\"MSTATUS\"]==\"Y\" || $filterrow[\"RELIGION\"]==\"Y\" || $filterrow[\"COUNTRY_RES\"]==\"Y\" || $filterrow[\"MTONGUE\"]==\"Y\"|| $filterrow[\"CITY_RES\"]==\"Y\" || $filterrow[\"INCOME\"]==\"Y\" || $filterrow[\"CASTE\"]==\"Y\")\n\t\t{\n\t\t\t$sqlfilter=\"select count(*) from JPROFILE where activatedKey=1 and PROFILEID='$myprofileid'\";\n\n\t\t\t//Sharding Concept added by Lavesh Rawat on table JPARTNER\t\n\t\t\tinclude_once($_SERVER['DOCUMENT_ROOT'].\"/classes/Jpartner.class.php\");\n\t\t\t$jpartnerObj= new Jpartner;\n\t\t\t$mysqlObj=new Mysql;\n\n\t\t\t$myDbName=getProfileDatabaseConnectionName($hisprofileid,'',$mysqlObj);\n\t\t\t$myDb=$mysqlObj->connect(\"$myDbName\");\n\t\t\t$jpartnerObj->setPartnerDetails($hisprofileid,$myDb,$mysqlObj,\"LAGE,HAGE,PARTNER_CASTE,PARTNER_COUNTRYRES,PARTNER_MSTATUS,PARTNER_MTONGUE\");\n\t\t\tif($jpartnerObj->isPartnerProfileExist($myDb,$mysqlObj,$hisprofileid))\n\t\t\t{\n\t\t\t\tif($filterrow[\"AGE\"]==\"Y\" && $jpartnerObj->getLAGE() && $jpartnerObj->getHAGE() )\n\t\t\t\t\t$sqlfilter.= \" AND AGE between \".$jpartnerObj->getLAGE().\" AND \".$jpartnerObj->getHAGE();\n\n\t\t\t\tif($filterrow[\"CASTE \"]==\"Y\" && $jpartnerObj->getPARTNER_CASTE())\n\t\t\t\t{\n\t\t\t\t\t//\t$caste_arr=explode(\"','\",trim($jpartnerObj->getPARTNER_CASTE(),\"'\"));\n\t\t\t\t\t$sqlfilter.=\" and CASTE in (\".$jpartnerObj->getPARTNER_CASTE().\")\";\n\t\t\t\t\t// implode(\"','\",get_all_caste($caste_arr)) . \"')\";\n\t\t\t\t}\t\n\t\t\t\tif($filterrow[\"RELIGION \"]==\"Y\" && $jpartnerObj->getPARTNER_RELIGION())\n\t\t\t\t\t$sqlfilter.=\" AND RELIGION in (\".$jpartnerObj->getPARTNER_RELIGION().\")\";\n\n\t\t\t\tif($filterrow[\"COUNTRY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_COUNTRYRES())\n\t\t\t\t\t$sqlfilter.=\" AND COUNTRY_RES in (\".$jpartnerObj->getPARTNER_COUNTRYRES().\")\";\n\n\t\t\t\tif($filterrow[\"CITY_RES\"]==\"Y\" && $jpartnerObj->getPARTNER_CITYRES())\n\t\t\t\t\t$sqlfilter.=\" AND CITY_RES in (\".$jpartnerObj->getPARTNER_CITYRES().\")\";\n\n\t\t\t\tif($filterrow[\"MSTATUS\"]==\"Y\" && $jpartnerObj->getPARTNER_MSTATUS())\n\t\t\t\t\t$sqlfilter.=\" and MSTATUS in (\".$jpartnerObj->getPARTNER_MSTATUS().\")\";\n\n\t\t\t\tif($filterrow[\"MTONGUE\"]==\"Y\" && $jpartnerObj->getPARTNER_MTONGUE())\n\t\t\t\t\t$sqlfilter.=\" and MTONGUE in (\".$jpartnerObj->getPARTNER_MTONGUE().\")\";\n\n\t\t\t\tif($filterrow[\"INCOME\"]==\"Y\" && $jpartnerObj->getPARTNER_INCOME())\n\t\t\t\t\t$sqlfilter.=\" and INCOME in (\".$jpartnerObj->getPARTNER_INCOME().\")\";\n\t\t\t}\n\t\t\t$resfil=mysql_query_decide($sqlfilter) or logError(\"Due to a temporary problem your request could not be processed. Please try after a couple of minutes\",$sqlfilter,\"ShowErrTemplate\");\n\t\t\t$finalfilterrow=mysql_fetch_row($resfil);\n\n\t\t\tif($finalfilterrow[0] <= 0)\n\t\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function tep_get_subCategory($tagValue){\n\tglobal $languages_id,$customer_group_id;\n\t//禁用的电池分类ID @nathan 2011-11-2\n\t//$disable_batteries = array(1,3,21,23,25,73,111,307,314,499);\n\t$disable_batteries = array(23,25,73,111,307,499);\n\t$disable_batteries_three = array(188,191,192,193,194,195,502,556,112,115,117,126,129,136,139,141,172,175,601,181,306,312,313,500,501,562,197,198,202,204,205,206,208,210,211,212,213,217,218,220,503,504,505,521,557,558,559,560,561,563,507,508,509,510,511,512,513,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,741);\n\t$jsonData = array();\n\tif (isset($tagValue) && !empty($tagValue)){\n\t\t# \n\t\t# URL\n\t\t# Ʒ\n\t\t# |_| |=|\n\t\t$topNavi_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$tagValue);\n\t\t$topNavi_categories_query = tep_db_query($topNavi_categories_sql);\n\t\tif (tep_db_num_rows($topNavi_categories_query) > 0){\n\t\t\t$i = 0;\n\t\t\twhile ($topNavi_categories = tep_db_fetch_array($topNavi_categories_query)) {\n\t\t\t\t//禁止显示的电池分类 @nathan 2011-11-2\n\t\t\t\tif($tagValue == 408 && in_array($topNavi_categories['categories_id'], $disable_batteries)) continue;\n\n\t\t\t\t$products_in_category = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\tif ($products_in_category > 0){\n\t\t\t\t\t$jsonData[$i]['name'] = $topNavi_categories['categories_name'];\n\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($topNavi_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t$jsonData[$i]['parent'] = '0';\n\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($topNavi_categories['categories_id']);\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sub_categories_sql = sprintf(\"SELECT DISTINCT C.categories_id,C.parent_id, CD.categories_name FROM %s AS CD INNER JOIN %s AS C ON CD.categories_id=C.categories_id WHERE CD.language_id=%u AND C.products_group_access like '%s' AND C.parent_id=%u ORDER BY C.sort_order ASC\",TABLE_CATEGORIES_DESCRIPTION,TABLE_CATEGORIES,(int)$languages_id,\"%\".$customer_group_id.\"%\",(int)$topNavi_categories['categories_id']);\n\t\t\t\t\t$sub_categories_query = tep_db_query($sub_categories_sql);\n\t\t\t\t\tif (tep_db_num_rows($sub_categories_query) > 0){\n\t\t\t\t\t\twhile ($sub_categories = tep_db_fetch_array($sub_categories_query)) {\n\t\t\t\t\t\t\tif(in_array($sub_categories['categories_id'], $disable_batteries_three)) continue;\n\t\t\t\t\t\t\t$products_in_subcategory = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\tif ($products_in_subcategory > 0){\n\t\t\t\t\t\t\t\t$jsonData[$i]['name'] = $sub_categories['categories_name'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['url'] = tep_href_link(FILENAME_DEFAULT,tep_get_abscPath($sub_categories['categories_id']),'NONSSL',false);\n\t\t\t\t\t\t\t\t$jsonData[$i]['parent'] = $sub_categories['categories_id'];\n\t\t\t\t\t\t\t\t$jsonData[$i]['num'] = tep_count_products_in_category($sub_categories['categories_id']);\n\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}unset($products_in_subcategory);\n\t\t\t\t\t\t}unset($sub_categories);\n\t\t\t\t\t}unset($sub_categories_query,$sub_categories_sql);\n\t\t\t\t}unset($products_in_category);\n\t\t\t}unset($topNavi_categories);\n\t\t}unset($topNavi_categories_query,$topNavi_categories_sql);\n\t\t//echo json_encode($jsonData);\n\t\treturn $jsonData;\n\t}else{\n\t\treturn false;\n\t}\n}", "private function filters() {\n\n\n\t}", "private function get_filterItem( $uid, $value )\n {\n static $loop = array();\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n if ( !isset( $loop[ $this->curr_tableField ] ) )\n {\n $loop[ $this->curr_tableField ] = 0;\n }\n else\n {\n $loop[ $this->curr_tableField ] ++;\n }\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n }\n\n // Get TS configuration of the current filter / tableField\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n // Make a backup\n $cObjDataBak = $this->pObj->cObj->data;\n // Add elements of current row to cObj->data\n $this->cObjData_updateRow( $uid );\n\n $this->set_markerArrayUpdateRow( $uid );\n\n // IF first_item, set the first item tree view\n if ( $uid == $conf_array[ 'first_item.' ][ 'option_value' ] )\n {\n $this->set_firstItemTreeView();\n }\n // IF first_item, set the first item tree view\n // DEVELOPMENT: Browser engine 4.x\n switch ( $this->pObj->dev_browserEngine )\n {\n case( 3 ):\n // stdWrap the current value\n $item = $this->get_filterItemValueStdWrap( $conf_name, $conf_array, $uid, $value );\n break;\n case( 4 ):\n // #i0112, 141218, dwildt, 1+\n case( 5 ):\n // Wrap the current value by the cObject\n $this->updateWizard( 'filter_cObject' );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 1' );\n }\n $item = $this->get_filterItemCObj( $uid, $value );\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 2' );\n }\n break;\n default:\n $header = 'FATAL ERROR!';\n $text = 'Sorry, this error shouldn\\'t occure: case is undefined.';\n $this->pObj->drs_die( $header, $text );\n break;\n }\n // DEVELOPMENT: Browser engine 4.x\n\n\n $this->set_itemCurrentNumber();\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, '### 3' );\n }\n\n // Reset cObj->data\n $this->pObj->cObj->data = $cObjDataBak;\n\n if ( $loop[ $this->curr_tableField ] < 2 )\n {\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n }\n return $item;\n }", "private function getTypesFilterSubquery($sql = FALSE) {\n \n $this->loadTypes();\n $noticesQuery = $this->doctrine\n ->getEntityManager()\n ->getRepository('FenchyNoticeBundle:Notice')\n ->createQueryBuilder('n2')\n ->select($sql ? 'n2.id' : 'n2')\n ->leftJoin('n2.type', 't2')\n ->leftJoin('n2.values', 'v2')\n ->leftJoin('t2.properties', 'p2');\n\n $typeAlternatives = array();\n $parameters = array();\n foreach($this->types as $type) {\n\n if($this->isValidFilterTypeChecked($type->getId(), NULL, NULL)) {\n\n $typeAnd = array('n2.type = :condType'.$type->getId());\n $parameters['condType'.$type->getId()] = $type;\n\n // if type has subcategories/properties\n $typeKey = $this->getKeyValidFilter($type->getId(), NULL, NULL); \n if(\n array_key_exists('subcategories', $this->validFilter['types'][$typeKey]) && \n is_array($this->validFilter['types'][$typeKey]['subcategories']) &&\n !empty($this->validFilter['types'][$typeKey]['subcategories'])\n ) {\n\n foreach($this->validFilter['types'][$typeKey]['subcategories'] as $pId => $prop) {\n // if type has this property\n if( $property = $type->hasPropertyOfId($prop['id']) ) {\n $values = array();\n if(!$this->allUnchecked($prop['subcategories'])) {\n \n foreach($prop['subcategories'] as $val => $valData) {\n // if value is selected\n if(is_array($valData) && array_key_exists('checked', $valData) && $valData['checked']) {\n $values[] = $valData['id'];\n }\n }\n }\n if(!empty($values)) {\n // If there is more than one property for type, then we have to \n // join conditions for all of them by 'AND'\n // To do that we need to additionaly join each value separately.\n if(count($this->validFilter['types'][$typeKey]['subcategories']) > 1) {\n $noticesQuery->leftJoin('n2.values', 'v2'.$prop['id'], Expr\\Join::WITH, 'v2'.$prop['id'].'.property = '.$prop['id']);\n $typeAnd[] = 'v2'.$prop['id'].'.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n else {\n $typeAnd[] = 'v2.value in (:values'.$prop['id'].')';\n $parameters['values'.$prop['id']] = $values;\n }\n }\n } // if type has property\n } // foreach properties\n } // if type has properties\n if(!empty($typeAnd)) {\n $typeAlternatives[] = new Expr\\Andx($typeAnd);\n }\n } // if type in filter\n } // foreach type\n\n if(!empty($typeAlternatives))\n $noticesQuery->andWhere(new Expr\\Orx($typeAlternatives));\n if($sql)\n return $noticesQuery->getQuery()->getSQL();\n else return array($noticesQuery, $parameters);\n }", "public function filterByValueRecursive() {}", "public function get_user_FilteredProductsSide($parentid,$subcatid,$selectsublist,$selectgender,$minprice,$maxprice,$uid)\n\t{\n\t\t\n\t\t$parentid = trim($parentid);\n\t\t$subcatid = trim($subcatid);\n\t\t$selectsublist = trim($selectsublist);\n\t\t$selectgender = trim($selectgender);\n\t\t//$tagno = trim($tagno);\n\t\t//$weight = trim($weight);\n\t\t$minprice = trim($minprice);\n\t\t$maxprice = trim($maxprice);\n\t\t\n\t\t\n\t\t $uid1 = trim($uid);\n\t\t \n\t\t // $a=$this->db->query(\"select * from tb_admin_cart where userid='$uid1'\")->row_array();\t \n\t\t//$b=$a['products'];\n\t\t\n\t\t$sql1 =\"SELECT t1.*,t2.pricestatus from tb_products as t1 inner join tb_admin_cart as t2 on t1.ProductId=t2.products where t1.ProductId = t2.products and t2.userid=' $uid'\";\n\t\tif(!empty($parentid))\n\t\t{\n\t\t\t$sql1.=\" AND ParentCategory='$parentid'\";\n\t\t}\n\t\tif(!empty($subcatid))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategoryList='$subcatid'\";\n\t\t}\n\t\tif(!empty($selectsublist))\n\t\t{\n\t\t\t$sql1.=\" AND SubCategory='$selectsublist'\";\n\t\t}\n\t\tif(!empty($selectgender))\n\t\t{\n\t\t\t$sql1.=\" AND gender1='$selectgender'\";\n\t\t}\n\t\t/*if(!empty($tagno))\n\t\t{\n\t\t\t$sql1.=\" AND tagno='$tagno'\";\n\t\t}\n\t\tif(!empty($weight))\n\t\t{\n\t\t\t$sql1.=\" AND grw='$weight'\";\n\t\t}*/\n\t\tif(!empty($minprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice>='$minprice'\";\n\t\t}\n\t\tif(!empty($maxprice))\n\t\t{\n\t\t\t$sql1.=\" AND totalprice<='$maxprice'\";\n\t\t}\n\t\t\n\t\t$result = $this->db->query($sql1)->result_array();\n \n\t\treturn array('getFilterProducts'=>$result); \n \n \n\t}", "public function fixVisibleButWithoutCategoryAndInConfigurable()\n {\n $visibilityAttribute = $this->eavConfig->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'visibility');\n $select = $this->_getWriteAdapter()->select();\n $select->join(['data_index' => $this->getMainTable()], 'data_index.entity_id = attribute.entity_id', []);\n $select->where('attribute.attribute_id = ?', $visibilityAttribute->getId());\n $select->where('data_index.is_in_configurable = ?', 1);\n $select->where('data_index.is_in_category = ?', 0);\n $select->where('data_index.visibility <> ?', Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE);\n $select->columns([\n 'value' => new Zend_Db_Expr(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)\n ]);\n $this->_getWriteAdapter()->query($select->crossUpdateFromSelect(\n ['attribute' => $visibilityAttribute->getBackendTable()]\n ));\n\n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_category_product')\n ->reindexAll();\n \n Mage::getSingleton('index/indexer')\n ->getProcessByCode('catalog_product_flat')\n ->reindexAll();\n }", "abstract function display( $p_filter_value );", "public function getOnlyCategorySubcatZipcodeDetail($category,$subCat)\r\n\t {\r\n\t\t\t\t $sql=\"SELECT distinct m.zip, (SELECT COUNT(storeName )FROM stores WHERE zip = m.zip) AS No_of_store FROM stores m, books b,inventory i WHERE (b.category = '$category' AND b.subCat = '$subCat') AND (b.isbn = i.isbn) AND (i.storeID=m.storeID)\";\r\n\t\t $result=mysql_query($sql);\r\n\t\t\t return $result;\t\r\n\t }", "function get_dropbox_categories($filter='')\r\n{\r\n\tglobal $_user;\r\n\tglobal $dropbox_cnf;\r\n\r\n\techo '<h1>'.$filter.'</h1>';\r\n\r\n\t$return_array=array();\r\n\r\n\t$sql=\"SELECT * FROM \".$dropbox_cnf['tbl_category'].\" WHERE user_id='\".$_user['user_id'].\"'\";\r\n\r\n\t$result=api_sql_query($sql);\r\n\twhile ($row=mysql_fetch_array($result))\r\n\t{\r\n\t\tif(($filter=='sent' AND $row['sent']==1) OR ($filter=='received' AND $row['received']==1) OR $filter=='')\r\n\t\t{\r\n\t\t\t$return_array[$row['cat_id']]=$row;\r\n\t\t}\r\n\t}\r\n\r\n\treturn $return_array;\r\n}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function getFilteredSubCategoriesForListing(ProductCategory $product_category);", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "function categoryCheck($cond = array())\n\t{\n\t\t$select = 'addoncategory_id';\n\t\treturn $this->CI->AdminModel->getCondSelectedData($cond,$select,$this->tableName);\n\t}", "public function hasFilter(): bool;", "protected abstract function filter();", "public function filter( )\n {\n global $UNDERQL;\n $l_args_num = func_num_args( );\n if ( $l_args_num < 3 )\n return false;\n $filter_name = func_get_arg( 0 );\n\n $l_filter_callback = $UNDERQL['filter']['prefix'] . $filter_name;\n\n if ( !function_exists( $l_filter_callback ))\n return false;\n\n switch(func_get_arg(1))\n {\n case UQL_FILTER_IN:\n\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->in_filters[$this->table_name][func_get_arg( $i )]))\n $this->in_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n else\n {\n $_temp = $this->in_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->in_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n }\n }\n return true;\n\n case UQL_FILTER_OUT:\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->out_filters[$this->table_name][func_get_arg( $i )]))\n {\n $this->out_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n }\n else\n {\n $_temp = $this->out_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->out_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n\n }\n }\n return true;\n default : return false;\n }\n }", "function xh_fetchFilter($filter_name)\r\n\t{\r\n\t}", "abstract public function filters();", "protected function _initCatagory()\r\n\t{\r\n\t\tMage::dispatchEvent('vendor_catalog_controller_category_init_before', array('controller_action' => $this));\r\n\t\t$categoryId = (int) $this->getRequest()->getParam('id', false);\r\n\t\tif (!$categoryId) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$category = Mage::getModel('vendorscategory/category')\r\n\t\t->load($categoryId);\r\n\t\tif (!Mage::helper('vendorscategory')->canShow($category)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!Mage::registry(\"vendor_id\") && !Mage::registry(\"vendor\") && !Mage::registry(\"current_vendor\")){\r\n\t\t\t//echo $category->getVendorId();exit;\r\n\t\t\t$vendorObj = Mage::getModel('vendors/vendor')->load($category->getVendorId());\r\n\r\n\t\t\t//var_dump($vendorObj->getData());exit;\r\n\t\t\tMage::register('vendor_id', $vendorObj->getVendorId());\r\n\t\t\tMage::register('vendor', $vendorObj);\r\n\t\t\tMage::register('current_vendor', $vendorObj);\r\n\t\t}\r\n\t\t\r\n\t\tMage::register('current_vendor_category', $category);\r\n\t\tMage::register('current_vendor_entity_key', $category->getPath());\r\n\t\ttry {\r\n\t\t\tMage::dispatchEvent(\r\n\t\t\t'vendor_catalog_controller_category_init_after',\r\n\t\t\tarray(\r\n\t\t\t'category' => $category,\r\n\t\t\t'controller_action' => $this\r\n\t\t\t)\r\n\t\t\t);\r\n\t\t} catch (Mage_Core_Exception $e) {\r\n\t\t\tMage::logException($e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\treturn $category;\r\n\t}", "function dataSubCategory( $parentcategory, $gcntyn=false ){\n\n\tglobal $db, $sess;\n\n\t$arrfileurl = explode('/',$_SERVER['SCRIPT_FILENAME']);\n\tif(in_array(\"m\", $arrfileurl) || in_array(\"m2\", $arrfileurl)){\n\t\t$hidden = \"hidden_mobile=0\";\n\t} else {\n\t\t$hidden = \"hidden=0\";\n\t}\n\t# 카테고리 정보\n\tfor ($i=0;$i<2;$i++){\n\t\t$length = strlen($parentcategory) + 3;\n\t\t$query = \"\n\t\tselect\n\t\t\tcategory,catnm,sort,level,level_auth\n\t\tfrom\n\t\t\t\".GD_CATEGORY.\"\n\t\twhere\n\t\t\tcategory like '$parentcategory%'\n\t\t\tand length(category)=$length\n\t\t\";\n\t\tif ($GLOBALS[ici_admin] === false) $query .= \"and \".$hidden;\n\t\t$res = $db->query($query);\n\n\t\tif ($db->count_($res)) break;\n\t\telse if ($length>6) $parentcategory = substr($parentcategory,0,-3);\n\t}\n\n\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\tif ( $gcntyn == true && _CATEGORY_NEW_METHOD_ === false ){\n\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"a.\".$hidden;\n\t\t$where[] = \"a.category like '$parentcategory%'\";\n\t\t$where[] = \"open\";\n\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"b.inpk_prdno!=''\";\n\n\t\t$query = \"\n\t\tselect\n\t\t\tleft(category,$length),count(distinct a.goodsno)\n\t\tfrom\n\t\t\t\".GD_GOODS_LINK.\" a,\n\t\t\t\".GD_GOODS.\" b\n\t\twhere\n\t\t\ta.goodsno = b.goodsno\n\t\t\tand \".implode(\" and \", $where).\"\n\t\tgroup by left(category,$length)\n\t\t\";\n\t\t$res2 = $db->query($query);\n\t\twhile ($data2=$db->fetch($res2)) $gcnt[$data2[0]] = $data2[1];\n\t}\n\n\t### 데이타 조작\n\t$i = 0;\n\twhile ($data=$db->fetch($res)){\n\t\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\t\tif ($gcntyn == true && _CATEGORY_NEW_METHOD_ === true) {\n\t\t\t$where\t= array();\n\t\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"gl.hidden=0\";\n\t\t\t$where[] = \"gl.category = '\".$data['category'].\"'\";\n\t\t\t$where[] = \"g.open = '1'\";\n\t\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"g.inpk_prdno!=''\";\n\n\t\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tCOUNT(g.goodsno) as cnt\n\t\t\tFROM\n\t\t\t\t\".GD_GOODS.\" g\n\t\t\tINNER JOIN\n\t\t\t\t\".GD_GOODS_LINK.\" gl ON g.goodsno = gl.goodsno\n\t\t\tWHERE\n\t\t\t\t\".implode(\" AND \", $where).\"\n\t\t\t\";\n\n\t\t\t$res2 = $db->query($query);\n\t\t\twhile ($data2=$db->fetch($res2, 1)) $gcnt[$data['category']] = $data2['cnt'];\n\t\t}\n\n\t\t$member_auth = false;\n\t\tif($data['level']){//권한 설정되어 있는지 체크\n\t\t\tswitch($data['level_auth']){//권한체크\n\t\t\t\tcase '1': //모두숨김\n\t\t\t\t\tif( (!$sess['level'] ? 0 : $sess['level']) >= $data['level'] ) $member_auth = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: $member_auth = true; break;\n\t\t\t}\n\t\t}\n\t\telse $member_auth = true;\n\n\t\tif($member_auth){\n\t\t\t$data['gcnt'] = $gcnt[ $data['category'] ];\n\t\t\t$cate[$data[sort]][] = $data;\n\t\t}\n\t}\n\n\t### 배열 순서 재정의\n\tif ($cate) $cate = resort($cate);\n\n\treturn $cate;\n}", "function _applyFilter($user, $info, $filter) {\n\t\tforeach($filter as $key => $pattern) {\n\t\t\t//sanitize pattern for use as regex\n\t\t\t$pattern = '/'.str_replace('/', '\\/', $pattern).'/i';\n\t\t\t\n\t\t\tif($key == 'user') {\n\t\t\t\tif(!preg_match($pattern, $user)) return false;\n\t\t\t} else if($key == 'grps') {\n\t\t\t\tif(!count(preg_grep($pattern, $info['grps']))) { \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!preg_match($pattern, $info[$key])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "abstract public function filter(Subscriber $subscriber, $root);", "function listProductsBySubCategory($category, $subcategory) {\r\n\t\t$query = \"SELECT * FROM \".TBL_PRODUCTS.\" WHERE available = '1' AND stock > 0 AND category = :category AND subcategory = :subcategory\";\r\n\t\t$stmt = $this->connection->prepare($query);\r\n\t\t$stmt->execute(array(':category' => $category, ':subcategory' => $subcategory));\r\n\t\t$dbarray = $stmt->fetchAll();\r\n\t\t$count = $stmt->rowCount();\r\n\t\tif(!$dbarray || $count < 1){\r\n\t\t\treturn false; // failure\r\n\t\t} else {\r\n\t\t\treturn $dbarray; // success\r\n\t\t}\r\n\t}", "function custom_post_type_cat_filter($query) {\n if ( !is_admin() && $query->is_main_query() ) {\n if ($query->is_category()) {\n $query->set( 'post_type', array( 'articles', 'guides', 'conseils' ) );\n }\n }\n}", "public function testUpdateItemSubCategory()\n {\n }", "public function rawFilter($filter) {\n\t\t$query = InventorySummary::orderBy('Client_SKU', 'asc');\n\t\tif(isset($filter['objectID']) && strlen($filter['objectID']) > 3) {\n\t\t\t$query = $query->where('objectID', 'like', $filter['objectID'] . '%');\n\t\t}\n\t\tif(isset($filter['Client_SKU']) && strlen($filter['Client_SKU']) > 3) {\n\t\t\t$query = $query->where('Client_SKU', 'like', $filter['Client_SKU'] . '%');\n\t\t}\n\t\tif(isset($filter['Description']) && strlen($filter['Description']) > 3) {\n\t\t\t$query = $query->where('Description', 'like', $filter['Description'] . '%');\n\t\t}\n\n /*\n * Pick face quantity choices\n */\n if(isset($filter['pickQty_rb'])) {\n if($filter['pickQty_rb'] == 'zero') {\n $query = $query->where('pickQty', '=', '0');\n } elseif($filter['pickQty_rb'] == 'belowMin') {\n $query = $query->where('pickQty', '<', '3');\n } elseif($filter['pickQty_rb'] == 'aboveMin') {\n $query = $query->where('pickQty', '>', '2');\n }\n }\n\n /*\n * Activity location quantity choices\n */\n if(isset($filter['actQty_rb'])) {\n if($filter['actQty_rb'] == 'zero') {\n $query = $query->where('actQty', '=', '0');\n } elseif($filter['actQty_rb'] == 'aboveZero') {\n $query = $query->where('actQty', '>', '0');\n }\n }\n\n /*\n * Reserve quantity choices\n */\n if(isset($filter['resQty_rb'])) {\n if($filter['resQty_rb'] == 'zero') {\n $query = $query->where('resQty', '=', '0');\n } elseif($filter['resQty_rb'] == 'aboveZero') {\n $query = $query->where('resQty', '>', '0');\n }\n }\n\n /*\n * Replen Priority choices\n */\n if(isset($filter['replenPrty_cb_noReplen'])\n or isset($filter['replenPrty_cb_20orBelow'])\n or isset($filter['replenPrty_cb_40orBelow'])\n or isset($filter['replenPrty_cb_60orBelow'])) {\n $query->where(function ($query) use ($filter) {\n if (isset($filter['replenPrty_cb_noReplen']) && $filter['replenPrty_cb_noReplen'] == 'on') {\n $query->orWhereNull('replenPrty')\n ->orWhere('replenPrty', '=', '0');\n }\n if (isset($filter['replenPrty_cb_20orBelow']) && $filter['replenPrty_cb_20orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['1', '20']);\n }\n if (isset($filter['replenPrty_cb_40orBelow']) && $filter['replenPrty_cb_40orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['21', '40']);\n }\n if (isset($filter['replenPrty_cb_60orBelow']) && $filter['replenPrty_cb_60orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['41', '60']);\n }\n });\n }\n //dd(__METHOD__.\"(\".__LINE__.\")\", compact('filter', 'query'));\n\n\t\tif(isset($filter['created_at']) && strlen($filter['created_at']) > 1) {\n\t\t\t$query = $query->where('created_at', 'like', $filter['created_at'] . '%');\n\t\t}\n\t\tif(isset($filter['updated_at']) && strlen($filter['updated_at']) > 1) {\n\t\t\t$query = $query->where('updated_at', 'like', $filter['updated_at'] . '%');\n\t\t}\n return $query;\n }", "public function hasFilter(){\n return $this->_has(5);\n }", "public function has_filters()\n {\n }", "protected static function _category_query_filters_condition($query, $parameters=array())\n {\n $price_category_code=Service_Product_Price::get_price_category_code(Service_User::instance()->get_user()->price_category);\n \n //die($price_category_code);\n \n $hodnota_procentni_slevy_pro_skupinu=(Service_Product_Price::get_price_category_percentual_value(Service_User::instance()->get_user()->price_category))/100;\n \n $query\n ->group_by(\"products.id\")\n //->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\")\n ->join(\"manufacturers\",\"LEFT\")->on(\"products.manufacturer_id\",\"=\",\"manufacturers.id\");\n// ->join(array(\"product_parameters_products\",\"ppp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp2.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv2\"))->on(\"ppp2.product_parameter_value_id\",\"=\",\"ppv2.id\")->on(\"ppv2.product_parameter_id\",\"=\",DB::expr(1))\n// ->join(array(\"product_parameters_products\",\"ppp1\"),\"LEFT\")->on(\"products.id\",\"=\",\"ppp1.product_id\")\n// ->join(array(\"product_parameter_values\",\"ppv1\"))->on(\"ppp1.product_parameter_value_id\",\"=\",\"ppv1.id\")->on(\"ppv1.product_parameter_id\",\"=\",DB::expr(2));\n \n $case_string=\"\n (\n CASE\n WHEN pc2.price_type_id =1\n THEN\n (\n CASE\n WHEN products.percentage_discount >0\n THEN pcp2.cena * ( 1 - ( products.percentage_discount /100 ) ) \n ELSE pcp2.cena\n END\n )\n WHEN $hodnota_procentni_slevy_pro_skupinu > (products.percentage_discount/100)\n THEN (`price_categories_products`.`cena` * ( 1 - ( $hodnota_procentni_slevy_pro_skupinu ) ) ) \n ELSE (`price_categories_products`.`cena` * ( 1 - ( products.percentage_discount/100) ) )\n END\n ) \n \";\n \n //$query->select(array(db::expr(\" (select hodnota from price_categories where kod = \\\"\".$price_category_code.\"\\\")\"),\"price_sleva\"));\n $query->select(array(db::expr($case_string),\"price\"));\n \n $query->join(\"price_categories_products\")->on(\"products.id\",\"=\",\"price_categories_products.product_id\");\n $query->join(\"price_categories\")->on(\"price_categories_products.price_category_id\",\"=\",\"price_categories.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"D0\\\"\"));\n $query->join(array(\"price_categories_products\",\"pcp2\"),\"LEFT\")->on(\"products.id\",\"=\",\"pcp2.product_id\");\n $query->join(array(\"price_categories\",\"pc2\"),\"LEFT\")->on(\"pcp2.price_category_id\",\"=\",\"pc2.id\")->on(\"price_categories.kod\",\"=\",db::expr(\"\\\"\".$price_category_code.\"\\\"\"));\n \n \n if(isset($parameters[\"price_selected_max\"])) $query->having(\"price\",\"<=\",$parameters[\"price_selected_max\"]);\n if(isset($parameters[\"price_selected_min\"])) $query->having(\"price\",\">=\",$parameters[\"price_selected_min\"]);\n //if(isset($parameters[\"products_filter_manufacturer\"])) $query->where(\"products.manufacturer_id\",\"=\",$parameters[\"products_filter_manufacturer\"]);\n if(isset($parameters[\"products_filter_manufacturers\"])) $query->where(\"products.manufacturer_id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_manufacturers\"]).\")\"));\n// if(isset($parameters[\"products_filter_colors\"]) && is_array($parameters[\"products_filter_colors\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_colors\"]).\")\"));\n// if(isset($parameters[\"products_filter_sizes\"]) && is_array($parameters[\"products_filter_sizes\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_sizes\"]).\")\"));\n// \n// if(isset($parameters[\"products_filter_size\"])) $query->where(\"ppv1.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_size\"]).\")\"));\n// if(isset($parameters[\"products_filter_color\"])) $query->where(\"ppv2.id\",\"IN\",db::expr(\"(\".implode(\",\", $parameters[\"products_filter_color\"]).\")\"));\n// \n return $query;\n }", "public static function getSubcatValues()\n\t{\n\t}", "function wpcoupon_add_filter_to_coupons( &$query){\r\n\r\n global $post_type, $pagenow;\r\n\r\n //if we are currently on the edit screen of the post type listings\r\n if($pagenow == 'edit.php' && $post_type == 'coupon'){\r\n if( isset( $_GET['coupon_category'] ) ){\r\n\r\n //get the desired post format\r\n $cat = sanitize_text_field($_GET['coupon_category']);\r\n //if the post format is not 0 (which means all)\r\n if( $cat != 0 ){\r\n $query->query_vars['tax_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'taxonomy' => 'coupon_category',\r\n 'field' => 'term_id',\r\n 'terms' => array( $cat )\r\n )\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * Search store by name\r\n * @see WPCoupon_Search::where()\r\n */\r\n\r\n if ( isset( $_GET['c_type'] ) ) {\r\n $t = trim( ( string ) $_GET['c_type'] );\r\n if ( $t ) {\r\n $query->query_vars['meta_query'] = array(\r\n 'relation' => 'AND',\r\n array(\r\n 'key' => '_wpc_coupon_type',\r\n 'value' => $t,\r\n 'compare' => 'LIKE',\r\n )\r\n );\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }", "public function get_specific_filter( $filter_id, $number_of_values, $comparability )\t\t\t\t\t// filter id is an attribute id\r\n\t\t{\r\n\t\t\t$this->errno = DB_OK;\r\n\t\t\t$values = array();\r\n\t\t\t\r\n\t\t\tif ( $this->cat_id == -1 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tSuch category hasn't been created\r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_ID;\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\t\r\n\t\r\n\t\t\t$attr = new attribute( $this->con, $filter_id, $this->cat_id );\t\t\t\t\t\t\t\t\t\t//\tcreating an attribute object using the filter_id\r\n\t\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\t\t\r\n\r\n\t\t\t$is_filterable = $attr->is_filterable();\r\n\t\t\t\r\n\t\t\tif ( ( $this->errno = $attr->get_errno() ) != DB_OK )\r\n\t\t\t{\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $is_filterable == 0 )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tchecking filterability\r\n\t\t\t{\r\n\t\t\t\t$this->errno = ATTRIBUTE_NOT_FILTERABLE;\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"c_\";\r\n\t\t\t}\r\n\t\t\telse if ( $comparability == DISTINCT )\r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"d_\";\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$spec_value = \"u_\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( $number_of_values > 0 )\r\n\t\t\t{\r\n\r\n\t\t\t\t/*\tLocating and retrieving sorted the $number_of_values most common values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC LIMIT $number_of_values\" ) ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( $result->num_rows > $number_of_values )\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\treturn ;\t\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if ( $number_of_values == -1 )\r\n\t\t\t{\r\n\t\t\t\t/*\tLocating and retrieving sorted all the values for this attribute\t*/\r\n\t\t\t\t\r\n\t\t\t\tif ( $comparability == COUNTABLE )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tif attribute is countable\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY \".$spec_value.\"value\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\tif ( ! ( $result = $this->con->query( \"SELECT \".$spec_value.\"value, COUNT(*) FROM entity_has_value WHERE attr_id = $filter_id GROUP BY \".$spec_value.\"value ORDER BY count(*) DESC\" ) ) )\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\t$this->errno = MYSQL_ERROR;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tFailed to connect\t\r\n\t\t\t\t\t\treturn ;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$this->errno = WRONG_INPUT;\t\r\n\t\t\t\treturn ;\t\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\twhile ( $row = $result->fetch_row() )\r\n\t\t\t{\r\n\t\t\t\t$values[] = array(\"value\" =>$row[0], \"count\"=>$row[1]);\r\n\t\t\t}\t\t\t\t\t\r\n\t\t\t\r\n\t\t\treturn $values;\r\n\t\t\t\r\n\t\t}", "abstract protected function getFilters();", "public function filter($value, $filter) {\n if (is_array($value)) {\n foreach ($value as $i => $val)\n $value[$i] = $this->filter($val, $filter);\n }\n else if (is_array($filter)) {\n foreach ($filter as $f)\n $value = $this->filter($value, $f);\n }\n else {\n $fname = \"filter\";\n $arr = explode(\"_\", $filter);\n foreach ($arr as $a)\n $fname.= ucwords($a);\n if (is_callable([$this, $fname]))\n return $this->$fname($value);\n else\n return $value;\n }\n return $value;\n }", "public function filter(Request $request )\n \n {\n $filter_1=$request->user()->id;\n $filter_2=$request->post_category_id ;\n $filter_3=$request->status;\n $filter_date=$request->updated_at;\n //Put $this $Field->value >>> If Field not Use , fill values='none' ! .\n $field_1='author_id'; \n $field_2='post_category_id';\n $field_3='status';\n $field_date='updated_at';\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_1, '=', $filter_1)\n ->get()\n :false\n :false;\n \n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_2, '=', $filter_2)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->orWhere($field_3, '=', $filter_3)\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->orWhere($field_date, 'like', '%'.$filter_date.'%')\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_2, '=', $filter_2]\n \n ])\n ->orWhere([\n [$field_3, '=', $filter_3],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false; \n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 !=='none')&&\n ($filter_date =='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_3, '=', $filter_3]\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_date, 'like', '%'.$filter_date.'%']\n ])\n ->get()\n :false\n :false;\n\n isset($filter_1)&&isset($filter_2)&&isset($filter_3)&&isset($filter_date)?\n ($filter_1 !=='none')&&\n ($filter_2 =='none')&&\n ($filter_3 =='none')&&\n ($filter_date !=='none')\n ||\n ($filter_1 =='none')&&\n ($filter_2 !=='none')&&\n ($filter_3 !=='none')&&\n ($filter_date !=='none')\n ?\n $post_list=PostList::where([\n [$field_1, '=', $filter_1],\n [$field_date, 'like', '%'.$filter_date.'%']\n \n ])\n ->orWhere([\n [$field_2, '=', $filter_2],\n [$field_3, '=', $filter_3]\n ])\n ->get()\n :false\n :false;\n\n return view('author.post.post-filter',['post_list'=>$post_list]);\n }", "public function hasAdditionalFilter($dataProvider = null);", "public function check_fts_status($CM_COMPLAINT_SUB_TYPE){\n\t\t$this->db->select('CSC_FTS_BASED');\n\t\t$this->db->where('CSC_NO',$CM_COMPLAINT_SUB_TYPE);\n\t\t$query = $this->db->get('COMPLAINT_SUB_CATEGORY');\n \t\t$row = $query->row();\n\t\tif (isset($row))\n\t\t return $row->CSC_FTS_BASED;\n\t}", "public function filter($filter)\n {\n }", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "private function _parseBFilterParam()\n\t{\n $map = array('a' => 'attribute', 'm' => 'manufacturer', 's' => 'stock_status', 'f' => 'filter', 'o' => 'option', 'r' => 'rating', 'c' => 'category');\n \n if (!isset($this->request->get['bfilter'])) {\n \n return;\n }\n\t\t$bfilter = $this->request->get['bfilter'];\n\n\t\t$params = explode(';', $bfilter);\n \n\t\tforeach ($params as $param) \n {\n if (!empty($param)) \n {\n $p = explode(':', $param);\n $pName = $p[0];\n $pValue = $p[1];\n if ($pName === 'price') \n {\n $p = explode('-', $pValue);\n if ((int)$p[0] > 0 || (int)$p[1] > 0) {\n $this->conditions->price = new stdClass();\n $this->conditions->price->min = null;\n $this->conditions->price->max = null;\n $this->conditions->price->inputMin = null;\n $this->conditions->price->inputMax = null;\n }\n if ((int)$p[0] > 0) {\n $this->conditions->price->min = $this->currency->convert($p[0], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMin = $p[0];\n }\n if ((int)$p[1] > 0) {\n $this->conditions->price->max = $this->currency->convert($p[1], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMax = $p[1];\n }\n } \n elseif ($pName === 'rating') \n {\n $this->conditions->rating = explode(',', $pValue);\n } \n elseif ($pName === 'search')\n {\n $this->conditions->search = $pValue;\n $this->searchNameString = $pValue;\n $this->searchTagString = $pValue;\n $this->searchDescriptionString = $pValue;\n }\n else \n {\n $type = $map[substr($pName, 0, 1)];\n $groupId = (int)substr($pName, 1);\n if ($type) {\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n if (isset($p[0]) && isset($p[1])) {\n $this->conditions->{$type}[$groupId] = array('min' => $p[0], 'max' => $p[1]);\n }\n } else {\n $this->conditions->{$type}[$groupId] = explode(',', $pValue);\n }\n\n if ($type !== 'rating') {\n $type = strtoupper($type);\n if (!isset($this->aggregate[$type])) {\n $this->aggregate[$type] = array();\n }\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n $range = $this->_getSliderIntermediateValues($type, $groupId, $p[0], $p[1]);\n if (!empty($range)) {\n $this->aggregate[$type][$groupId] = $range;\n }\n } else {\n $this->aggregate[$type][$groupId] = explode(',', $pValue);\n }\n }\n }\n }\n }\n\t\t}\n\t}", "protected function processFilter($filter)\n\t{\n\t\t$validOperators = '(!~|=~|==|!=|>|<|>=|<=|=@|!@)';\n\n\t\t$filter = preg_replace('/\\s\\s+/',' ',trim($filter)); //Clean duplicate whitespace\n//\t\t$filter = str_replace(array(',',';'),array('\\,','\\;'),$filter); //Escape Google Analytics reserved characters\n\t\t$filter = preg_replace('/(&&\\s*|\\|\\|\\s*|^)([a-z]+)(\\s*' . $validOperators . ')/i','$1ga:$2$3',$filter); //Prefix ga: to metrics and dimensions\n\t\t$filter = preg_replace('/[\\'\\\"]/i','',$filter); //Clear invalid quote characters\n\t\t$filter = preg_replace(array('/\\s*&&\\s*/','/\\s*\\|\\|\\s*/','/\\s*' . $validOperators . '\\s*/'),array(';',',','$1'),$filter); //Clean up operators\n\n\t\tif (strlen($filter)>0) {\n\t\t\treturn $filter;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function definePrimaryFilter()\n {\n $filter = $this->getEmptyFilter();\n if (!empty($this->cObj->data['tx_displaycontroller_filtertype'])) {\n switch ($this->cObj->data['tx_displaycontroller_filtertype']) {\n\n // Simple filter for single view\n // We expect the \"table\" and \"showUid\" parameters and assemble a filter based on those values\n case 'single':\n $filter = array();\n $filter['filters'] = array(\n 0 => array(\n 'table' => $this->piVars['table'],\n 'field' => 'uid',\n 'conditions' => array(\n 0 => array(\n 'operator' => '=',\n 'value' => $this->piVars['showUid'],\n )\n )\n )\n );\n break;\n\n // Simple filter for list view\n case 'list':\n $filter = $this->defineListFilter();\n break;\n\n // Handle advanced data filters\n case 'filter':\n $filter = $this->defineAdvancedFilter();\n break;\n }\n }\n return $filter;\n }", "abstract public function prepareFilters();", "function editSubUnderCategory()\n\t{\n\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t $sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT * FROM category_table where sub_category_parent_id='\".$obj->records[0]['sub_category_id'].\"' AND category_parent_id ='\".$obj->records[0]['category_id'].\"'\"; \n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\treturn Display_DManageProducts::displaySubUnderCategory($query->records,$obj->records[0]['sub_under_category_id']);\n\t\t\t\n\t }\n\n\n\t}", "function filterType($tbl, $tbl2, $tbl3, $col, $col2, $col3, $filter) {\n\t\tinclude('connect.php');\n\t\t$queryFilter = \"SELECT * FROM {$tbl} m, {$tbl2} g, {$tbl3} mg WHERE m.{$col} = mg.{$col} AND g.{$col2} = mg.{$col2} AND g.{$col3} = '{$filter}'\";\n\t\t$runFilter = mysqli_query($link, $queryFilter);\n\t\tif($runFilter){\n\t\t\treturn $runFilter;\n\t\t}else{\n\t\t\t$error = \"There was an error accessing this Information. Please contact your admin.\";\n\t\t\treturn $error;\n\t\t}\n\t\tmysqli_close($link);\n\t}", "function simplenews_build_issue_filter_query(EntityFieldQuery $query) {\n if (isset($_SESSION['simplenews_issue_filter'])) {\n foreach ($_SESSION['simplenews_issue_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n case 'newsletter':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->fieldCondition(variable_get('simplenews_newsletter_field', 'simplenews_newsletter'), 'target_id', $value);\n }\n break;\n }\n }\n }\n}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function get_sub_category_info( $sub_cate_id, $sub_cate_status = 0 )\n\t{\n\t\t$criteria = $sub_cate_status == 1 ? \"sub_cate_status = 1 AND \" : \"\";\n\t\t$q = \"SELECT * FROM title_dev_sub_categories WHERE \".$criteria.\" sub_cate_id = \".$sub_cate_id;\n\t\t$r = $this -> db -> getSingleRecord( $q );\n\t\tif( $r )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}", "function _prepareFilter(&$controller){\n \t\n\t\t$filter = array();\n if(isset($controller->data)){\n foreach($controller->data as $model=>$fields){\n foreach($fields as $key=>$field){\n if($field == ''){\n unset($controller->data[$model][$key]);\n }\n }\n }\n \n App::import('Sanitize');\n $sanit = new Sanitize();\n $controller->data = $sanit->clean($controller->data);\n $filter = $controller->data;\n }\n \n if (empty($filter)){\n \t\t$filter = $this->_checkParams($controller); \t\n }\n $controller->data = $filter;\n }", "function _create_filter_sql () {\n\t\t$SF = &$_SESSION[$this->_filter_name];\n\t\tforeach ((array)$SF as $k => $v) {\n\t\t\t$SF[$k] = trim($v);\n\t\t}\n\t\t// Generate filter for the common fileds\n\t\tif ($SF[\"category_id\"])\t{\n\t\t \t$sql[] = \" AND category_id = \".intval($SF[\"category_id\"]).\" \";\n\t\t}\n\t\tif ($SF[\"user_id\"])\t{\n\t\t \t$sql[] = \" AND user_id = \".intval($SF[\"user_id\"]).\" \";\n\t\t}\n\t\tif (strlen($SF[\"admin_priority\"])) {\n\t\t \t$sql[] = \" AND admin_priority = \".intval($SF[\"admin_priority\"]).\" \";\n\t\t}\n\t\tif ($this->DEF_VIEW_STATUS || $SF[\"status\"]) {\n\t\t\t$status = $SF[\"status\"] ? $SF[\"status\"] : $this->DEF_VIEW_STATUS;\n\t\t\tif ($status == \"not_closed\") {\n\t\t\t \t$sql[] = \" AND status != 'closed' \";\n\t\t\t} else {\n\t\t\t \t$sql[] = \" AND status = '\"._es($SF[\"status\"]).\"' \";\n\t\t\t}\n\t\t}\n\t\tif (strlen($SF[\"subject\"])) {\n\t\t\t$sql[] = \" AND subject LIKE '\"._es($SF[\"subject\"]).\"%' \";\n\t\t}\n\t\tif (strlen($SF[\"message\"])) {\n\t\t\t$sql[] = \" AND message LIKE '\"._es($SF[\"message\"]).\"%' \";\n\t\t}\n\t\tif (!empty($SF[\"email\"])) {\n\t\t\t$sql[] = \" AND email LIKE '\"._es($SF[\"email\"]).\"%' \";\n\t\t}\n\t\tif ($SF[\"assigned_to\"])\t{\n\t\t \t$sql[] = \" AND assigned_to = \".intval($SF[\"assigned_to\"]).\" \";\n\t\t}\n\t\t// Add subquery to users table\n\t\tif (!empty($users_sql)) {\n\t\t\t$sql[] = \" AND user_id IN( SELECT id FROM \".db('user').\" WHERE 1=1 \".$users_sql.\") \";\n\t\t}\n\t\t// Default sorting\n\t\tif (!$SF[\"sort_by\"]) {\n\t\t\t$SF[\"sort_by\"]\t\t= \"opened_date\";\n\t\t\t$SF[\"sort_order\"]\t= \"DESC\";\n\t\t}\n\t\t// Sorting here\n\t\tif ($SF[\"sort_by\"]) {\n\t\t \t$sql[] = \" ORDER BY \".($this->_sort_by[$SF[\"sort_by\"]] ? $this->_sort_by[$SF[\"sort_by\"]] : $SF[\"sort_by\"]).\" \";\n\t\t\tif (strlen($SF[\"sort_order\"])) {\n\t\t\t\t$sql[] = \" \".$SF[\"sort_order\"].\" \";\n\t\t\t}\n\t\t}\n\t\t$sql = implode(\"\\r\\n\", (array)$sql);\n\t\treturn $sql;\n\t}", "function editSubCategory()\n\t{ \n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT category_id,category_parent_id FROM category_table where category_id in(select category_id from products_table where category_id='\".$obj->records[0]['category_id'].\"')\";\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$category=Core_Settings_CManageProducts::displayCategory($query->records[0]['category_parent_id']);\n\t\t\t\n\t\t\t$sqlid='select category_id from category_table where category_id in(select sub_category_id from products_table where product_id='.$id.')';\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$subcat=Core_Settings_CManageProducts::displaySubCategory($query->records[0]['category_id']);\n\t\t\t\n\t\t\treturn $subcat;\n\t }\n\t}", "function getSelectionOptions($filter) {\r\n global $parentCategory;\r\n if ($filter->isConditional()) {\r\n //displays the filter if the parent category is in the children category list\r\n if (!in_array($parentCategory, $filter->getCategory())) {\r\n //if its not found the function is returned\r\n return;\r\n }\r\n }\r\n //subvalues is a list of the items to add to the selection drop down of the filter\r\n $subvalues = array();\r\n if ($filter->isEnum()) {\r\n $subvalues = explode(\"','\", getEnumValues($filter->getTable(), $filter->getColumn()));\r\n } else {\r\n $subvalues = getColumList($filter->getTable(), $filter->getColumn(), $filter->getJoinTable(), $filter->getJoinColumn(), $filter->getComparator());\r\n }\r\n //if the dropdown is not empty, it'll create a select drop down box and add the values as options\r\n if (!empty($subvalues)) {\r\n $filterName = $filter->getName();\r\n echo $filterName . \": \";\r\n echo '<select name=\"' . $filterName . '\">' . $filterName;\r\n echo '<option></option>';\r\n foreach($subvalues as $sub) {\r\n $option = clean($sub);\r\n echo '<option value=\"' . $option . '\"' . (($_GET[\"$filterName\"] == $option) ? \" selected\" : \"\") . '>' . $option . \"</option>\";\r\n }\r\n echo \"</select> \";\r\n }\r\n }", "function get_category_data( $adunit = false ) {\n\t$exposed_values = array();\n\t$parent_categories = array();\n\t$sub_categories = array();\n\t$exposed_values['parent_categories'] = 'no_value';\n\t$exposed_values['sub_categories'] = 'no_value';\n\tif ( is_single() ) {\n\t\tglobal $post;\n\t\t$category_tax = 'category';\n\t\t$categories = get_the_terms( $post->ID, $category_tax );\n\t\tif ( ! empty( $categories ) ) {\n\t\t\tforeach ( $categories as $term ) {\n\t\t\t\t$ancestors = get_ancestors( $term->term_id, $category_tax );\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\t\t\t\t\tforeach ( $ancestors as $ancestor ) {\n\t\t\t\t\t\t$remove[] = \"'\";\n\t\t\t\t\t\tif ( ! $adunit ) {\n\t\t\t\t\t\t\t$remove[] = '-';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ancestor_term = get_term( $ancestor );\n\t\t\t\t\t\tarray_push( $parent_categories, str_replace( $remove, '', $ancestor_term->slug ) );\n\t\t\t\t\t\tarray_push( $sub_categories, str_replace( $remove, '', $term->slug ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$term_slug = $term->slug;\n\t\t\t\t\tarray_push( $parent_categories, $term_slug );\n\t\t\t\t}\n\t\t\t}\n\t\t\t$filter_similar_parent_cats = array_unique( $parent_categories, SORT_STRING );\n\t\t\t$parent_categories = implode( ', ', $filter_similar_parent_cats );\n\t\t\t$filter_similar_sub_cats = array_unique( $sub_categories, SORT_STRING );\n\t\t\t$sub_categories = implode( ', ', $filter_similar_sub_cats );\n\t\t\tif ( ! empty( $parent_categories ) ) {\n\t\t\t\t$exposed_values['parent_categories'] = $parent_categories;\n\t\t\t}\n\t\t\tif ( ! empty( $sub_categories ) ) {\n\t\t\t\t$exposed_values['sub_categories'] = $sub_categories;\n\t\t\t}\n\t\t}\n\t} elseif ( is_category() || is_archive() ) {\n\t\t$q_object = get_queried_object();\n\t\t// WP_Post_Type archives don't have a \"slug\" property.\n\t\tif ( ! empty( $q_object->slug ) ) {\n\t\t\t$cat_slug = $q_object->slug;\n\t\t\t$exposed_values['parent_categories'] = $cat_slug;\n\t\t\t$exposed_values['sub_categories'] = $cat_slug;\n\t\t}\n\t\tif ( is_post_type_archive( 'joke' ) ) {\n\t\t\t$exposed_values['parent_categories'] = 'jokes';\n\t\t\t$exposed_values['sub_categories'] = 'jokes';\n\t\t}\n\t} elseif ( is_page() ) {\n\t\t$exposed_values['parent_categories'] = 'misc';\n\t\t$exposed_values['sub_categories'] = 'misc';\n\t} elseif ( is_home() && is_front_page() ) {\n\t\t$exposed_values['parent_categories'] = 'homepage';\n\t\t$exposed_values['sub_categories'] = 'homepage';\n\t}\n\treturn $exposed_values;\n}", "function simplenews_build_subscription_filter_query(SelectQueryInterface $query) {\n if (isset($_SESSION['simplenews_subscriptions_filter'])) {\n foreach ($_SESSION['simplenews_subscriptions_filter'] as $key => $value) {\n switch ($key) {\n case 'list':\n if ($value != 'all') {\n list($key, $value) = explode('-', $value, 2);\n $query->condition('su.' . $key, $value);\n }\n break;\n case 'email':\n if (!empty($value)) {\n $query->condition('sn.mail', '%' . $value . '%', 'LIKE');\n }\n break;\n }\n }\n }\n}", "public function hasCategory(): bool;", "public function getFilterArray() {\n\t\t$filter = null;\n\t\tif (isset($_GET['sub_category'])) {\n\t\t\t$filter = array('category' => array($_GET['sub_category']));\n\t\t} else if (isset($_GET['category'])) {\n\t\t\t$filter = array('category' => array($_GET['category']));\n\n\t\t\t$subcategory_list = $this->category_model->get_sub_category_list_by_category_id($_GET['category'], array('id'));\n\t\t\tforeach ($subcategory_list as $subcategory) {\n\t\t\t\tarray_push($filter['category'], $subcategory->id);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($_GET['course'])){\n\t\t\t\t$filter['title'] = $_GET['course'];\n\t\t}\n\n\t\tif (isset($_GET['search'])) {\n\t\t\t$filter['search_text'] = $_GET['search'];\n\t\t}\n\n\t\t\n\t\treturn $filter;\n\t}", "public function getSubcategory() {\r\n return \\models\\Database::validateData($this->_subcategory, 'string|specialchars|strip_tags');\r\n }", "public function get_category_item_specifics($categoryID)\n {\n\n // Create the request object.\n $request = new Types\\GetCategorySpecificsRequestType();\n\n // An user token is required when using the Trading service.\n $request->RequesterCredentials = $this->requester_credentials;\n\n /**\n * Check Item Specifics are Enabled\n */\n $this->CI->load->library('ebay_category_features', $categoryID);\n $mode = $this->ebay_category_features->get_ItemSpecificsMode();\n //var_dump($$mode);\n\n\n if ($categoryID && $mode !== 'Disabled') {\n $request->CategoryID = [$categoryID];\n $response = $this->trading_service->getCategorySpecifics($request);\n // Check errors\n $checkError = $this->get_response($response);\n if ($checkError != 0) {\n if (count($response->Recommendations)) {\n $name_value_arr = array();\n foreach ($response->Recommendations as $Recommendation) {\n foreach ($Recommendation->NameRecommendation as $NameRecommendation) {\n $values_arr = array();\n if ($NameRecommendation->ValidationRules->SelectionMode == 'SelectionOnly') {\n $values_arr['custom']['SelectionOnly'] = true;\n }\n\n if ($NameRecommendation->ValidationRules->MinValues >= 1) {\n /**\n * Required item specifics have * in Name of Specific\n */\n //$name = $NameRecommendation->Name . '<strong>*</strong>';\n $values_arr['custom']['MinValues'] = true;\n }\n\n /*\n |--------------------------------------------------------------------------\n | Finally Helped\n |--------------------------------------------------------------------------\n |http://prntscr.com/g5zzn5\n |https://stackoverflow.com/questions/5421426/php-xml-xpath-node-element-iteration-and-inserting-into-array\n */\n\n $name = $NameRecommendation->Name;\n\n foreach ($NameRecommendation->ValueRecommendation as $ValueRecommendation) {\n $values = (string)$ValueRecommendation->Value;\n array_push($values_arr, $values);\n //$converted_values = explode(\",\",$value);\n // echo print_r($converted_values);\n }\n $name_value_arr[$name] = $values_arr;\n }\n }\n\n //var_dump($name_value_arr);\n\n $browse = [];\n\n foreach ($name_value_arr as $key => $value) {\n $custom = $this->findKey($value, 'custom');\n $selection_only = $this->findKey($value, 'SelectionOnly');\n $min_values = $this->findKey($value, 'MinValues');\n\n // var_dump($custom);\n // var_dump($value);\n\n $key = ($min_values) ? $key . '<strong>*</strong>' : $key;\n unset($value['custom']);\n $browse[$key] = $value;\n }\n\n //var_dump($browse);\n return json_encode($browse);\n // return $browse;\n\n }\n }\n } else return false;\n }", "function is_filtered() {\n\t\tglobal $_chosen_attributes;\n\n\t\treturn ( sizeof( $_chosen_attributes ) > 0 || ( isset( $_GET['max_price'] ) && isset( $_GET['min_price'] ) ) ) ? true : false;\n\t}", "public function test_getItemCategoryByFilter() {\n\n }", "public function filtrationElements(){\n foreach(self::getElements() as $key=>$items){\n if(\n NULL!==$items->getFilters() &&\n is_array($items->getFilters()) &&\n count($items->getFilters())\n ){\n self::filtrationElement($items);\n }\n \n }\n }" ]
[ "0.68861353", "0.67790914", "0.6593909", "0.6024935", "0.5886563", "0.5853863", "0.5835763", "0.56417686", "0.5594435", "0.5590464", "0.5583072", "0.5533912", "0.5520384", "0.5461895", "0.544696", "0.5433623", "0.5371483", "0.5366051", "0.53489006", "0.5343639", "0.5339712", "0.53373516", "0.53321296", "0.53294694", "0.53096855", "0.5302984", "0.5285082", "0.5269825", "0.526205", "0.5235065", "0.52339077", "0.52305645", "0.5217575", "0.52106434", "0.5203609", "0.5180471", "0.5178017", "0.51741", "0.51616174", "0.5160618", "0.5147757", "0.51468605", "0.51468605", "0.51468605", "0.51468605", "0.51468605", "0.51468605", "0.51468605", "0.5143645", "0.5141175", "0.5137038", "0.51362044", "0.5135373", "0.51326334", "0.5127801", "0.51187253", "0.5117348", "0.511562", "0.5102143", "0.51000696", "0.5096871", "0.50962687", "0.5092699", "0.50925803", "0.5086105", "0.5075921", "0.50711554", "0.50638705", "0.50624126", "0.5040404", "0.5039746", "0.50334364", "0.5033118", "0.5028518", "0.5027266", "0.5020995", "0.5020174", "0.5019507", "0.5017403", "0.5014798", "0.5010704", "0.5009502", "0.5006576", "0.5003635", "0.50023824", "0.50023824", "0.4999643", "0.49992114", "0.49933013", "0.49907133", "0.4980529", "0.49780038", "0.49768806", "0.4961992", "0.49564406", "0.49530202", "0.49528244", "0.49480662", "0.49471232", "0.4942205" ]
0.69313306
0
note that method chaining is supported
public static function setupBeforeClass() { FactoryMuffin::setCustomSetter(function ($object, $name, $value) { $functionName = camel_case("set-".$name); if (method_exists($object, $functionName) && is_callable([$object, $functionName])) call_user_func([$object, $functionName], $value); else { dd(get_class($object).' dont have '.camel_case("set-".$name)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function & returnToChain () {\n // Easier, than writing return (this) every time;\n return $this;\n }", "public function __construct ()\n {\n return this;\n }", "public function __construct() {\n return $this;\n }", "public function get_this() {\n\t\treturn $this;\n\t}", "public static function via();", "function method1()\n {\n echo \"Hello from method 1\" . PHP_EOL;\n return $this; // This will make $this an instance of the class and thus makes it possible for you to chain the methods. This is because methods can only be executed from $this or an object. \n }", "public function apply()\n {\n return $this;\n }", "public function apply() {}", "public function this()\n\t{\n\t\treturn $this->this;\n\t}", "public function startChain(){\n\t\treturn $this;\n\t}", "public function startChain(){\n\t\treturn $this;\n\t}", "public function init(){\n\t\treturn $this;\n\t}", "public function withReturn();", "public function __call ($a, $b) {\n return $this;\n }", "public function fluent()\n\t{\n\t\treturn $this->_current;\n\t}", "public function method() {\n\t}", "public function chain() {\n\t\t\treturn $this->chain;\n\t\t}", "public function first() {}", "public function helper()\n\t{\n\t\n\t}", "abstract public function get() ;", "public function startChain() {\n\t\treturn $this;\n\t}", "abstract function get();", "public function apply();", "public function apply();", "public function instance() {\n\t\n\t\treturn $this;\n\t\n\t}", "public /*mixed*/ function __invoke(/*...$args*/)\n\t{\n\t\treturn $this;\n\t}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this;}", "function __clone() { return $this; }", "function __clone() { return $this; }", "public function method();", "public function method();", "public function method();", "public function method();", "protected function _init()\n {\n return $this;\n }", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "private function get_data() {\n\t\t$this->set_data();\n\t\t\n\t\treturn $this;\n\t}", "public function init()\n {\n return $this;\n }", "function with($object)\n\t{\n\t\treturn $object;\n\t}", "public function getB() {}", "public function andar()\n {\n }", "public function call();", "public function call();", "private function _with()\n \t{\n \t\t$this->includes = func_get_args();\n \t\treturn $this;\n \t}", "public function __invoke()\n {\n }", "public function __invoke() {\r\n return $this->fetch();\r\n }", "public /*mixed*/ function current()\n\t{\n\t\treturn $this;\n\t}", "public function all(){\n return $this;\n }", "public function get()\n {\n }", "function copy(){ return $this->_copy(); }", "public function method()\n {\n\n }", "public function first()\n {\n }", "public function current() {}", "public function current() {}", "public function current() {}", "public function current() {}", "public function current() {}", "public function current() {}", "public function current() {}", "public function current() {}", "public function current() {}", "protected final function __construct() {}", "private function method2()\n\t{\n\t}", "public function current(): mixed;", "public function current(): mixed;", "public function GET(){\n if( !$this->getID() ){\n return $this;\n }\n else{\n return parent::GET();\n }\n }", "public function join()\r\n {\r\n throw new Exception('This method is not yet implemented');\r\n \r\n return $this;\r\n }", "public function getA() {}", "public function call()\n {\n // TODO: Implement call() method.\n }", "public function result();", "public function result();", "public function __invoke()\n {\n\n }", "public function custom()\n\t{\n\t}", "public function get() {\n\t\t$this->method('GET');\n\t\treturn $this;\n\t}", "protected function first()\n\t{\n\t\tif (is_array($this->subject)) {\n\t\t\t$this->subject = reset($this->subject);\n\t\t} else if ($this->subject instanceof \\stdClass) {\n\t\t\t$this->subject = get_object_vars($this->subject);\n\t\t\t$this->subject = reset($this->subject);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function get() {}", "public function get() {}", "public function get() {}", "public function get() {}", "public function get() {}", "final private function __construct() {}" ]
[ "0.65635824", "0.60097486", "0.5991265", "0.59086055", "0.5851754", "0.5849432", "0.58047575", "0.57743514", "0.5696368", "0.56358105", "0.56358105", "0.5605846", "0.5604782", "0.5569766", "0.552188", "0.55009305", "0.5493681", "0.5408144", "0.5403511", "0.538889", "0.5387958", "0.53825206", "0.5368753", "0.5368753", "0.53639704", "0.5346781", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.53260535", "0.5292928", "0.5292928", "0.52771026", "0.52771026", "0.52771026", "0.52771026", "0.52756274", "0.5269085", "0.5269085", "0.5269085", "0.5269085", "0.5269085", "0.5269085", "0.52595335", "0.5239798", "0.52159816", "0.5215342", "0.5200679", "0.5189437", "0.5189437", "0.5177718", "0.5164443", "0.5144366", "0.513914", "0.51368695", "0.5113948", "0.5113209", "0.5111795", "0.5110711", "0.51050216", "0.51050216", "0.51050216", "0.51050216", "0.51050216", "0.51050216", "0.51050216", "0.51050216", "0.5104954", "0.5099381", "0.5095043", "0.50896347", "0.50896347", "0.5088544", "0.50871253", "0.50835824", "0.50820947", "0.5077087", "0.5077087", "0.50732297", "0.5069311", "0.50638014", "0.5062587", "0.5061921", "0.50605875", "0.50605875", "0.50605875", "0.50605875", "0.50535995" ]
0.0
-1
Runs the test methods of this class.
public static function main() { $suite = new TestSuite("Zend_Controller_Action_Helper_CacheTest"); $result = (new resources_Runner())->run($suite); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run_tests()\n {\n }", "public function run()\n {\n foreach ($this->getTestMethods() as $method)\n {\n $test = $method->getName();\n\n $this->info(sfInflector::humanize(sfInflector::underscore(substr($test, 4))));\n $this->setUp();\n $this->$test();\n $this->tearDown();\n }\n }", "public function do_tests()\n {\n foreach ($this->tests as $test) {\n $test->do_test($this->parse_script, $this->interpret_script);\n }\n }", "function run() {\r\n $methods = get_class_methods(get_class($this->_test_case));\r\n $invoker = &$this->_test_case->createInvoker();\r\n foreach ($methods as $method) {\r\n if (! $this->_isTest($method)) {\r\n continue;\r\n }\r\n if ($this->_isConstructor($method)) {\r\n continue;\r\n }\r\n $this->_scorer->paintMethodStart($method);\r\n if ($this->_scorer->shouldInvoke($this->_test_case->getLabel(), $method)) {\r\n $invoker->invoke($method);\r\n }\r\n $this->_scorer->paintMethodEnd($method);\r\n }\r\n }", "function runTests() {\n\t\tif(is_array($this->_aTests)){\n\t\t\tforeach($this->_aTests as $test){\n\t\t\t\t$this->_aResults[$test->sName] = array();\n\t\t\t\t$this->_aResults = $test->run($this->_aResults);\n\n\t\t\t}\n\t\t}\n\t}", "public function run () {\r\n print \"\\n\";\r\n \r\n # Console spacing.\r\n foreach ( $this->tests as $test ) {\r\n if ( strlen( $test->name() ) > $this->longest_test_name_length )\r\n $this->longest_test_name_length = strlen( $test->name() );\r\n }\r\n \r\n foreach ( $this->tests as $test ) {\r\n $test->run();\r\n $this->print_test( $test );\r\n }\r\n \r\n $this->print_summary_stats();\r\n }", "private static function test()\n {\n $files = ['TestCase'];\n $folder = static::$root.'Testing'.'/';\n\n self::call($files, $folder);\n }", "function test() {\n $testmethods = get_class_methods($this);\n foreach ($testmethods as $curtestmethod) {\n // filtering class methods by names. A test method name should start with 'data_for_test_'\n $pos = strstr($curtestmethod, 'data_for_test_');\n if ($pos != false && $pos == 0) {\n $data = $this->$curtestmethod();\n $regex = $data['regex'];\n $modifiers = null;\n if (array_key_exists('modifiers', $data)) {\n $modifiers = $data['modifiers'];\n }\n // iterate over available engines\n foreach ($this->engines as $enginename) {\n $matcher = new $enginename($regex, $modifiers);\n if (!$this->check_for_errors($matcher)) {\n // iterate over all tests\n foreach ($data['tests'] as $expected) {\n $str = $expected['str'];\n $matcher->match($str);\n $matchername = $matcher->name();\n $obtained = $matcher->get_match_results();\n // not the results are obtained, let us check them!\n if (array_key_exists('is_match', $expected)) {\n // compare with single result\n $ismatchpassed = false;\n $fullpassed = false;\n $indexfirstpassed = false;\n $indexlastpassed = false;\n $nextpassed = false;\n $leftpassed = false;\n $this->compare_results($matcher, $expected, $obtained, $ismatchpassed, $fullpassed, $indexfirstpassed, $indexlastpassed, $nextpassed, $leftpassed);\n $this->do_assertions($matchername, $regex, $str, $obtained, $ismatchpassed, $fullpassed, $indexfirstpassed, $indexlastpassed, $nextpassed, $leftpassed);\n } else {\n // compare with multiple results\n $ismatchpassed = array();\n $fullpassed = array();\n $indexfirstpassed = array();\n $indexlastpassed = array();\n $nextpassed = array();\n $leftpassed = array();\n $indexmatch = array(); // index of $expecter['results'] which match obtained $index_first and $index_last\n $passed = false;\n foreach ($expected['results'] as $key=>$curexpected) {\n $ismatchpassed[$key] = false;\n $fullpassed[$key] = false;\n $indexfirstpassed[$key] = false;\n $indexlastpassed[$key] = false;\n $nextpassed[$key] = false;\n $leftpassed[$key] = false;\n $passed = $passed || $this->compare_results($matcher, $curexpected, $obtained, $ismatchpassed[$key], $fullpassed[$key], $indexfirstpassed[$key], $indexlastpassed[$key], $nextpassed[$key], $leftpassed[$key]);\n if ($indexfirstpassed[$key] && $indexlastpassed[$key]) {\n $indexmatch[] = $key;\n }\n }\n $this->assertTrue($passed, \"$matchername failed on regex '$regex' and string '$str'\");\n // if the test is not passed - display obtained results\n if (!$passed) {\n // if some indexes were matched - display other fields not matched\n foreach ($indexmatch as $key) {\n $number = $key + 1;\n echo \"Results of comparison for the $number possible result:<br/>\";\n $this->do_assertions($matchername, $regex, $str, $obtained, $ismatchpassed[$key], $fullpassed[$key], $indexfirstpassed[$key], $indexlastpassed[$key], $nextpassed[$key], $leftpassed[$key], true);\n echo '<br/>';\n }\n // if indexes were not matched at all - just print the obtained result\n if (count($indexmatch) == 0) {\n echo \"Indexes not matched at all. Obtained result is:<br/>\";\n echo 'is_match = ' . $obtained['is_match']; echo '<br/>';\n echo 'full = ' . $obtained['full']; echo '<br/>';\n if (array_key_exists('index_first', $obtained)) {\n echo 'index_first = '; print_r($obtained['index_first']); echo '<br/>';\n }\n if (array_key_exists('index_last', $obtained)) {\n echo 'index_last = '; print_r($obtained['index_last']); echo '<br/>';\n }\n if (array_key_exists('next', $obtained)) {\n echo 'next = ' . $obtained['next'] . '<br/>';\n }\n if (array_key_exists('left', $obtained)) {\n echo 'left = ' . $obtained['left'] . '<br/>';\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }", "function run()\n\t{\n\t\t$arguments = array();\n\n\t\tif ($this->_options['help']) {\n\t\t\t$this->_doHelp();\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->_options['testdox']) {\n\t\t\t$arguments['printer'] = new PHPUnit_Util_TestDox_ResultPrinter_Text;\n\t\t}\n\n\t\tif ($this->_options['group']) {\n\t\t\t$arguments['groups'] = explode( ',', $this->_options['group'] );\n\t\t}\n\n\t\tif ($this->_options['exclude-group']) {\n\t\t\t$arguments['excludeGroups'] = explode( ',', $this->_options['exclude-group'] );\n\t\t}\n\n\t\t/*\n\t\t * Find all the matching files\n\t\t */\n\t\tif ($this->_startDir) {\n\t\t\t$dir = $this->_startDir;\n\t\t} else {\n\t\t\t$dir = '';\n\t\t}\n\t\tif ($this->_options['debug']) {\n\t\t\techo 'Discovering files in ' . $this->_startDir . self::$eol;\n\t\t}\n\t\t$testFiles = array();\n\t\t$this->_dirWalk($testFiles, '');\n\t\tif ($this->_options['debug']) {\n\t\t\techo 'Running ' . count($testFiles) . ' test files:' . self::$eol;\n\t\t\tforeach ($testFiles as $fid) {\n\t\t\t\techo $fid . self::$eol;\n\t\t\t}\n\t\t}\n\t\t$suite = new PHPUnit_Framework_TestSuite();\n\t\t$suite->addTestFiles($testFiles);\n\t\t// This will change when we have more than CLI support\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite, $arguments);\n\t}", "public function run()\n {\n $this->setUp();\n foreach ($this->getMethods() as $test) {\n $this->$test();\n }\n $this->tearDown();\n return $this;\n }", "public function run() {\n Preview::$config->reporter->before_suite($this->result);\n\n if ($this->runnable()) {\n $this->timer->start();\n $this->extend_context_with_parent();\n\n // run before hooks if error occured\n // force all its children tests set to error.\n try {\n $this->run_before();\n } catch (\\Exception $e) {\n $this->force_error($e);\n }\n\n // run all its children test cases/suites.\n foreach ($this->cases as $case) {\n $case->run();\n }\n foreach ($this->suites as $suite) {\n $suite->run();\n }\n\n // run after hooks.\n // do not handle any exceptions,\n // since reporter has printed results out.\n $this->run_after();\n $this->finish();\n\n $this->timer->stop();\n }\n\n Preview::$config->reporter->after_suite($this->result);\n }", "public function run()\n {\n // set up the test suite\n $this->setUp();\n\n // run each test\n foreach ($this->getClasses() as $test) {\n $test = new $test;\n \n // depending on what is asserted, we hadnle it differently\n try {\n $test->run();\n $this->assertions = array_merge($this->assertions, $test->assertions());\n } catch (Testes_UnitTest_FatalAssertion $e) {\n $this->assertions[] = $e;\n $test->tearDown();\n $this->tearDown();\n return $this;\n } catch (Exception $e) {\n $test->tearDown();\n $this->tearDown();\n throw $e;\n }\n }\n\n // tear down the suite\n $this->tearDown();\n\n return $this;\n }", "public function run(){\r\n\t\t\t// initialize\r\n\t\t\t$this->_reporter->init();\r\n\t\t\t$this->_start_listening();\r\n\t\t\t// load\r\n\t\t\tforeach($this->_files as $file){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinclude_once($file);\r\n\t\t\t\t}catch(Exception $e){\r\n\t\t\t\t\t$this->_reporter->handle_exception($e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$ignore = new Testcaser_Testase(null);\r\n\t\t\t$ignore = get_class_methods($ignore);\r\n\t\t\t// run\r\n\t\t\tforeach(get_declared_classes() as $class){\r\n\t\t\t\tif(is_subclass_of($class, 'Testcaser_Testase')){\r\n\t\t\t\t\t$inst = new $class($this->_reporter);\r\n\t\t\t\t\tforeach(get_class_methods($inst) as $mtd){\r\n\t\t\t\t\t\tif(!in_array($mtd, $ignore))$inst->$mtd();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// finalize\r\n\t\t\t$this->_stop_listening();\r\n\t\t\t$this->_reporter->fini();\r\n\t\t\treturn $this->_reporter->result();\r\n\t\t}", "public function testMain()\n {\n echo \"\\n >----------- Test Main : ---------> \\n\";\n// $this->getRandomNumber();\n// $this->getLoggedUserMail();\n// $this->saveVerificationCode();\n// $this->verification();\n// $this->checkEmailVerification();\n// $this->checkSendCode();\n }", "function test_all () {\n\n\t\t$this->layout = 'test';\n\n\t\t$tests_folder = new Folder('../tests');\n\n\t\t$results = array();\n\t\t$total_errors = 0;\n\t\tforeach ($tests_folder->findRecursive('.*\\.php') as $test) {\n\t\t\tif (preg_match('/^(.+)\\.php/i', basename($test), $r)) {\n\t\t\t\trequire_once($test);\n\t\t\t\t$test_name = Inflector::Camelize($r[1]);\n\t\t\t\tif (preg_match('/^(.+)Test$/i', $test_name, $r)) {\n\t\t\t\t\t$module_name = $r[1];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$module_name = $test_name;\n\t\t\t\t}\n\t\t\t\t$suite = new TestSuite($test_name);\n\t\t\t\t$result = TestRunner::run($suite);\n\n\t\t\t\t$total_errors += $result['errors'];\n\n\t\t\t\t$results[] = array(\n\t\t\t\t\t'name'=>$module_name,\n\t\t\t\t\t'result'=>$result,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t$this->set('success', !$total_errors);\n\t\t$this->set('results', $results);\n\t}", "public function run ()\n { \n $this->fireCallback (self::TEST_SUITE_BEFORE);\n \n foreach ($this->getTestCases () as $name => $testCase)\n {\n $this->fireCallback (self::TEST_CASE_BEFORE);\n \n $this->_switchTestCase ($name);\n $testCase ($this);\n \n $this->fireCallback (self::TEST_CASE_AFTER);\n }\n \n $this->fireCallback (self::TEST_SUITE_AFTER);\n \n // I want to override $this\n $isolation = function ($structure, $suiteName)\n {\n require_once __DIR__ . '/views/main.php';\n };\n \n $isolation ($this->getAssertions (), $this->getName ());\n }", "private function runTests(){\n $process = new Process(['./vendor/bin/phpunit --filter '.$this->params['model_name'].'Test']);\n $process->start();\n foreach($process as $type => $data){\n if($process::OUT !== $type){\n $this->error($data);\n continue;\n }\n $this->info($data);\n }\n }", "protected function runTest ()\n {\n \n // Check if test case has name, if not throw\n // CIUnit_Framework_Exception_CIUnitException\n if (NULL === $this->name) {\n throw new CIUnit_Framework_Exception_CIUnitException(\n 'name must not be null');\n }\n \n // Try to create new refection of this class and assign method\n try {\n \n $class = new ReflectionClass($this);\n $method = $class->getMethod($this->getName());\n } catch (ReflectionException $e) {\n $this->fail($e->getMessage());\n }\n \n // invoke method through reflection invokeArgs\n $testResult = NULL;\n try {\n $testResult = $method->invokeArgs($this, array());\n // $this->AddAssertionCount(CIUnit_Framework_Assert::getAssertionCount());\n } // catch exception if thrown\n catch (Exception $e) {\n $check = FALSE;\n \n if (is_string($this->expectedException)) {\n $check = TRUE;\n \n if ($e instanceof CIUnit_Framework_Exception_CIUnitException) {\n $check = FALSE;\n }\n \n $exceptionReflector = new ReflectionClass(\n $this->expectedException);\n if ($exceptionReflector->isSubclassOf(\n 'CIUnit_Framework_Exception_CIUnitException') ||\n $this->expectedException ==\n 'CIUnit_Framework_Exception_CIUnitException') {\n $check = TRUE;\n }\n }\n \n if (TRUE == $check) {\n \n $constraint = new CIUnit_Framework_Constraint_Exception(\n $this->expectedException);\n $this->assertThat($e, $constraint);\n \n // TODO Assertion for message\n \n // TODO Assertion for code\n } else {\n throw $e;\n }\n }\n \n // return test result\n \n return $testResult;\n }", "public function run()\n {\n $this->call(TestCompanyForCompletedSeeder::class);\n $this->call(TestRoleForCompletedSeeder::class);\n $this->call(TestDepartmentForCompletedSeeder::class);\n $this->call(TestCategoriesForCompletedSeeder::class);\n $this->call(TestUserForCompletedSeeder::class);\n $this->call(TestUserCategoriesForCompletedSeeder::class);\n $this->call(TestSequenceTypesForCompletedSeeder::class);\n $this->call(TestSequencesForCompletedSeeder::class);\n $this->call(TestWidgetTypesForCompletedSeeder::class);\n $this->call(TestWidgetSettingsForCompletedSeeder::class);\n $this->call(TestWidgetSimpleQuestionForCompletedSeeder::class);\n $this->call(TestWidgetFreeTextQuestionForCompletedSeeder::class);\n $this->call(TestWidgetSliderQuestionForCompletedSeeder::class);\n $this->call(TestWidgetMediaQuestionForCompletedSeeder::class);\n $this->call(TestWidgetMediaAnswerQuestionForCompletedSeeder::class);\n $this->call(TestWidgetArticleForCompletedSeeder::class);\n $this->call(TestWidgetLinkExternalForCompletedSeeder::class);\n $this->call(TestWidgetLinkInternalForCompletedSeeder::class);\n $this->call(TestModulesForCompletedSeeder::class);\n $this->call(TestModuleSequencesForCompletedSeeder::class);\n $this->call(TestWidgetOnboardingForCompletedSeeder::class);\n $this->call(TestCoursesForCompletedSeeder::class);\n $this->call(TestCourseCategoriesForCompletedSeeder::class);\n $this->call(TestCompletedForCompletedSeeder::class);\n }", "public static function main() {\n\t\tTestRunner::run( self::suite() );\n\t}", "public static function run() {\n\t\t$errors = [];\n\t\t$testCnt = 0;\n\t\t$classCnt = 0;\n\t\t$methodCnt = 0;\n\t\t$path = static::getPath();\n\t\t$Folder = dir($path);\n\t\twhile ($className = $Folder->read()) {\n\t\t\tif (in_array($className, ['.', '..']));\n\t\t\telseif (!is_dir($classPath = $path . '/' . $className));\n\t\t\telse {\n\t\t\t\t$classCnt++;\n\t\t\t\t$ClassFolder = dir($classPath);\n\t\t\t\twhile ($methodName = $ClassFolder->read()) {\n\t\t\t\t\tif (in_array($methodName, ['.', '..']));\n\t\t\t\t\telseif (!is_dir($methodPath = $classPath . '/' . $methodName));\n\t\t\t\t\telse {\n\t\t\t\t\t\t$methodCnt++;\n\t\t\t\t\t\t$MethodFolder = dir($methodPath);\n\t\t\t\t\t\twhile ($testFname = $MethodFolder->read()) {\n\t\t\t\t\t\t\t$fullTestFname = $methodPath . '/' . $testFname;\n\t\t\t\t\t\t\tif (!is_file($fullTestFname));\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t$testData = require($fullTestFname);\n\t\t\t\t\t\t\t\t$result = static::_assert($testData);\n\t\t\t\t\t\t\t\t$testCnt++;\n\t\t\t\t\t\t\t\tif (!is_null($result)) {\n\t\t\t\t\t\t\t\t\t$result['filename'] = $testFname;\n\t\t\t\t\t\t\t\t\t$errors[] = $result;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn [\n\t\t\t'success' => count($errors) ? false : true,\n\t\t\t'testCnt' => $testCnt,\n\t\t\t'classCnt' => $classCnt,\n\t\t\t'methodCnt' => $methodCnt,\n\t\t\t'errors' => $errors,\n\t\t];\n\t}", "public static function run() {\n\t\t$dispatcher = new HHVMTestSuiteDispatcher();\n\t\t$dispatcher->dispatch();\n\t}", "public final function Execute()\n {\n $this->observer->OnStart( $this );\n\n try\n {\n foreach( $this->GetTests() as $testName => $methodInfo )\n {\n $method = $methodInfo[ 'method' ];\n $fixturesMethod = $methodInfo[ 'fixturesMethod' ];\n\n if( $fixturesMethod !== null )\n {\n $fixturesMethod->setAccessible( true );\n $fixtures = $fixturesMethod->invoke( $this );\n }\n else\n {\n $fixtures = null;\n }\n\n if( $fixtures === null )\n {\n // Execute without fixture\n $continue = $this->ExecuteTest( $method );\n }\n else\n {\n // Execute with fixtures\n foreach( $fixtures as $key => $value )\n {\n try\n {\n $continue = $this->ExecuteTest( $method, $key, $value );\n }\n catch( Exception $e )\n {\n Core::Fail( 'Test failed', 0, $e );\n }\n\n if( !$continue )\n {\n break;\n }\n }\n }\n\n if( !$continue )\n {\n break;\n }\n }\n }\n finally\n {\n $this->observer->OnEnd();\n }\n\n return $this->observer;\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "public static function main()\n {\n\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "abstract protected function doRun(array $testArgs);", "function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "public function test_all() {\n $obj = new My_task;\n \n echo \"Start test_reverse() <br>\";\n $obj->test_reverse();\n echo \"<br><br>\";\n \n echo \"Start test_is_palindrome() <br>\";\n $obj->test_is_palindrome();\n echo \"<br><br>\";\n \n echo \"Start test_encryption() <br>\";\n $obj->test_encryption(); \n echo \"<br><br>\";\n }", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "public function testRun()\n\t{\n\t\t$state = TestReflection::getValue($this->object, 'state');\n\n\t\t$state->expects($this->once())\n\t\t\t->method('run');\n\n\t\t$this->object->run();\n\t}", "public static function get_tests()\n {\n }", "static function main() {\n $suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n PHPUnit_TextUI_TestRunner::run( $suite);\n }", "static function main() {\n $suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n PHPUnit_TextUI_TestRunner::run( $suite);\n }", "abstract protected function run_tests($code, $testcases);", "public function __run()\n {\n $Reporter = new CakeXmlReporter('utf-8', array(\n 'app' => $this->Manager->appTest,\n 'plugin' => $this->Manager->pluginTest,\n 'group' => ($this->type === 'group'),\n 'codeCoverage' => $this->doCoverage\n ));\n\n if ($this->doCoverage) {\n if (!extension_loaded('xdebug')) {\n $this->out(__('You must install Xdebug to use the CakePHP(tm) Code Coverage Analyzation. Download it from http://www.xdebug.org/docs/install', true));\n $this->_stop(0);\n }\n }\n\n ob_start();\n\n try {\n if ($this->type == 'all') {\n $result = $this->Manager->runAllTests($Reporter);\n } else if ($this->type == 'group') {\n $ucFirstGroup = ucfirst($this->file);\n if ($this->doCoverage) {\n require_once CAKE . 'tests' . DS . 'lib' . DS . 'code_coverage_manager.php';\n CodeCoverageManager::init($ucFirstGroup, $Reporter);\n CodeCoverageManager::start();\n }\n $result = $this->Manager->runGroupTest($ucFirstGroup, $Reporter);\n } else {\n\n $folder = $folder = $this->__findFolderByCategory($this->category);\n $case = $this->__getFileName($folder, $this->isPluginTest);\n\n if ($this->doCoverage) {\n require_once CAKE . 'tests' . DS . 'lib' . DS . 'code_coverage_manager.php';\n CodeCoverageManager::init($case, $Reporter);\n CodeCoverageManager::start();\n }\n $result = $this->Manager->runTestCase($case, $Reporter);\n }\n } catch (Exception $e) {\n ob_get_clean();\n $this->out('Tests failed to run. ' . $e->getMessage());\n $this->_stop(1);\n }\n $xml = ob_get_clean();\n\n $xmlD = new DOMDocument();\n $xmlD->loadXML($xml);\n\n $xslt = new XSLTProcessor();\n $XSL = new DOMDocument();\n $XSL->load(dirname(__FILE__).DS.'xsl'.DS.'to-junit.xsl');\n $xslt->importStylesheet($XSL);\n $out = $xslt->transformToXML($xmlD);\n $time = time();\n\n file_put_contents(ROOT . DS . \"build\" . DS . \"logs\" . DS . \"junit-$time.xml\", $out);\n echo \"Done.\\n\";\n }", "public function run(): void\n {\n // Initial data\n $this->call(CodeMessagesTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(DomainsTableSeeder::class);\n $this->call(LanguagesTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(PluginUsagesTableSeeder::class);\n\n // Test data (account and user)\n //$this->call(AccountsTableSeeder::class);\n //$this->call(AccountWalletsTableSeeder::class);\n //$this->call(UsersTableSeeder::class);\n //$this->call(UserStatsTableSeeder::class);\n //$this->call(UserRolesTableSeeder::class);\n }", "public static function main() {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "public static function main() {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "protected function runTests()\n {\n ini_set('max_execution_time', 30);\n\n // Define our pass/fail messages for less typing\n define('__PASS', '<b><span style=\"color: green; \">Pass</span></b><br />');\n define('__WARN', '<b><span style=\"color: orange; \">Warn</span></b><br />');\n define('__FAIL', '<b><span style=\"color: red; \">Fail</span></b><br />');\n\n // Vars\n $errors = false;\n $warns = false;\n\n // Check Cache Folder Write Access\n $out = \" > Checking ASP URI...<br />\";\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- ASP folder is properly stored in www root. (www/ASP/): \";\n if (isset($_SERVER['REQUEST_URI']) && substr( $_SERVER['REQUEST_URI'], 0, 5 ) == \"/ASP/\")\n {\n\n $out .= __PASS;\n }\n else\n {\n $errors = true;\n $out .= __FAIL;\n }\n\n // Check Database Access\n $out .= \" > Checking Database...<br />\";\n $DB = Database::GetConnection('stats');\n if ($DB instanceof PDO)\n {\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Database Connection (\".Cfg::Get('db_host').\"): \".__PASS;\n\n // Check Database Version\n if (DB_VERSION != DB_EXPECTED_VERSION)\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Database version (\". DB_EXPECTED_VERSION .\"): \".__FAIL;\n else\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Database version (\". DB_EXPECTED_VERSION .\"): \".__PASS;\n }\n else\n {\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Database Connection (\".Cfg::Get('db_host').\"): \".__FAIL;\n $errors = true;\n }\n\n // Check Cache Folder Write Access\n $out .= \" > Checking System Cache...<br />\";\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- System Cache Path Writable (system/cache): \";\n $path = SYSTEM_PATH . DS .'cache'. DS;\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Check Config File Write Access\n $out .= \" > Checking System Config...<br />\";\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- System Config Path Writable (system/config): \";\n $path = SYSTEM_PATH . DS .'config'. DS;\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Config File Writable (system/config/config.php): \";\n if (!File::IsWritable( SYSTEM_PATH . DS .'config'. DS .'config.php' ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Check Log File Write Access\n $out .= \" > Checking System Log Files...<br />\";\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Stats Debug Log File Writable (system/logs/stats_debug.log): \";\n $log = SYSTEM_PATH . DS . 'logs' . DS . 'stats_debug.log';\n if (!File::IsWritable( $log ))\n {\n $out .= __WARN;\n $warns = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- ASP Debug Log File Writable (system/logs/asp_debug.log): \";\n $log = SYSTEM_PATH . DS . 'logs' . DS . 'asp_debug.log';\n if (!File::IsWritable( $log ))\n {\n $out .= __WARN;\n $warns = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- PHP Error Log File Writable (system/logs/php_errors.log): \";\n $log = SYSTEM_PATH . DS . 'logs' . DS . 'php_errors.log';\n if (!File::IsWritable( $log ))\n {\n $out .= __WARN;\n $warns = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // SNAPSHOTS\n $out .= \" > Checking SNAPSHOT Storage Paths...<br />\";\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- SNAPSHOT Temporary Path Writable (system/snapshots/unprocessed): \";\n $path = SYSTEM_PATH . DS .'snapshots'. DS .'unprocessed'. DS;\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Snapshot Archive Path\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- SNAPSHOT Processed Path Writable (system/snapshots/processed): \";\n $path = SYSTEM_PATH . DS .'snapshots'. DS .'processed'. DS;\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Snapshot Fail Path\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- SNAPSHOT Fail Path Writable (system/snapshots/failed): \";\n $path = SYSTEM_PATH . DS .'snapshots'. DS .'failed'. DS;\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Snapshot Un-Authorized store Path\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- SNAPSHOT Un-Authorized Path Writable (system/snapshots/unauthorized): \";\n $path = SYSTEM_PATH . DS .'snapshots'. DS .'unauthorized'. DS;\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Check Admin Backup Write Access\n $out .= \" > Checking Database Backup Storage Path...<br />\";\n $path = Path::Combine(SYSTEM_PATH, 'backups');\n $out .= \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Backup Path Writable ({$path}): \";\n if (!Directory::IsWritable( $path ))\n {\n $out .= __FAIL;\n $errors = true;\n }\n else\n {\n $out .= __PASS;\n }\n\n // Finish :)\n $out .= '</p>';\n\n // Determine if our save is a success\n echo json_encode(\n array(\n 'success' => ($errors == false),\n 'warnings' => $warns,\n 'html' => $out\n )\n );\n }", "public function test() {\n\t\t\t\t// self wird beim Kompilieren durch den Klassennamen ersetzt, in der es steht\n\t\t\t\tself::ausgabe();\n\t\t\t}", "public function testRun()\n {\n $scenario = new Hostingcheck_Scenario();\n $scenario->add(\n new Hostingcheck_Scenario_Group(\n 'group1',\n 'Group 1',\n new Hostingcheck_Scenario_Tests()\n )\n );\n $scenario->add(\n new Hostingcheck_Scenario_Group(\n 'group2',\n 'Group 2',\n new Hostingcheck_Scenario_Tests()\n )\n );\n\n $runner = new Hostingcheck_Runner($scenario);\n $results = $runner->run();\n $this->assertCount(2, $results);\n }", "public function testRuns()\n {\n $this->assertTrue(true);\n }", "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "public function run()\n {\n $this->output = new ConsoleOutput();\n\n $this->verifyTestDataIsBeingSeeded();\n\n /**\n * Seed models first, as order is important due to foreign key relations;\n * meta tables should already be seeded at this point through the InitialSeeder\n */\n foreach ($this->seed_tables as $table) {\n $this->seed($table);\n }\n }", "public function run() : void\n {\n if (!Employee::whereUsername('cashier')->first())\n $this->mockCashierEmployee();\n\n if (!Employee::whereUsername('rose')->first())\n $this->mockCashierEmployee('rose', \"Rose\", \"Petal\");\n\n if (!Employee::whereUsername('jack')->first())\n $this->mockCashierEmployee('jack', 'Jack', \"Stone\");\n }", "public function test()\n {\n $this->executeScenario();\n }", "public function runTests()\n {\n $this->testCase(1, array (1, 1));\n $this->testCase(2, array (1, 2));\n $this->testCase(3, array (2, 2));\n $this->testCase(4, array (2, 2));\n $this->testCase(5, array (2, 3));\n $this->testCase(6, array (2, 3));\n $this->testCase(7, array (3, 3));\n $this->testCase(8, array (3, 3));\n $this->testCase(9, array (3, 3));\n $this->testCase(10, array(2, 5));\n $this->testCase(11, array(3, 4));\n $this->testCase(12, array(3, 4));\n $this->testCase(13, array(4, 4));\n $this->testCase(14, array(4, 4));\n $this->testCase(15, array(4, 4));\n $this->testCase(16, array(4, 4));\n $this->testCase(17, array(3, 6));\n $this->testCase(18, array(3, 6));\n $this->testCase(19, array(4, 5));\n $this->testCase(20, array(4, 5));\n $this->testCase(21, array(3, 7));\n $this->testCase(22, array(5, 5));\n $this->testCase(23, array(5, 5));\n $this->testCase(24, array(5, 5));\n $this->testCase(25, array(5, 5));\n $this->testCase(26, array(4, 7));\n $this->testCase(27, array(4, 7));\n $this->testCase(28, array(4, 7));\n $this->testCase(29, array(5, 6));\n $this->testCase(30, array(5, 6));\n $this->testCase(31, array(4, 8));\n $this->testCase(32, array(4, 8));\n $this->testCase(33, array(6, 6));\n $this->testCase(34, array(6, 6));\n $this->testCase(35, array(6, 6));\n $this->testCase(36, array(6, 6));\n $this->testCase(37, array(5, 8));\n $this->testCase(38, array(5, 8));\n $this->testCase(39, array(5, 8));\n $this->testCase(40, array(5, 8));\n $this->testCase(41, array(6, 7));\n $this->testCase(42, array(6, 7));\n $this->testCase(43, array(5, 9));\n $this->testCase(44, array(5, 9));\n $this->testCase(45, array(5, 9));\n $this->testCase(46, array(7, 7));\n $this->testCase(47, array(7, 7));\n $this->testCase(48, array(7, 7));\n $this->testCase(49, array(7, 7));\n $this->testCase(50, array(5, 10));\n $this->testCase(51, array(6, 9));\n $this->testCase(52, array(6, 9));\n $this->testCase(53, array(6, 9));\n $this->testCase(54, array(6, 9));\n $this->testCase(55, array(7, 8));\n $this->testCase(56, array(7, 8));\n $this->testCase(57, array(6, 10));\n $this->testCase(58, array(6, 10));\n $this->testCase(59, array(6, 10));\n $this->testCase(60, array(6, 10));\n $this->testCase(61, array(8, 8));\n $this->testCase(62, array(8, 8));\n $this->testCase(63, array(8, 8));\n $this->testCase(64, array(8, 8));\n $this->testCase(65, array(6, 11));\n $this->testCase(66, array(6, 11));\n $this->testCase(67, array(7, 10));\n $this->testCase(68, array(7, 10));\n $this->testCase(69, array(7, 10));\n $this->testCase(70, array(7, 10));\n $this->testCase(71, array(8, 9));\n $this->testCase(72, array(8, 9));\n $this->testCase(73, array(7, 11));\n $this->testCase(74, array(7, 11));\n $this->testCase(75, array(7, 11));\n $this->testCase(76, array(7, 11));\n $this->testCase(77, array(7, 11));\n $this->testCase(78, array(9, 9));\n $this->testCase(79, array(9, 9));\n $this->testCase(80, array(9, 9));\n $this->testCase(81, array(9, 9));\n $this->testCase(82, array(7, 12));\n $this->testCase(83, array(7, 12));\n $this->testCase(84, array(7, 12));\n $this->testCase(85, array(8, 11));\n $this->testCase(86, array(8, 11));\n $this->testCase(87, array(8, 11));\n $this->testCase(88, array(8, 11));\n $this->testCase(89, array(9, 10));\n $this->testCase(90, array(9, 10));\n $this->testCase(91, array(7, 13));\n $this->testCase(92, array(8, 12));\n $this->testCase(93, array(8, 12));\n $this->testCase(94, array(8, 12));\n $this->testCase(95, array(8, 12));\n $this->testCase(96, array(8, 12));\n $this->testCase(97, array(10, 10));\n $this->testCase(98, array(10, 10));\n $this->testCase(99, array(10, 10));\n $this->testCase(100, array(10, 10));\n }", "public function run()\n {\n // 调用测试数据生成器容器\n $faker = app(Faker\\Generator::class);\n // 获取文章的 id\n $articles = App\\Models\\Article::released()->lists('id')->toArray();\n // 获取已激活用户的 id\n $commentators = App\\Models\\User::activated()->lists('id')->toArray();\n // 生成 100 个测试评论数据\n $comments = factory(App\\Models\\Comment::class)->times(100)->make()\n ->each(function($ele) use ($faker, $articles, $commentators) {\n $ele->user_id = $faker->randomElement($commentators);\n $ele->commentable_id = $faker->randomElement($articles);\n $ele->commentable_type = App\\Models\\Article::class;\n })->toArray();\n // 保存测试数据\n App\\Models\\Comment::insert($comments);\n }", "public function runTests() {\n $results = \"\";\n for ($i = 0; $i < sizeof($this->tests); $i++) {\n $results .= \"Test \" . ($i + 1) . \": \" . $this->tests[$i]->runTest() . \"<br>\";\n }\n return $results;\n }", "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_CustomFieldTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "public function run()\n {\n $this->call(specialites::class);\n $this->call(cancers::class);\n $this->call(organes::class);\n $this->call(wilayas::class);\n $this->call(dairas::class);\n $this->call(communes::class);\n $this->call(employes::class);\n $this->call(permissions::class);\n $this->call(roles::class);\n $this->call(users::class);\n }", "public function AllTests() {\n $this->TestSuite('All tests');\n }", "public function run()\n {\n factory(Visit::class, 100)\n -> make()\n -> each(function($vst) {\n $sui = Suite::inRandomOrder() -> first();\n $vst -> suite() -> associate($sui);\n $vst -> save();\n });\n }", "public function run()\n {\n $this->call([\n UsersSeeder::class,\n TestCategoriesSeeder::class,\n TestContentsSeeder::class,\n TestSeasonsSeeder::class,\n TestChaptersSeeder::class,\n TestCategoryContentSeeder::class\n ]);\n }", "function invoke($method) {\r\n $this->_test_case->setUp();\r\n $this->_test_case->$method();\r\n $this->_test_case->tearDown();\r\n }", "public function run()\n {\n $this->call(tableRole::class);\n $this->call(tableUser::class);\n $this->call(tableMaintainerRoles::class);\n $this->call(FormTableSeeder::class);\n $this->call(FormColumnTableSeeder::class);\n $this->call(FormColumnPilganTableSeeder::class);\n $this->call(FormContentTableSeeder::class);\n $this->call(seedContohContentForm::class);\n $this->call(seedDashboardElement::class);\n $this->call(partaiSeed::class);\n $this->call(calonDprSeed::class);\n }", "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_NotesTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "public function run()\n {\n // $this->call(AdminSeeder::class);\n // $this->call(StudentFaker::class);\n $this->call(TransactionFaker::class);\n // $this->call(BooksFaker::class);\n }", "public function testBasicTest()\n {\n\n }", "public function test_method()\n\t{\n\n\t}", "public function testGetAll() {\n }", "public function run()\n {\n// $this->Truncate();\n\n foreach ($this->classes as $class)\n {\n $this->call($class);\n }\n\n }", "public function testCoverAllMethods();", "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite(\"Zend_Server_Method_CallbackTest\");\n $result = PHPUnit_TextUI_TestRunner::run($suite);\n }", "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_ImageHelperTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "public function runTestSequence ()\n {\n $this->numberOfAssertions = 0;\n \n try {\n // Run setup\n $this->setUp();\n \n // Run test\n $this->result = $this->runtest();\n \n $this->status = 0; // Passed\n } // Catch for incomplete test\n catch (CIUnit_Framework_Exception_IncompleteTest $e) {\n $this->status = 2; // Incomplete\n $this->statusMessage = $e->getMessage();\n } \n\n // Catch for skipped test\n catch (CIUnit_Framework_Exception_SkippedTest $e) {\n $this->status = 1; // Skipped\n $this->statusMessage = $e->getMessage();\n } \n\n // Catch for Assertion Failure\n catch (CIUnit_Framework_Exception_AssertionFailed $e) {\n $this->status = 3; // Failure\n $this->statusMessage = $e->getMessage();\n } // Catch for Error\n catch (Exception $e) {\n $this->status = 4; // Error\n $this->statusMessage = $e->getMessage();\n }\n \n // revert fictures\n try {\n $this->tearDown();\n } // catch any errors\n catch (Exception $error) {\n if (! isset($e))\n $e = $error;\n }\n \n // If there is exception caught throw it\n if (isset($e))\n throw $e;\n }", "public function run()\n {\n $this->call([\n AddPermissionInDB::class,\n UserPermssionSeeder::class,\n AdminSeed::class,\n TestPost::class,\n TestPostCategory::class,\n TestCategory::class\n ]);\n }", "public function run()\n {\n $this->call(CountriesSeed::class);\n $this->call(ReplayMapsSeeding::class);\n $this->call(ReplayTypesSeeding::class);\n $this->call(ForumSectionSeeding::class);\n $this->call(UserRoleSeeding::class);\n $this->call(GameVersionSeeding::class);\n }", "public function run()\n {\n //base seeds\n $this->call(RoleSeed::class);\n $this->call(UserSeed::class);\n $this->call(PointSeed::class);\n $this->call(LevelSeed::class);\n\n // $this->call(CourseSeed::class);\n // $this->call(LessonSeed::class);\n\n\n // $this->call(AnswerSeed::class);\n // $this->call(QuizSeed::class);\n // $this->call(QuestionSeed::class);\n // $this->call(TemplateSeed::class);\n // $this->call(CertificationSeed::class);\n \n //relation seeds\n // $this->call(CourseLessonSeed::class);\n // $this->call(CourseQuizSeed::class);\n // $this->call(QuizQuestionSeed::class);\n // $this->call(QuestionAnswerSeed::class);\n //$this->call(DataCourseSeed::class);\n //$this->call(DataLessonSeed::class);\n }", "public static function main() {\n require_once 'PHPUnit/TextUI/TestRunner.php';\n\n $suite = new PHPUnit_Framework_TestSuite('MyClassTest');\n $result = PHPUnit_TextUI_TestRunner::run($suite);\n }", "public function run(){\n\t\t$this->test[]=rand(0, 10);\n\t}", "public function run()\n {\n \t// $this->call(Roles::class);\n \t// $this->call(Barangays::class); \n // $this->call(Cities::class); \n \t// $this->call(Users::class);\n \t// $this->call(ClassesforMedicines::class);\n // $this->call(Medicines::class);\n // $this->call(MedicineDosages::class);\n // $this->call(SeniorCitizenNumbers::class) ; \n $this->call(StatusesSeeder::class) ; \n $this->call(DeliveryStatusCodesSeeder::class) ; \n\n\n }", "public function run()\n {\n $this->call(baihat_casi::class);\n $this->call(baihatduyet::class);\n $this->call(users::class);\n $this->call(theloai::class);\n $this->call(casi::class);\n $this->call(baihatmoi::class);\n $this->call(baihathot::class);\n $this->call(baihathot_casi::class);\n }", "public function run() {\n\t\t$this->checkForHelp();\n\n\t\ttry {\n\t\t\t$this->getAndRunTasks();\n\t\t}\n\t\tcatch(Exception $e) {\n\t\t\t$this->printException($e);\n\t\t}\n\t}", "public static function main()\n\t{\n\t\trequire_once \"PHPUnit/TextUI/TestRunner.php\";\n\n\t\t$suite = new PHPUnit_Framework_TestSuite(\"RelationsTest\");\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "public function executeIndex ()\n {\n// $loader->load();\n $tree = array();\n /*$added_tests = array();\n foreach ($this->_getTests($loader->suite()) as $test) {\n $reflection = new ReflectionClass($test);\n $test = $reflection->getFileName();\n $test = substr($test, strpos($test, 'phpunit/') + 8, strlen($test));\n $path = dirname($reflection->getFileName());\n $path = substr($path, strpos($path, 'phpunit/') + 8, strlen($path));\n $path = implode('\"][\"', explode('/', $path));\n if (! in_array($test, $added_tests)) {\n eval(\"\\$tree[\\\"{$path}\\\"][] = \\$test;\");\n $added_tests[] = $test;\n }\n }*/\n $this->tree = $tree;\n \n \n $this->fixtureslist = $this->_getFixturesList();\n }", "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 ActiveSync Backend SyncState Tests');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "public function run()\n {\n $test = new Test2();\n $test->content = \"あ\";\n $test->save();\n \n $test = new Test2();\n $test->content = \"か\";\n $test->save();\n \n $test = new Test2();\n $test->content = \"さ\";\n $test->save();\n \n $test = new Test2();\n $test->content = \"た\";\n $test->save();\n \n $test = new Test2();\n $test->content = \"な\";\n $test->save();\n \n $test = new Test2();\n $test->content = \"は\";\n $test->save();\n }", "public function run()\n {\n\t $this->call(seeder_category::class);\n\t $this->call(seeder_e::class);\n\t $this->call(seeder_product::class);\n }", "public function runAll()\n {\n $this->init()->run()->done();\n }", "public function run()\n {\n $this->clear();\n\n $this->call(FullDBTestSeeder::class);\n $this->call(\\Tests\\Seeds\\UsersTableSeeder::class);\n\n $this->call(PaysystemSeeder::class);\n $this->call(PaysystemDataSeeder::class);\n $this->call(PublishingTestSeeder::class);\n $this->call(SetReleasesYear::class);\n $this->call(CreateSubscriptions::class);\n $this->call(RolesAndPermissionsBaseSeeder::class);\n $this->call(UserSearchTableSeeder::class);\n\n $this->call(PartnersTableSeeder::class);\n $this->call(PartnerUsersTableSeeder::class);\n $this->call(QuotasTableSeeder::class);\n $this->call(DevicesTableSeeder::class);\n }", "public function run()\n {\n foreach($this->seeds as $seed)\n {\n call_user_func([$this, $seed]);\n }\n }", "public function run() {\r\n Eloquent::unguard();\r\n $this->call('TestUserTableSeeder');\r\n $this->call('ItemCategoriesTableSeeder');\r\n $this->call('TestItemsTableSeeder');\r\n // $this->call('TestInventoryItemTableSeeder');\r\n $this->call('TestTransactionTableSeeder');\r\n $this->call('TestPurchasedItemsTableSeeder');\r\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $this->call([\n users::class,\n\n sys_application::class,\n sys_email::class,\n\n sys_modules::class,\n sys_privileges::class,\n sys_privileges_roles::class,\n \n mrr_building::class,\n mrr_meeting_room::class,\n ]);\n }", "public static function main()\n {\n $suite = new TestSuite(\"Zend_Dom_QueryTest\");\n $result = (new resources_Runner())->run($suite);\n }", "public function run()\n {\n $this->call(Database\\Seeds\\Accounts::class);\n $this->call(Database\\Seeds\\BillStatuses::class);\n $this->call(Database\\Seeds\\Categories::class);\n $this->call(Database\\Seeds\\Currencies::class);\n $this->call(Database\\Seeds\\InvoiceStatuses::class);\n $this->call(Database\\Seeds\\Modules::class);\n $this->call(Database\\Seeds\\Settings::class);\n }", "public function test() {\n\n\t}", "protected function _initTest(){\n }", "public function run()\n {\n $this->call([\n sub_type::class,\n sub_contract_type::class,\n cvFormatSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(Seeder_000001_00_XCountry::class);\n $this->call(Seeder_000002_00_XAPIKey::class);\n $this->call(Seeder_000003_00_XConfigItem::class);\n }", "public function run()\n {\n $this->call(generate_users::class);\n $this->call(generete_article_table::class);\n $this->call(genarete_pivot_table::class);\n $this->call(genarete_pages_table::class);\n }", "public function run()\n {\n foreach ($this->mocks as $mock) {\n Post::create($mock);\n }\n }", "public static function main()\n {\n $suite = new TestSuite(__CLASS__);\n $result = (new resources_Runner())->run($suite);\n }" ]
[ "0.85126543", "0.84464735", "0.77353823", "0.7720617", "0.76878804", "0.7650862", "0.75040054", "0.74495995", "0.73598903", "0.7330883", "0.7174001", "0.71500635", "0.7143403", "0.6907078", "0.68870795", "0.6883098", "0.6878761", "0.6871641", "0.68528384", "0.68415934", "0.6839393", "0.6789298", "0.6749861", "0.673908", "0.673908", "0.673908", "0.67312926", "0.672401", "0.6719627", "0.67131996", "0.669565", "0.6692722", "0.6692722", "0.6692722", "0.6692722", "0.6692722", "0.6692722", "0.66652477", "0.6639827", "0.6636212", "0.6636212", "0.66195685", "0.6618439", "0.66155285", "0.66142285", "0.66142285", "0.6597296", "0.65694636", "0.6528806", "0.65266466", "0.65246224", "0.64973223", "0.6460686", "0.64547217", "0.64543533", "0.6453217", "0.6431639", "0.6421738", "0.6421285", "0.6416285", "0.6415814", "0.63841456", "0.6346825", "0.6332894", "0.6330754", "0.6307662", "0.6304558", "0.62891454", "0.62883496", "0.62805295", "0.62784284", "0.62773556", "0.6272491", "0.6270391", "0.6270233", "0.6253252", "0.6251721", "0.6248764", "0.6248093", "0.62385887", "0.62369937", "0.6230542", "0.62272114", "0.62210983", "0.6220188", "0.62123793", "0.62121314", "0.61991656", "0.6191028", "0.6187304", "0.6174188", "0.6170999", "0.6169465", "0.61648405", "0.615776", "0.6138705", "0.61335135", "0.6126936", "0.61258215", "0.6117217", "0.611657" ]
0.0
-1
Data provider for testEncodedCacheIdsAreUsedConsistently
public function dataprovider_testEncodedCacheIdsAreUsedConsistently() { return [[true], [false]]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetCacheKey()\n {\n $dbLoader = new DatabaseTwigLoader;\n $this->assertEquals('my_cache_key', $dbLoader->getCacheKey('my_cache_key'));\n }", "protected static function getCacheIdentifier() {}", "public function setUpCache();", "public function testCacheGet() \n\t{\n\t\t$key = uniqid('key_');\n\t\t$value = uniqid('value_');\n\t\t$this->assertFalse(\\Cache\\Cache::get($key));\n\n\t\t\\Cache\\Cache::set($key, $value);\n\t\t$this->assertEquals(\\Cache\\Cache::get($key), $value);\n\t}", "public function isProvidersCached(): bool;", "public function testCacheableMetadataProvider() {\n $cacheable_metadata = function ($metadata) {\n return CacheableMetadata::createFromRenderArray(['#cache' => $metadata]);\n };\n\n return [\n [\n $cacheable_metadata(['contexts' => ['languages:language_interface']]),\n ['node--article' => 'body'],\n ],\n ];\n }", "public function testCacheEnabledKeyFound()\n\t{\n\t\t$latte = $this->createLatte();\n\n\t\t/** @var Nette\\Caching\\IStorage|Mockery\\Mock $cacheStorage */\n\t\t$cacheStorage = Mockery::mock(Nette\\Caching\\IStorage::class);\n\t\t$cacheStorage\n\t\t\t->shouldReceive('read')\n\t\t\t->once()\n\t\t\t->andReturn('/base/path/fixtures/assets/CACHED/main.fc730c89c4255.js');\n\n\t\t$latte->addProvider('cacheStorage', $cacheStorage);\n\n\t\t$template = '{asset \"assets/compiled/main.js\"}';\n\t\tAssert::same(\n\t\t\t'/base/path/fixtures/assets/CACHED/main.fc730c89c4255.js',\n\t\t\t$latte->renderToString($template)\n\t\t);\n\t}", "public function testCaseSensitiveIdentifiers() {\n\t\t$result = Inspector::type('lithium\\storage\\Cache');\n\t\t$expected = 'class';\n\t\t$this->assertEqual($expected, $result);\n\n\t\t$result = Inspector::type('lithium\\storage\\cache');\n\t\t$expected = 'namespace';\n\t\t$this->assertEqual($expected, $result);\n\t}", "public function testCacheEnabledKeyMissing()\n\t{\n\t\t$latte = $this->createLatte();\n\n\t\t/** @var Nette\\Caching\\IStorage|Mockery\\Mock $cacheStorage */\n\t\t$cacheStorage = Mockery::mock(Nette\\Caching\\IStorage::class);\n\t\t$cacheStorage\n\t\t\t->shouldReceive('read')\n\t\t\t->once()\n\t\t\t->andReturn(null);\n\t\t$cacheStorage\n\t\t\t->shouldReceive('write')\n\t\t\t->with(Mockery::any(), '/base/path/fixtures/assets/compiled/main.fc730c89c4255.js', Mockery::any())\n\t\t\t->once()\n\t\t\t->andReturn(null);\n\n\t\t$latte->addProvider('cacheStorage', $cacheStorage);\n\n\t\t$template = '{asset \"assets/compiled/main.js\"}';\n\t\tAssert::same(\n\t\t\t'/base/path/fixtures/assets/compiled/main.fc730c89c4255.js',\n\t\t\t$latte->renderToString($template)\n\t\t);\n\t}", "public function cacheProvider()\n {\n return [\n [new ArrayCache()],\n [new NamespaceCache(new ArrayCache(), 'other')],\n ];\n }", "abstract protected function cacheData();", "public function getCacheAdapter();", "public function enableCachedIdsCheckMode()\n\t{\n\t\t$this->_cached_ids_mode = true;\n\t}", "public function makeCacheHash() {}", "public function hashDataProvider() {}", "protected static function getBaseTcaCacheIdentifier() {}", "public function get_test_page_cache()\n {\n }", "public function testGetCacheKey(): void\n {\n // If I have a method\n $uut = $this->getMethod($this->method);\n\n // I expect the active modules tracker key to be returned\n $moduleManager = $this->getMockManager($this->method);\n $expected = \"modules-cache\";\n $this->assertSame($expected, $uut->invoke($moduleManager));\n }", "public function getFromCache() {}", "public function testCacheContainer(): void\n {\n $this->config['doctrine']['cache']['array']['class_name'] = 'TestAssets\\ArrayCache';\n\n $factory = new CacheFactory('array');\n $cache = $factory($this->getContainer(), 'doctrine.cache.array');\n\n $this->assertInstanceOf(CacheProvider::class, $cache);\n $this->assertInstanceOf(ArrayCache::class, $cache);\n }", "public function cache() {\n if(!array_key_exists($this->steamId64, self::$steamIds)) {\n self::$steamIds[$this->steamId64] = $this;\n if(!empty($this->customUrl) &&\n !array_key_exists($this->customUrl, self::$steamIds)) {\n self::$steamIds[$this->customUrl] = $this;\n }\n }\n }", "public function test_page_cache()\n {\n }", "private function getCacheKey(): string\n {\n return $this->webserviceId.$this->cacheKey;\n }", "public function cacheRevalidationDataProvider() {\n\t\treturn array (\n\t\t\t\t// Forces revalidation that passes\n\t\t\t\tarray (\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\"Pragma: no-cache\\r\\n\\r\\n\",\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\r\\nDate: \" . $this->getHttpDate ( '-100 hours' ) . \"\\r\\nContent-Length: 4\\r\\n\\r\\nData\",\n\t\t\t\t\t\t\"HTTP/1.1 304 NOT MODIFIED\\r\\nCache-Control: max-age=2000000\\r\\nContent-Length: 0\\r\\n\\r\\n\" \n\t\t\t\t),\n\t\t\t\t// Forces revalidation that overwrites what is in cache\n\t\t\t\tarray (\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t\"\\r\\n\",\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\r\\nCache-Control: must-revalidate, no-cache\\r\\nDate: \" . $this->getHttpDate ( '-10 hours' ) . \"\\r\\nContent-Length: 4\\r\\n\\r\\nData\",\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\r\\nContent-Length: 5\\r\\n\\r\\nDatas\",\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\r\\nContent-Length: 5\\r\\nDate: \" . $this->getHttpDate ( 'now' ) . \"\\r\\n\\r\\nDatas\" \n\t\t\t\t),\n\t\t\t\t// Throws an exception during revalidation\n\t\t\t\tarray (\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t\"\\r\\n\",\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\r\\nCache-Control: no-cache\\r\\nDate: \" . $this->getHttpDate ( '-3 hours' ) . \"\\r\\n\\r\\nData\",\n\t\t\t\t\t\t\"HTTP/1.1 500 INTERNAL SERVER ERROR\\r\\nContent-Length: 0\\r\\n\\r\\n\" \n\t\t\t\t),\n\t\t\t\t// ETag mismatch\n\t\t\t\tarray (\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t\"\\r\\n\",\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\r\\nCache-Control: no-cache\\r\\nETag: \\\"123\\\"\\r\\nDate: \" . $this->getHttpDate ( '-10 hours' ) . \"\\r\\n\\r\\nData\",\n\t\t\t\t\t\t\"HTTP/1.1 304 NOT MODIFIED\\r\\nETag: \\\"123456\\\"\\r\\n\\r\\n\" \n\t\t\t\t) \n\t\t);\n\t}", "public function testPersistanceGet() {\n\t\t// the values are still retrievable.\n\t\t$this->assertEquals( 'remember', $this->cache->get( 'keep' ) );\n\t}", "protected function initializeCache() {}", "protected function initializeCache() {}", "protected function _getAdditionalCacheId()\n\t{\n\t\treturn md5('CONTAINER_ORDERS_' . $this->_placeholder->getAttribute('cache_id'));\n\t}", "public function testCacheReturn()\n {\n $jwks_url = 'https://localhost/.well-known/jwks.json';\n $kid = '__test_kid_2__';\n $cache_value = '__cached_value__';\n $set_spy = $this->once();\n $get_spy = $this->any();\n\n // Mock the CacheHandler interface.\n $cache_handler = $this->getMockBuilder(CacheHandler::class)\n ->getMock();\n\n // The set method should only be called once.\n $cache_handler->expects($set_spy)\n ->method('set')\n ->willReturn( null );\n\n // The get method should be called once and return no cache first, then a cache value after.\n $cache_handler->expects($get_spy)\n ->method('get')\n ->will( $this->onConsecutiveCalls( null, $cache_value ) );\n\n $jwksFetcher = $this->getStub($cache_handler);\n\n $pem_not_cached = $jwksFetcher->requestJwkX5c( $jwks_url, $kid );\n $this->assertNotEmpty( $pem_not_cached );\n\n $pem_cached = $jwksFetcher->requestJwkX5c( $jwks_url, $kid );\n $this->assertEquals( $cache_value, $pem_cached );\n\n // Test that the set method was called with the correct parameters.\n $set_invocations = $set_spy->getInvocations();\n $this->assertEquals( $jwks_url.'|'.$kid, $set_invocations[0]->parameters[0] );\n $this->assertEquals( $pem_not_cached, $set_invocations[0]->parameters[1] );\n\n // Test that the get method was only called twice.\n $this->assertEquals( 2, $get_spy->getInvocationCount() );\n }", "public function test_caches_and_uses_cache()\n {\n $this->doRequest('/')->assertResponseOk()->assertNotHeaderKeys(['X-Cache', 'X-Cache-ID']);\n\n $this->assertTrue($this->di('redis')->exists($this->cacheMw->getLastKey()));\n\n // req #2 cached\n $this->doRequest('/')->assertResponseOk()->assertHeaderKeys(['X-Cache', 'X-Cache-ID']);\n\n $this->di('redis')->delete($this->cacheMw->getLastKey());\n }", "public function testEventIdFromNameCaches()\n\t{\n\t\t$application_id = 1;\n\t\t$event_name = \"eventIdFromNameCache\";\n\t\t$stat_name_id = 600;\n\t\t$now = \"String for date\";\n\t\t$data_rows = new ArrayIterator();\n\t\t$row = new stdClass();\n\t\t$row->stat_name_id = $stat_name_id;\n\t\t$data_rows->append($row);\n\t\t\n\t\t$history_model = $this->getMock(\n\t\t\t\t\"DB_Models_WritableModel_1\", array(), array(), \"\", FALSE);\n\t\t$history_model\n\t\t\t->expects($this->exactly(2))\n\t\t\t->method(\"loadAllBy\")\n\t\t\t->will($this->returnValue($data_rows));\n\t\t\n\t\t$name_model = $this->getMock(\n\t\t\t\t\"DB_Models_WritableModel_1\", array(), array(), \"\", FALSE);\n\t\t$name_model\n\t\t\t->expects($this->once())\n\t\t\t->method(\"loadByKey\")\n\t\t\t->with(array($stat_name_id))\n\t\t\t->will($this->returnValue(TRUE));\n\t\t$name_model\n\t\t\t->expects($this->once())\n\t\t\t->method(\"__get\")\n\t\t\t->with($this->equalTo(\"name\"))\n\t\t\t->will($this->returnValue(strtolower($event_name)));\n\t\t\n\t\t$event_history = $this->getMock(\n\t\t\t\"VendorAPI_StatPro_Unique_ApplicationEventHistory\",\n\t\t\tarray(\"getNowString\", \"getEventHistoryModel\", \"getEventNameModel\"),\n\t\t\tarray(),\n\t\t\t\"\",\n\t\t\tFALSE);\n\t\t$event_history\n\t\t\t->expects($this->never())\n\t\t\t->method(\"getNowString\")\n\t\t\t->will($this->returnValue($now));\n\t\t$event_history\n\t\t\t->expects($this->exactly(2))\n\t\t\t->method(\"getEventHistoryModel\")\n\t\t\t->will($this->returnValue($history_model));\n\t\t$event_history\n\t\t\t->expects($this->once())\n\t\t\t->method(\"getEventNameModel\")\n\t\t\t->will($this->returnValue($name_model));\n\n\t\t$this->assertTrue(\n\t\t\t$event_history->containsEvent($event_name, $application_id));\n\t\t$this->assertTrue(\n\t\t\t$event_history->containsEvent($event_name, 0));\n\t}", "public function testPropertyExpiresInDataProvider()\n {\n $testData = [];\n\n $testModelKeys = ['expiresIn', 'expiresIn', ];\n\n foreach ($testModelKeys as $testModelKey) {\n $testData[] = [$testModelKey, self::DEFAULT_TOKEN_EXPIRES_IN_VALUE, self::DEFAULT_TOKEN_EXPIRES_IN_VALUE];\n $testData[] = [$testModelKey, 500, 500];\n $testData[] = [$testModelKey, null, 0];\n }\n\n return $testData;\n }", "public static function getCacheProvider()\n {\n if (!self::$provider) {\n self::$provider = new ArrayCache();\n }\n\n return self::$provider;\n }", "public function extensionKeyDataProvider() {}", "function &createCache() {}", "public function testCaching()\n {\n if (false == $this->fixture->cacheEnabled()) {\n $this->markTestSkipped('Skip tests of ARC2_Store caching, because cache is not enabled.');\n }\n\n // add test data\n $this->fixture->query('INSERT INTO <http://example.com/> {\n <http://s> <http://p1> \"baz\" .\n }');\n\n $selectQuery = 'SELECT * FROM <http://example.com/> {?s ?p ?o.}';\n\n // check that query is not known in cache\n $this->assertFalse($this->dbConfig['cache_instance']->has(\\hash('sha1', $selectQuery)));\n\n $result = $this->fixture->query($selectQuery);\n unset($result['query_time']);\n $this->assertEquals(1, \\count($result['result']['rows']));\n\n $this->assertTrue($this->dbConfig['cache_instance']->has(\\hash('sha1', $selectQuery)));\n\n // compare cached and raw result\n $cachedResult = $this->fixture->query($selectQuery);\n unset($cachedResult['query_time']);\n $this->assertEquals($result, $cachedResult);\n }", "public function testGetDefaultDriver0()\n{\n\n $actual = $this->cacheManager->getDefaultDriver();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function get_test_persistent_object_cache()\n {\n }", "public function testKeyGenerator()\n {\n $localisationCookieIdGenerator = new LocalisationCookieIdGenerator();\n\n $request = new Request();\n $request->cookies->add([\n 'localisation' => '{\"client\":{\"11\":\"AOK Bayern\"},\"location\":null}'\n ]);\n\n $id = $localisationCookieIdGenerator->generate($request);\n $this->assertEquals('null_11', $id);\n }", "public function testHasInCacheSearch()\n {\n // save to cache\n $saveSearchCriteria = $this->searchCriteriaBuilder\n ->setContextName('cloud')\n ->setEntityName('customer')\n ->setFieldList(['id', 'name'])\n ->setIdName('id')\n ->build();\n\n $data = [['id' => 20, 'name' => 'Sergii']];\n\n $actualSave = $this->cacheManager->save($saveSearchCriteria, $data);\n $this->assertTrue($actualSave);\n\n // search\n $searchCriteria = $this->searchCriteriaBuilder\n ->setContextName('cloud')\n ->setEntityName('customer')\n ->setIdList([20, 21, 22])\n ->setFieldList(['id', 'name'])\n ->setIdName('id')\n ->build();\n\n $searchResult = $this->cacheManager->search($searchCriteria);\n $this->assertTrue($searchResult->hasData());\n $this->assertEquals(1, $searchResult->count());\n $this->assertCount(2, $searchResult->getMissedData());\n\n // validate result\n $resultData = $searchResult->getData();\n $iteratorResultData = new \\ArrayIterator($resultData);\n $iteratorData = new \\ArrayIterator($data);\n\n $multipleIterator = new \\MultipleIterator(\\MultipleIterator::MIT_NEED_ALL|\\MultipleIterator::MIT_KEYS_ASSOC);\n $multipleIterator->attachIterator($iteratorResultData, 'actual');\n $multipleIterator->attachIterator($iteratorData, 'expected');\n\n foreach($multipleIterator as $item) {\n $this->assertEquals($item['expected'], $item['actual']->get());\n }\n }", "protected static function getExtLocalconfCacheIdentifier() {}", "protected function initCaches() {}", "public function getCacheKeyInfo();", "public function getCacheInvalidator();", "public function testCacheService()\n {\n $client = $this->createClient();\n $cache = $client->getContainer()->get('anu_style_proxy.cache');\n $this->assertInstanceOf('Doctrine\\Common\\Cache\\Cache', $cache);\n }", "protected function loadFromCache() {}", "function get_cache_id(){\n \n $CI = & get_instance();\n \n $session_data = $CI->session->all_userdata();\n \n return $session_data['cache_id'];\n}", "public function getCache();", "function generateCacheId() {\r\n $viewId = \"\";\r\n foreach ($this->_data as $key => $value) $viewId.= \"$key=$value\";\r\n $viewId = md5($viewId);\r\n return $viewId;\r\n }", "public function isExistInCache($key);", "public function testIsValidKeyWithValidKey() \n {\n $key = 'key1';\n $result = $this->fileCache->isValidKey($key);\n $expected = TRUE;\n\n $this->assertEquals($expected, $result);\n }", "public function testUserIdCache($userId)\n {\n $testedUserId = null;\n $kraken = new Kraken(self::$tokenProvider);\n $testedUserId = $kraken->users->getUserId(ACCESS_CHANNEL);\n\n $this->assertEquals($userId, $testedUserId);\n\n // Inspect the user cache to check the existence of the ID\n $reflectionClass = new ReflectionClass(Users::class);\n $staticProperties = $reflectionClass->getStaticProperties();\n $userIdCache = $staticProperties['userIdCache'];\n\n $this->assertArrayHasKey(ACCESS_CHANNEL, $userIdCache);\n }", "public function cacheGet() {\n }", "public function testCacheFlushByName()\n {\n }", "public function getCacheId()\n {\n return md5(serialize($this->params));\n }", "public static function getCache() {}", "public function isCacheEnabled(){\n return(true);\n }", "public function isCacheEnabled(){\n return(true);\n }", "public function testGetKey()\n {\n }", "public static function getCacheControl() {}", "function training_performance_callback() {\n global $user;\n $obj = new stdClass();\n $obj->some_var = rand(1, 500);\n $cid = 'cache_for_user_' . $user->uid;\n cache_set($cid, $obj, 'cache_training_performance', CACHE_PERMANENT);\n //cache_clear_all($cid, 'cache_training_performance');\n dpm(cache_get($cid, 'cache_training_performance'));\n $output = 'Test cache!' . rand(1, 500);\n\n return array(\n array(\n '#type' => 'markup',\n '#markup' => $output,\n ),\n );\n}", "protected function regenerateKeyCache()\n {\n if(is_array($this->__data))\n {\n $i=0;\n $this->__keycache = array();\n $this->__keycacheindex = array();\n foreach($this->__data as $key => $value)\n {\n $this->__keycache[$key] = $i;\n $this->__keycacheindex[$i] = $key;\n $i++;\n }\n }\n else\n {\n $this->__keycache = null;\n $this->__keycacheindex = null;\n }\n\n $this->__keycacheinvalid = false;\n }", "function _can_cache() {\n\t\treturn true;\n\t}", "static function isIdGeneratedByStorage(): bool;", "public function testIsValidKeyWithInvalidKey() \n {\n $result = $this->fileCache->isValidKey('');\n $expected = FALSE;\n\n $this->assertEquals($expected, $result);\n }", "public function uniqueVia()\n {\n return Cache::driver('redis');\n }", "protected function getCacheModule() {}", "public function testSetupCache()\n {\n $this->assertNull($this->setupCache());\n }", "public function getCidProvider() {\n return [\n [\n ['a'], 'locale:en:irrelevant:a',\n ],\n [\n ['a', 'b'], 'locale:en:irrelevant:a:b',\n ],\n [\n ['b', 'a'], 'locale:en:irrelevant:a:b',\n ],\n ];\n }", "function cache_key(Repository $repo) {\n return \"ms_\" . md5($repo->user . $repo->name);\n}", "abstract public function test($cacheLabel);", "public function it_should_correctly_handle_long_keys() {\n\t\t$components = [ __FILE__, [ 23, 89 ], [ 'foo' => 'bar', 'bar' => 'baz' ] ];\n\n\t\t$cache = $this->make_instance();\n\n\t\t$long_prefix = 'some very long prefix that should trigger some kind of minification on the key creation or so I hope';\n\t\t$key = $cache->make_key( $components, $long_prefix );\n\t\t$cache[ $key ] = 'bar';\n\n\t\t$this->assertTrue( isset( $cache[ $key ] ) );\n\t\t$this->assertEquals('bar',$cache[$key]);\n\t}", "private function cacheKey()\n {\n return sprintf('contact-permissons-%s', $this->client->patientContactId);\n }", "public function testEventNameFromIdCaches()\n\t{\n\t\t$application_id = 1;\n\t\t$event_name = \"eventNameFromIdCache\";\n\t\t$stat_name_id = 500;\n\t\t$now = \"String for date\";\n\t\t$history_model = $this->getMock(\n\t\t\t\t\"DB_Models_WritableModel_1\", array(), array(), \"\", FALSE);\n\t\t$history_model\n\t\t\t->expects($this->exactly(8))\n\t\t\t->method(\"__set\");\n\t\t$history_model\n\t\t\t->expects($this->never())\n\t\t\t->method(\"loadBy\");\n\t\t$history_model\n\t\t\t->expects($this->exactly(2))\n\t\t\t->method(\"save\");\n\t\t\t\t\n\t\t\n\t\t$name_model = $this->getMock(\n\t\t\t\t\"DB_Models_WritableModel_1\", array(), array(), \"\", FALSE);\n\t\t$name_model\n\t\t\t->expects($this->once())\n\t\t\t->method(\"loadBy\")\n\t\t\t->will($this->returnValue(TRUE));\n\t\t$name_model\n\t\t\t->expects($this->once())\n\t\t\t->method(\"__get\")\n\t\t\t->with($this->equalTo(\"stat_name_id\"))\n\t\t\t->will($this->returnValue($stat_name_id));\n\t\t\n\t\t$event_history = $this->getMock(\n\t\t\t\"VendorAPI_StatPro_Unique_ApplicationEventHistory\",\n\t\t\tarray(\"getNowString\", \"getEventHistoryModel\", \"getEventNameModel\"),\n\t\t\tarray(),\n\t\t\t\"\",\n\t\t\tFALSE);\n\t\t$event_history\n\t\t\t->expects($this->exactly(2))\n\t\t\t->method(\"getNowString\")\n\t\t\t->will($this->returnValue($now));\n\t\t$event_history\n\t\t\t->expects($this->exactly(2))\n\t\t\t->method(\"getEventHistoryModel\")\n\t\t\t->will($this->returnValue($history_model));\n\t\t$event_history\n\t\t\t->expects($this->once())\n\t\t\t->method(\"getEventNameModel\")\n\t\t\t->will($this->returnValue($name_model));\n\t\t\n\t\t$event_history->addEvent($event_name, $application_id);\n\t\t$event_history->addEvent($event_name, $application_id);\n\t}", "protected function getMemoryCache() {}", "public function testCache()\n {\n $client = static::createClient();\n $client->request('GET', '/include.php?part=site');\n /** @var $response \\Symfony\\Component\\HttpFoundation\\Response */\n $response = $client->getResponse();\n $this->assertNotEmpty($response->headers->getCacheControlDirective('public'));\n $client = static::createClient(array('environment' => 'test2'));\n $client->request('GET', '/include.php?part=site');\n $response = $client->getResponse();\n $this->assertFalse($response->headers->hasCacheControlDirective('public'));\n }", "public function testCacheSetRetrievement(){\n\n $this->initCache();\n\n $this->assertNotEmpty($this->cache);\n\n // Trying to set, save and get value:\n $this->cache->set('test_var', 'testvalue');\n $this->cache->save();\n $this->assertEquals('testvalue', $this->cache->get('test_var'));\n }", "public function testFactory()\n {\n $cache = CacheFactory::build('file');\n\n $this->assertTrue($cache instanceof CacheWrapperFile);\n\n $cache->setDirectory('eureka.cachetest');\n\n $cache->set('my.key.1', 'My Value 1', 3);\n $cache->set('my.key.2', 2, 3);\n $cache->set('my.key.3', true, 3);\n\n $this->assertTrue($cache->has('my.key.1'));\n $this->assertTrue($cache->has('my.key.2'));\n $this->assertTrue($cache->has('my.key.3'));\n\n $this->assertEquals($cache->get('my.key.1'), 'My Value 1');\n $this->assertEquals($cache->get('my.key.2'), 2);\n $this->assertTrue($cache->get('my.key.3'));\n\n sleep(5);\n\n $this->assertTrue(!$cache->has('my.key.1'));\n $this->assertTrue(!$cache->has('my.key.2'));\n $this->assertTrue(!$cache->has('my.key.3'));\n\n $this->assertEquals($cache->get('my.key.1'), null);\n\n //~ Set with more lifetime & clear all cache\n $cache->set('my.key.1', 'My Value 1', 3600);\n $cache->set('my.key.2', 2, 3600);\n $cache->set('my.key.3', true, 3600);\n\n sleep(5);\n\n $this->assertTrue($cache->has('my.key.1'));\n $this->assertTrue($cache->has('my.key.2'));\n $this->assertTrue($cache->has('my.key.3'));\n\n $this->assertEquals($cache->get('my.key.1'), 'My Value 1');\n $this->assertEquals($cache->get('my.key.2'), 2);\n $this->assertTrue($cache->get('my.key.3'));\n\n $cache->clear();\n\n $this->assertTrue(!$cache->has('my.key.1'));\n $this->assertTrue(!$cache->has('my.key.2'));\n $this->assertTrue(!$cache->has('my.key.3'));\n\n $this->assertEquals($cache->get('my.key.1'), null);\n\n unlink('eureka.cachetest/Cache.dat');\n rmdir('eureka.cachetest');\n }", "public function it_should_correctly_fabricate_keys() {\n\t\t$components_1 = [ __FILE__, [ 23, 89 ], [ 'foo' => 'bar', 'bar' => 'baz' ] ];\n\t\t$components_2 = [ __FILE__, [ 23, 89 ], [ 'bar' => 'baz', 'foo' => 'bar' ] ];\n\n\t\t$cache = $this->make_instance();\n\n\t\t$this->assertEquals( $cache->make_key( $components_1 ), $cache->make_key( $components_2 ) );\n\t\t$this->assertEquals( $cache->make_key( $components_1, 'pre' ), $cache->make_key( $components_2, 'pre' ) );\n\t\t$this->assertNotEquals( $cache->make_key( $components_1, 'foo' ), $cache->make_key( $components_2, 'pre' ) );\n\t\t$this->assertNotEquals( $cache->make_key( $components_1, '', false ), $cache->make_key( $components_2, '', false ) );\n\t}", "public function computeKeyIdProvider() : array\n {\n return [\n 'case 1' => [\n 'metadata' => [\n 'keyid_hash_algorithms' => ['sha256', 'sha512'],\n 'keytype' => 'ed25519',\n 'keyval' => ['public' => 'edcd0a32a07dce33f7c7873aaffbff36d20ea30787574ead335eefd337e4dacd'],\n 'scheme' => 'ed25519',\n ],\n 'expected' => [\n '59a4df8af818e9ed7abe0764c0b47b4240952aa0d179b5b78346c470ac30278d',\n '594e8b4bdafc33fd87e9d03a95be13a6dc93a836086614fd421116d829af68d8f0110ae93e3dde9a246897fd85171455ea53191bb96cf9e589ba047d057dbd66',\n ],\n ],\n ];\n }", "function checkKeys()\n{\n $cache = Cache::get()->first();\n\n if (!$cache) {\n $cache = new Cache();\n refreshKeys($cache);\n }\n else { \n if (time() > $cache->timeout){\n refreshKeys($cache);\n }\n }\n}", "protected function obtainCacheDependentData()\n\t{\n\t}", "public function testEncryptionKeyGeneration()\n {\n $generator = $this->getTokenGeneratorForTesting(new PseudoRandom());\n\n $resultOne = $generator->getEncryptionKey(64);\n $resultTwo = $generator->getEncryptionKey(64);\n\n $this->assertNotEquals($resultOne, $resultTwo);\n\n $resultOne = $generator->getEncryptionKey(64, false);\n $resultTwo = $generator->getEncryptionKey(64, false);\n\n $this->assertNotEquals($resultOne, $resultTwo);\n\n $generator->seedRandomGenerator(42);\n $resultOne = $generator->getEncryptionKey(64);\n\n $generator->seedRandomGenerator(42);\n $resultTwo = $generator->getEncryptionKey(64);\n\n $this->assertEquals($resultOne, $resultTwo);\n }", "protected static function getExtTablesCacheIdentifier() {}", "private function getCacheId()\n\t{\n\t\treturn self::CACHE_ID_PREFIX . '_' . $this->exportId . '_' . $this->type;\n\t}", "protected function create_cache_key()\n\t{\n\t\treturn hash($this->config['hash'], serialize($this->options));\n\t}", "public function testCacheFactoryCreation(): void\n {\n $factory = new CacheFactory('array');\n $cache = $factory($this->getContainer(), 'doctrine.cache.array');\n\n $this->assertInstanceOf(CacheProvider::class, $cache);\n $this->assertInstanceOf(ArrayCache::class, $cache);\n }", "public function isStaticCacheble() {}", "function test_expires_in()\n {\n # Only Memcache & Redis support expires_in.\n if (get_class($this) == 'Test_ActiveSupport_Cache_MemcacheStore'\n or get_class($this) == 'Test_ActiveSupport_Cache_RedisStore')\n {\n # caching second var (with ttl)\n $this->cache->write('other_var', '23', array('expires_in' => 2));\n $this->assert_equal($this->cache->read('other_var'), '23');\n sleep(3);\n $this->assert_false($this->cache->read('other_var'));\n $this->assert_equal($this->cache->read('var'), 'value');\n }\n }", "private function cacheId(array $params)\n\t{\n\t\treturn md5(json_encode($params));\n\t}", "public function getCacheId() {\n\t\treturn parent::getCacheId();\n\t}", "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "public function hasCacheStore(): bool;", "function SaeMemCache_set($openid,$data){\n\t$smc = memcache_init();\n\tif($smc == true){\n\t\tmemcache_set($smc,$openid,$data,60);\n\t\treturn \"Please enter Recording UserID:\";\n\t}else{\n\t\treturn \"MemCache is not ready!\";\n\t}\n}", "function testRedis(){\n// Cache::remember('demo_redis_3',60,function(){\n// return 'hello redis';\n// });\n// Cache::forget('demo_redis_3');\n }", "function acf_cache_key($key = '')\n{\n}", "private function mockCache()\n {\n $this->objectManager->configure([\n 'preferences' => [\n Cache::class => DummyCache::class\n ]\n ]);\n }", "protected function get_cache_id() {\n\t\treturn wponion_hash_string( $this->module() . '_' . $this->unique() );\n\t}", "function cacheing_environment()\n\t{\n\t\t$info=array();\n\t\t$info['cache_on']=array('block_youtube_channel__cache_on');\n\t\t$info['ttl']=intval(get_option('channel_update_time'));\n\t\treturn $info;\n\t}", "public function getCleanupCacheKeyData()\n {\n // 124 sign long string\n $s124 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789abcdefghijklmnopqrstuvwxyz--ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789abcdefghijklmnopqrstuvwxyz';\n\n return [\n [\n 'initialKey' => 'myaction._caching.',\n 'cleanedKey' => 'myaction_caching_',\n 'config' => [],\n ],\n [\n 'initialKey' => 'abcABC!\"§$%&/()=?+#*\\'-.,_:;',\n 'cleanedKey' => 'abcABC_%&_-_',\n 'config' => [],\n ],\n [\n 'initialKey' => $s124,\n 'cleanedKey' => substr($s124, 0, 50 - 33).'-'.md5($s124),\n 'config' => ['keylength' => 50],\n ],\n ];\n }" ]
[ "0.6350095", "0.62249863", "0.61744046", "0.6115311", "0.6032293", "0.6016611", "0.6012822", "0.5896445", "0.58485895", "0.5753823", "0.5747439", "0.5685071", "0.567908", "0.5655278", "0.5648719", "0.5637943", "0.5578655", "0.557275", "0.55483216", "0.5542795", "0.5535844", "0.5529547", "0.55161464", "0.54957396", "0.5489821", "0.54773724", "0.54730076", "0.5472104", "0.54666555", "0.54624295", "0.54621136", "0.5417854", "0.5417708", "0.5411698", "0.5392464", "0.5388423", "0.538546", "0.5365619", "0.536486", "0.535488", "0.53457177", "0.5341829", "0.5317811", "0.531228", "0.52911943", "0.5280797", "0.5262854", "0.5259213", "0.52535397", "0.52478385", "0.5245398", "0.5234952", "0.5224991", "0.52206343", "0.52079415", "0.52067053", "0.51991725", "0.51991725", "0.51927966", "0.51882195", "0.5187959", "0.51865387", "0.51797444", "0.51730126", "0.51687884", "0.51672155", "0.5162569", "0.5159833", "0.51572305", "0.51557565", "0.51495683", "0.5142921", "0.5139108", "0.51384604", "0.51382595", "0.5136625", "0.51310825", "0.51295227", "0.51293415", "0.5128826", "0.5126332", "0.5112713", "0.51063156", "0.5090669", "0.50820637", "0.50807774", "0.50791556", "0.5076414", "0.5071375", "0.50698966", "0.50692636", "0.5050805", "0.50497526", "0.5049055", "0.5048625", "0.5046377", "0.50445783", "0.5042977", "0.5041498", "0.5039057" ]
0.817601
0
Needed for testing database components Gets a db connection to the test database
public function getDoctrineConnection() { if(self::$doctrine_connection === null) { $config = new \Doctrine\DBAL\Configuration(); $connectionParams = array( 'dbname' => $GLOBALS['DB_DBNAME'], 'user' => $GLOBALS['DB_USER'], 'password' => $GLOBALS['DB_PASSWD'], 'host' => 'localhost', 'driver' => 'pdo_mysql', ); self::$doctrine_connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); } return self::$doctrine_connection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConnection()\n\t{\n\t\treturn $this->createDefaultDBConnection(TEST_DB_PDO(), TEST_GET_DB_INFO()->ldb_name);\n\t}", "protected function getConnection()\n {\n require_once __DIR__ . '/../../../doctrine/bootstrap_pdo.php';\n return getConnectionToTestDB();\n }", "protected function getConnection()\n {\n require_once dirname(__FILE__) . '/bootstrap_pdo.php';\n return getConnectionToTestDB();\n }", "public function connectToDB() {}", "public function getConnection()\n {\n if (isset($GLOBALS['db_type'], $GLOBALS['db_username'], $GLOBALS['db_password'],\n $GLOBALS['db_host'], $GLOBALS['db_name'], $GLOBALS['db_port'],\n $GLOBALS['tmpdb_type'], $GLOBALS['tmpdb_username'], $GLOBALS['tmpdb_password'],\n $GLOBALS['tmpdb_host'], $GLOBALS['tmpdb_name'], $GLOBALS['tmpdb_port'])) {\n $realDbParams = [\n 'driver' => $GLOBALS['db_type'],\n 'user' => $GLOBALS['db_username'],\n 'password' => $GLOBALS['db_password'],\n 'host' => $GLOBALS['db_host'],\n 'dbname' => $GLOBALS['db_name'],\n 'port' => $GLOBALS['db_port']\n ];\n $tmpDbParams = [\n 'driver' => $GLOBALS['tmpdb_type'],\n 'user' => $GLOBALS['tmpdb_username'],\n 'password' => $GLOBALS['tmpdb_password'],\n 'host' => $GLOBALS['tmpdb_host'],\n 'dbname' => $GLOBALS['tmpdb_name'],\n 'port' => $GLOBALS['tmpdb_port']\n ];\n\n $realConn = \\Doctrine\\DBAL\\DriverManager::getConnection($realDbParams);\n\n $platform = $realConn->getDatabasePlatform();\n\n if ($platform->supportsCreateDropDatabase()) {\n\n $dbname = $realConn->getDatabase();\n // Connect to tmpdb in order to drop and create the real test db.\n $tmpConn = \\Doctrine\\DBAL\\DriverManager::getConnection($tmpDbParams);\n $realConn->close();\n\n $tmpConn->getSchemaManager()->dropDatabase($dbname);\n $tmpConn->getSchemaManager()->createDatabase($dbname);\n\n $tmpConn->close();\n } else {\n\n $sm = $realConn->getSchemaManager();\n\n /* @var $schema Schema */\n $schema = $sm->createSchema();\n $stmts = $schema->toDropSql($realConn->getDatabasePlatform());\n\n foreach ($stmts AS $stmt) {\n try {\n $realConn->exec($stmt);\n } catch (\\Exception $e) {\n // TODO: Now is this a real good idea?\n }\n }\n }\n\n $conn = \\Doctrine\\DBAL\\DriverManager::getConnection(array_merge(['wrapperClass' => 'Pagekit\\Database\\Connection'], $realDbParams), null, null);\n } else {\n $params = [\n 'driver' => 'pdo_sqlite',\n 'memory' => true\n ];\n if (isset($GLOBALS['db_path'])) {\n $params['path'] = $GLOBALS['db_path'];\n unlink($GLOBALS['db_path']);\n }\n $conn = \\Doctrine\\DBAL\\DriverManager::getConnection(array_merge(['wrapperClass' => 'Pagekit\\Database\\Connection'], $params));\n }\n\n return $conn;\n }", "protected static function getDatabaseConnection() {}", "protected static function getDatabaseConnection() {}", "protected static function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "public final function getConnection() {\n\t\t// if the connection hasn't been established, create it\n\t\tif($this->connection === null) {\n\t\t\t// connect to mySQL and provide the interface to PHPUnit\n\n\n\t\t\t$secrets = new \\Secrets(\"/etc/apache2/capstone-mysql/busters.ini\");\n\t\t\t$pdo = $secrets->getPdoObject();\n\t\t\t$this->connection = $this->createDefaultDBConnection($pdo, $secrets->getDatabase());\n\t\t}\n\t\treturn($this->connection);\n\t}", "function getConnection($db,$custom);", "private function dbConnect(){\n $database=new \\Database();\n return $database->getConnection();\n }", "public function getDbConnection() {\n\t\tif ($this->_db === null) {\n\t\t\t$dsn = 'sqlite2:'.__DIR__.'/test.db';\n\t\t\t$this->_db = new CDbConnection($dsn);\n\t\t}\n\t\treturn $this->_db;\n\t}", "public function getDbConnection()\n {\n $this->conn = Registry::get('db');\n }", "protected function db()\n\t\t{\n\t\t\tif( !$this->_db ) {\n\t\t\t\t$this->_db = \\Kalibri::db()->getConnection( $this->connectName );\n\t\t\t}\n\n\t\t\treturn $this->_db;\n\t\t}", "public static function getConnection(){\n return static::$db;\n }", "protected function setUpDatabaseConnectionMock() {}", "public function getConnection(): \\codename\\core\\database\r\n {\r\n return $this->db;\r\n }", "private function connectToDatabase()\n {\n return DbConnection::connectToDatabase($this->link);\n }", "function establish_connection() {\n\t \t\tself::$db = Registry()->db = SqlFactory::factory(Config()->DSN);\n\t \t\tself::$has_update_blob = method_exists(self::$db, 'UpdateBlob');\n\t\t\treturn self::$db;\n\t\t}", "public static function getDbConnection(){\n\t\tif(!isset(self::$db)){\n\t\t\tself::setDbConnection();\n\t\t}\n\t\treturn self::$db;\n\t}", "public function connectDB() {}", "public static function conn()\n {\n return (static::inst())::$_db;\n }", "protected function getDatabase() {}", "public function getDb();", "public function testGetDatabaseConnection()\n {\n $itemsProcFunc = GeneralUtility::makeInstance(ColPosList::class);\n $databaseConnection = GeneralUtility::makeInstance(DatabaseConnection::class);\n $itemsProcFunc->setDatabaseConnection($databaseConnection);\n $result = $itemsProcFunc->getDatabaseConnection();\n $this->assertEquals($databaseConnection, $result);\n }", "private function setUpAndReturnDatabaseStub() {}", "public function getConnection() {\n\t\t$db = Config::get('librarydirectory::database.default');\n return static::resolveConnection($db);\n }", "function startDBConnection() {\n $connectionObject = new DatabaseFactory();\n return $connectionObject->getConnection();\n}", "protected function getDatabaseConnection() {\n\t\treturn $GLOBALS['TYPO3_DB'];\n\t}", "protected function getDatabaseConnection() {\n\t\treturn $GLOBALS['TYPO3_DB'];\n\t}", "public final function getConnection() {\n\t\t//If the connection has not been established yet, create it\n\t\tif($this->connection === null) {\n\t\t\t//connect to mySQL and provide the interface to PHPUnit\n\n\t\t\t$config = readConfig(\"/etc/apache2/capstone-mysql/jpegery.ini\");\n\t\t\t$pdo = connectToEncryptedMySQL(\"/etc/apache2/capstone-mysql/jpegery.ini\");\n\t\t\t$this->connection = $this->createDefaultDBConnection($pdo, $config[\"database\"]);\n\t\t}\n\t\treturn($this->connection);\n\t}", "public function db()\n {\n return $this->getConnection();\n }", "private function connectDatabase() {\r\r\n\t\t$this->dbHandle = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Database\\\\DatabaseConnection');\r\r\n\t\t$this->dbHandle->setDatabaseHost($this->dbHost);\r\r\n\t\t$this->dbHandle->setDatabaseUsername($this->dbUsername);\r\r\n\t\t$this->dbHandle->setDatabasePassword($this->dbPassword);\r\r\n\t\t$this->dbHandle->setDatabaseName($this->db);\r\r\n\t\t$this->dbHandle->sql_pconnect();\r\r\n\t\t$this->dbHandle->sql_select_db();\r\r\n\t}", "public function getConnection()\n {\n return $this->db;\n }", "function testDBconnect() {\n print \"\\nTEST: database connection:\";\n global $dbhost;\n global $dbuser;\n global $dbpass;\n //global $dbname; // TODO rem\n\n if (empty($dbhost) || empty($dbuser) || empty($dbpass)) {\n print \"\\nWARN: either db host,user or pass info missing.\\n\";\n }\n else {\n // TODO rem $dbname at submission\n\n $sqlConn = new mysqli($dbhost, $dbuser, $dbpass);//, $dbname);\n if ($sqlConn->connect_error) {\n print \"\\nSQL Connection failed: \".$sqlConn->connect_error.\"\\n\";\n } \n else {\n print \"\\nSQL connection successful, closing...\\n\";\n $sqlConn->close();\n }\n }\n interceptExit();\n }", "public function testThatWeCanConnectToDatabase(){\n $this->assertNotEmpty($this->db->connect());\n }", "public function testDb()\n {\n // print_r($cfg);\n\n // $params = array('adapter', 'host', 'username', 'password', 'dbname');\n // foreach ($params as $param) {\n // $this->assertArrayHasKey(\n // $param, $cfg['database'], 'db缺少' . $param . '配置'\n // );\n // }\n // $dbCfg = $cfg['database'];\n // $dsn = '' . strtolower($dbCfg['adapter']) . ':host=' . $dbCfg['host'] . ';dbname=' . $dbCfg['dbname'] . '';\n\n // new PDO($dsn, $dbCfg['username'], $dbCfg['password']);\n }", "public function getDbConnection()\n\t{\n\t\treturn parent::getDbConnection();\n\t}", "private function getDbConnection()\n {\n $config = $this->config;\n $connectionParams = array(\n 'path' => $this->appRoot . '/vpu.db',\n 'driver' => $config['config']['database']['driver']\n );\n return DriverManager::getConnection($connectionParams, new Configuration());\n }", "public static function getConnection() {\n if (!self::$db) {\n //new connection object\n new dbConn();\n }\n //return connection\n return self::$db;\n }", "private function connectDB()\n\t{\n\t\t$this->db = ECash::getMasterDb();\n\t\t\n\t//\t$this->dbconn = $this->db->getConnection();\n\t}", "public function getConnection() {\n return Database::instance();\n }", "protected function getDb()\n\t{\n\t\treturn (new League)->getConnection();\n\t}", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "private function getDB() {\n if ($this->link === false) {\n $connection = $this->connect($this->config[\"host\"], $this->config[\"user\"], $this->config[\"pass\"], $this->config[\"name\"], $this->config[\"port\"]);\n if ($this->isMysqli($connection) AND $connection->errno === 0) {\n $connection->query(\"SET CHARACTER SET \" . $this->config[\"charset\"] . \";\");\n $this->link = $connection;\n }\n }\n\n return $this->link;\n }", "public function testCreateDb()\n {\n if (! $this->_url) $this->markTestSkipped(\"Test requires a CouchDb server set up - see TestConfiguration.php\");\n \n list($host, $port, $dbname) = $this->_getUrlParts();\n $dbname = trim($dbname, '/');\n \n $db = Sopha_Db::createDb($dbname, $host, $port);\n \n // Make sure DB now exists\n $response = Sopha_Http_Request::get($this->_url);\n $this->assertEquals(200, $response->getStatus());\n }", "function blightDB()\n{\n\tstatic $db;\n\tif (!isset($db))\n\t{\n\t\tif (false === ($db = gdo_db_instance('localhost', BLIGHT_USER, BLIGHT_PASS, BLIGHT_DB)))\n\t\t{\n\t\t\tdie('Cannot connect to db!');\n\t\t}\n\t\t$db->setVerbose(false);\n\t\t$db->setLogging(false);\n\t\t$db->setDieOnError(false);\n\t\t$db->setEMailOnError(false);\n\t}\n\treturn $db;\n}", "public function getDbalConnection();", "public function getConnect()\n {\n $this->conn = Registry::get('db');\n }", "public function connect_db() {\n }", "public function testGetDBCon()\n {\n // TODO use a different check, if mariadb or mysql is used\n $this->assertTrue(false !== $this->fixture->getDBCon());\n }", "public function testDatabaseConnection(){\r\n include('c:\\PHP\\database.php');\r\n $db = new database;\r\n $connectionToDatabase = $db->connectToDatabase();\r\n $this->assertEquals(true,$connectionToDatabase);\r\n }", "function get_database() {\n $db = new Database();\n return ($db->connect());\n}", "public function getConnection()\n {\n $this->connection = db($this->connectionName);\n\n return $this->connection;\n }", "public static function getDb() {\n $db = parent::getDb();\n\n $connection = new \\yii\\db\\Connection([\n 'dsn' => $db->dsn,\n 'username' => $db->username,\n 'password' => $db->password,\n 'charset' => 'utf8mb4',\n //'collation' => 'utf32_unicode_ci'\n ]);\n\n return $connection;\n }", "function db_driver_connect()\n{\n global $_db;\n\n $_db['resource'][$_db['target']]['dbh'] = pg_connect('host=' . $_db['resource'][$_db['target']]['config']['host'] . ($_db['resource'][$_db['target']]['config']['port'] ? ' port=' . $_db['resource'][$_db['target']]['config']['port'] : '') . ' dbname=' . $_db['resource'][$_db['target']]['config']['name'] . ' user=' . $_db['resource'][$_db['target']]['config']['username'] . ' password=' . $_db['resource'][$_db['target']]['config']['password'], true);\n if (!$_db['resource'][$_db['target']]['dbh']) {\n if (LOGGING_MESSAGE) {\n logging('message', 'db: Connect error');\n }\n\n error('db: Connect error');\n }\n\n return;\n}", "public function db_init() {\n global $CFG;\n\n require_once($CFG->libdir.'/adodb/adodb.inc.php');\n\n // Connect to the external database (forcing new connection).\n $extdb = ADONewConnection($this->get_config('dbtype'));\n if ($this->get_config('debugdb')) {\n $extdb->debug = true;\n ob_start(); // Start output buffer to allow later use of the page headers.\n }\n\n // The dbtype my contain the new connection URL, so make sure we are not connected yet.\n if (!$extdb->IsConnected()) {\n $result = $extdb->Connect($this->get_config('dbhost'),\n $this->get_config('dbuser'),\n $this->get_config('dbpass'),\n $this->get_config('dbname'), true);\n if (!$result) {\n return null;\n }\n }\n\n $extdb->SetFetchMode(ADODB_FETCH_ASSOC);\n if ($this->get_config('dbsetupsql')) {\n $extdb->Execute($this->get_config('dbsetupsql'));\n }\n return $extdb;\n }" ]
[ "0.79116416", "0.7790209", "0.7746636", "0.76531297", "0.7599117", "0.747396", "0.7473125", "0.7473125", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.74663913", "0.746596", "0.746596", "0.746596", "0.7465282", "0.7465282", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.74647844", "0.7370929", "0.7356641", "0.7335606", "0.7329343", "0.7290988", "0.72851986", "0.72822857", "0.72777194", "0.72617215", "0.7246474", "0.7246017", "0.722226", "0.7218033", "0.7185893", "0.7166249", "0.71568686", "0.7142148", "0.7140546", "0.70994735", "0.7090257", "0.70715255", "0.70715255", "0.7067407", "0.7057805", "0.70362055", "0.7029552", "0.7024856", "0.69965243", "0.69906735", "0.69875073", "0.69781846", "0.69753367", "0.6960197", "0.6955651", "0.69524705", "0.6947493", "0.6947493", "0.6947493", "0.6947493", "0.6947493", "0.6947493", "0.6947493", "0.6947493", "0.6947493", "0.6934517", "0.6920719", "0.69164187", "0.6916162", "0.69092166", "0.6906182", "0.6904305", "0.69033504", "0.68971163", "0.6890052", "0.68731135", "0.6848886", "0.6847096" ]
0.0
-1
PHPUnit setUp for setting up the application. Note: Child classes that define a setUp method must call parent::setUp().
public function setUp() { parent::setUp(); $this->app = $this->createApplication(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final function setUp() {\n\t\t// run the default setUp() method first\n\t\tparent::setUp();\n\t}", "public final function setUp() {\n\t\t//run the default setUp() method first\n\t\tparent::setUp();\n\t}", "public function setUp()\n {\n parent::setUp();\n $this->createApplication();\n }", "protected function setUp() {\n\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\t}", "protected function setUp() {\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\t}", "protected function setUp() {\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\t}", "protected function setUp() {\r\n $this->application = new TestApplication();\r\n }", "protected function setUp() {\n parent::setUp();\n Monkey\\setUp();\n }", "protected function setUp()\n {\n $this->preSetup();\n parent::setUp();\n }", "public function setUp()\n {\n $this->setApplicationConfig(\n Bootstrap::getConfig()\n );\n\n parent::setUp();\n }", "protected function setUp(): void\n {\n $this->setUpTheTestEnvironment();\n }", "public function setUp()\n {\n require_once 'Zend/Application.php';\n\n // Create application, bootstrap, and run\n $application = new \\Zend_Application(\n APPLICATION_ENV,\n GEMS_ROOT_DIR . '/configs/application.example.ini'\n );\n\n $this->bootstrap = $application;\n\n parent::setUp();\n }", "protected function setUp() {\n\t\tparent::setUp();\n\t}", "protected function setUp()\r\n\t{\r\n\t\tparent::setUp();\r\n\t}", "protected function setUp()\r\n\t{\r\n\t\tparent::setUp();\r\n\t}", "public function setUp()\n {\n // 'This test has not been implemented yet.'\n return;\n\n $this->setupDomains();\n $this->setupCountries();\n $this->setupLanguages();\n $this->setupCategories();\n }", "public function setUp()\n\t{\n\t\tparent::setUp();\n\t}", "public function setUp()\n {\n // You can override configuration here with test case specific values,\n // such as sample view templates, path stacks, module_listener_options,\n // etc.\n $configOverrides = [];\n\n $this->setApplicationConfig(ArrayUtils::merge(\n include __DIR__ . '/../../../../config/application.config.php',\n $configOverrides\n ));\n\n parent::setUp();\n }", "public function setUp()\n {\n parent::setUp();\n $this->prepareForTests();\n }", "public function setUp()\n {\n $this->app = $this->createApplication();\n }", "protected function setUp(): void\n {\n\n parent::setUp();\n\n // Code after application created.\n $this->withoutExceptionHandling();\n }", "protected function setUp()\n {\n parent::setUp();\n\n $this->checkExtension('phalcon');\n\n // Creating the application\n $this->bootstrap = new Bootstrap(self::getConfig());\n $this->app = $this->bootstrap->make($this->kernel());\n $this->app->boot();\n }", "public function setUp()\n\t{\n\t\tJFactory::$application = $this->getMockApplication();\n\n\t\tparent::setUp();\n\t}", "public function setUp()\n {\n $this->createApplication();\n parent::setUp();\n //$this->resolveApplicationConsoleKernel($this->app);\n //$this->resolveApplicationHttpKernel($this->app);\n $this->getEnvironmentSetUp($this->app);\n\n $this->migrateUp();\n }", "protected function setUp() {\n\t\tparent::setUp ();\n\t\t$this->Application = new Application(__DIR__.\"/../\", \"Tests/config.ini\");\n\t\t$this->mockDB = $this->getMock(\"DB\", array('__construct',), array(), 'MockDB', false);\n\t}", "public function setUp()\n {\n $this->app = Application::instance();\n }", "protected function setUp() {\r\n parent::setUp();\r\n\t}", "protected function setUp() {\r\n }", "protected function setUp() {\r\n }", "function setUp() {\n\t\tparent::setUp();\n\t\t\n\t}", "public function setUp()\n\t{\n // You can override configuration here with test case specific values,\n // such as sample view templates, path stacks, module_listener_options,\n // etc.\n $configOverrides = [];\n\n $this->setApplicationConfig(ArrayUtils::merge(\n include __DIR__ . '/../../../../config/application.config.php',\n $configOverrides\n ));\n\n parent::setUp();\n\n $this->configureServiceManager($this->getApplicationServiceLocator());\n\t}", "public function setUp()\n {\n parent::setUp();\n $this->setupDatabase();\n }", "protected function setUp() {\n }", "protected function setUp() {\n }", "protected function setUp() {\n }", "protected function setUp()\n {}", "protected function setUp()\n\t{\n\t}", "public function setUp()\n {\n $this->setApplicationConfig(\n include __DIR__ . '/../../TestConfiguration.php'\n );\n parent::setUp();\n }", "protected function setUp(): void\n {\n }", "protected function setUp(): void\n {\n }", "protected function setUp(): void\n {\n }", "protected function setUp ()\n {}", "protected function setUp()\n {\n $this->setApplicationConfig(\n include __DIR__ . '/../../config/application.config.php'\n );\n parent::setUp();\n }", "protected function setUp()\r\n {\r\n }", "protected function setUp()\n {\n }", "public function setUp(): void\n {\n if (!defined('ROOT_DIR')) {\n define(\"ROOT_DIR\", __DIR__ . \"/../\");\n }\n \n if (!class_exists('Database', false)) {\n require(\"./www/classes/database.class.php\");\n }\n if (!class_exists('Settings', false)) {\n require(\"./www/classes/settings.class.php\");\n }\n $this->settings = new \\Settings();\n \n try {\n $this->database = new \\Database($this->settings);\n } catch (Exception $error) {\n $this->markTestSkipped(\"Something went when loading Database class: \" .\n $error->getMessage());\n }\n }", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->setUpToolsAliases(true);\n $this->setUpToolsModels();\n $this->setUpToolsDB();\n }", "protected function setUp() {\n parent::setUp();\n }", "protected function setUp(): void\n {\n parent::setUp();\n }", "protected function setUp(): void\n {\n parent::setUp();\n }", "protected function setUp() { }", "protected function setUp() { }", "public function setUp() {\n\t}", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n parent::setUp();\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "protected function setUp()\n {\n }", "public function setUp()\n {\n /*\n * Force reload of October singletons\n */\n PluginManager::forgetInstance();\n UpdateManager::forgetInstance();\n\n /*\n * Create application instance\n */\n parent::setUp();\n\n /*\n * Switch to the testing environment\n */\n if (file_exists(base_path($this->envTestingFile()))) {\n if (file_get_contents(base_path('.env')) !== file_get_contents(base_path($this->envTestingFile()))) {\n $this->switchEnvironment();\n }\n\n $this->refreshEnvironment();\n }\n\n /*\n * Ensure system is up to date\n */\n $this->runOctoberUpCommand();\n\n /*\n * Detect plugin from test and autoload it\n */\n $this->pluginTestCaseLoadedPlugins = [];\n $pluginCode = $this->guessPluginCodeFromTest();\n\n if ($pluginCode !== false) {\n $this->runPluginRefreshCommand($pluginCode, false);\n }\n\n /*\n * Disable mailer\n */\n Mail::pretend();\n }", "public function setUp() {\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\n\t\t$this->setup_common_wp_stubs();\n\t}", "public function setUp(): void {}", "public function setUp() {}", "public function setUp() {}", "public function setUp() {}", "public function setUp(): void\n {\n parent::setUp();\n $this->setUpFaker();\n }", "public function setUp()\n\t{\n\t}", "protected function setUp(): void\n {\n \n }", "function setUp()\n\t{\n\t\tparent::setUp();\n\t}", "function setUp()\n\t{\n\t\tparent::setUp();\n\t}", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->setUpToolsAliases(true);\n $this->setUpToolsRoutes();\n $this->setUpToolsModels();\n }", "public function setUp()\n {\n parent::setUp();\n\n // Migrate and seed the test database.\n Artisan::call('migrate');\n $this->seed();\n }", "public function setUp()\n {\n // Start of user code DataSourcesRegistryTest.setUp\n // Place additional setUp code here. \n // End of user code\n }", "protected function setUp()\r\n {\n }", "final public function setUp(): void\n {\n }", "public function setUp()\n {\n // Start of user code RouterSpecialEventsControllerTest.setUp\n // Place additional setUp code here.\n // End of user code\n }", "public function setUp()\n {\n $this->app = RenaApp::getInstance();\n }", "public function setUp()\r\n {\r\n parent::setUp();\r\n }", "protected function setUp()\n {\n // Create a new klein app,\n // since we need one pretty much everywhere\n $this->klein_app = new Klein();\n }", "public function setUp ( )\n {\n $this->bootstrap = new Zend_Application(\n APPLICATION_ENV, ROOT_PATH . '/etc/application.ini'\n );\n\n parent::setUp();\n }", "public function setUp ( )\n {\n $this->bootstrap = new Zend_Application(\n APPLICATION_ENV, ROOT_PATH . '/etc/application.ini'\n );\n\n parent::setUp();\n }", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->controller(Runner::class);\n }", "protected function setUp()\r\n {\r\n \t\r\n }", "public function setUp(): void\n {\n parent::setUp();\n\n $this->runTestMigrations();\n }", "protected function setUp() {}", "protected function setUp() {}" ]
[ "0.8868573", "0.8817966", "0.8686366", "0.8655194", "0.86227226", "0.86227226", "0.8564216", "0.8514262", "0.8512088", "0.84746087", "0.8462452", "0.84570223", "0.8444809", "0.84351987", "0.84351987", "0.84212035", "0.84042364", "0.8399213", "0.83981305", "0.83834857", "0.83726275", "0.83655846", "0.83578086", "0.8329357", "0.83272886", "0.8323241", "0.8318894", "0.8292274", "0.8292274", "0.8287785", "0.82859397", "0.8280779", "0.8273846", "0.8273846", "0.8273846", "0.82703215", "0.82700557", "0.82654214", "0.8251661", "0.8251661", "0.8251661", "0.8239141", "0.8232665", "0.82247394", "0.82146007", "0.8210485", "0.8208723", "0.8204756", "0.8204642", "0.8204642", "0.81860375", "0.81860375", "0.81735986", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8154441", "0.8153726", "0.8153726", "0.8153726", "0.8153726", "0.8153726", "0.8153726", "0.8153726", "0.8153726", "0.8153726", "0.815014", "0.81363916", "0.813314", "0.81307447", "0.8129521", "0.8128993", "0.8127548", "0.8125655", "0.8125116", "0.8123085", "0.8123085", "0.8121885", "0.8120529", "0.81180364", "0.8116988", "0.8113907", "0.8113395", "0.8107159", "0.81024563", "0.8099759", "0.8092326", "0.8092326", "0.8091161", "0.8090719", "0.8087706", "0.80715203", "0.80715203" ]
0.86301243
4
Connects to data source.
public function connect() { $this->isConnected = false; $this->connectInternal(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _connect() {\r\n\t\t$this->sql = mysql_connect(\r\n\t\t\t$this->dataSource->config['host'],\r\n\t\t\t$this->dataSource->config['login'],\r\n\t\t\t$this->dataSource->config['password']\r\n\t\t);\r\n\t\t$this->sql2 = mysql_connect(\r\n\t\t\t$this->dataSource->config['host'],\r\n\t\t\t$this->dataSource->config['login'],\r\n\t\t\t$this->dataSource->config['password']\r\n\t\t);\r\n\t}", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect()\n {\n if (!$this->isConnected()) {\n $this->manager->connect();\n }\n }", "public abstract function connect();", "public function connect()\n {\n if(is_null($this->client))\n {\n $this->client = new \\MongoClient($this->dsn);\n $parsedDsn = Utils::ParseDsn($this->dsn);\n if(is_null($this->dataDatabase)) {\n $this->db = $this->client->{$parsedDsn['database']};\n }else{\n $this->db = $this->client->{$this->dataDatabase};\n }\n //$this->collection = $this->client->selectCollection($this->dsn['database'], $this->dsn['table']);\n }\n }", "public function connect()\n {\n $this->connection->connect();\n }", "function connect($dataSource)\n{\n\tif (empty($dataSource)) {\n\t\tthrow new \\InvalidArgumentException('Invalid connection parameters.');\n\t}\n\n\tif(is_string($dataSource)) {\n\t\t$dsarray = $this->parseDsn($dataSource);\n\t}\n\telseif (is_array($dataSource) and array_key_exists ('driver', $dataSource)) {\n\t\t$dsarray = $dataSource;\n\t}\n\telse throw new \\InvalidArgumentException('Invalid connection parameters.');\n\t\n\t$this->dataSource = $dataSource;\t\n\n\t$drvname = pcl_ident($dsarray['driver']);\n\t\n\tif (strpos($drvname, 'pdo_') === 0) {\n\t\t$className = '\\\\pclib\\\\system\\\\database\\\\Pdo'.ucfirst(substr($drvname, 4)).'Driver';\n\t}\n\telse {\n\t\t$className = '\\\\pclib\\\\system\\\\database\\\\'.ucfirst($drvname).'Driver';\n\t}\n\n\tif (!class_exists($className)) {\n\t\tthrow new DatabaseException(\"Database driver '%s' not found.\", array($dsarray['driver']));\n\t}\n\n\t$this->drv = new $className;\n\t$this->drv->verboseErrors = in_array('develop', $this->config['pclib.errors']);\n\t$this->drv->forceReconnect = $this->forceReconnect;\n\t$this->drv->connect($dsarray);\n\tif ($dsarray['options']['charset']) $this->drv->codePage($dsarray['options']['charset']);\n}", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "private function createDataSource()\n {\n $this->debug(\"Creating data source\");\n $this->dataSource = DataSourceRepository::createDataSource(\n $this->config['datasource']['key'],\n $this->config['datasource']['title'],\n 'SYSTEM'\n );\n $this->dataSource->setDataSourceAttribute(\"manual_publish\", 0);\n $this->dataSource->setDataSourceAttribute(\"qa_flag\", 0);\n\n $this->log(\"Data source {$this->dataSource->title}({$this->dataSource->data_source_id}) created\");\n }", "private function connect()\n {\n if ($this->configuration->get('db.connector') == 'PDO') {\n $dsn = \"mysql:host=\" . $this->configuration->get('db.host') . \";dbname=\" . $this->configuration->get('db.name');\n $options = array();\n $this->db = new PDO(\n $dsn, $this->configuration->get('db.username'), $this->configuration->get('db.password'), $options\n );\n } elseif ($this->configuration->get('db.connector') == 'mysqli') {\n $this->db = mysqli_connect(\n $this->configuration->get('db.host'), $this->configuration->get('db.username'), $this->configuration->get('db.password'), $this->configuration->get('db.name')\n );\n }\n }", "public function connectToDB() {}", "private function connectDatabase() {\r\r\n\t\t$this->dbHandle = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Database\\\\DatabaseConnection');\r\r\n\t\t$this->dbHandle->setDatabaseHost($this->dbHost);\r\r\n\t\t$this->dbHandle->setDatabaseUsername($this->dbUsername);\r\r\n\t\t$this->dbHandle->setDatabasePassword($this->dbPassword);\r\r\n\t\t$this->dbHandle->setDatabaseName($this->db);\r\r\n\t\t$this->dbHandle->sql_pconnect();\r\r\n\t\t$this->dbHandle->sql_select_db();\r\r\n\t}", "protected function connect() {}", "protected function _useSourceDatasource() {\n\n // Instantiate source datasource if it's not already instantiated\n if (is_null($this->_externalNewsSourceDatasource)) {\n $this->_externalNewsSourceDatasource = new Datasource_Cms_ExternalNews_Source();\n }\n }", "public function connect()\r\n\t{\r\n\t\t//$this->link = qracle_connect();\r\n\t}", "public function connect()\n {\n $driver = 'DB'; // default driver\n $dsn = $this->getParameter('dsn');\n\n $do = $this->getParameter('dataobject');\n if ($do && isset($do['db_driver'])) {\n $driver = $do['db_driver'];\n }\n\n if ('DB' == $driver) {\n\n if (!class_exists('DB')) {\n include('DB.php');\n }\n\n $options = PEAR::getStaticProperty('DB', 'options');\n if ($options) {\n $this->connection = DB::connect($dsn, $options);\n } else {\n $this->connection = DB::connect($dsn);\n }\n \n } else {\n\n if (!class_exists('MDB2')) {\n include('MDB2.php');\n }\n \n $options = PEAR::getStaticProperty('MDB2', 'options');\n $this->connection = MDB2::connect($dsn, $options);\n }\n\n if (PEAR::isError($this->connection)) {\n\n throw new AgaviDatabaseException($this->connection->getMessage());\n $this->connection = Null;\n }\n }", "private function connect()\n {\n try {\n self::$connection = new PDO($this->buildDSN(), $this->user, $this->pass, $this->options);\n } catch (PDOException $e) {\n die('Connection failed: ' . $e->getMessage());\n }\n\n }", "abstract protected function connect();", "abstract protected function connect();", "abstract protected function connect();", "private function connectToDB()\n {\n $this->handler = new DBConnect();\n $this->handler = $this->handler->startConnection();\n }", "public function connect() {\n $this->getConnectionSocket();\n }", "abstract function connect();", "public abstract function Connect();", "protected function connect() {\n $this->connection = 'resource';\n echo $this->name . ' connected '.\"<br>\" ;\n }", "public function setDataConnection(){\n \n \n }", "public function connect()\n {\n $dsn = sprintf(\"mysql:host=%s;port=%s;dbname=%s\", $this->configuration['host'], $this->configuration['port'], $this->configuration['database']);\n $this->pdo = new PDO($dsn, $this->configuration['username'], $this->configuration['password']);\n }", "public function connect() {\n if ($this->client) {\n $this->client->connect();\n }\n }", "public function connect()\n {\n }", "public function connect()\n {\n }", "public function connect()\n {\n }", "final public function p_connect() {\n \t$this->connect('', '', '', '', true);\n \t}", "private function connect()\n\t{\n\t\t$connectionData = $this->app->file->requireFile('config.php');\n\t\t\n\t\textract($connectionData);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstatic::$connection = new PDO('mysql:host=' . $server . ';dbname=' . $dbname, $dbuser, $dbpass);\n\t\t\t\n\t\t\tstatic::$connection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n\t\t\t\n\t\t\tstatic::$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t\n\t\t\tstatic::$connection->exec('SET NAMES utf8');\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\t\t\t\t\n\t}", "public function connect(): mixed;", "public function connect() {\n if (!$this->connected()) {\n tenant_connect(\n $this->db_name\n );\n }\n }", "public function connect()\n {\n if ($this->pdo !== null) {\n return;\n }\n\n $db = $this->configs['database'] ?? '';\n $hostname = $this->configs['hostname'] ?? '';\n $port = $this->configs['port'] ?? '';\n $charset = $this->configs['charset'] ?? '';\n $username = $this->configs['username'] ?? '';\n $password = $this->configs['password'] ?? '';\n\n $this->pdo = new PDO(\n \"mysql:dbname={$db};host={$hostname};port={$port};charset={$charset}\",\n $username,\n $password\n );\n }", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function connect(): void;", "public function getConnect()\n {\n $this->conn = Registry::get('db');\n }", "public function connect(): void\n {\n $this->pdo = new PDO(\n $this->constructDns($this->config),\n $this->config['username'],\n $this->config['password'],\n $this->config['options'] ?? [],\n );\n }", "function getDataSource() { return $this->_datasource; }", "function getDataSource() {return $this->_datasource;}", "public function sql_pconnect() {}", "public function sql_pconnect() {}", "protected function _begin() {\n $this->dataSource = $this->getDataSource();\n }", "private function connect()\n {\n $connection_string = 'mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';';\n $this->connection = new PDO($connection_string, DB_USER, DB_PASS);\n }", "private function connect() {\n $this->load->database();\n }", "abstract function connect ();", "public function connect()\n {\n $data = $this->app->file->requireFile('config.php');\n extract($data);\n try {\n static::$DB = new PDO('mysql:host=' . $server . ';dbname=' . $dbname , $dbuser , $dbpass);\n\n static::$DB->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE , PDO::FETCH_OBJ);\n static::$DB->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION);\n static::$DB->exec('SET NAMES utf8');\n\n }\n catch (PDOException $e){\n die($e->getMessage());\n }\n }", "public function connect() {\r\n\t\t$this->connection = mysql_connect($this->host, $this->username, $this->password);\r\n\t\t$this->selectDB($this->squema);\r\n\t}", "public function connect()\n {\n try {\n\n $this->config = (new Config\\Config())->getConfig(); // load config file in config class\n\n // create pdo connection to DB by using config\n $this->_dbInstance = new \\PDO('mysql:host=' . $this->config['ServerName'] . ';dbname=' . $this->config['DBName'], $this->config['UserName'], $this->config['Password'],array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\n // set attributes for this connection\n $this->_dbInstance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(\\PDOException $e)\n {\n echo $e->getMessage();\n }\n }", "protected function db_connect() {\n \n // Data source name\n $this->dsn = 'mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ';charset=' . $this->db_charset;\n\n // Makes a connection to the database\n $this->db_conn = new PDO( $this->dsn, $this->db_user, $this->db_password );\n\n // When fetching an SQL row it turn into an object\n $this->db_conn->setAttribute( PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ );\n // Gives the Error reporting atribute and throws exeptions\n $this->db_conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n \n // Returns the connection\n return $this->db_conn;\n\n }", "public static function getDataSource()\n {\n return static::$_dataSource;\n }", "protected function _setConnectionsData()\n\t{\n\t\t// content of this function can be modified on demo account\n\t\t// variable names $data and $connectionsData are important\n\n\t\t$connectionsData = array();\n\t\tinclude 'ConnectionManagerConfig.php';\n\t\t$this->_connectionsData = $connectionsData;\n\t}", "public function connect()\n {\n return $this->adapter->attach();\n }", "public function connect() {\n $this->connection = AMQPStreamConnection($this->server_ip, $this->server_port, $this->username, $this->password);\n }", "public function connect()\n {\n return $this->connector->connect();\n }", "public function connect(): void\n {\n }", "private function __connect() {\n $this->handle = mysql_connect($this->server, $this->user, $this->password) \n or die('<pre style=\"margin:auto;background:rgba(0,0,0,.1)\">'.mysql_error().'</pre>');\n mysql_select_db($this->dataBase, $this->handle) \n or die('<pre style=\"margin:auto;background:rgba(0,0,0,.1)\">'.mysql_error().'</pre>');\n @mysql_query(\"SET NAMES 'utf8'\");\n }", "private function connect() {\n $host = $this->dbConfig[$this->selected]['host'];\n $login = $this->dbConfig[$this->selected]['login'];\n $password = $this->dbConfig[$this->selected]['password'];\n $database = $this->dbConfig[$this->selected]['database'];\n try {\n $this->db = new PDO('mysql:host=' . $host . ';dbname=' . $database . ';charset=utf8', $login, $password);\n $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n//\t\t\t$this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n } catch (PDOException $e) {\n die('Could not connect to DB:' . $e);\n }\n }", "private function connectDB()\n\t{\n\t\t$this->db = ECash::getMasterDb();\n\t\t\n\t//\t$this->dbconn = $this->db->getConnection();\n\t}", "public function connectDB() {}", "private function connect() {\r\n\t\tunset($this->dbLink);\r\n\t\t/* create connection to database host */\r\n\t\t// $dbLink = mysql_connect(\"mysql.localhost\", \"de88623\", \"proberaum1\");\r\n\t\t$dbLink = mysql_connect(\"localhost\", \"robert\", \"YMbHFY+On2\");\r\n\t\t/* select database */\r\n\t\tmysql_select_db(\"robert_www_parkdrei_de\");\r\n\t\t/* set link to database as a object attribute */\r\n\t\t$this->dbLink = $dbLink;\r\n\t}", "private function __construct()\n {\n $this->connect();\n }", "public function dataBind(&$dataSource);", "private function Connect() {\n $this->Conn = parent::getConn();\n $this->Create = $this->Conn->prepare($this->Create);\n }", "abstract public function connect(array $options = array());", "abstract public function getConnection();", "public function getDataSource()\n\t{\n\t\treturn $this->dataSource;\n\t}", "private static function getConnection(){\n\t\tself::$cnx = Connect::conn();\n\n\t}", "private function detectDataSource()\n {\n $key = $this->config['datasource']['key'];\n $this->log(\"Detecting if there's a data source with key {$key}\");\n $this->dataSource = DataSource::where('key', $key)->get()->first();\n if (!$this->dataSource) {\n $this->info(\"No data source found. Proceeding to automatically create a data source\");\n $this->createDataSource();\n }\n\n $this->info(\"Importing to Data source {$this->dataSource->title}({$this->dataSource->data_source_id})...\");\n }", "public function connect()\n {\n $config = $this->config;\n $config = array_merge($this->_baseConfig, $config);\n\n $conn = \"DATABASE='{$config['database']}';HOSTNAME='{$config['host']}';PORT={$config['port']};\";\n $conn .= \"PROTOCOL=TCPIP;UID={$config['username']};PWD={$config['password']};\";\n\n if (!$config['persistent']) {\n $this->connection = db2_connect($conn, PGSQL_CONNECT_FORCE_NEW);\n } else {\n $this->connection = db2_pconnect($conn);\n }\n $this->connected = false;\n\n if ($this->connection) {\n $this->connected = true;\n $this->query('SET search_path TO '.$config['schema']);\n }\n if (!empty($config['charset'])) {\n $this->setEncoding($config['charset']);\n }\n\n return $this->connection;\n }", "protected function openConn() {\n $database = new Database();\n $this->conn = $database->getConnection();\n }" ]
[ "0.68143505", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6578913", "0.6458046", "0.6448982", "0.64259404", "0.6406071", "0.6359282", "0.6318198", "0.6318198", "0.6318198", "0.6318198", "0.6318198", "0.6318198", "0.6318198", "0.6307073", "0.630628", "0.6265729", "0.6264923", "0.62569696", "0.6256773", "0.6239858", "0.6195056", "0.61905485", "0.6167866", "0.6167866", "0.6167866", "0.615016", "0.6145621", "0.6133277", "0.6088579", "0.60867393", "0.6084987", "0.6067209", "0.6061227", "0.6018285", "0.6018285", "0.6018285", "0.60176784", "0.6002796", "0.59798", "0.5965745", "0.59510714", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.59382653", "0.5935667", "0.59306175", "0.59268546", "0.5921123", "0.59176636", "0.59051454", "0.59051454", "0.5897749", "0.5859602", "0.585852", "0.58544385", "0.58533674", "0.58492196", "0.5839293", "0.583451", "0.5824158", "0.5816731", "0.5813693", "0.5812242", "0.58014745", "0.5796207", "0.5789496", "0.57841414", "0.5778216", "0.5773408", "0.57717806", "0.5760748", "0.57442147", "0.5735419", "0.57335263", "0.57225406", "0.5720586", "0.5700883", "0.5685205", "0.5684675", "0.5681799" ]
0.61424226
38
Disconects from data source.
public function disconnect() { $this->disconnectInternal(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Desconecta()\n\t{\n\t\t$this->conn = null;\n\t}", "public function disConnect();", "public function disconnect() {\n \n $this->con = null;\n \n }", "function DisConnect()\n\t{\n\t\t$this->__connection = null;\n\t\t$this->__connected = false;\n\t}", "public function disconnect() {\r\n\t\t//print_r( 'PhpseclibClient::disconnect()');\r\n\t\tif ($this->connected()) {\r\n\t\t\t$this->_disconnect();\r\n\t\t}\r\n\t}", "protected function disconnectIfConnected() {}", "public function disconnect() {\n $this->exec('exit;');\n $this->connection = null;\n }", "public function disconnect()\n {\n $this->setPdo(null);\n }", "public function disconnect();", "public function disconnect();", "public function disconnect();", "public function disconnect();", "public function disconnect();", "public function disconnect();", "public function disconnect();", "public function disconnect();", "public static function disconnect(){\n\t\tself::$cnx = NULL;\t\n\t\t\n\t}", "function __DESTRUCT() {\n self::disconnect();\n }", "protected function disconnect()\n {\n $this->pd = null;\n }", "public function disconnect(){\n\t\t$this->Connection = null;\n\t}", "public function disconnect()\n\t{\n\t\tself::$connected_client[self::$connection_params]->disconnect();\n\t\tself::$connected_client[self::$connection_params] = null;\n\t}", "public function disconnect()\n {\n parent::disconnect();\n\n unset($this->connection);\n }", "public function disconnect()\r\n {\r\n }", "public function disconnect() : void\n {\n if ($this->sourceQuery) {\n $this->sourceQuery->disconnect();\n }\n }", "public function disconnect() \n\t{\n\t\tunset($this->connection);\n\t}", "public function disconnect()\n\t{\n\t\t$this->_connection = null;\n\t}", "public function __destruct()\n\t{\n\t\tif ( null !== self::$connected_client[self::$connection_params] )\n\t\t{\n\t\t\t$this->disconnect();\n\t\t}\n\t}", "public static function disconnect()\n\t{\n\t\tself::getConnection()->disconnect();\n\t}", "public function disconnect()\n {\n if ($this->m_connect) $this->m_connect->Disconnect();\n }", "public function disconnect()\n\t{\n\t}", "public function disconnect() {\n $this->exec('echo \"EXITING\" && exit;');\n $this->connection = null;\n }", "public function disconnect(): void;", "protected function disconnect() {\n $this->connection = null;\n echo $this->name . ' disconnected' .\"<br>\";\n }", "private function _disconnect()\n {\n //\tDisconnect\n $this->_db->conn = null;\n $this->_db->clear();\n }", "protected function _disconnect() {\n\t\t@fclose($this->socket);\n\t\t$this->socket = NULL;\n\t}", "public function __destruct()\n\t{\n\t\tforeach ( self::$connected_client as $client )\n\t\t{\n\t\t\t$client->disconnect();\n\t\t}\n\t}", "abstract public function disconnect();", "abstract public function disconnect();", "abstract public function disconnect();", "public function disconnect() {\n if (isset($this->dbCon) && $this->dbCon) {\n //$this->dbCon = null;\n }\n }", "public function disconnect()\n\t{\n\t\tself::$connected_client[$this->profile]->disconnect();\n\t\tself::$connected_client[$this->profile] = null;\n\t}", "static function momentDisconect()\r\n {\r\n $user = self::getCurrentUser();\r\n\r\n if ($user !== NULL)\r\n {\r\n $user->setOffline(1);\r\n self::updateUser($user);\r\n }\r\n }", "public function disconnect() {\n if ($this->client) {\n $this->client->disconnect();\n }\n }", "public function disconnect()\n {\n $this->connection->disconnect();\n }", "function __destruct() {\n $this->Disconnect();\n unset($this);\n }", "function __destruct() {\n $this->Disconnect();\n unset($this);\n }", "public function __destruct() {\n // disconnect\n $this->host = null;\n }", "public static function disconnect() {\n\tself::$instance->disconnect();\n }", "public function disconnect()\n {\n $this->cluster = null;\n }", "public function unSubscribe()\n {\n $this->disconnect();\n $this->queue = $this->currentEnvelope = null;\n }", "public function __destruct(){\n\t\t$this->disconnect();\n\t}", "protected function case_teardown() {\r\n if ($this->service->is_connected()) {\r\n $this->service->disconnect();\r\n }\r\n }", "public function __destruct() {\n $this->disconnect();\n }", "public function __destruct()\n {\n $this->disconnect(true);\n }", "public function disconnect()\n {\n $this->pdo = null;\n }", "public function __destruct() \n {\n $this->disconnect();\n }", "public function disconnect(): void\n {\n }", "public function pdisconnect(): void\n {\n }", "public function __destruct()\n {\n $this->disconnect();\n }", "public function __destruct()\n {\n $this->disconnect();\n }", "public function __destruct()\n\t\t{\n\t\t\t$this->connection->close();\n\t\t\t//echo 'Desconectado';\n\t\t}", "function __destruct() {\r\n\t\t$this->disconnect();\r\n\t}", "public function disconnect() {\n\t\t@fclose ( $this->socket );\n\t}", "function __destruct()\n {\n $this->disconnect();\n }", "function disconnect(){\n\t\t$this->dbconn = null;\n\t\t$this->logger->info('RECOLIN DB DB disconnected successfully');\n\t}", "public function disconnect()\n {\n $this->info(\"Disconnecting from @$this->alias\");\n ssh2_disconnect($this->connection);\n }", "protected function connectionDestruct()\t{}", "function disconnect() ;", "public function __destruct()\n {\n try {\n $this->disconnect(true);\n } catch (Exception $e) {\n }\n }", "public function __destruct()\n\t{\n\t\t$this->disconnect();\n\t}", "public function disconnect() {\n $this->db = null;\n }", "public function __destruct() {\n\t\t$this->Unsubscribe();\n\t\t$this->CloseConnections();\n\t}", "public function disconnect()\r\n {\r\n if ( $this->state != self::STATE_NOT_CONNECTED )\r\n {\r\n $this->connection->sendData( 'QUIT' );\r\n $this->connection->getLine(); // discard\r\n $this->state = self::STATE_UPDATE;\r\n\r\n $this->connection->close();\r\n $this->connection = null;\r\n $this->state = self::STATE_NOT_CONNECTED;\r\n }\r\n }", "public function disconnect()\n {\n \t//$GLOBALS['log']->debug('Calling DBManager::disconnect()');\n $close = $this->backendFunctions['close'];\n if(isset($this->database)){\n $this->freeResult();\n if ( is_resource($this->database) || is_object($this->database) )\n\t\t\t\t$close($this->database);\n unset($this->database);\n }\n }", "function __destruct(){\n\t\t$this->disconnect();\n\t}", "public function disconnect() {\n $this->db = null;\n }", "public function cancel()\n\t{\n\t\t$this->pdoStatement = null;\n\t}", "public function disconnect()\n {\n if ($this->currentEnvelope) {\n throw new \\RuntimeException('Trying to disconnect with an unacknoleged message.');\n }\n\n $this->manager->disconnect();\n }", "function revoke()\n\t{\n\t}", "private function imap_disconnect() {\n if (is_resource(self::$imap_conn) && get_resource_type(self::$imap_conn) === \"imap\") {\n imap_close(self::$imap_conn);\n }\n }", "public function disconnect(){\n\t\n\t//TODO: Custom Error reporting\n\ttry {\n\t\t\n\t\t\t$this->_db = NULL;\n\t\t\t}\n\tcatch(PDOException $e) {\n\t\t\t//xxx Custom Error thingy!!!\n\t\t\t_b($e->getMessage());\n\t\t}\n\t\t\t\t\n\t}", "public function __destruct()\n {\n $this -> conn = null;\n }", "public function disconnect(): void\n {\n $this->pdo = null;\n }", "function Disconnect() {}", "public function cancel()\n {\n $this->_statement =null;\n }", "public function disconnect()\n {\n $this->client->close();\n }", "public function disconnect()\n\t{\n $this->neoeloquent->disconnect();\n\t}", "public function __destruct() {\r\n\t\ttry {\r\n\t\t\t$this->disconnect();\r\n\t\t} catch (\\Exception $e) { // avoid fatal error on script termination\r\n\t\t}\r\n\t}", "public function demote()\n {\n return $this->changeRole('client');\n }", "public function videoconferenciaDesconectado( ) {\n $this->setComando(\"DESCONECTADO\");\n }", "public function unsubscribe()\n {\n echo \"<br>\";\n echo \"Action: Cancelling Subscription !\";\n unset($this->plan);\n unset($this->server);\n unset($this->serverList);\n\n }", "function disconnect() {\n if ($this->isConntected()) {\n mysql_close($this->connectionId);\n }\n }", "public function disconnect() {\n if (isset($this->database))\n @$this->database->close();\n }", "private static function _stop()\n {\n $adapter = self::$_transaction->_stored;\n \n if (is_null($adapter)) {\n Config::clearDataAdapter();\n } else {\n Config::setDataAdapter($adapter);\n }\n }", "public function __destruct()\r\n {\r\n if ( $this->state != self::STATE_NOT_CONNECTED )\r\n {\r\n $this->connection->sendData( 'QUIT' );\r\n $this->connection->getLine(); // discard\r\n $this->connection->close();\r\n }\r\n }", "public function nuke()\n {\n if( !Master::$cMaster->APICall('0.9.1/db/' . $this->ulA->db->ID . '/ul/' . $this->ulA->ID, array( 'removeConnection' => $this->json() ) ) ){ commandResult( 500, \"Could remove connection \" . $this->description() ); }\n }", "public function __destruct()\n\t{\n\t\tif ($this->_connection AND $this->_connection->is_started())\n\t\t{\n\t\t\t$this->_connection->stop();\n\t\t}\n\t}", "public function disconnect($name)\n {\n if (isset($this->pdoArray[$name])) {\n $pdo = $this->pdoArray[$name];\n if ($this->activePdo == $pdo) {\n $this->activePdo = null;\n }\n\n unset($this->pdoArray[$name]);\n }\n }", "public function desconectar(){\r\n\t\tmysqli_close($this->conexion);\r\n\t}", "public function disconnect()\r\n {\r\n if ($this->connection->connect_error && $this->connection != null) {\r\n $this->connection->close();\r\n }\r\n $this->connection = null;\r\n }" ]
[ "0.67437553", "0.67238915", "0.6494937", "0.6328262", "0.6250075", "0.6245545", "0.6240499", "0.6204046", "0.6186361", "0.6186361", "0.6186361", "0.6186361", "0.6186361", "0.6186361", "0.6186361", "0.6186361", "0.6170389", "0.61665833", "0.61466354", "0.6141204", "0.6136297", "0.6090373", "0.6085918", "0.60804236", "0.60759777", "0.6073988", "0.6060542", "0.6051019", "0.6040694", "0.6033486", "0.60117", "0.59863645", "0.5972918", "0.5970624", "0.59692514", "0.5966502", "0.596243", "0.596243", "0.596243", "0.5947445", "0.5927415", "0.5909831", "0.5892323", "0.5883033", "0.5873759", "0.5873759", "0.586528", "0.58516234", "0.5845964", "0.5831642", "0.58215296", "0.5812163", "0.58110744", "0.58109367", "0.5810496", "0.580995", "0.58090216", "0.58026236", "0.5768741", "0.5768741", "0.57646537", "0.5755216", "0.57471085", "0.57427925", "0.5742786", "0.5737352", "0.57369727", "0.57284325", "0.57266414", "0.56930405", "0.5687248", "0.56796926", "0.5677834", "0.5677493", "0.5668399", "0.5662306", "0.5640761", "0.5638993", "0.5627706", "0.5618069", "0.5614509", "0.5607606", "0.5605623", "0.56027347", "0.55830944", "0.5578032", "0.55752313", "0.55629176", "0.55434215", "0.5529111", "0.5525667", "0.55205876", "0.5491424", "0.5475103", "0.5473061", "0.54650706", "0.5454204", "0.54395705", "0.5423665", "0.54122907" ]
0.61448306
19
Returns the resource of the connection.
public function getResource() { $this->connectInternal(); return $this->resource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConnectionResource()\n {\n foreach ($this->connections as $id => $connection) {\n if (($connection->isInfoValid() && $connection->isConnected()) || (!$connection->isConnected() && $connection->connect())) {\n return $connection->resource;\n }\n }\n return null;\n }", "public function getResource()\n\t{\n\t\tif($this->resource === null) {\n\t\t\t$this->connect();\n\t\t}\n\n\t\treturn $this->resource;\n\t}", "public function getResource()\n {\n return $this->_resource;\n }", "public function getResource()\n {\n return $this->resource;\n }", "public function getResource()\n {\n return $this->resource;\n }", "public function getResource()\n {\n return $this->resource;\n }", "public function getResource()\n {\n return $this->resource;\n }", "function getResource()\n {\n return $this->resource;\n }", "public function getResource(){\n return $this->resource;\n }", "public function getResource()\n {\n return $this->resource ?: parent::getResource();\n }", "public function get_resource() : string\n {\n return $this->resource;\n }", "public function getResource(): string\n {\n return $this->resource;\n }", "public function getResource(): string\n {\n return $this->resource;\n }", "public function resource() : Resource\n {\n return Resources::forName($this->resource);\n }", "public function get_resource();", "public function getResource() {\n $resource = false;\n if (isset($this->_resource)) {\n $resource = $this->_resource;\n }\n\n return $resource;\n }", "public function getSocketResource();", "public function getResource()\n {\n return $this->dbh;\n }", "public function getWrappedResourceHandle()\n {\n $connProperty = new \\ReflectionProperty(DB2Connection::class, 'conn');\n $connProperty->setAccessible(true);\n return $connProperty->getValue($this);\n }", "public function connect()\n {\n if (!isset($this->_resourceId)) {\n $this->_resourceId = $this->_doConnect();\n }\n \n return $this->_resourceId;\n }", "public function getResource(): ResourceInterface\n {\n return $this->resource;\n }", "public function getConnection() {\n return $this->connection;\n }", "public function getConnection() {\n return $this->connection;\n }", "function getConnection() {\r\n\r\n\t\treturn $this->connection;\r\n\r\n\t}", "public function getConnection(){\n\t\treturn $this->connection;\n\t}", "public function getConnection() {\n return $this->_connection;\n }", "public function getConnection() {\n\t\treturn $this->_connection;\n\t}", "public function getConnection(){\n\t\treturn $this->_connection;\n\t}", "public function getConnection() {\n return $this->connection;\n }", "protected function getConnection()\n {\n return $this->connection;\n }", "protected function getConnection()\n {\n return $this->connection;\n }", "function connection()\n\t{\n\t\tif (isset($this->conn_name)) {\n\t\t\treturn Db::getConnection($this->conn_name);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public function getConnection()\n {\n return $this->_connection;\n }", "public function _getConnection(){\n return $this->_connection;\n }", "protected function getConnection()\n {\n return $this->_connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function get_connection() {\n return $this->_connection;\n }", "public function get_connection() {\n return $this->_connection;\n }", "public function getConnection()\n {\n return static::resolveConnection($this->getConnectionName());\n }", "public function getConnection()\n {\n return static::resolveConnection($this->getConnectionName());\n }", "public function get_connection()\n {\n return $this->connection;\n }", "public function connection()\n {\n return $this->connection;\n }", "public function connection()\n {\n return $this->connection;\n }", "public function connection()\n {\n return $this->connection;\n }", "public function getConnection() {\n return $this->connection;\n }", "function getConnection() {\n\t\tself::createConnection( $this->_connectionName );\n\t\treturn Kwerry::$_connections[ $this->_connectionName ];\n\t}", "protected function _getConnection()\n {\n if (is_null($this->_connection)) {\n /** @var $coreResource \\Magento\\Framework\\App\\ResourceConnection */\n $coreResource = \\Magento\\TestFramework\\Helper\\Bootstrap::getObjectManager()\n ->get('Magento\\Framework\\App\\ResourceConnection');\n $this->_connection = $coreResource->getConnection();\n }\n return $this->_connection;\n }", "public function getConnection()\n\t{\n\t\treturn $this->connection;\n\t}", "public function getConnection()\n\t{\n\t\treturn $this->connection;\n\t}", "public function getConnection()\r\n\t{\r\n\t\treturn $this->connection;\r\n\t}", "public function getConnection()\n {\n return $this->__connection;\n }", "public function GetTargetResource()\n {\n return $this->_targetResource;\n }", "public function getConnection(): Connection\n {\n return $this->_connection;\n }", "public function getConnection()\n {\n return($this->connx);\n }", "public function getConnection(): Connection\n {\n return $this->connection;\n }", "public function get_connection()\n {\n return $this->connection();\n }", "private function getResourceId(ConnectionInterface $conn)\n {\n return $conn->resourceId;\n }", "public function getConnection()\n {\n return $this->conn;\n }", "public function getConnection()\n {\n return $this->conn;\n }", "public function getResource() {\n\t\tif ($this->getDriver() instanceof Tx_RsLock_Locking_Driver_Typo3_DriverApiInterface) {\n\t\t\treturn $this->getDriver()->getResource();\n\t\t}\n\n\t\treturn FALSE;\n\t}", "public function Source(){\n return $this->connection;\n }", "public function get(): ConnectionInterface;", "public function get_connection()\n {\n }", "public function getConnection()\n\t{\n\t\treturn static::$instances[$this->_instance];\n\t}", "protected function _getResource()\n {\n $resourceName = $this->_engine->getResourceName();\n if ($resourceName) {\n $this->_resourceName = $resourceName;\n }\n return parent::_getResource();\n }", "public function getConnection()\n {\n return $this->resolver->connection();\n }", "public function getResourceReference()\n {\n return $this->resourceReference;\n }", "public function getConn() {\n\n return $this->conn;\n }", "protected function _getResource()\n {\n return parent::_getResource();\n }", "protected function _getResource()\n {\n return parent::_getResource();\n }", "protected function _getResource()\n {\n return parent::_getResource();\n }", "public function get_current_connection()\n {\n }", "function getCONN(){\n return $this ->CONN;\n }", "public function model()\n {\n return $this->resource;\n }", "public function getConn(){\n\t\treturn $this->conn;\n\t}", "public function getConn()\n {\n return $this->conn;\n }", "public function getConn()\n {\n return $this->conn;\n }", "public function connection(){ return $this->connection; }", "public function getConn(){\n return $this->conn;\n }", "public function getByResource(\\Mage_Core_Model_Resource $resource)\n {\n return $this->getByConnection(\n $resource->getConnection('core_read')\n );\n }", "public function getConnection(){\n\t\tif(!isset($this->connection)){\n\t\t\t$this->connection = $this->connect($this->connectionParams);\n\t\t}\n\n\t\treturn $this->connection;\n\t}", "public function getConn()\n {\n return $this->conn;\n }", "public function getConn()\n\t{\n\t\treturn $this->conn;\n\t}", "public function getImageResource()\n {\n return $this->image;\n }", "public function getConnection()\n {\n return config('ring_central.connection.name');\n }", "public function get() {\n if($this->connected) {\n return $this->conn;\n }\n else {\n return $this->connect();\n }\n }", "public function getConn() {\n\t\tif ($this->conn) {\n\t\t\treturn $this->conn;\n\t\t}\n\t}", "public function getRessource()\n\t{\n\t\treturn $this->Ressource;\n\t}", "public function getConnection()\n\t{\n\t\treturn empty($this->db_conn) ? Db::getConnection($this->getConnectionName()) : $this->db_conn;\n\t}", "public function getResource()\n {\n\n if ($this->is_collection)\n {\n return null;\n }\n\n if ($this->isError())\n {\n return null;\n }\n\n $class = $this->getResourceClass();\n return new $class($this->data);\n }", "public function getConnection()\n {\n return Database::getConnection($this->connection);\n }" ]
[ "0.8221173", "0.8187311", "0.7931316", "0.79163045", "0.79163045", "0.79163045", "0.79163045", "0.78249913", "0.77052134", "0.76174533", "0.75430703", "0.7401839", "0.7401839", "0.7331202", "0.7266217", "0.7266035", "0.7256765", "0.72262746", "0.71368235", "0.71076024", "0.70733446", "0.6988553", "0.6988553", "0.698672", "0.6976763", "0.69686645", "0.6967698", "0.6953406", "0.6930684", "0.69287103", "0.69287103", "0.6921051", "0.69105464", "0.6904094", "0.6887743", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6886223", "0.6883358", "0.6883358", "0.6877986", "0.6877986", "0.68723845", "0.68522346", "0.68522346", "0.68522346", "0.68389827", "0.68249446", "0.6823354", "0.6820011", "0.6820011", "0.6813728", "0.679768", "0.6763549", "0.67552173", "0.6743433", "0.67203575", "0.6717185", "0.66997266", "0.6660279", "0.6660279", "0.66594213", "0.6613065", "0.6603807", "0.6590264", "0.6580987", "0.6574177", "0.65543634", "0.6549127", "0.65379137", "0.6537116", "0.6537116", "0.6537116", "0.6529864", "0.6523745", "0.6507284", "0.6503686", "0.64985746", "0.64985746", "0.6494805", "0.6494792", "0.64730054", "0.6470615", "0.6466837", "0.6466403", "0.6461468", "0.6444916", "0.6441105", "0.64166", "0.6414436", "0.63850707", "0.6384407", "0.63797945" ]
0.8328992
0
Returns the state of the connection.
public function isConnected() { return $this->isConnected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getConnStatus() \n {\n\t\t\treturn $this->connectionStatus;\n\t\t}", "public function getStatusConnection()\n {\n return $this->statusConnection;\n }", "public function getState() {\n\t\treturn $this->state;\n\t}", "public function getState() {\n\t\treturn $this->state;\n\t}", "public function getState() {\n\t\treturn self::$_state;\n\t}", "public function getState() {\n\t\treturn $this->STATE;\n\t}", "public function state()\n {\n return $this->state;\n }", "public function getState() {\n return $this->state;\n }", "public function getState()\n {\n\n return $this->state;\n }", "public function getState() {\n return $this->_state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->state;\n }", "public function getState()\n {\n return $this->_state;\n }", "public function getState()\n {\n return $this->_state;\n }", "public function getState()\r\n {\r\n return $this->state;\r\n }", "public function getState()\r\n {\r\n return $this->state;\r\n }", "function getState() {\n return $this->state;\n }", "public function getConnectionStatus()\n {\n $connection = $this->serverAttributes()['HTTP_CONNECTION'];\n\n if (!$connection) {\n return false;\n }\n\n return $connection;\n }", "public function getState()\r\n {\r\n return $this->_state;\r\n }", "public function getSQLState()\n {\n return $this->state;\n }", "protected function _getState()\n {\n return $this->state;\n }", "final public function getState() {\n return $this->state;\n }", "public function getState(){\n\t\treturn $this->state;\n\t}", "function getState()\r\n\t{\r\n\t\treturn $this->state;\r\n\t}", "public function getState()\n {\n return $this->get(self::STATE);\n }", "public function getState()\n {\n return $this->get(self::STATE);\n }", "function getState()\n {\n\t\treturn $this->_state;\n }", "public function getState(){\n return $this->_getData(self::STATE);\n }", "public function get_state()\n {\n return $this->_state;\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function getState()\n {\n return $this->get(self::_STATE);\n }", "public function state(): string {\n return $this->_state;\n }", "public function getState()\n {\n if (!isset($this->state))\n return true;\n return $this->state;\n }", "public function get_state() {\n\t\treturn $this->data['state'];\n\t}", "public function getState()\n {\n return MQStateKeys::get($this->state);\n }", "public function getState() {\r\n return $this->_storage->getState();\r\n }", "public function state(){\n return $this->state;\n }", "public function getState(/* ... */)\n {\n return $this->_state;\n }", "public function getState()\n {\n return $this->stateData['state'];\n }", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function getState();", "public function get_state()\n {\n return $this->get_default_property(self::PROPERTY_STATE);\n }", "public function status()\n {\n return $this->doRequest('GET', 'check-connection-session', []);\n }", "public function getConnStatus () {\n return array(\n \"valid\" => $this->valid,\n \"status\" => $this->conn_status\n );\n }", "public function getState(): string\n {\n return $this->_state;\n }", "public function getResourceState()\n {\n return $this->resource_state;\n }", "public function getCurrentState()\n {\n return $this->currentState\n || function_exists('mysqli_get_client_info');\n }", "public static function get_state() {\t\t\t\t\t\t\t\t\n\t\t\treturn self::get('session_state');\n\t\t}", "public function getState() : string\n {\n return $this->state;\n }" ]
[ "0.7795181", "0.75456226", "0.7159852", "0.7159852", "0.71334356", "0.71151286", "0.7108761", "0.71084857", "0.70803577", "0.7077474", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7060527", "0.7032751", "0.7032751", "0.70306337", "0.70306337", "0.70268977", "0.70173913", "0.70052075", "0.69934994", "0.6993211", "0.6970236", "0.6935622", "0.69284064", "0.6893213", "0.6893213", "0.6885482", "0.68594044", "0.685107", "0.68185294", "0.68185294", "0.68185294", "0.68185294", "0.6715401", "0.67091405", "0.66752887", "0.6667907", "0.6666956", "0.6666356", "0.66581476", "0.66269976", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65686417", "0.65592515", "0.6557671", "0.65558445", "0.65436006", "0.65281016", "0.65222394", "0.6520912", "0.64912504" ]
0.0
-1
Returns the array with the connection parameters.
public function getConfiguration() { return $this->configuration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getConnectionParameters() {\n\t\treturn array();\n\t}", "protected function connection()\n {\n return [\n 'host' => !empty($this->config['host']) ? $this->config['host'] : null,\n 'port' => !empty($this->config['port']) ? $this->config['port'] : null,\n 'url' => !empty($this->config['url']) ? $this->config['url'] : null,\n ];\n }", "private function getConnectionInfo()\n {\n return [\n 'host' => $this->getSocketEndPoint(),\n 'ssl_file' => $this->sslPem,\n 'pass_phrase'=> $this->passPhrase\n ];\n }", "public function getConnectorParameters()\n {\n return $this->connector_parameters;\n }", "public function getParameters()\n {\n return array();\n }", "abstract protected function getDatabaseConnectionParameters();", "public function get_connection_args()\n {\n }", "public static function get_connection_args()\n {\n }", "public static function get_connection_args()\n {\n }", "public function getDBConnections(): array {\n return $this->configVars['database-connections'];\n }", "public function getParams(): array\n {\n return $this->getParams;\n }", "public function getParameters() : array\n {\n return $this->parameters;\n }", "public function getConfig()\n {\n if ($this->dbConnectionId !== null) {\n // Just return the PDO instance\n return Yii::app()->getComponent($this->dbConnectionId)->pdoInstance;\n }\n\n // Return the connection configuration;\n return array(\n 'dsn'=>$this->dsn,\n 'username'=>$this->username,\n 'password'=>$this->password\n );\n }", "public function getParameters(): array {\n\t\t\treturn $this->parameters;\n\t\t}", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public function getParameters(): array\n {\n return $this->parameters;\n }", "protected function getParams(): array\n {\n return $this->params;\n }", "function getConnections(): array;", "public function getParameters(): array;", "public function getParams() : array {\n return $this->params;\n }", "public function getListDbConnConfigs() {\n\t\treturn $this->_getConfigValueArray('configDBconn');\n\t}", "public function getPDOConnection(): array\n {\n $adapter = 'mysql';\n $user = '';\n $pass = '';\n $host = '';\n $db_name = '';\n $env = getenv('APP_ENV');\n\n switch ($env) {\n case 'develop':\n $user = getenv('DB_USER');\n $pass = getenv('DB_PASS');\n $host = getenv('DB_HOST');\n $db_name = getenv('DB_NAME');\n\n break;\n }\n\n $dsn = sprintf('%s:dbname=%s;host=%s', $adapter, $db_name, $host);\n\n return compact('dsn', 'user', 'pass');\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function toArray() {\n return [\n 'host' => $this->host,\n 'port' => $this->port,\n 'type' => $this->type,\n ];\n }", "public function getParams(): array\n {\n $params = [];\n\n if ($this->chatId !== null) {\n $params['chat_id'] = $this->chatId;\n }\n\n if ($this->messageId) {\n $params['message_id'] = $this->messageId;\n }\n\n if ($this->inlineMessageId !== null) {\n $params['inline_message_id'] = $this->inlineMessageId;\n }\n\n return $params;\n }", "protected function queryParameters()\n {\n return [\n 'access_key' => $this->accessKey,\n 'base' => $this->defaultCurrency,\n 'symbols' => implode(',', $this->currencies()),\n ];\n }", "public function getConnectionArgs()\n {\n }", "protected function getParametros(){\n\t\t\n\t\t$parametros = array();\t\t\t\n\t\t\n\t\t$parametros[\":nickname\"] \t\t= $this->nickName;\n\t\t$parametros[\":nombrecompleto\"] \t= $this->nombreCompleto;\n\t\t$parametros[\":apellidos\"] \t\t= $this->apellidos;\n\t\t$parametros[\":email\"] \t\t\t= $this->email;\n\t\t$parametros[\":password\"] \t\t= $this->password;\n\t\t$parametros[\":fkGrupoUsuario\"] \t= $this->fkGrupoUsuario;\n\n\t\treturn $parametros;\n\t}", "protected function queryParameters()\n {\n return [\n 'app_id' => $this->accessKey,\n 'base' => $this->defaultCurrency,\n 'symbols' => collect($this->currencies())->implode(','),\n ];\n }", "public function getParams(): array;", "public function toArray()\n {\n return $this->parameters;\n }", "abstract public function getConnectionArguments();", "public function getParams() :array;", "protected function getParameters(): array\n {\n return array(\n \"offset\" => $this->offset,\n \"max\" => $this->limit,\n );\n }", "function getParameters(): array;", "static public function activeConnectionData()\n {\n if (!self::$activeConnectionName)\n throw new Exception\\RuntimeException(\"No database connection is active\");\n return array_merge(self::$_connection_data[self::$activeConnectionName], ['name' => self::$activeConnectionName]);\n }", "public function getSettingParameters() : array\n {\n \treturn $this->settings['parameters'];\n }", "public function getConnectionConfig() {\n return $this->connectionConfig;\n }", "public function getParams() :array\n \t{\n \t\treturn $this->finalParams;\n \t}", "protected function getDefaultParametersArray(): array\n {\n if ($this->isClusterTest()) {\n return $this->prepareClusterEndpoints();\n }\n\n return [\n 'scheme' => 'tcp',\n 'host' => constant('REDIS_SERVER_HOST'),\n 'port' => constant('REDIS_SERVER_PORT'),\n 'database' => constant('REDIS_SERVER_DBNUM'),\n ];\n }", "public function getConnections(): array\n {\n return $this->connections;\n }", "public function getConnections(): array\n {\n return $this->connections;\n }", "public static function getAuthenticationParameters(): array\n {\n return FoodDatabase::getApiCredentials();\n }", "public function getParameters(/* ... */)\n {\n return $this->_params;\n }", "#[Pure] public function getParameters(): array\n {\n $array = [];\n foreach ($this->parameters as $name => $parameter) {\n $array[$this->dbc->makeParameterLabel($name)] = $parameter;\n }\n return $array;\n }", "public static function getParams()\n {\n return self::$params;\n }", "public function connections()\n {\n return config()\n ->database\n ->adapters\n ->toArray();\n }", "public function parameters(): array;", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function parameters(): array\n {\n return $this->getAttribute('parameters');\n }", "public function getParameters()\n {\n return $this->parameters->all();\n }", "public function params()\n {\n return $this->params;\n }", "public function parameters()\n {\n $this->isSecured();\n\n return [\n 'original' => $this->getUri(),\n 'hash' => $this->getHash(),\n 'secured' => $this->getIsSecured(),\n\n 'uri' => $this->getIdentifier(),\n 'url' => $this->getLocator(),\n 'urn' => $this->getName(),\n\n 'scheme' => $this->getScheme(),\n 'protocol' => $this->getProtocol(),\n 'user' => $this->getUser(),\n 'pass' => $this->getPass(),\n\n 'host' => $this->getHost(),\n 'registrable_domain' => $this->getRegistrableDomain(),\n 'subdomain' => $this->getSubdomain(),\n 'hostname' => $this->getHostname(),\n 'tld' => $this->getTld(),\n 'isValidDomain' => $this->getIsValidDomain(),\n 'isIp' => $this->getIsIp(),\n\n 'port' => $this->getPort(),\n 'path' => $this->getPath().$this->getFile(),\n 'segments' => $this->getSegments(),\n 'file' => $this->getFile(),\n 'dirname' => $this->getDirname(),\n 'filename' => $this->getFilename(),\n 'extension' => $this->getExtension(),\n // 'segment_1' => $this->getSegment(1),\n // 'segment_2' => $this->getSegment(2),\n // 'segment_4' => $this->getSegment(4),\n\n 'query' => $this->getQuery(),\n 'parameters' => $this->getParameters(),\n // 'parameters_p2' => $this->getParameter('p2'),\n\n 'fragment' => $this->getFragment(),\n 'fragments' => $this->getFragments(),\n // 'fragmentsParameter_p2' => $this->getFragmentsParameter('p2'),\n ];\n }", "public function getParams() {\n \n return $this->_params;\n }", "public function getParameters() {}", "protected function getEventParameters(): array\n {\n return $this->eventParameters;\n }", "public function getConfigData()\n {\n return [\n 'alias' => $this->getAlias(),\n 'dbName' => $this->getName(),\n 'dbHost' => $this->getHost(),\n 'dbType' => $this->getType(),\n 'dbUser' => $this->getUserName(),\n 'dbPass' => $this->getPassword()\n ];\n }", "public function getDataConfig()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->server;\n }", "public function params()\n {\n return $this->_params;\n }", "public function parameters()\n {\n return array_merge($this->get, $this->post);\n }", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters() {\n \n return $this->params;\n \n }", "public function getParams() {}", "function get_object_credentials() {\n\t\treturn array(\n\t\t\t'host' => $this->host,\n\t\t\t'port' => $this->port,\n\t\t\t'dbname' => $this->dbName,\n\t\t\t'user' => $this->user,\n\t\t\t'password' => $this->passwd\n\t\t);\n\t}", "public function getParams(){\n\t\treturn $this->params;\n\t}", "public function getParams() {\n\t\treturn $this -> v_params;\n\t}", "function dsnArray()\n\t{\n\t\t$conn_info = Db::getConnection($this->conn_name);\n\t\tif (empty($conn_info['dsn']))\n\t\t\tthrow new Exception('No dsn string found for the connection ' \n\t\t\t. $this->conn_name);\n\t\treturn Db::parseDsnString($conn_info['dsn']);\n\t}", "public function params(): array;", "public function config(): array\n {\n return $this->config;\n }", "function getParams() {\n\t\treturn $this->params;\n\t}", "public function getConfig(): array\n {\n return $this->_config;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }" ]
[ "0.8724844", "0.7848181", "0.7703429", "0.7172213", "0.7164882", "0.71073467", "0.6965109", "0.6946609", "0.6946609", "0.6940846", "0.6933533", "0.6906761", "0.68780136", "0.6873042", "0.68564", "0.68564", "0.68564", "0.68564", "0.6856071", "0.6841387", "0.6831924", "0.6826427", "0.6807462", "0.67740226", "0.6766296", "0.6766296", "0.6766296", "0.6766296", "0.6766296", "0.67655283", "0.6757792", "0.6750632", "0.67487586", "0.67461187", "0.6745712", "0.6735487", "0.6725783", "0.6718708", "0.66972196", "0.6678714", "0.66780716", "0.66583735", "0.6636565", "0.6634889", "0.6617565", "0.6605507", "0.66045266", "0.66045266", "0.6592462", "0.6577633", "0.65734965", "0.65732396", "0.6563798", "0.6547859", "0.65448093", "0.65448093", "0.65448093", "0.65448093", "0.6536024", "0.6520998", "0.6512988", "0.6509442", "0.65060884", "0.6505428", "0.6504842", "0.65033925", "0.65013534", "0.65012187", "0.6492553", "0.64724964", "0.64718646", "0.64718646", "0.64718646", "0.64718646", "0.64718646", "0.64718646", "0.64718646", "0.64718646", "0.6459614", "0.6450612", "0.64499027", "0.6442591", "0.6436918", "0.6431343", "0.64298475", "0.64211553", "0.64204144", "0.6418523", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885", "0.64091885" ]
0.0
-1
Returns max packet length to send to or receive from the database server.
public function getMaxAllowedPacket() { return PHP_INT_MAX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxAllowedPacket(): int\n {\n if (!isset($this->maxAllowedPacket))\n {\n $query = \"show variables like 'max_allowed_packet'\";\n $max_allowed_packet = $this->executeRow1($query);\n\n $this->maxAllowedPacket = $max_allowed_packet['Value'];\n\n // Note: When setting $chunkSize equal to $maxAllowedPacket it is not possible to transmit a LOB\n // with size $maxAllowedPacket bytes (but only $maxAllowedPacket - 8 bytes). But when setting the size of\n // $chunkSize less than $maxAllowedPacket than it is possible to transmit a LOB with size\n // $maxAllowedPacket bytes.\n $this->chunkSize = (int)min($this->maxAllowedPacket - 8, 1024 * 1024);\n }\n\n return (int)$this->maxAllowedPacket;\n }", "public function getMaxLength()\n {\n return $this->__get(self::FIELD_MAXLENGTH); \n }", "function max_allowed_packet() {\n\t\treturn 850000;\n\t}", "public function getPacketLength() : int {\n return $this->iPacketLength;\n }", "public function getMaxLength() {\n return $this->maxLength;\n }", "public function getMaxLength()\n {\n return $this->maxLength;\n }", "public function getLengthMax()\n {\n return $this->lengthMax;\n }", "public function getMaxLength()\n {\n return 254;\n }", "protected function get_max_length(): int\n\t{\n\t\treturn $this->end < $this->total ? $this->length : -1;\n\t}", "public function getMaxSize()\r\n {\r\n return $this->max_size;\r\n }", "public function GetMaxSize ();", "public function getMaxLength() {}", "public function getSocketRecvSize()\n {\n return $this->socketRecvSize;\n }", "public function get_max_query_length() {\n\t\treturn $this->max_query_length;\n\t}", "public function getMaxSize(): int;", "public function getRpacketLimit()\n {\n return $this->rpacket_limit;\n }", "public function getMaxSize() : int{\n return $this->maxSize;\n }", "public function getMaxSize(): int\n {\n return $this->maxSize;\n }", "public function getMaxConnections() {\n return @$this->attributes['max_connections'];\n }", "public function getMaxLength();", "public function getMaxKeyLength()\n {\n return $this->maxKeyLength;\n }", "public function getMaxSize(){\n return $this->maxSize;\n }", "public function getMaxLimit()\n {\n return $this->max_limit;\n }", "public function getLengthLimit()\n {\n }", "public static function getPostMaxSize(): int\n {\n $result = static::getIniValue('post_max_size');\n $result = Convert::valueToBytes($result);\n\n return $result;\n }", "public function getMaxSize() : int {\n\t\treturn $this->generator->getMaxSize();\n\t}", "public function getSizeLimit() {\n return $this->sizeLimit;\n }", "public function getMaxLength(): ?int\n {\n return $this->maxLength;\n }", "public function getLimitLength()\n\t\t{\n\t\t\tif($this->hasLimit())\n\t\t\t{\n\t\t\t\treturn $this->limit[1];\n\t\t\t}\n\t\t\tthrow new \\Exception('Retrieving non-existant limit length');\n\t\t}", "public function getMaxPadSize() {\n\treturn $this->textStorageSize - $this->getOverheadSize($this->algoBlockSize - 1);\n }", "public function getMaxSize() {\n\t\t\treturn $this->maxSize >= 0 ? $this->maxSize : $this->getTotalMaxSize();\n\t\t}", "public function max_connections()\n {\n $channel = ChannelRepository::getPublic($this);\n\n return $channel->max_connections;\n }", "public function getTotalMaxSize() {\n\t\t\treturn $this->getStats( 'limit_maxbytes' );\n\t\t}", "public function getMaximumLineLength() {}", "public function getMaxColumnNameLength();", "public function getMaxAttributeLength()\n {\n return (int)$this->floatValue('recorded.value.max.length', 1200);\n }", "public function getMaxlength(): ?int\n {\n return $this->maxlength;\n }", "function getPayloadLength();", "private function determineSupportedBindSize() {\n $this->failsafeDdl('create table bind_test (val varchar2(4000 char))');\n $ok = FALSE;\n\n foreach ($this->pdoBindLengthLimits as $length) {\n try {\n syslog(LOG_ERR, \"trying to bind $length bytes...\");\n $determined_size = $length;\n $this->oracleQuery('insert into bind_test values (?)', array(\n str_pad('a', $length, 'a'),\n ));\n syslog(LOG_ERR, \"bind succeeded.\");\n $ok = TRUE;\n break;\n }\n catch (\\Exception $e) {\n }\n }\n\n if (!$ok) {\n throw new \\Exception('unable to determine PDO maximum bind size');\n }\n\n $this->failsafeDdl(\"drop table oracle_bind_size\");\n $this->failsafeDdl(\"create table oracle_bind_size as select $determined_size val from dual\");\n }", "public function getMaxFileSize()\n {\n return $this->maxBytes;\n }", "public function getSocketSendSize()\n {\n return $this->socketSendSize;\n }", "public function getMaxChars()\n {\n return $this->maxChars;\n }", "public function getRecvTimeout()\n {\n return $this->recvTimeout;\n }", "public function getMaxChars()\n {\n return intval($this->maxChars);\n }", "public function getMaxUploadFileSize()\n\t{\n\t\t$objResult = \\Database::getInstance()->prepare(\"SELECT MAX(maxlength) AS maxlength FROM tl_form_field WHERE pid=? AND invisible='' AND type='upload' AND maxlength>0\")\n\t\t\t\t\t\t\t\t\t\t\t ->execute($this->id);\n\n\t\tif ($objResult->numRows > 0 && $objResult->maxlength > 0)\n\t\t{\n\t\t\treturn $objResult->maxlength;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \\Config::get('maxFileSize');\n\t\t}\n\t}", "public function getServerFailureLimit()\n {\n return $this->serverFailureLimit;\n }", "public function getFieldLength()\n {\n return $this->FieldLength;\n }", "function getMaxKeySize()\n {\n return $this->_key_size;\n }", "public function getLengthBytes()\n {\n return $this->length_bytes;\n }", "function _get_field_size() \n {\n if (isset($this->attribs['size'])) {\n return $this->attribs['size'];\n }\n elseif ($this->attribs['maxlength'] > $this->max_size) {\n return $this->max_size;\n }\n else {\n return $this->attribs['maxlength'];\n }\n }", "public function getLength()\n {\n return strlen($this->data);\n }", "public function getMaxLineLength()\n {\n return $this->maxLineLength;\n }", "protected function getPostMaxSize()\n {\n if (is_numeric($postMaxSize = ini_get('post_max_size'))) {\n return (int)$postMaxSize;\n }\n\n $metric = strtoupper(substr($postMaxSize, -1));\n\n switch ($metric) {\n case 'K':\n return (int)$postMaxSize * 1024;\n case 'M':\n return (int)$postMaxSize * 1048576;\n default:\n return (int)$postMaxSize;\n }\n }", "function getMaxAttachmentSize()\n {\n $size = Misc::return_bytes(ini_get('upload_max_filesize'));\n return Misc::formatFileSize($size);\n }", "private final function getLength() {\n\t\t\treturn $this->length;\n\t\t}", "public function getPostMaxSize()\n {\n $iniMax = $this->getNormalizedIniPostMaxSize();\n\n if ('' === $iniMax) {\n return null;\n }\n\n if (preg_match('#^(\\d+)([bkmgt])#i', $iniMax, $match)) {\n $shift = array('b' => 0, 'k' => 10, 'm' => 20, 'g' => 30, 't' => 40);\n $iniMax = ($match[1] * (1 << $shift[strtolower($match[2])]));\n }\n\n return (int) $iniMax;\n }", "public static function get_database_size()\n {\n }", "public function getMaxSizeInMegabytes()\n {\n return $this->_maxSizeInMegabytes;\n }", "public function getLength()\n {\n return $this->int_length;\n }", "function getMaxFileSize()\n {\n $val = trim(ini_get('post_max_size'));\n $last = strtolower($val[strlen($val)-1]);\n $val = intval($val);\n switch($last) {\n case 'g':\n $val *= 1024;\n case 'm':\n $val *= 1024;\n case 'k':\n $val *= 1024;\n }\n $postMaxSize = $val;\n\n return($postMaxSize);\n }", "public function maxCapacity() \r\n {\r\n return $this->maxCapacity;\r\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "public function getLength()\n {\n return $this->length;\n }", "function getLength ()\n\t{\n\t\treturn $this->_len ; \n\t}", "public function getLength()\n\t\t{\n\t\t\treturn $this->length;\n\t\t}", "function getLength(): int\n {\n return $this->length;\n }", "protected function getSize()\n {\n return strlen($this->data);\n }", "public function getMaxFileSize()\r\n\t{\r\n\t\treturn $this->max_file_size;\r\n\t}", "public function get_max_length_code() {\n\t\treturn self::MAX_LENGTH_CODE;\n\t}", "public function get_max_length_code() {\n\t\treturn self::MAX_LENGTH_CODE;\n\t}", "public function get_max_length_code() {\n\t\treturn self::MAX_LENGTH_CODE;\n\t}", "static public function getMaxUploadFileSize()\n\t{\n $upload_max_filesize = self::getBytesOfLiteralSizeFormat(ini_get('upload_max_filesize'));\n $post_max_size = self::getBytesOfLiteralSizeFormat(ini_get('post_max_size'));\n\n\t\tif ($upload_max_filesize < $post_max_size) {\n\t\t\t$maxUploadFilesize = $upload_max_filesize;\n\t\t} else {\n\t\t\t$maxUploadFilesize = $post_max_size;\n\t\t}\n\t\treturn $maxUploadFilesize;\n\t}", "public function getMaxFrameSize(): int\n {\n }", "public function getMaxInToOrConversionChunkSize()\r\n {\r\n return 150;\r\n }", "public static function getMaxRequests()\n\t{\n\t\treturn MHTTPD::$config['Server']['keep_alive_max_requests'];\n\t}", "public function testMaxAllowedPacketQueryTruncating() {\n // Only run this test for the 'mysql' driver.\n $driver = $this->connection->driver();\n if ($driver !== 'mysql') {\n $this->markTestSkipped(\"MySql tests can not run for driver '$driver'.\");\n }\n // The max_allowed_packet value is configured per database instance.\n // Retrieve the max_allowed_packet value from the current instance and\n // check if PHP is configured with sufficient allowed memory to be able\n // to generate a query larger than max_allowed_packet.\n $max_allowed_packet = $this->connection->query('SELECT @@global.max_allowed_packet')->fetchField();\n if (!Environment::checkMemoryLimit($max_allowed_packet + (16 * 1024 * 1024))) {\n $this->markTestSkipped('The configured max_allowed_packet exceeds the php memory limit. Therefore the test is skipped.');\n }\n\n $long_name = str_repeat('a', $max_allowed_packet + 1);\n try {\n $this->connection->query('SELECT [name] FROM {test} WHERE [name] = :name', [':name' => $long_name]);\n $this->fail(\"An exception should be thrown for queries larger than 'max_allowed_packet'\");\n }\n catch (DatabaseException $e) {\n // Close and re-open the connection. Otherwise we will run into error\n // 2006 \"MySQL server had gone away\" afterwards.\n Database::closeConnection();\n Database::getConnection();\n // Got a packet bigger than 'max_allowed_packet' bytes exception thrown.\n $this->assertEquals(1153, $e->getPrevious()->errorInfo[1]);\n // 'max_allowed_packet' exception message truncated.\n // Use strlen() to count the bytes exactly, not the unicode chars.\n $this->assertLessThanOrEqual($max_allowed_packet, strlen($e->getMessage()));\n }\n }", "protected function get_post_max_size()\n {\n return size_inbytes(ini_get(\"post_max_size\")); \n//echo 'display_errors = ' . ini_get('display_errors') . \"\\n\";\n//echo 'register_globals = ' . ini_get('register_globals') . \"\\n\";\n//echo 'post_max_size = ' . ini_get('post_max_size') . \"\\n\";\n//echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . \"\\n\";\n//echo 'post_max_size in bytes = ' . size_inbytes(ini_get(\"post_max_size\")); \n }", "public function getLen()\n {\n $value = $this->get(self::LEN);\n return $value === null ? (integer)$value : $value;\n }", "public function getLen()\n {\n return $this->_len;\n }", "public function getLength() {\n return $this->_length;\n }", "public function limit(): int\n {\n return $this->limit;\n }", "protected function get_limit()\n {\n $bytes = ini_get('memory_limit');\n\n return $this->formatBytes($bytes);\n }", "public function dbsize() {\n return $this->returnCommand(['DBSIZE']);\n }", "public function getMaxSize() {\n return number_format($this->_max / 1024, 1) . ' KB';\n }", "private function get_DB_size() {\n global $DB;\n $sql = \"SELECT table_name AS table_name,\n ROUND(((data_length + index_length) / 1024 / 1024), 2) AS table_size\n FROM information_schema.TABLES\n WHERE table_schema = :databasename\n ORDER BY (data_length + index_length) DESC;\";\n\n $params = ['databasename' => $this->get_DB_name()];\n $records = $DB->get_records_sql($sql, $params);\n $total = 0;\n\n foreach ($records as $record) {\n $total += (float) $record->table_size;\n }\n return $total . \" MB\"; // Total is in MB\n }", "public function getLength() {\r\n return $this->length;\r\n }", "public function getQueryStringLengthValue()\n {\n return $this->readWrapperValue(\"query_string_length\");\n }", "public function getLimit() : int\n {\n return $this->limit;\n }", "public function getLength()\r\n {\r\n return $this->length;\r\n }", "public function getRemainingLength()\n {\n return $this->remaining_length;\n }", "protected function getCharacterLimit()\n {\n $charLimit = static::CHAR_LIMIT_DEFAULT;\n if ($this->isUsingExpectedLengthAsCharLimit()) {\n $charLimit = $this->interaction->getExpectedLength();\n }\n\n return $charLimit;\n }", "public function getLength() {\n \n return $this->_length;\n }", "public function getMaxSize()\n {\n return self::PREVIEW_SIZE;\n }", "function getSize(): int {\n return \\strlen($this->buffer);\n }" ]
[ "0.7626638", "0.70694697", "0.7030038", "0.7002415", "0.6945388", "0.6916582", "0.6735344", "0.6726674", "0.67178226", "0.6667324", "0.665152", "0.664", "0.65816325", "0.6574512", "0.651403", "0.6474095", "0.64254093", "0.6384305", "0.637998", "0.63506746", "0.63409007", "0.6318089", "0.6310549", "0.63045096", "0.62956816", "0.62584645", "0.6246161", "0.62039834", "0.6201285", "0.61863756", "0.61599886", "0.6150397", "0.6133144", "0.6117746", "0.6111686", "0.609177", "0.60892546", "0.6058988", "0.6037666", "0.60364074", "0.6033007", "0.6027337", "0.60222375", "0.5963116", "0.59602016", "0.5925385", "0.59000814", "0.58960634", "0.5888793", "0.5871016", "0.5863873", "0.58571875", "0.5850764", "0.5848862", "0.5824852", "0.5822076", "0.5809041", "0.57984644", "0.57938033", "0.57888085", "0.57844484", "0.5770168", "0.5770168", "0.5770168", "0.5770168", "0.5770168", "0.5770168", "0.5770168", "0.5770168", "0.5767802", "0.5767621", "0.576577", "0.5760227", "0.5758966", "0.57578534", "0.57578534", "0.57578534", "0.57554156", "0.57524025", "0.57405627", "0.57325596", "0.5721556", "0.57126164", "0.5709991", "0.5705561", "0.56991124", "0.56985486", "0.5694557", "0.5692264", "0.56894016", "0.56890285", "0.56746346", "0.56636673", "0.5656757", "0.5649982", "0.56442994", "0.56407994", "0.564054", "0.563888", "0.56227523" ]
0.723884
1
Store a newly created resource in storage.
public function store(Request $request) { $valid = Validator::make($request->all(),[ 'type'=>'required|max:10|string', 'details'=>'required', ]); if($valid->fails()){ $this->message('warning', 'Some Error Found'); return redirect()->back()->withErrors($valid)->withInput($request->all()); }else{ $imageInfo = $request->file('image_path'); $old_image = $request->old_image; if($imageInfo){ $image_path = $this->_singleImageUpload($imageInfo, General::WIDTH, General::HEIGHT, 'general'); if($image_path){ if(file_exists($old_image)){ unlink($old_image); } }else{ $image_path = $old_image; } }else{ $image_path = $old_image; } $general = General::updateOrCreate( ['type'=>$request->type], [ 'details'=>$request->details, 'image_path'=>$image_path, 'created_by'=>Auth::id(), 'updated_by'=>Auth::id() ] ); if($general){ $this->message('success', $request->type.'Update Successfully'); return redirect()->back(); }else{ $this->message('success', $request->type.'Update Not Successfully'); return redirect()->back()->withInput($request->all())->withErrors($valid); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.7855196", "0.76957726", "0.7273917", "0.7241426", "0.71717227", "0.7064183", "0.70528984", "0.69836885", "0.694763", "0.69469565", "0.6941572", "0.69301945", "0.6903868", "0.68989486", "0.68989486", "0.68787694", "0.68641657", "0.6860115", "0.6857286", "0.68464494", "0.6834566", "0.68116575", "0.68075293", "0.6805924", "0.6801357", "0.6796291", "0.67915684", "0.67915684", "0.67874014", "0.678544", "0.67787844", "0.6777662", "0.67675763", "0.676299", "0.6746726", "0.6745706", "0.67450166", "0.67450166", "0.6739429", "0.6734577", "0.6725992", "0.67127997", "0.6694406", "0.6692487", "0.6689421", "0.66884303", "0.6687299", "0.6685663", "0.6682167", "0.66701853", "0.66697115", "0.6666091", "0.6666091", "0.66627705", "0.6661716", "0.6661522", "0.6657919", "0.6656454", "0.6653187", "0.6642113", "0.66332614", "0.66324973", "0.66275465", "0.66275465", "0.6619777", "0.6619387", "0.6617973", "0.66154003", "0.66110945", "0.6607966", "0.66065043", "0.6596376", "0.65953517", "0.65941286", "0.6591486", "0.6590759", "0.6588404", "0.658161", "0.6580548", "0.6579757", "0.6577171", "0.65761065", "0.657386", "0.65686774", "0.6567784", "0.65672046", "0.6566417", "0.65615803", "0.65615714", "0.65615714", "0.65592474", "0.65586483", "0.65568006", "0.6556628", "0.65564895", "0.6555322", "0.65551996", "0.6555016", "0.654888", "0.65477645", "0.65451735" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Fetch headers and body, POST to a URL, send along response headers and body.
public function fetchOutput_Raw() { list($headers, $body) = $this->getInputModule()->fetchOutput_Raw(); $url = $this->getParameter('url'); // Set up the request for HTTP POST, including the body. $req =& new HTTP_Request($url); $req->setMethod('POST'); $req->setBody($body); // Send whitelisted headers with request. $headers_in_whitelist = array_merge( array( 'content-type' ), $this->getParameter('headers_in_whitelist', array()) ); foreach ($headers as $name => $value) { if (in_array(strtolower($name), $headers_in_whitelist)) $req->addHeader($name, $value); } // Fire off the request, get the headers and body. $rv = $req->sendRequest(); $headers = $req->getResponseHeader(); $body = $req->getResponseBody(); // Pass along only whitelisted headers. $headers_out = array(); $headers_out_whitelist = array_merge( array( 'content-type' ), $this->getParameter('headers_out_whitelist', array()) ); foreach ($headers as $name => $value) { if (in_array(strtolower($name), $headers_out_whitelist)) $headers_out[$name] = $value; } return array($headers_out, $body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function do_post_request($url, $data, $optional_headers = null)\n{\n $params = array('http' => array(\n 'method' => 'POST',\n 'content' => $data\n ));\n if ($optional_headers !== null) {\n $params['http']['header'] = $optional_headers;\n }\n $ctx = stream_context_create($params);\n $fp = @fopen($url, 'rb', false, $ctx);\n if (!$fp) {\n throw new Exception(\"Problem with $url, $php_errormsg\");\n }\n $response = @stream_get_contents($fp);\n if ($response === false) {\n throw new Exception(\"Problem reading data from $url, $php_errormsg\");\n }\n return $response;\n}", "function do_post_request($url, $data, $optional_headers = null)\n {\n\t \n$params = array('http' => array(\n 'method' => 'POST',\n 'content' => $data\n ));\n if ($optional_headers !== null) {\n $params['http']['header'] = $optional_headers;\n }\n $ctx = stream_context_create($params);\n $fp = @fopen($url, 'rb', false, $ctx);\n if (!$fp) {\n throw new Exception(\"Problem with $url, $php_errormsg\");\n }\n $response = @stream_get_contents($fp);\n if ($response === false) {\n throw new Exception(\"Problem reading data from $url, $php_errormsg\");\n }\n\t //print_r($response);\n return $response;\n }", "public function post($url, $body){\n\t\t\n\t\t// do we even need this?\n\t\t// $headers = array('Content-Type: application/x-www-form-urlencoded')\n\t\t\n\t\treturn $this->doRequest('POST', $url, $body);\n }", "public function executeRequest()\n {\n $aux = array();\n\n foreach ($this->headers as $header => $value) {\n $aux[] = \"$header: $value\";\n }\n\n curl_setopt($this->handler, CURLOPT_HTTPHEADER, $aux);\n\n $body = curl_exec($this->handler);\n\n if(empty($body)){\n $code = curl_errno($this->handler);\n\n if ($code == 60 || $code == 77) {\n curl_setopt($this->handler, CURLOPT_CAINFO, __DIR__ . '/cacerts.pem');\n $body = curl_exec($this->handler);\n }\n\n if(empty($body)){\n $error = curl_error($this->handler);\n $code = curl_errno($this->handler);\n throw new \\Exception($error, $code);\n }\n }\n\n $statusCode = curl_getinfo($this->handler, CURLINFO_HTTP_CODE);\n $cookies = curl_getinfo($this->handler, CURLINFO_COOKIELIST);\n\n $response = new HttpResponse();\n $response->cookies = $cookies;\n $response->statusCode = $statusCode;\n $this->getBodyAndHeaders($body, $response);\n\n curl_close($this->handler);\n\n return $response;\n }", "function httpPOST($url, array $data, $headers = '') {\n $this->ensureOpened(__FUNCTION__);\n $query = http_build_query($data, '', '&');\n ($headers = trim($headers) === '') or $headers .= \"\\r\\n\";\n\n $headers = \"POST $url HTTP/1.0\\r\\n\".\n $headers.\n \"Content-Type: application/x-www-form-urlencoded\\r\\n\".\n \"Content-Length: \".strlen($query).\"\\r\\n\".\n \"$query\\r\\n\";\n\n $this->write($headers);\n return $this->readAllAndClose();\n }", "public static function sendPost($_url, $_data, $_headers = [],\n $_return_header = true)\n {\n return self::sendCurl($_url,\n array(\n CURLOPT_SSL_VERIFYHOST => false,\n CURLOPT_SSL_VERIFYPEER => false,\n CURLOPT_FOLLOWLOCATION => 0,\n CURLOPT_POST => 1,\n CURLOPT_POSTFIELDS => $_data,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_HTTPHEADER => $_headers,\n CURLOPT_HEADER => $_return_header\n ));\n }", "public function post($url, $body = array(), $query = array(), $headers = array());", "static function post($url, $body = null, $headers = array()) {\n $request = new NiceHTTP\\PostRequest($url, $body, $headers);\n return $request->send();\n }", "public function post($requestUrl, $requestBody, array $requestHeaders = []);", "public function doPostRequest($url, $data, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\r\n $php_errormsg = '';\r\n if (is_array($data)) {\r\n $data = http_build_query($data, '', '&');\r\n }\r\n $params = array('http' => array(\r\n 'method' => 'POST',\r\n 'content' => $data)\r\n );\r\n if ($headers !== null) {\r\n $params['http']['header'] = $headers;\r\n }\r\n $ctx = stream_context_create($params);\r\n $fp = fopen($url, 'rb', false, $ctx);\r\n if (!$fp) {\r\n return \"Error: gateway is inaccessible\";\r\n }\r\n //stream_set_timeout($fp, 0, 250);\r\n try {\r\n $response = stream_get_contents($fp);\r\n if ($response === false) {\r\n throw new Exception(\"Problem reading data from $url, $php_errormsg\");\r\n }\r\n return $response;\r\n } catch (Exception $e) {\r\n $response = $e->getMessage();\r\n return $response;\r\n }\r\n}", "function ccweb_httpPost2($url, $data, &$outResponse) { \r\n $params = array('http' => array('method' => 'POST', 'content' => $data)); \r\n $context = stream_context_create($params);\r\n\r\n $fh = fopen($url, 'rb', false, $context);\r\n if (!$fh) {return FALSE;} \r\n \r\n $response = stream_get_contents($fh); \r\n if ($response === false) {return FALSE;} \r\n \r\n $outResponse = $response; \r\n return TRUE; \r\n}", "static function file_post_contents($url,$headers=false) {\n $url = parse_url($url);\n\n if (!isset($url['port'])) {\n if ($url['scheme'] == 'http') { $url['port']=80; }\n elseif ($url['scheme'] == 'https') { $url['port']=443; }\n }\n $url['query']=isset($url['query'])?$url['query']:'';\n\t\t\n $url['protocol']=$url['scheme'].'://';\n $eol=\"\\r\\n\";\n\t\t\n $headers = \"POST \".\n\t\t$url['protocol'].$url['host'].$url['path'].\" HTTP/1.0\".$eol.\n\t\t\"Host: \".$url['host'].$eol.\n\t\t\"Referer: \".$url['protocol'].$url['host'].$url['path'].$eol.\n\t\t\"Content-Type: application/x-www-form-urlencoded\".$eol.\n\t\t\"Content-Length: \".strlen($url['query']).$eol.\n\t\t$eol.\n\t\t$url['query'];\n $fp = fsockopen($url['host'], $url['port'], $errno, $errstr, 30);\n if($fp) {\n fputs($fp, $headers);\n $result = '';\n while(!feof($fp)) { $result .= fgets($fp, 128); }\n fclose($fp);\n if (!$headers) {\n //removes headers\n\t// NOTE: these backslashes work, b/c they are actual chars!\n $pattern=\"/^.*\\r\\n\\r\\n/s\";\n $result=preg_replace($pattern,'',$result);\n }\n return $result;\n }\n }", "public static function urlPost($url, $content, $headers=null) {\n\n $isJsonForm = false;\n\n if ($headers == null){\n $headers = array(\"Content-type: application/json\");\n $isJsonForm = true;\n }\n else {\n $stringFromHeaders = implode(\" \",$headers);\n if (preg_match(\"/Content\\-type:/i\",$stringFromHeaders)){\n \n if (preg_match(\"/Content\\-type:\\ {0,4}application\\/json/i\",$stringFromHeaders)){\n $isJsonForm = true; \n //array_push($headers,\"Content-type: application/json\");\n }\n\n }\n else{\n $isJsonForm = true; \n array_push($headers,\"Content-type: application/json\");\n }\n }\n\n if ($isJsonForm){\n $content = json_encode($content);\n $contentString = $content;\n }\n else{\n\n $contentString = '';\n foreach ($content as $key => $value){\n if (preg_match(\"/[a-zA-Z_]{2,100}/\",$key))\n $contentString .= $key . \"=\" . $value .\"&\";\n }\n $contentString .= \"\\n\";\n }\n $curl = curl_init($url);\n curl_setopt($curl, CURLOPT_HEADER, false);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($curl, CURLOPT_POST, true);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $contentString);\n\n if($headers != null && in_array('Custom-SSL-Verification:false',$headers)){\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); \n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n }\n\n $contents = curl_exec($curl);\n \n if($errno = curl_errno($curl)) {\n $error_message = curl_strerror($errno);\n //echo \"cURL error ({$errno}):\\n {$error_message}\";\n $contents = \"cURL error ({$errno}):\\n {$error_message}\";\n }\n\n\n $status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\n /*\n if ($status != 201) {\n die(\"Error: call to URL $url failed with status $status, response $contents, curl_error: \" . curl_error($curl) . \", curl_errno: \" . curl_errno($curl));\n }\n */\n curl_close($curl);\n \n return utf8_encode($contents);\n }", "public function postGuzzleRequest($headers, $url, $body)\n {\n $client = new \\GuzzleHttp\\Client(['headers' => $headers]);\n $response = $client->post($url, array('form_params'=>$body));\n\n $response = json_decode($response->getBody());\n\n\n return $response;\n }", "private function prepare()\n\t{\n\t\t// remove anchors (#foo) from the URL\n\t\t$this->url = preg_replace( '/(#.*?)?$/', '', $this->url );\n\t\t// merge query params from the URL with params given\n\t\t$this->url = $this->mergeQueryParams( $this->url, $this->params );\n\n\t\tif ( $this->method === 'POST' ) {\n\t\t\tif ( !isset( $this->headers['Content-Type'] ) ) {\n\t\t\t\t$this->setHeader( array( 'Content-Type' => 'application/x-www-form-urlencoded' ) );\n\t\t\t}\n\t\t\tif ( $this->headers['Content-Type'] == 'application/x-www-form-urlencoded' || $this->headers['Content-Type'] == 'application/json' ) {\n\t\t\t\t$count = count( $this->postdata );\n\t\t\t\tif( $this->body != '' && $count > 0 ) {\n\t\t\t\t\t$this->body .= '&';\n\t\t\t\t}\n\t\t\t\t//$this->body .= http_build_query( $this->postdata, '', '&' );\n\t\t\t\t// We don't use http_build_query() as it converts empty array values to 0, which we don't want.\n\t\t\t\tforeach ( $this->postdata as $key => $value ) {\n\t\t\t\t\t$count--;\n\t\t\t\t\t$this->body .= $key . '=' . $value;\n\t\t\t\t\tif ( $count )\t{\n\t\t\t\t\t\t$this->body .= '&';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->setHeader( array( 'Content-Length' => strlen( $this->body ) ) );\n\t\t}\n\t}", "function postRequest ($url, $data = [], $cookies = []) {\n /*$ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_HEADER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\n\n if ($cookies) {\n $cookie_str = [];\n foreach ($cookies as $k => $v) $cookie_str[] = $k . '=' . $v;\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Cookie: ' . implode('& ', $cookie_str)]);\n }\n\n $response = curl_exec($ch);\n\n preg_match('/^Set-Cookie:\\s*([^;]*)/mi', $response, $matches);\n $cookies_new = [];\n if (isset($matches[1])) {\n foreach (explode('&', $matches[1]) as $cookie) {\n $cookie = explode('=', trim($cookie), 2);\n $cookies_new[$cookie[0]] = $cookie[1];\n }\n } else {\n $cookies_new = $cookies;\n }\n\n curl_close($ch);\n\n $content = substr($response, strpos($response, '<!DOCTYPE'));*/\n\n $data = http_build_query($data);\n $context = [\n 'http' => [\n 'method' => 'POST',\n 'follow_location' => 1,\n 'content' => $data,\n 'timeout' => 100,\n 'header' => 'Content-Length: ' . strlen($data) . \"\\r\\n\" .\n 'Content-type: application/x-www-form-urlencoded' . \"\\r\\n\"\n ]\n ];\n\n if ($cookies) {\n $cookie_str = [];\n foreach ($cookies as $k => $v) $cookie_str[] = $k . '=' . $v;\n $context['http']['header'] .= 'Cookie: ' . implode('& ', $cookie_str) . \"\\r\\n\";\n }\n\n $content = file_get_contents($url, FALSE, stream_context_create($context));\n\n $found = FALSE;\n $matches = ['', ''];\n foreach ($http_response_header as $header) {\n preg_match('/^Set-Cookie:\\s*([^;]*)/mi', $header, $matches);\n if ($matches) {\n $found = TRUE;\n break;\n }\n }\n $cookies_new = [];\n if ($found) {\n foreach (explode('&', $matches[1]) as $cookie) {\n $cookie = explode('=', trim($cookie), 2);\n $cookies_new[$cookie[0]] = $cookie[1];\n }\n } else {\n $cookies_new = $cookies;\n }\n\n return ['cookie' => $cookies_new, 'content' => str_get_html($content), 'content_raw' => $content];\n}", "public function pearRequest($url, $headers, $body)\n\t{\n\t\tif (!class_exists('HTTP_Request2')) require_once('HTTP/Request2.php');\n\t\tif (!class_exists('HTTP_Request2_Adapter_Socket')) require_once 'HTTP/Request2/Adapter/Socket.php';\n\n\t\t$adapter = new HTTP_Request2_Adapter_Socket;\n\t\t$req = new HTTP_Request2($url, HTTP_Request2::METHOD_POST);\n\t\t$req->setAdapter($adapter);\n\t\t$req->setHeader($headers);\n\t\t$req->setBody($body);\n\t\treturn $req->send()->getStatus();\n\t}", "private function http($url, $method, $postfields = NULL, $headers = array()) {\n\t\t$response = new \\HttpResponse ( $url, $headers, $method, $postfields );\n\t\t$ci = curl_init ();\n\t\t/* Curl settings */\n\t\tcurl_setopt ( $ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 );\n\t\tcurl_setopt ( $ci, CURLOPT_USERAGENT, $this->useragent );\n\t\tcurl_setopt ( $ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout );\n\t\tcurl_setopt ( $ci, CURLOPT_TIMEOUT, $this->timeout );\n\t\tcurl_setopt ( $ci, CURLOPT_RETURNTRANSFER, TRUE );\n\t\tcurl_setopt ( $ci, CURLOPT_ENCODING, \"UTF-8\" );\n\t\tcurl_setopt ( $ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer );\n\t\tcurl_setopt ( $ci, CURLOPT_SSL_VERIFYHOST, \"1\" );\n\t\tcurl_setopt ( $ci, CURLOPT_HEADERFUNCTION, array (\n\t\t\t\t$this,\n\t\t\t\t'getHeader' \n\t\t) );\n\t\tcurl_setopt ( $ci, CURLOPT_HEADER, FALSE );\n\t\t\n\t\tswitch ($method) {\n\t\t\tcase 'POST' :\n\t\t\t\tcurl_setopt ( $ci, CURLOPT_POST, TRUE );\n\t\t\t\tif (! empty ( $postfields )) {\n\t\t\t\t\tcurl_setopt ( $ci, CURLOPT_POSTFIELDS, $postfields );\n\t\t\t\t\t$this->postdata = $postfields;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'DELETE' :\n\t\t\t\tcurl_setopt ( $ci, CURLOPT_CUSTOMREQUEST, 'DELETE' );\n\t\t\t\tif (! empty ( $postfields )) {\n\t\t\t\t\t$url = \"{$url}?{$postfields}\";\n\t\t\t\t}\n\t\t}\n\t\t$headers [] = \"API-RemoteIP: \" . $_SERVER ['REMOTE_ADDR'];\n\t\tcurl_setopt ( $ci, CURLOPT_URL, $url );\n\t\tcurl_setopt ( $ci, CURLOPT_HTTPHEADER, $headers );\n\t\tcurl_setopt ( $ci, CURLINFO_HEADER_OUT, TRUE );\n\t\t\n\t\t$response->data = curl_exec ( $ci );\n\t\t$response->http_code = curl_getinfo ( $ci, CURLINFO_HTTP_CODE );\n\t\t$response->http_info = array_merge ( $response->http_info, curl_getinfo ( $ci ) );\n\t\t$response->url = $url;\n\t\tcurl_close ( $ci );\n\t\treturn $response;\n\t}", "function post_request($url, $param)\n{\n //リクエスト時のオプション指定\n $options = array(\n 'http' => array(\n 'method' => 'POST', //ここでPOSTを指定\n 'header' => array(\n 'Content-type: application/x-www-form-urlencoded',\n 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1'\n ),\n 'content' => http_build_query($param),\n 'ignore_errors' => true,\n 'protocol_version' => '1.1'\n ),\n 'ssl' => array(\n 'verify_peer' => false,\n 'verify_peer_name' => false\n )\n );\n\n //リクエスト実行\n $contents = @file_get_contents($url, false, stream_context_create($options));\n\n //ステータスコード抜粋\n preg_match('/HTTP\\/1\\.[0|1|x] ([0-9]{3})/', $http_response_header[0], $matches);\n $statusCode = (int)$matches[1];\n\n //配列で返すためにjsonのエンコード\n $contents_array = array();\n if($statusCode === 200){\n $contents_array = json_decode($contents);\n }\n return $contents_array;\n}", "function doPost($url, $post = array() , $format = 'plain')\n{\n return curlExecute($url, 'post', $post, $format);\n}", "protected function _execute(){\n\t\t\t$this->_getUrl();\n\n\t\t\t$c = curl_init($this->_url);\n\t\t\tob_start();\n\t\t\tif(!empty($this->_postFields)) {\n\t\t\t\tcurl_setopt($c, CURLOPT_POST, 1);\n\t\t\t\tcurl_setopt($c, CURLOPT_POSTFIELDS, json_encode($this->_postFields));\n\t\t\t}\n\n\t\t\tcurl_exec($c);\n\t\t\tcurl_close($c);\n\t\t\t$this->_result = trim(ob_get_contents());\n\t\t\tob_end_clean();\n\t\t}", "public function request() {\r\n\t\t$this->verbose('protocol', $this->protocol);\r\n\t\t$this->verbose('method', $this->method);\r\n\t\t$this->verbose('host', $this->host);\r\n\t\t$this->verbose('path', $this->path);\r\n\t\t$this->verbose('query', $this->query);\r\n\t\t$this->verbose('headers', $this->headers);\r\n\t\t$this->verbose('body', $this->body);\r\n\t\t$this->verbose('timeout', $this->timeout);\r\n\r\n\t\t$this->addQueryToPath();\r\n\t\t$this->verbose('path + query', $this->path);\r\n\t\t$this->cleanHost();\r\n\t\t$this->verbose('cleanHost', $this->host);\r\n\r\n\t\t$url = $this->protocol . '://' . $this->host . $this->path;\r\n\t\t$this->verbose('url', $url);\r\n\r\n\t\t$this->headers['Authorization'] = $this->makeAuthHeader();\r\n\r\n\r\n\t\tforeach ($this->headers as $header_key => $header_value) {\r\n\t\t\t$header_array[] = $header_key . \":\" . $header_value;\r\n\t\t}\r\n\r\n\t\t$ch = curl_init();\r\n\t\t$options = array(\r\n\t\t\tCURLOPT_URL => $url,\r\n\t\t\tCURLOPT_RETURNTRANSFER => 1,\r\n\t\t\tCURLOPT_CUSTOMREQUEST => $this->method,\r\n\t\t\tCURLOPT_POSTFIELDS => $this->body,\r\n\t\t\tCURLOPT_HEADER => false,\r\n\t\t\tCURLINFO_HEADER_OUT => true,\r\n\t\t\tCURLOPT_HTTPHEADER => $header_array,\r\n\t\t\tCURLOPT_TIMEOUT => $this->timeout\r\n\t\t);\r\n\t\tcurl_setopt_array($ch, $options);\r\n\r\n\t\t$this->verbose('body at exec', $this->body);\r\n\t\t$response_body = curl_exec($ch);\r\n\t\t$response_error = curl_error($ch);\r\n\t\t$response_headers = curl_getinfo($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\t$response['error'] = $response_error;\r\n\t\t$response['body'] = $response_body;\r\n\t\t$response['header'] = $response_headers;\r\n\t\treturn $response;\r\n\t}", "public function post( $url, array $headers=array(), $data=null ) {\n return $this->httpRequest( $url, 'POST', $headers, $data );\n }", "public function send()\n {\n $request = $this->createRequest();\n $contentId = $request->getHeaderLine('Content-Id') ?? '-';\n $request = $request->withAddedHeader('Referrer', $contentId);\n\n $requestLogHeader = \"--------------------------------\\r\\nRequest\\r\\n--------------------------------\\r\\n\";\n $requestLog = (string) $request->getMethod() . ' ' . (string) $request->getUri() . \" HTTP/1.1\\r\\n\";\n foreach ($request->getHeaders() as $header => $values) {\n $requestLog .= $header . ': ' . implode('; ', $values) . \"\\r\\n\";\n }\n $requestLog .= (string) $request->getBody();\n $this->client->log(LOG_INFO, $requestLogHeader . $requestLog);\n\n $options = [\n 'decode_content' => false,\n 'timeout' => $this->client->timeout,\n ];\n if (isset($this->client->proxy)) {\n $options['proxy'] = $this->client->proxy;\n }\n $client = new \\GuzzleHttp\\Client($options);\n try {\n $clientResponse = $client->send($request);\n } catch (\\GuzzleHttp\\Exception\\RequestException $ex) {\n $clientResponse = $ex->getResponse();\n if ($clientResponse === null) {\n throw new HttpException($ex->getMessage(), 0, null, $ex, 500, $contentId);\n }\n }\n\n $responseLogHeader = \"--------------------------------\\r\\nResponse\\r\\n--------------------------------\\r\\n\";\n $responseLog = \"HTTP/1.1 \". $clientResponse->getStatusCode() . \" \" . $clientResponse->getReasonPhrase() . \"\\r\\n\";\n if ($clientResponse->getStatusCode() == 204) {\n $clientResponse = $clientResponse->withoutHeader('Content-Type');\n }\n foreach ($clientResponse->getHeaders() as $header => $values) {\n $responseLog .= $header . ': ' . implode('; ', $values) . \"\\r\\n\";\n }\n $responseLog .= (string) $clientResponse->getBody();\n $this->client->log(LOG_INFO, $responseLogHeader . $responseLog);\n $response = $this->parseResponse($clientResponse, $requestLog, $responseLog);\n $this->handleError($response, $clientResponse);\n\n return $response;\n }", "function post($url, $fields = array(), $http_options = array()) {\n $http_options = $http_options + $this->http_options;\n $http_options[CURLOPT_POST] = true;\n $http_options[CURLOPT_POSTFIELDS] = $fields;\n if (is_array($fields)) {\n $http_options[CURLOPT_HTTPHEADER] = array(\"Content-Type: multipart/form-data\");\n }\n $this->handle = curl_init($url);\n\n if (!curl_setopt_array($this->handle, $http_options)) {\n throw new RestClientException(\"Error setting cURL request options.\");\n }\n\n $this->response_object = curl_exec($this->handle);\n $this->http_parse_message($this->response_object);\n\n curl_close($this->handle);\n return $this->response_object;\n }", "private function postHop () {\n\t\t$this->result = curl_exec ( $this->ch );\n\t\tcurl_close ( $this->ch );\n\t}", "public static function bodyCurl($url, $method, $body, $header) {\n if ( ! function_exists('curl_init') ) return false;\n global $last_http_response;\n global $LastCurlError;\n global $LastHeadersSent;\n global $LastHeadersReceived;\n global $LastBODYImpl;\n global $LastBODYMethod;\n global $LastBODYContent;\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n\n // Make sure that the header is an array and pitch white space\n $LastHeadersSent = trim($header);\n $header = explode(\"\\n\", trim($header));\n $htrim = Array();\n foreach ( $header as $h ) {\n $htrim[] = trim($h);\n }\n curl_setopt ($ch, CURLOPT_HTTPHEADER, $htrim);\n\n if ( $method == \"POST\" ) {\n curl_setopt($ch, CURLOPT_POST, 1);\n } else {\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);\n }\n\n curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // ask for results to be returned\n curl_setopt($ch, CURLOPT_HEADER, 1);\n\n // Thanks to more and more PHP's not shipping with CA's installed\n // This becomes necessary\n if ( static::$VERIFY_PEER ) {\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n } else {\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n }\n\n // Send to remote and return data to caller.\n $result = curl_exec($ch);\n if ( $result === false ) {\n $LastCurlError = curl_error($ch);\n }\n $info = curl_getinfo($ch);\n $last_http_response = $info['http_code'];\n if(curl_errno($ch))\n {\n error_log('Curl error: ' . curl_error($ch));\n }\n $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);\n $LastHeadersReceived = substr($result, 0, $header_size);\n $body = substr($result, $header_size);\n if ( $body === false ) $body = ''; // Handle empty body\n curl_close($ch);\n $LastBODYContent = $body;\n $LastBODYImpl = \"CURL\";\n $LastBODYMethod = $method;\n return $body;\n }", "private function getPost()\n {\n if ($this->end_point === null) {\n throw new \\DomainException('End-point can\\'t be null when call '.__METHOD__);\n }\n \n if ($this->filesize === null) {\n throw new \\DomainException('Filesize can\\'t be null when call '.__METHOD__);\n }\n \n $handle = curl_init();\n $custom_headers = array();\n \n curl_setopt($handle, CURLOPT_URL, $this->end_point);\n curl_setopt($handle, CURLOPT_FOLLOWLOCATION, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_POST, true);\n curl_setopt($handle, CURLOPT_FAILONERROR, true);\n curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, self::TIMEOUT);\n curl_setopt($handle, CURLOPT_BUFFERSIZE, 64000);\n curl_setopt($handle, CURLOPT_HTTPHEADER, array(\n 'Content-Length: 0',\n 'Final-Length: '.$this->filesize,\n ));\n curl_setopt($handle, CURLOPT_HEADERFUNCTION, function($ch, $header) use (&$custom_headers){\n $headers = array();\n $extract = explode(\"\\r\\n\", $header);\n foreach ($extract as $line) {\n if (preg_match('/^([a-z0-9_-]+): (.*)$/i', $line, $matches)) {\n list($null, $key, $value) = $matches;\n $headers[$key] = $value;\n }\n }\n\n $custom_headers = array_merge($custom_headers, $headers);\n\n return strlen($header);\n });\n \n if (curl_exec($handle) === false) {\n throw new Exception\\Curl('Error while request POST into '.$this->end_point.' : '.curl_error($handle), curl_errno($handle));\n }\n \n $http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n \n if ($http_code !== 201) {\n throw new Exception\\BadHeader('Error while request POST - excepted HTTP Code 201 - get HTTP Code '.$http_code);\n }\n \n $info = array_merge($custom_headers, curl_getinfo($handle));\n curl_close($handle);\n \n return $info;\n }", "public function sendRequest()\n {\n\n $proxyurl = '';\n if (!is_null($this->proxy)) {\n $proxyurl = $this->proxy->url;\n }\n // create context with proper junk\n $ctx = stream_context_create(\n array(\n $this->uri->protocol => array(\n 'method' => $this->verb,\n 'content' => $this->body,\n 'header' => $this->buildHeaderString(),\n 'proxy' => $proxyurl,\n )\n )\n );\n\n set_error_handler(array($this,'_errorHandler'));\n $fp = fopen($this->uri->url, 'rb', false, $ctx);\n if (!is_resource($fp)) {\n // php sucks\n if (strpos($this->_phpErrorStr, 'HTTP/1.1 304')) {\n restore_error_handler();\n $details = $this->uri->toArray();\n\n $details['code'] = '304';\n $details['httpVersion'] = '1.1';\n\n return new PEAR2_HTTP_Request_Response($details,'',array(),array());\n }\n restore_error_handler();\n throw new PEAR2_HTTP_Request_Exception('Url ' . $this->uri->url . ' could not be opened (PhpStream Adapter ('.$this->_phpErrorStr.'))');\n } else {\n restore_error_handler();\n }\n\n stream_set_timeout($fp, $this->requestTimeout);\n $body = stream_get_contents($fp);\n\n if ($body === false) {\n throw new PEAR2_HTTP_Request_Exception(\n 'Url ' . $this->uri->url . ' did not return a response'\n );\n }\n\n $meta = stream_get_meta_data($fp);\n fclose($fp);\n\n $headers = $meta['wrapper_data'];\n\n $details = $this->uri->toArray();\n\n $tmp = $this->parseResponseCode($headers[0]);\n $details['code'] = $tmp['code'];\n $details['httpVersion'] = $tmp['httpVersion'];\n\n $cookies = array();\n $this->headers = $this->cookies = array();\n\n foreach($headers as $line) {\n $this->processHeader($line);\n }\n\n return new PEAR2_HTTP_Request_Response(\n $details,$body,new PEAR2_HTTP_Request_Headers($this->headers),$this->cookies);\n }", "private function initCurlRequest() {\n $method = strtoupper($this->method);\n\n // Construct request\n $curlRequest = curl_init($this->finalUrl);\n curl_setopt($curlRequest, CURLOPT_RETURNTRANSFER, 1); // Return contents instead of boolean on exec\n curl_setopt($curlRequest, CURLOPT_BINARYTRANSFER, 1);\n curl_setopt($curlRequest, CURLOPT_HEADER, 1); // Return headers in response\n if ($this->followRedirects)\n curl_setopt($curlRequest, CURLOPT_FOLLOWLOCATION, true); // Follow redirects\n\n // Timeouts\n if ($this->connectTimeout !== null)\n curl_setopt($curlRequest, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout);\n if ($this->executeTimeout !== null)\n curl_setopt($curlRequest, CURLOPT_TIMEOUT, $this->executeTimeout);\n\n // Method-specific\n $acceptsBody = false;\n if ($method === 'POST') {\n curl_setopt($curlRequest, CURLOPT_POST, 1);\n $acceptsBody = true;\n }\n\n // BUG: curl will attempt to set \"Transfer-Encoding: chunked\" header if doing a PUT\n // the workaround is to POST, using an X-HTTP-Method-Override instead.\n // BEWARE: This also requires the server to know how to handle this header.\n if (in_array($method, array('PUT', 'PATCH'))) {\n $this->headers[] = \"X-HTTP-Method-Override: $method\";\n curl_setopt($curlRequest, CURLOPT_POST, 1);\n $acceptsBody = true;\n }\n\n if ($method === 'DELETE')\n curl_setopt($curlRequest, CURLOPT_DELETE, 1);\n\n // Body\n $sendBlankExpect = false;\n if ($acceptsBody) {\n if ($this->files !== null && count($this->files) > 0) {\n $files = [];\n foreach ($this->files as $fileKey => $localPath)\n $files[$fileKey] = '@' . $localPath;\n \n curl_setopt($curlRequest, CURLOPT_POSTFIELDS, $files);\n\n // Workaround for CURL issue where curl_exec() returns both 100/CONTINUE and 200/OK separated by\n // blank line when using multipart form data.\n $sendBlankExpect = true;\n }\n elseif ($this->body) {\n // Default content-type of POST body\n if ($this->json && count(preg_grep('/content-type:/i', $this->headers)) === 0)\n $this->headers[] = 'Content-Type: application/json';\n\n // Seems to implicitly set CURLOPT_POST=1\n curl_setopt($curlRequest, CURLOPT_POSTFIELDS, $this->body);\n }\n }\n\n // Add headers\n $headers = $this->headers;\n if (!$headers)\n $headers = [];\n\n if ($this->json && count(preg_grep('/accept:/i', $headers)) === 0)\n $headers[] = 'Accept: application/json';\n if ($sendBlankExpect)\n $headers[] = 'Expect:';\n\n if (count($headers) > 0)\n curl_setopt($curlRequest, CURLOPT_HTTPHEADER, $headers);\n\n // Authenticate request\n if ($this->username) {\n curl_setopt($curlRequest, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($curlRequest, CURLOPT_USERPWD, $this->username . ':' . $this->password);\n }\n\n return $curlRequest;\n }", "private function requestProcessor() {\n try {\n\n if (empty($this->uri))\n throw new \\Exception(\"Undefined url\");\n\n $ReqHandle = curl_init($this->uri);\n\n $body = json_encode([]);\n if( sizeof($this->data) > 0 )\n $body = json_encode($this->data);\n\n $returnTransfer = 0;\n if( $this->hasResponseToReturn )\n $returnTransfer = 1;\n\n $isPost = 0;\n if( $this->method != 'GET')\n $isPost = 1;\n\n\n if($isPost == 1){\n curl_setopt($ReqHandle,CURLOPT_POST, $isPost);\n curl_setopt($ReqHandle, CURLOPT_POSTFIELDS, $body);\n }\n \n curl_setopt_array($ReqHandle, [\n CURLOPT_RETURNTRANSFER => $returnTransfer,\n CURLOPT_HTTPHEADER => $this->headersToBeUsed\n ]);\n\n\n $result = curl_exec($ReqHandle);\n\n if(curl_errno($ReqHandle)){\n\n return curl_error($ReqHandle);\n }\n\n if($returnTransfer == 1)\n return json_decode($result);\n\n\n\n } catch (\\Throwable $t) {\n new ErrorTracer($t);\n }\n }", "private function http($url, $method, $postfields = NULL, $headers = array())\n {\n $this->http_info = array();\n $ci = curl_init();\n /* Curl settings */\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\n\n switch ($method) {\n case 'POST':\n curl_setopt($ci, CURLOPT_POST, TRUE);\n if (!empty($postfields)) {\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n }\n break;\n case 'DELETE':\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n if (!empty($postfields)) {\n $url = \"{$url}?{$postfields}\";\n }\n }\n\n curl_setopt($ci, CURLOPT_URL, $url );\n if($headers) {\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\n }\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\n\n $response = curl_exec($ci);\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\n\n if ($this->debug) {\n echo \"=====post data======\\r\\n\";\n var_dump($postfields);\n\n echo '=====info====='.\"\\r\\n\";\n print_r( curl_getinfo($ci) );\n\n echo '=====$response====='.\"\\r\\n\";\n print_r( $response );\n }\n curl_close ($ci);\n return $response;\n }", "public function post(string $url, array $input = [], $headers = null);", "function curl_post($url, array $post = NULL, array $headers = NULL, array $options = array()) {\n $defaults = array(\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n CURLOPT_HTTPHEADER => $headers,\n CURLOPT_URL => $url,\n CURLOPT_FRESH_CONNECT => 1,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_FORBID_REUSE => 1,\n CURLOPT_TIMEOUT => 4,\n CURLOPT_POSTFIELDS => http_build_query($post)\n );\n\n $_defaults = defaults;\n \n $ch = curl_init();\n curl_setopt_array($ch, ($options + $defaults));\n if( ! $result = curl_exec($ch)) {\n trigger_error(curl_error($ch));\n }\n curl_close($ch);\n return $result;\n}", "public function https_post($url, $data = [] , $is_raw = false){\n// $this->response = $curl->post($url , $data , $is_raw)\n// ->setHeader('X-Requested-With', 'XMLHttpRequest')\n// ->setHeader(\"Accept\" , 'application/json')\n// ->setHeader('Content-Type' , 'application/json')\n// //->setOpt(CURLOPT_PROXY , '127.0.0.1:8888')\n// ->response;\n\n $header = [\n 'Accept:application/json' , 'Content-Type:application/json'\n ];\n $this->response = $this->https_request($url , json_encode($data ) , $header);\n\n return $this;\n }", "public function post($url, array $data = [], array $headers = [])\n {\n return $this->sendRequest($url, 'POST', $data, $headers);\n }", "function h_POST(string $url, $data = []) {\n // if URL doesn't start with \"http\", prepend API_URL\n if (!preg_match('/^http/', $url, $matches)) {\n $url = API_URL . $url;\n }\n\n $payload = json_encode($data);\n\n // Prepare new cURL resource\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLINFO_HEADER_OUT, true);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);\n \n // Set HTTP Header for POST request \n curl_setopt(\n $ch,\n CURLOPT_HTTPHEADER,\n [\n 'Content-Type: application/json',\n 'Content-Length: ' . strlen($payload)\n ]\n );\n \n // Submit the POST request\n $response = curl_exec($ch);\n curl_close($ch);\n\n return $response;\n}", "public static function send($url, $headers = [], $body = null, $username = null, $password = null)\n {\n self::$handle = curl_init();\n\n curl_setopt_array(self::$handle, [\n CURLOPT_URL => self::encodeUrl($url),\n CURLOPT_POSTFIELDS => $body,\n CURLOPT_HTTPHEADER => self::getFormattedHeaders($headers),\n CURLOPT_CONNECTTIMEOUT => 10,\n CURLOPT_TIMEOUT => 10,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_SSL_VERIFYPEER => false,\n CURLOPT_SSL_VERIFYHOST => false,\n CURLOPT_POST => true,\n CURLOPT_VERBOSE => true,\n CURLOPT_HEADER => true,\n ]);\n if (self::$socketTimeout !== null) {\n curl_setopt(self::$handle, CURLOPT_TIMEOUT, self::$socketTimeout);\n }\n // supporting deprecated http auth method\n if (!empty($username)) {\n curl_setopt_array(self::$handle, [\n CURLOPT_HTTPAUTH => CURLAUTH_BASIC,\n CURLOPT_USERPWD => $username.':'.$password,\n ]);\n }\n if (!empty(self::$auth['user'])) {\n curl_setopt_array(self::$handle, [\n CURLOPT_HTTPAUTH => self::$auth['method'],\n CURLOPT_USERPWD => self::$auth['user'].':'.self::$auth['pass'],\n ]);\n }\n if (self::$proxy['address'] !== false) {\n curl_setopt_array(self::$handle, [\n CURLOPT_PROXYTYPE => self::$proxy['type'],\n CURLOPT_PROXY => self::$proxy['address'],\n CURLOPT_PROXYPORT => self::$proxy['port'],\n CURLOPT_HTTPPROXYTUNNEL => self::$proxy['tunnel'],\n CURLOPT_PROXYAUTH => self::$proxy['auth']['method'],\n CURLOPT_PROXYUSERPWD => self::$proxy['auth']['user'].':'.self::$proxy['auth']['pass'],\n ]);\n }\n $response = curl_exec(self::$handle);\n $error = curl_error(self::$handle);\n $info = self::getInfo();\n if ($error) {\n throw new \\Exception($error);\n }\n // Split the full response in its headers and body\n $header_size = $info['header_size'];\n $header = substr($response, 0, $header_size);\n $body = substr($response, $header_size);\n\n return new SoapClientResponse($info, $header, $body);\n }", "public function doPost(array $parsed_body);", "public function http($url, $method='POST', $postfields = null, $headers = array())\r\n {\r\n $this->http_info = array();\r\n $ci = curl_init();\r\n /* Curl settings */\r\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ci, CURLOPT_COOKIESESSION, true);\r\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\r\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n curl_setopt($ci, CURLOPT_HEADER, false);\r\n\r\n switch ($method) {\r\n case 'POST':\r\n curl_setopt($ci, CURLOPT_POST, true);\r\n if (!empty($postfields)) {\r\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n $this->postdata = $postfields;\r\n }\r\n break;\r\n case 'DELETE':\r\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n if (!empty($postfields)) {\r\n $url = \"{$url}?{$postfields}\";\r\n }\r\n }\r\n\r\n if (isset($this->accessToken) && $this->accessToken) {\r\n $headers[] = \"Authorization: OAuth2 \" . $this->accessToken;\r\n }\r\n\r\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n curl_setopt($ci, CURLOPT_URL, $url);\r\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers);\r\n curl_setopt($ci, CURLINFO_HEADER_OUT, true);\r\n $response = curl_exec($ci);\r\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n $this->url = $url;\r\n\r\n if ($this->debug) {\r\n echo \"=====post data======\\r\\n\";\r\n var_dump($postfields);\r\n\r\n echo '=====info=====' . \"\\r\\n\";\r\n print_r(curl_getinfo($ci));\r\n\r\n echo '=====$response=====' . \"\\r\\n\";\r\n print_r($response);\r\n }\r\n\r\n curl_close($ci);\r\n return $response;\r\n }", "function forwardPostRequest($url, $data) {\n\t\t\n\t\t$curl = curl_init();\n\n\t\tcurl_setopt_array($curl, array(\n\t\t\tCURLOPT_URL => $url,\n\t\t\tCURLOPT_RETURNTRANSFER => true,\n\t\t\tCURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n\t\t\tCURLOPT_POST => 1,\n\t\t\tCURLOPT_POSTFIELDS => $data,\n\t\t\tCURLOPT_HTTPHEADER => array(\"cache-control: no-cache\"),\n\t\t\tCURLOPT_SSL_VERIFYPEER => false\n\t\t));\n\n\t\t$response = curl_exec($curl);\n\t\tif ($response === false) echo \"Bad response\";\n\n\t\tcurl_close($curl);\n\t\treturn $response;\n\n\t}", "public static function do_post_request($url, $request_body, $port = false, &$optional_headers = null) {\n $ch = curl_init($url);\n if ($port !== false) {\n curl_setopt($ch, CURLOPT_PORT, $port);\n }\n curl_setopt($ch, CURLOPT_USERAGENT,\n \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36\");\n\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);\n\n $has_headers = !empty($optional_headers);\n curl_setopt($ch, CURLOPT_HEADER, $has_headers);\n if ($has_headers) {\n $hasCL = false;\n foreach ($optional_headers as $index => $header) {\n if (substr($header, 0, 15) == 'Content-Length:') {\n $hasCL = true;\n break;\n }\n }\n if (!$hasCL) {\n $cl = strlen($request_body);\n $optional_headers[] = \"Content-Length: $cl\";\n }\n curl_setopt($ch, CURLOPT_HTTPHEADER, $optional_headers);\n }\n\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_MAXREDIRS, 10);\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\n $result = curl_exec($ch);\n if (false === $result) {\n $errno = curl_errno($ch);\n $error = curl_error($ch);\n static::debugError($url, $optional_headers, $request_body, \"$errno: $error\");\n return 'Erreur :\\n' . $error;\n }\n curl_close($ch);\n\n return $result;\n }", "function _httprequest($url,$fp,$URI,$http_method,$content_type=\"\",$body=\"\")\n\t{\n\t\t$cookie_headers = '';\n\t\tif($this->passcookies && $this->_redirectaddr)\n\t\t\t$this->setcookies();\n\t\t\t\n\t\t$URI_PARTS = parse_url($URI);\n\t\tif(empty($url))\n\t\t\t$url = \"/\";\n\t\t$headers = $http_method.\" \".$url.\" \".$this->_httpversion.\"\\r\\n\";\t\t\n\t\tif(!empty($this->agent))\n\t\t\t$headers .= \"User-Agent: \".$this->agent.\"\\r\\n\";\n\t\tif(!empty($this->host) && !isset($this->rawheaders['Host'])) {\n\t\t\t$headers .= \"Host: \".$this->host;\n\t\t\tif(!empty($this->port))\n\t\t\t\t$headers .= \":\".$this->port;\n\t\t\t$headers .= \"\\r\\n\";\n\t\t}\n\t\tif(!empty($this->accept))\n\t\t\t$headers .= \"Accept: \".$this->accept.\"\\r\\n\";\n\t\tif(!empty($this->referer))\n\t\t\t$headers .= \"Referer: \".$this->referer.\"\\r\\n\";\n\t\tif(!empty($this->cookies))\n\t\t{\t\t\t\n\t\t\tif(!is_array($this->cookies))\n\t\t\t\t$this->cookies = (array)$this->cookies;\n\t\n\t\t\treset($this->cookies);\n\t\t\tif ( count($this->cookies) > 0 ) {\n\t\t\t\t$cookie_headers .= 'Cookie: ';\n\t\t\t\tforeach ( $this->cookies as $cookieKey => $cookieVal ) {\n\t\t\t\t$cookie_headers .= $cookieKey.\"=\".urlencode($cookieVal).\"; \";\n\t\t\t\t}\n\t\t\t\t$headers .= substr($cookie_headers,0,-2) . \"\\r\\n\";\n\t\t\t} \n\t\t}\n\t\tif(!empty($this->rawheaders))\n\t\t{\n\t\t\tif(!is_array($this->rawheaders))\n\t\t\t\t$this->rawheaders = (array)$this->rawheaders;\n\t\t\twhile(list($headerKey,$headerVal) = each($this->rawheaders))\n\t\t\t\t$headers .= $headerKey.\": \".$headerVal.\"\\r\\n\";\n\t\t}\n\t\tif(!empty($content_type)) {\n\t\t\t$headers .= \"Content-type: $content_type\";\n\t\t\tif ($content_type == \"multipart/form-data\")\n\t\t\t\t$headers .= \"; boundary=\".$this->_mime_boundary;\n\t\t\t$headers .= \"\\r\\n\";\n\t\t}\n\t\tif(!empty($body))\t\n\t\t\t$headers .= \"Content-length: \".strlen($body).\"\\r\\n\";\n\t\tif(!empty($this->user) || !empty($this->pass))\t\n\t\t\t$headers .= \"Authorization: Basic \".base64_encode($this->user.\":\".$this->pass).\"\\r\\n\";\n\t\t\n\t\t//add proxy auth headers\n\t\tif(!empty($this->proxy_user))\t\n\t\t\t$headers .= 'Proxy-Authorization: ' . 'Basic ' . base64_encode($this->proxy_user . ':' . $this->proxy_pass).\"\\r\\n\";\n\n\n\t\t$headers .= \"\\r\\n\";\n\t\t\n\t\t// set the read timeout if needed\n\t\tif ($this->read_timeout > 0)\n\t\t\tsocket_set_timeout($fp, $this->read_timeout);\n\t\t$this->timed_out = false;\n\t\t\n\t\tfwrite($fp,$headers.$body,strlen($headers.$body));\n\t\t\n\t\t$this->_redirectaddr = false;\n\t\tunset($this->headers);\n\t\t\t\t\t\t\n\t\twhile($currentHeader = fgets($fp,$this->_maxlinelen))\n\t\t{\n\t\t\tif ($this->read_timeout > 0 && $this->_check_timeout($fp))\n\t\t\t{\n\t\t\t\t$this->status=-100;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t\tif($currentHeader == \"\\r\\n\")\n\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t// if a header begins with Location: or URI:, set the redirect\n\t\t\tif(preg_match(\"/^(Location:|URI:)/i\",$currentHeader))\n\t\t\t{\n\t\t\t\t// get URL portion of the redirect\n\t\t\t\tpreg_match(\"/^(Location:|URI:)[ ]+(.*)/i\",chop($currentHeader),$matches);\n\t\t\t\t// look for :// in the Location header to see if hostname is included\n\t\t\t\tif(!preg_match(\"|\\:\\/\\/|\",$matches[2]))\n\t\t\t\t{\n\t\t\t\t\t// no host in the path, so prepend\n\t\t\t\t\t$this->_redirectaddr = $URI_PARTS[\"scheme\"].\"://\".$this->host.\":\".$this->port;\n\t\t\t\t\t// eliminate double slash\n\t\t\t\t\tif(!preg_match(\"|^/|\",$matches[2]))\n\t\t\t\t\t\t\t$this->_redirectaddr .= \"/\".$matches[2];\n\t\t\t\t\telse\n\t\t\t\t\t\t\t$this->_redirectaddr .= $matches[2];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$this->_redirectaddr = $matches[2];\n\t\t\t}\n\t\t\n\t\t\tif(preg_match(\"|^HTTP/|\",$currentHeader))\n\t\t\t{\n if(preg_match(\"|^HTTP/[^\\s]*\\s(.*?)\\s|\",$currentHeader, $status))\n\t\t\t\t{\n\t\t\t\t\t$this->status= $status[1];\n }\t\t\t\t\n\t\t\t\t$this->response_code = $currentHeader;\n\t\t\t}\n\t\t\t\t\n\t\t\t$this->headers[] = $currentHeader;\n\t\t}\n\n\t\t$results = '';\n\t\tdo {\n \t\t$_data = fread($fp, $this->maxlength);\n \t\tif (strlen($_data) == 0) {\n \t\tbreak;\n \t\t}\n \t\t$results .= $_data;\n\t\t} while(true);\n\n\t\tif ($this->read_timeout > 0 && $this->_check_timeout($fp))\n\t\t{\n\t\t\t$this->status=-100;\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// check if there is a a redirect meta tag\n\t\t\n\t\tif(preg_match(\"'<meta[\\s]*http-equiv[^>]*?content[\\s]*=[\\s]*[\\\"\\']?\\d+;[\\s]*URL[\\s]*=[\\s]*([^\\\"\\']*?)[\\\"\\']?>'i\",$results,$match))\n\n\t\t{\n\t\t\t$this->_redirectaddr = $this->_expandlinks($match[1],$URI);\t\n\t\t}\n\n\t\t// have we hit our frame depth and is there frame src to fetch?\n\t\tif(($this->_framedepth < $this->maxframes) && preg_match_all(\"'<frame\\s+.*src[\\s]*=[\\'\\\"]?([^\\'\\\"\\>]+)'i\",$results,$match))\n\t\t{\n\t\t\t$this->results[] = $results;\n\t\t\tfor($x=0; $x<count($match[1]); $x++)\n\t\t\t\t$this->_frameurls[] = $this->_expandlinks($match[1][$x],$URI_PARTS[\"scheme\"].\"://\".$this->host);\n\t\t}\n\t\t// have we already fetched framed content?\n\t\telseif(is_array($this->results))\n\t\t\t$this->results[] = $results;\n\t\t// no framed content\n\t\telse\n\t\t\t$this->results = $results;\n\t\t\n\t\treturn true;\n\t}", "public function post($url, $payload = array(), $do_not_exit = true)\n {\n if($do_not_exit)\n {\n $this->do_not_exit = true;\n }\n\n $this->url = $url;\n $this->curl_handle = curl_init();\n $payload = http_build_query($payload);\n curl_setopt($this->curl_handle, CURLOPT_URL, $this->url);\n curl_setopt($this->curl_handle, CURLOPT_POST, true);\n curl_setopt($this->curl_handle, CURLOPT_HTTPHEADER, $this->header);\n curl_setopt($this->curl_handle, CURLOPT_POSTFIELDS, $payload);\n curl_setopt($this->curl_handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($this->curl_handle, CURLOPT_HEADER, true);\n $this->curl_response = curl_exec($this->curl_handle);\n\n $this->parse_curl_response();\n return $this->http_body;\n }", "protected function makePostRequest($uri, $params) {\n $curl = curl_init();\n\n curl_setopt($curl, CURLOPT_URL,$this->server_url . $uri);\n curl_setopt($curl, CURLOPT_POST, 1);\n curl_setopt($curl, CURLOPT_POSTFIELDS,\n http_build_query($params));\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\n $output = curl_exec($curl);\n $this->response = $output;\n $this->response_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n curl_close ($curl);\n }", "function makeRequest($url) {\n\n //Tell cURL to make the request using the brower's user-agent if there is one, or a fallback user-agent otherwise.\n $user_agent = $_SERVER[\"HTTP_USER_AGENT\"];\n if (empty($user_agent)) {\n $user_agent = \"Mozilla/5.0 (compatible; melbin.in/proxy)\";\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);\n\n //Proxy the browser's request headers.\n $browserRequestHeaders = getallheaders();\n \n //rewrite req headers and content length\n unset($browserRequestHeaders[\"Host\"]);\n unset($browserRequestHeaders[\"Content-Length\"]);\n \n //Remove the browser's Accept-Encoding header if any;\n //let cURL make the request using gzip if possible.\n unset($browserRequestHeaders[\"Accept-Encoding\"]);\n curl_setopt($ch, CURLOPT_ENCODING, \"\");\n //Transform the associative array from getallheaders() into an\n //indexed array of header strings to be passed to cURL.\n $curlRequestHeaders = array();\n foreach ($browserRequestHeaders as $name => $value) {\n $curlRequestHeaders[] = $name . \": \" . $value;\n }\n curl_setopt($ch, CURLOPT_HTTPHEADER, $curlRequestHeaders);\n\n //Proxy any received GET/POST/PUT data.\n switch ($_SERVER[\"REQUEST_METHOD\"]) {\n case \"GET\":\n $getData = array();\n foreach ($_GET as $key => $value) {\n $getData[] = urlencode($key) . \"=\" . urlencode($value);\n }\n if (count($getData) > 0) {\n //Remove any GET data from the URL, and re-add what was read.\n //It reads, strips, then re-adds all GET data; this may be a no-op.\n $url = substr($url, 0, strrpos($url, \"?\"));\n $url .= \"?\" . implode(\"&\", $getData);\n }\n break;\n case \"POST\":\n curl_setopt($ch, CURLOPT_POST, true);\n \n curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents(\"php://input\"));\n break;\n case \"PUT\":\n curl_setopt($ch, CURLOPT_PUT, true);\n curl_setopt($ch, CURLOPT_INFILE, fopen(\"php://input\"));\n break;\n }\n\n //Other cURL options.\n curl_setopt($ch, CURLOPT_HEADER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt ($ch, CURLOPT_FAILONERROR, true);\n\n //Set the request URL.\n curl_setopt($ch, CURLOPT_URL, $url);\n\n //Make the request.\n $response = curl_exec($ch);\n $responseInfo = curl_getinfo($ch);\n $headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);\n curl_close($ch);\n\n //Setting CURLOPT_HEADER to true above forces the response headers and body\n //to be output together--separate them.\n $responseHeaders = substr($response, 0, $headerSize);\n $responseBody = substr($response, $headerSize);\n\n return array(\"headers\" => $responseHeaders, \"body\" => $responseBody, \"responseInfo\" => $responseInfo);\n}", "function PPHttpPost($url_, $postFields_, $parsed_)\n\t{\n\t\t//setting the curl parameters.\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL,$url_);\n\t\tcurl_setopt($ch, CURLOPT_VERBOSE, 1);\n\n\t\t//turning off the server and peer verification(TrustManager Concept).\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER,1);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\n\t\t//setting the nvpreq as POST FIELD to curl\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$postFields_);\n\n\t\t//getting response from server\n\t\t$httpResponse = curl_exec($ch);\n\n\t\tif(!$httpResponse) {\n\t\t\treturn array(\"status\" => false, \"error_msg\" => curl_error($ch), \"error_no\" => curl_errno($ch));\n\t\t}\n\n\t\tif(!$parsed_) {\n\t\t\treturn array(\"status\" => true, \"httpResponse\" => $httpResponse);\n\t\t}\n\n\t\t$httpResponseAr = explode(\"\\n\", $httpResponse);\n\n\t\t$httpParsedResponseAr = array();\n\t\tforeach ($httpResponseAr as $i => $value) {\n\t\t\t$tmpAr = explode(\"=\", $value);\n\t\t\tif(sizeof($tmpAr) > 1) {\n\t\t\t\t$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];\n\t\t\t}\n\t\t}\n\n\t\tif(0 == sizeof($httpParsedResponseAr)) {\n\t\t\t$error = \"Invalid HTTP Response for POST request($postFields_) to $url_.\";\n\t\t\treturn array(\"status\" => false, \"error_msg\" => $error, \"error_no\" => 0);\n\t\t}\n\t\treturn array(\"status\" => true, \"httpParsedResponseAr\" => $httpParsedResponseAr);\n\n\t}", "function _httpsrequest($url,$URI,$http_method,$content_type=\"\",$body=\"\")\n\t{\n\t\tif($this->passcookies && $this->_redirectaddr)\n\t\t\t$this->setcookies();\n\n\t\t$headers = array();\t\t\n\t\t\t\t\t\n\t\t$URI_PARTS = parse_url($URI);\n\t\tif(empty($url))\n\t\t\t$url = \"/\";\n\t\t// GET ... header not needed for curl\n\t\t//$headers[] = $http_method.\" \".$url.\" \".$this->_httpversion;\t\t\n\t\tif(!empty($this->agent))\n\t\t\t$headers[] = \"User-Agent: \".$this->agent;\n\t\tif(!empty($this->host))\n\t\t\tif(!empty($this->port))\n\t\t\t\t$headers[] = \"Host: \".$this->host.\":\".$this->port;\n\t\t\telse\n\t\t\t\t$headers[] = \"Host: \".$this->host;\n\t\tif(!empty($this->accept))\n\t\t\t$headers[] = \"Accept: \".$this->accept;\n\t\tif(!empty($this->referer))\n\t\t\t$headers[] = \"Referer: \".$this->referer;\n\t\tif(!empty($this->cookies))\n\t\t{\t\t\t\n\t\t\tif(!is_array($this->cookies))\n\t\t\t\t$this->cookies = (array)$this->cookies;\n\t\n\t\t\treset($this->cookies);\n\t\t\tif ( count($this->cookies) > 0 ) {\n\t\t\t\t$cookie_str = 'Cookie: ';\n\t\t\t\tforeach ( $this->cookies as $cookieKey => $cookieVal ) {\n\t\t\t\t$cookie_str .= $cookieKey.\"=\".urlencode($cookieVal).\"; \";\n\t\t\t\t}\n\t\t\t\t$headers[] = substr($cookie_str,0,-2);\n\t\t\t}\n\t\t}\n\t\tif(!empty($this->rawheaders))\n\t\t{\n\t\t\tif(!is_array($this->rawheaders))\n\t\t\t\t$this->rawheaders = (array)$this->rawheaders;\n\t\t\twhile(list($headerKey,$headerVal) = each($this->rawheaders))\n\t\t\t\t$headers[] = $headerKey.\": \".$headerVal;\n\t\t}\n\t\tif(!empty($content_type)) {\n\t\t\tif ($content_type == \"multipart/form-data\")\n\t\t\t\t$headers[] = \"Content-type: $content_type; boundary=\".$this->_mime_boundary;\n\t\t\telse\n\t\t\t\t$headers[] = \"Content-type: $content_type\";\n\t\t}\n\t\tif(!empty($body))\t\n\t\t\t$headers[] = \"Content-length: \".strlen($body);\n\t\tif(!empty($this->user) || !empty($this->pass))\t\n\t\t\t$headers[] = \"Authorization: BASIC \".base64_encode($this->user.\":\".$this->pass);\n\t\t\t\n\t\tfor($curr_header = 0; $curr_header < count($headers); $curr_header++) {\n\t\t\t$safer_header = strtr( $headers[$curr_header], \"\\\"\", \" \" );\n\t\t\t$cmdline_params .= \" -H \\\"\".$safer_header.\"\\\"\";\n\t\t}\n\t\t\n\t\tif(!empty($body))\n\t\t\t$cmdline_params .= \" -d \\\"$body\\\"\";\n\t\t\n\t\tif($this->read_timeout > 0)\n\t\t\t$cmdline_params .= \" -m \".$this->read_timeout;\n\t\t\n\t\t$headerfile = tempnam($temp_dir, \"sno\");\n\n\t\t$safer_URI = strtr( $URI, \"\\\"\", \" \" ); // strip quotes from the URI to avoid shell access\n\t\texec(escapeshellcmd($this->curl_path.\" -D \\\"$headerfile\\\"\".$cmdline_params.\" \\\"\".$safer_URI.\"\\\"\"),$results,$return);\n\t\t\n\t\tif($return)\n\t\t{\n\t\t\t$this->error = \"Error: cURL could not retrieve the document, error $return.\";\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\t\t\n\t\t$results = implode(\"\\r\\n\",$results);\n\t\t\n\t\t$result_headers = file(\"$headerfile\");\n\t\t\t\t\t\t\n\t\t$this->_redirectaddr = false;\n\t\tunset($this->headers);\n\t\t\t\t\t\t\n\t\tfor($currentHeader = 0; $currentHeader < count($result_headers); $currentHeader++)\n\t\t{\n\t\t\t\n\t\t\t// if a header begins with Location: or URI:, set the redirect\n\t\t\tif(preg_match(\"/^(Location: |URI: )/i\",$result_headers[$currentHeader]))\n\t\t\t{\n\t\t\t\t// get URL portion of the redirect\n\t\t\t\tpreg_match(\"/^(Location: |URI:)\\s+(.*)/\",chop($result_headers[$currentHeader]),$matches);\n\t\t\t\t// look for :// in the Location header to see if hostname is included\n\t\t\t\tif(!preg_match(\"|\\:\\/\\/|\",$matches[2]))\n\t\t\t\t{\n\t\t\t\t\t// no host in the path, so prepend\n\t\t\t\t\t$this->_redirectaddr = $URI_PARTS[\"scheme\"].\"://\".$this->host.\":\".$this->port;\n\t\t\t\t\t// eliminate double slash\n\t\t\t\t\tif(!preg_match(\"|^/|\",$matches[2]))\n\t\t\t\t\t\t\t$this->_redirectaddr .= \"/\".$matches[2];\n\t\t\t\t\telse\n\t\t\t\t\t\t\t$this->_redirectaddr .= $matches[2];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$this->_redirectaddr = $matches[2];\n\t\t\t}\n\t\t\n\t\t\tif(preg_match(\"|^HTTP/|\",$result_headers[$currentHeader]))\n\t\t\t\t$this->response_code = $result_headers[$currentHeader];\n\n\t\t\t$this->headers[] = $result_headers[$currentHeader];\n\t\t}\n\n\t\t// check if there is a a redirect meta tag\n\t\t\n\t\tif(preg_match(\"'<meta[\\s]*http-equiv[^>]*?content[\\s]*=[\\s]*[\\\"\\']?\\d+;[\\s]*URL[\\s]*=[\\s]*([^\\\"\\']*?)[\\\"\\']?>'i\",$results,$match))\n\t\t{\n\t\t\t$this->_redirectaddr = $this->_expandlinks($match[1],$URI);\t\n\t\t}\n\n\t\t// have we hit our frame depth and is there frame src to fetch?\n\t\tif(($this->_framedepth < $this->maxframes) && preg_match_all(\"'<frame\\s+.*src[\\s]*=[\\'\\\"]?([^\\'\\\"\\>]+)'i\",$results,$match))\n\t\t{\n\t\t\t$this->results[] = $results;\n\t\t\tfor($x=0; $x<count($match[1]); $x++)\n\t\t\t\t$this->_frameurls[] = $this->_expandlinks($match[1][$x],$URI_PARTS[\"scheme\"].\"://\".$this->host);\n\t\t}\n\t\t// have we already fetched framed content?\n\t\telseif(is_array($this->results))\n\t\t\t$this->results[] = $results;\n\t\t// no framed content\n\t\telse\n\t\t\t$this->results = $results;\n\n\t\tunlink(\"$headerfile\");\n\t\t\n\t\treturn true;\n\t}", "function post($url, $headers, $params)\n{\n $data = json_encode($params);\n\n $curl = curl_init();\n\n array_push($headers, \"Content-Type: application/json\");\n array_push($headers, \"Content-Length: \" . strlen($data));\n\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"POST\");\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_POST, true);\n curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n\n // print_r(\"=========请求信息 start =========\\n\");\n // print_r($url . \"\\n\");\n // print_r(json_encode($headers) . \"\\n\");\n // print_r($data . \"\\n\");\n $response = curl_exec($curl);\n curl_close($curl);\n // print_r(\"==============================\\n\");\n // print_r($response);\n // print_r(\"\\n=========请求信息 end =========\\n\");\n return $response;\n}", "public function send_post_request(){\n $url = \\Request::get('url');\n $post_array = \\Request::all();\n\n//\t\t$url = 'http://localhost/_websites/ahmed-badawy.com/site/json-test';\n//\t\t$post_array = array('type' => 'scss', 'source' => '.pre{color:red;background-color:green;}', 'compress'=>true);\n\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $query = curl_exec($ch);\n curl_close($ch);\n\n return $query;\n }", "function curl($url, $post_fields = null, $return_headers = false)\n {\n global $standard_headers;\n global $cookie;\n\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $standard_headers);\n curl_setopt($ch, CURLOPT_COOKIE, $cookie);\n\n if($return_headers == true) {\n curl_setopt($ch, CURLOPT_HEADER, 1);\n }\n\n if(!is_null($post_fields)) {\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));\n } else {\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');\n }\n\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n }", "public function post ($url, $data = null, $headers = null, $options = null);", "function wget_post($url, $data) {\n //if ($data == null) $data = array(\"\"=>\"\");\n $options = array(\n 'http' => array(\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n //'header'=> \"Content-Type: application/json\\r\\n\" .\n // \"Accept: application/json\\r\\n\",\n 'method' => 'POST',\n 'content' => http_build_query($data),\n ),\n );\n $context = stream_context_create($options);\n return file_get_contents($url, false, $context);\n}", "private function sendCurl($url,$data,$headers_array)\r\n {\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, $url);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ch, CURLOPT_POST, true);\r\n curl_setopt($ch,CURLOPT_POSTFIELDS, $data);\r\n curl_setopt($ch,CURLOPT_HTTPHEADER, $headers_array);\r\n $response = trim(curl_exec($ch));\r\n curl_close($ch);\r\n return $response;\r\n }", "function curl_post($url, $post) {\n\t$ch = curl_init(); \n curl_setopt($ch, CURLOPT_POST, 1); \n curl_setopt($ch, CURLOPT_URL,$url); \n //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); \n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post); \n curl_setopt($ch, CURLOPT_HEADER, false); \n ob_start(); \n curl_exec($ch); \n if (curl_errno($ch)){\n print curl_error($ch);}\n else{\n curl_close($ch);}\n $result = ob_get_contents() ; \n ob_end_clean(); \n return $result; \n}", "protected static function request_send($url, $headers, $params) {\n $curl = curl_init($url);\n\n //Set curl options\n foreach($params as $param => $value) {\n curl_setopt($curl, constant($param), $value);\n }\n curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n\n $response = curl_exec($curl);\n $info = self::get_info($curl);\n\n curl_close($curl);\n return ['body' => $response, 'info' => $info, 'code' => $info['code']];\n }", "public function post($url, $payload, $options = [])\n {\n $request = new Client();\n $request->init();\n\n $request->setopt(CURLOPT_URL, $url);\n\n foreach ($this->options as $optionKey => $optValue) {\n $request->setopt($optionKey, $optValue);\n }\n\n foreach ($options as $optionKey => $optValue) {\n $request->setopt($optionKey, $optValue);\n }\n\n $request->setopt(CURLOPT_POSTFIELDS, $payload);\n $request->setopt(\n CURLOPT_HTTPHEADER,\n [\n 'Content-Type: ' . $this->dataType,\n 'Content-Length: ' . strlen($payload)\n ]\n );\n\n if (!$this->body = $request->exec()) {\n $this->error = $request->error();\n }\n\n $info = $request->getinfo();\n $this->status = isset($info['http_code']) ? $info['http_code'] : null;\n\n $request->close();\n }", "function request($vars=array())\n { \n $this->req->setHeader(array(\n 'user-agent' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0',\n 'Referer' => $vars['host'].$vars['url'],\n 'Connection' => 'keep-alive'\n\n ));\n\n\n $url_obj = new Net_URL2(($vars['host'] ? $vars['host'] : DATA_HOST).$vars['url']);\n \n if ($vars['method'] == 'post') {\n $this->req->setMethod(HTTP_Request2::METHOD_POST);\n\n if ($this->cookies_jar) {\n $this->req->setCookieJar($this->cookies_jar);\n }\n $this->req->addPostParameter($vars['params']);\n\n\n\n\n } else {\n $url_obj->setQueryVariables($vars['params']);\n }\n\n\n\n ///////////////////////////////////////\n if ($vars['cookies']) {\n foreach ($vars['cookies'] as $k => $cookie) {\n //$this->req->addCookie($cookie['name'], $cookie['value']);\n }\n }\n\n $this->req->setUrl($url_obj);\n $this->response = $this->req->send();\n \n\n\n //HTTP_Request2_CookieJar::addCookiesFromResponse();\n\n //$cookies = HTTP_Request2_CookieJar::getAll();\n \n $this->cookies_jar = $this->req->getCookieJar();\n //echo '<pre>';\n //print_r($this->req);\n \n\n if (DEBUG == 1) {\n //echo \"\\n POST TO: \".$this->req->getUrl().\"\\n\";\n echo '<pre>';\n echo \"Status \".$this->response->getStatus();\n print_r($this->req);\n }\n\n $body = $this->response->getBody();\n //$header = $this->response->getHeader();\n return $body;\n }", "private static function execCurl($full_url, $type,\n $headers, $post_data = null) {\n $curl_request = self::getCurlRequestType($type);\n\n if ($post_data !== null) {\n if ($type !== 'POST') {\n throw new Exception('Cannot post field data with non-POST request!');\n }\n }\n\n $session = curl_init($full_url);\n curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($session, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($session, $curl_request, true);\n if ($post_data !== null) {\n curl_setopt($session, CURLOPT_POSTFIELDS, $post_data);\n }\n\n // Do it\n $server_output = curl_exec($session);\n curl_close($session);\n\n if ($server_output === false) {\n throw new Exception(\"Couldn't make cURL request!\");\n }\n\n return $server_output;\n }", "function Send($url, $POST){ //работа с CURL'ом\n\t$ch = curl_init();// Устанавливаем соединение\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $POST);\n\tcurl_setopt($ch, CURLOPT_TIMEOUT, 10);\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\n\t$result = curl_exec($ch);\n\n\tif($result === false) print $err = curl_error($ch);\n\n\treturn $result;\n}", "public static function sendReportOrder($url, $payload, $headers){\n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $url); // specify URL\n curl_setopt($ch, CURLOPT_POST, 1); // Use POST\n curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // this will have it return a string on exec call\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); // time to allow it to connect\n curl_setopt($ch, CURLOPT_TIMEOUT, 60); // time to allow it to send\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\t\tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n\t\t\n\t\t\n\t\t$response = curl_exec($ch); // perform the post\n curl_close($ch); // close the session\n \n return $response;\n\t\t\n\t}", "function api_post($url, array $post_contents, $username = null, $password = null)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_POST, TRUE);\n curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post_contents));\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));\n if ($username != NULL) {\n curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($ch, CURLOPT_USERPWD, \"{$username}:{$password}\");\n }\n return $this->gather_response($ch);\n }", "function http_post($url, $params = array()) {\n $postData = '';\n //create name value pairs seperated by &\n foreach ($params as $k => $v) {\n $postData .= $k . '=' . $v . '&';\n }\n $postData = rtrim($postData, '&');\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_POST, count($postData));\n curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);\n $output = curl_exec($ch);\n\n curl_close($ch);\n return $output;\n}", "private function post(string $url, array $data = [], array $headers = []): string\n {\n try {\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n $response = curl_exec($ch);\n if (curl_errno($ch)) {\n throw new Exception(\"cURL Error: \" . curl_error($ch));\n } else {\n return $response;\n }\n } catch (Exception $e) {\n throw new Exception($e->getMessage());\n }\n }", "public static function post($url, $data, $httpHeaders = array())\n {\n $ch = self::init($url, $httpHeaders);\n //Set the request type\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\n return self::processRequest($ch);\n }", "public function post($data)\n {\n // Get parts of URL\n $this->url = parse_url($this->url);\n if (!$this->url) {\n return \"couldn't parse url\";\n }\n\n // Provide defaults for port and query string\n if (!isset($this->url['port'])) {\n $this->url['port'] = \"\";\n }\n\n if (!isset($this->url['query'])) {\n $this->url['query'] = \"\";\n }\n\n // Build POST string\n $encoded = \"\";\n foreach ($data as $k => $v) {\n $encoded .= ($encoded ? \"&\" : \"\");\n $encoded .= rawurlencode($k) . \"=\" . rawurlencode($v);\n }\n\n // Open socket on host\n $fp = fsockopen($this->url['host'], $this->url['port'] ? $this->url['port'] : 80);\n if (!$fp) {\n return \"failed to open socket to {$this->url['host']}\";\n }\n\n // Send HTTP 1.0 POST request to host\n fputs($fp, sprintf(\"POST %s%s%s HTTP/1.0\\n\", $this->url['path'], $this->url['query'] ? \"?\" : \"\", $this->url['query']));\n fputs($fp, \"Host: {$this->url['host']}\\n\");\n fputs($fp, \"Content-type: application/x-www-form-urlencoded\\n\");\n fputs($fp, \"Content-length: \" . strlen($encoded) . \"\\n\");\n fputs($fp, \"Connection: close\\n\\n\");\n fputs($fp, \"$encoded\\n\");\n\n // Read the first line of data, only accept if 200 OK is sent\n $line = fgets($fp, 1024);\n if (!preg_match('/^HTTP\\/1\\.. 200/i', $line)) {\n return;\n }\n\n // Put everything, except the headers to $results\n $results = '';\n $inheader = true;\n\n while(!feof($fp)) {\n $line = fgets($fp, 1024);\n\n if ($inheader && ($line == \"\\n\" || $line == \"\\r\\n\")) {\n $inheader = FALSE;\n } elseif (!$inheader) {\n $results .= $line;\n }\n }\n fclose($fp);\n\n // Return with data received\n return $results;\n }", "function request($url, $data = [], $cookie = [], $extra_headers = [])\n{\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);\n curl_setopt($curl, CURLOPT_TIMEOUT, 10);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl, CURLOPT_HEADER, true);\n\n if (!empty($data)) {\n $data_encoded = is_array($data) ? http_build_query($data) : $data;\n curl_setopt($curl, CURLOPT_POST, 1);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data_encoded);\n }\n\n $headers = [\n 'content-type' => 'application/x-www-form-urlencoded',\n 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36',\n ];\n $headers = array_merge($headers, array_change_key_case($extra_headers, CASE_LOWER));\n foreach ($headers as $key => &$value) {\n $value = $key . ': ' . $value;\n }\n $headers = array_values($headers);\n \n if (!empty($cookie)) {\n array_walk($cookie, function(&$value, $key) {\n $value = $key . '=' . $value;\n });\n $cookieStr = implode('; ', $cookie);\n curl_setopt($curl, CURLOPT_COOKIE, $cookieStr);\n }\n curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n \n $resp = curl_exec($curl);\n $header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\n curl_close($curl);\n global $resp_header;\n $resp_header = [];\n $headerStr = substr($resp, 0, $header_size);\n $resp_header = explode(\"\\r\\n\", trim($headerStr));\n $content = substr($resp, $header_size);\n return $content;\n}", "function post($url,$fields){\n curl_setopt($this-> ch,CURLOPT_POST,1);\n curl_setopt($this-> ch,CURLOPT_POSTFIELDS,$fields);\n curl_setopt($this-> ch,CURLOPT_URL,$url);\n curl_setopt($this-> ch,CURLOPT_COOKIE, COOKIE_FILE); \n curl_setopt($this-> ch,CURLOPT_FOLLOWLOCATION,true);\n // 返回跳转后的页面 如果只提交表单,则返回1表示成功\n return $this-> html = curl_exec($this-> ch);\n }", "function https_request($url, $post = null)\n {\n $cookieFile = NULL;\n $hCURL = curl_init();\n curl_setopt($hCURL, CURLOPT_URL, $url);\n curl_setopt($hCURL, CURLOPT_TIMEOUT, 30);\n curl_setopt($hCURL, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($hCURL, CURLOPT_USERAGENT, $userAgent);\n curl_setopt($hCURL, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($hCURL, CURLOPT_AUTOREFERER, TRUE);\n curl_setopt($hCURL, CURLOPT_ENCODING, \"gzip,deflate\");\n //curl_setopt($hCURL, CURLOPT_HTTPHEADER,$host);\n if ($post) {\n curl_setopt($hCURL, CURLOPT_POST, 1);\n curl_setopt($hCURL, CURLOPT_POSTFIELDS, $post);\n }\n $sContent = curl_exec($hCURL);\n var_dump(curl_error($hCURL));\n if ($sContent === FALSE) {\n $error = curl_error($hCURL);\n curl_close($hCURL);\n\n throw new \\Exception($error . ' Url : ' . $url);\n } else {\n curl_close($hCURL);\n return $sContent;\n }\n }", "public function curlRequest($url, $headers, $body)\n\t{\n\t\t$header_strings = array();\n\t\tforeach ($headers as $key => $val) {\n\t\t\t$header_strings[] = \"{$key}: {$val}\";\n\t\t}\n\n\t\t$curlHandle = curl_init();\n\t\tcurl_setopt($curlHandle, CURLOPT_URL, $url);\n\t\tcurl_setopt($curlHandle, CURLOPT_POST, 1);\n\t\tcurl_setopt($curlHandle, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($curlHandle, CURLOPT_TIMEOUT, $this->timeout);\n\t\tcurl_setopt($curlHandle, CURLOPT_POSTFIELDS, $body);\n\t\tcurl_setopt($curlHandle, CURLOPT_HTTPHEADER, $header_strings);\n\t\tcurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_exec($curlHandle);\n\t\t$status = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);\n\t\tcurl_close($curlHandle);\n\t\treturn $status;\n\t}", "public function send()\n {\n $queryString = $this->buildQueryString();\n\n $headers = array(\n 'method' => 'POST',\n 'content' => $this->buildQueryString(),\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\" .\n \"Content-Length: \" . strlen($queryString) . \"\\r\\n\\r\\n\"\n );\n\n $request = file_get_contents(\n $this->getPaypalUrl(),\n false,\n stream_context_create(array('http' => $headers))\n );\n\n return new Response($request);\n }", "function fetchURL ($url, $param) {\n $return = array();\n\n $ch = curl_init();\n\n curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch,CURLOPT_TIMEOUT, 0);\n curl_setopt($ch,CURLOPT_FORBID_REUSE, 1);\n curl_setopt($ch,CURLOPT_FRESH_CONNECT, 1);\n curl_setopt($ch,CURLOPT_HEADER, 1);\n curl_setopt($ch,CURLOPT_URL,$url);\n if ($this->disableSslVerify) {\n $this->log('Caution: Request being sent without SSL verification.', 'Warning');\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n }\n if (!empty($param)){\n if (!empty($param['Header'])){\n curl_setopt($ch,CURLOPT_HTTPHEADER, $param['Header']);\n }\n if (!empty($param['Post'])){\n curl_setopt($ch,CURLOPT_POSTFIELDS, $param['Post']);\n }\n }\n \n $data = curl_exec($ch);\n if ( curl_errno($ch) ) {\n $return['ok'] = -1;\n $return['error'] = curl_error($ch);\n return $return;\n }\n \n if (is_numeric(strpos($data, 'HTTP/1.1 100 Continue'))) {\n $data=str_replace('HTTP/1.1 100 Continue', '', $data);\n }\n $data = preg_split(\"/\\r\\n\\r\\n/\",$data, 2, PREG_SPLIT_NO_EMPTY);\n if (!empty($data)) {\n $return['head'] = ( isset($data[0]) ? $data[0] : null );\n $return['body'] = ( isset($data[1]) ? $data[1] : null );\n } else {\n $return['head'] = null;\n $return['body'] = null;\n }\n \n $matches = array();\n $data = preg_match(\"/HTTP\\/[0-9.]+ ([0-9]+) (.+)\\r\\n/\",$return['head'], $matches);\n if (!empty($matches)) {\n $return['code'] = $matches[1];\n $return['answer'] = $matches[2];\n }\n \n $data = preg_match(\"/meta http-equiv=.refresh. +content=.[0-9]*;url=([^'\\\"]*)/i\",$return['body'], $matches);\n if (!empty($matches)) {\n $return['location'] = $matches[1];\n $return['code'] = '301';\n }\n\n if ( $return['code'] == '200' || $return['code'] == '302' ) {\n $return['ok'] = 1;\n } else {\n $return['error'] = (($return['answer'] and $return['answer'] != 'OK') ? $return['answer'] : 'Something wrong!');\n $return['ok'] = 0;\n }\n\n foreach (preg_split('/\\n/', $return['head'], -1, PREG_SPLIT_NO_EMPTY) as $value) {\n $data = preg_split('/:/', $value, 2, PREG_SPLIT_NO_EMPTY);\n if (is_array($data) and isset($data['1'])) {\n $return['headarray'][$data['0']] = trim($data['1']);\n }\n }\n\n curl_close($ch);\n\n return $return;\n }", "private function doPost($url, $data) {\n $options = array(\n 'http' => array(\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'method' => 'POST',\n 'content' => http_build_query($data),\n ),\n );\n\n $context = stream_context_create($options);\n $result = file_get_contents($url, false, $context);\n\n Logger::info(\"Got result from GW: \". $result);\n }", "public static function file_post_contents ($url, $postData, $multipart = false, &$error = '', $userAgent = 'Proxy for: %HTTP_USER_AGENT')\r\n\t{\r\n\t\t# Create a CURL instance\r\n\t\t$handle = curl_init ();\r\n\t\tcurl_setopt ($handle, CURLOPT_URL, $url);\r\n\t\t\r\n\t\t# Set the user agent\r\n\t\t$userAgent = str_replace ('%HTTP_USER_AGENT', $_SERVER['HTTP_USER_AGENT'], $userAgent);\r\n\t\tcurl_setopt ($handle, CURLOPT_USERAGENT, $userAgent);\r\n\t\t\r\n\t\t# When not multipart (i.e. when a file is not included), build the data into a string: see http://stackoverflow.com/a/5224895/180733 \"If value is an array, the Content-Type header will be set to multipart/form-data\"\r\n\t\tif (!$multipart) {\r\n\t\t\t$postData = http_build_query ($postData);\r\n\t\t}\r\n\t\t\r\n\t\t# Build the POST query\r\n\t\tcurl_setopt ($handle, CURLOPT_POST, 1);\r\n\t\tcurl_setopt ($handle, CURLOPT_POSTFIELDS, $postData);\r\n\t\t\r\n\t\t# Obtain the original page HTML\r\n\t\tcurl_setopt ($handle, CURLOPT_RETURNTRANSFER, true);\r\n\t\t$output = curl_exec ($handle);\r\n\t\t$error = curl_error ($handle);\r\n\t\tcurl_close ($handle);\r\n\t\t\r\n\t\t# Return the original page HTML\r\n\t\treturn $output;\r\n\t}", "public function execute()\n\t{\n\t\t$this->prepare();\n\t\t$result = $this->processor->execute( $this->method, $this->url, $this->headers, $this->body, $this->config );\n\t\t$this->body = ''; // We need to do this as we reuse the same object for performance. Once we've executed, the body is useless anyway due to the changing params\n\t\tif ( $result ) {\n\t\t\t$this->response_headers = $this->processor->getHeaders();\n\t\t\t$this->response_body = $this->processor->getBody();\n\t\t\t$this->executed = true;\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\t$this->executed = false;\n\t\t\treturn $result;\n\t\t}\n\t}", "function curl_post($url, array $post = NULL, array $options = array())\n{\n $defaults = array(\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n CURLOPT_URL => $url,\n CURLOPT_FRESH_CONNECT => 1,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_FORBID_REUSE => 1,\n CURLOPT_TIMEOUT => 4,\n CURLOPT_POSTFIELDS => http_build_query($post)\n );\n\n $ch = curl_init();\n curl_setopt_array($ch, ($options + $defaults));\n if( ! $result = curl_exec($ch))\n {\n echo \"curl_exec failed \" . $url;\n trigger_error(curl_error($ch));\n }\n curl_close($ch);\n return $result;\n}", "private function doRequest($method, $url, $data = array()){\n\t\n\t\t// send request to this URL\n\t\tcurl_setopt($this->ch, CURLOPT_URL, $url);\n\t\t\n\t\t// are we coming off of previous page?\n\t\tif(!empty($this->lastUrl)) curl_setopt($this->ch, CURLOPT_REFERER, $this->lastUrl);\n\t\t\n\t\t// is this a POST request?\n\t\tif($method == 'POST'){\n\t\t\tcurl_setopt($this->ch, CURLOPT_POST, true);\n\t\t\tcurl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);\n\t\t} else {\n\t\t\tcurl_setopt($this->ch, CURLOPT_POST, false);\n\t\t\t\n\t\t\t// append get fields as query string\n\t\t\tif($data){\n\t\t\t\n\t\t\t\t$query = http_build_query($data, '', '&');\n\t\t\t\t$parts = parse_url($url);\n\t\t\t\t\n\t\t\t\t// construct new URL...\n\t\t\t\tif(!isset($parts['path'])){\n\t\t\t\t\t$url = $url.'/?'.$query;\n\t\t\t\t} else if(isset($parts['query'])){\n\t\t\t\t\t$url = $url.'&'.$query;\n\t\t\t\t} else {\n\t\t\t\t\t$url = $url.'?'.$query;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t// append query string\n\t\t\t\tcurl_setopt($this->ch, CURLOPT_URL, $url);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// what if request fails?\n\t\t$this->last_url = $url;\n\t\t\n\t\t// will return false on host not found or timeout\n\t\t$response = curl_exec($this->ch);\n\t\t\n\t\tif($response){\n\t\t\t\n\t\t\t// use effective URL instead in case of redirect\n\t\t\t$url = curl_getinfo($this->ch, CURLINFO_EFFECTIVE_URL);\n\t\t\t\n\t\t\t// split headers and body\n\t\t\t$header_size = curl_getinfo($this->ch, CURLINFO_HEADER_SIZE);\n\t\t\t$headers = substr($response, 0, $header_size);\n\t\t\t$body = substr($response, $header_size);\n\t\t\t\n\t\t\t// in case of redirect, we only care about the latest headers from the last page\n\t\t\t$temp = explode(\"\\r\\n\\r\\n\", $headers);\n\t\t\t$latest_headers = $temp[count($temp)-2];\n\t\t\t\n\t\t\t// dom parsing is probably more expensive... just do regex on a plain text to find possible meta redirect\n\t\t\tif($this->follow_meta_refresh){\n\t\t\t\n\t\t\t\tif(preg_match('/<meta[^>]*http-equiv=[\"|\\']refresh[\"|\\'][^>]*/i', $body, $matches) && preg_match('/url=([^ |\"|\\']+)/i', $matches[0], $matches2)){\n\t\t\t\t\t$refresh_url = $matches2[1];\n\t\t\t\t\t\n\t\t\t\t\t// call the same method asking to do all the same but to this URL\n\t\t\t\t\treturn $this->doRequest($method, $refresh_url, $data, $headers);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// actual response that it send to the page is [headers, body]\n\t\t\treturn new PGPage($url, array('headers' => $latest_headers, 'body' => $this->clean($body)), $this);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t$this->last_error = curl_error($this->ch);\n\t\t\n\t\treturn false;\n\t}", "public static function http_post($url, $postargs = NULL, $output_errors = TRUE) {\n $session = curl_init();\n // Set the POST options.\n curl_setopt($session, CURLOPT_URL, $url);\n if ($postargs !== NULL) {\n curl_setopt($session, CURLOPT_POST, TRUE);\n if (is_array($postargs) && version_compare(phpversion(), '5.5.0') >= 0) {\n // Posting a file using @ prefix is deprecated as of version 5.5.0.\n foreach ($postargs as $key => $value) {\n // Loop through postargs to find files where the value is prefixed @.\n if (strpos($value ?? '', '@') === 0) {\n // Found a file - could be in form @path/to/file;type=mimetype.\n $fileparts = explode(';', substr($value, 1));\n $filename = $fileparts[0];\n if (count($fileparts) == 1) {\n // Only filename specified.\n $postargs[$key] = new CurlFile($filename);\n }\n else {\n // Mimetype may be specified too.\n $fileparam = explode('=', $fileparts[1]);\n if ($fileparam[0] == 'type' && isset($fileparam[1])) {\n // Found a mimetype.\n $mimetype = $fileparam[1];\n $postargs[$key] = new CurlFile($filename, $mimetype);\n }\n else {\n // The fileparam didn't seem to be a mimetype.\n $postargs[$key] = new CurlFile($filename);\n }\n }\n }\n }\n }\n curl_setopt($session, CURLOPT_POSTFIELDS, $postargs);\n }\n curl_setopt($session, CURLOPT_HEADER, FALSE);\n curl_setopt($session, CURLOPT_RETURNTRANSFER, TRUE);\n // Do the POST and then close the session.\n $response = curl_exec($session);\n $httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);\n $curlErrno = curl_errno($session);\n // Check for an error, or check if the http response was not OK.\n if ($curlErrno || $httpCode != 200) {\n if ($output_errors) {\n echo '<div class=\"error\">cUrl POST request failed. Please check cUrl is installed on the server and the $base_url setting is correct.<br/>URL:' . $url . '<br/>';\n if ($curlErrno) {\n echo 'Error number: ' . $curlErrno . '<br/>';\n echo 'Error message: ' . curl_error($session) . '<br/>';\n }\n echo \"Server response<br/>\";\n echo $response . '</div>';\n }\n $return = [\n 'result' => FALSE,\n 'output' => $curlErrno ? curl_error($session) : $response,\n 'errno' => $curlErrno,\n 'status' => $httpCode\n ];\n }\n else {\n $arr_response = explode(\"\\r\\n\\r\\n\", $response);\n // Last part of response is the actual data.\n $return = ['result' => TRUE, 'output' => array_pop($arr_response)];\n }\n curl_close($session);\n return $return;\n }", "function httpPOST($url, $data)\n{\n $curl = curl_init($url);\n curl_setopt($curl, CURLOPT_POST, true);\n curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($curl);\n curl_close($curl);\n return $response;\n}", "function post(Request &$request, Response &$response);", "protected function execCurl() \n\t{\t\t\t\n\t\tif ( $this->sandbox == true )\n\t\t{\n\t\t\t$server = $this->_server['sandbox'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$server = $this->_server['live'];\n\t\t}\n\n\t\t$url = $server . $this->adhocPostUrl;\n\t\t\n\t\t$headers = array(\n\t\t\t'Content-type: application/x-www-form-urlencoded',\n\t\t\t'Authorization: GoogleLogin auth=' . $this->getAuthToken(),\n\t\t\t'developerToken: ' . $this->developerToken,\n\t\t\t'clientCustomerId: ' . $this->clientCustomerId,\n\t\t\t'returnMoneyInMicros: true',\n\t\t\t\t\t\t\n\t\t);\n\n\t\t$data = '__rdxml=' . urlencode( $this->__rdxml );\n\t\t\n\t\t$ch = curl_init( $url );\n\t\tcurl_setopt( $ch, CURLOPT_POST, 1 );\n\t\tcurl_setopt( $ch, CURLOPT_POSTFIELDS, $data );\n\t\tcurl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );\n\t\tcurl_setopt( $ch, CURLOPT_FOLLOWLOCATION, TRUE );\n\t\tcurl_setopt( $ch, CURLOPT_HEADER, FALSE );\n\t\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, TRUE );\n\t\tcurl_setopt( $ch, CURLOPT_HTTPHEADER, $headers );\n\t\t\n\t\t$response = curl_exec( $ch );\n\t\t$httpCode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n\t\t$error = curl_error( $ch );\n\t\tcurl_close( $ch );\n\t\t\n\t\tif( $httpCode == 200 || $httpCode == 403 )\n\t\t{\n\t\t\treturn $response;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( !empty( $error ) )\n\t\t\t{\n\t\t\t\tthrow new exception( $httpCode . ' - ' . $error );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new exception( $httpCode . ' - Unknow error occurred while post operation.' ); \n\t\t\t}\n\t\t}\n\t}", "public function send() {\n\t\tif (isset($this->_headers['Location']) && $this->_status === 200) {\n\t\t\t$this->statusCode(302);\n\t\t}\n\n\t\t$codeMessage = $this->_statusCodes[$this->_status];\n\t\t$this->_setCookies();\n\t\t$this->_sendHeader(\"{$this->_protocol} {$this->_status} {$codeMessage}\");\n\t\t$this->_setContent();\n\t\t$this->_setContentLength();\n\t\t$this->_setContentType();\n\t\tforeach ($this->_headers as $header => $values) {\n\t\t\tforeach ((array)$values as $value) {\n\t\t\t\t$this->_sendHeader($header, $value);\n\t\t\t}\n\t\t}\n\t\tif ($this->_file) {\n\t\t\t$this->_sendFile($this->_file, $this->_fileRange);\n\t\t\t$this->_file = $this->_fileRange = null;\n\t\t} else {\n\t\t\t$this->_sendContent($this->_body);\n\t\t}\n\t}", "function post($url, $data = '', $content_type = '')\n{\n\t\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data); \n\t\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\t\n\tif ($content_type != '')\n\t{\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, \n\t\t\tarray(\n\t\t\t\t\"Content-type: \" . $content_type\n\t\t\t\t)\n\t\t\t);\n\t}\t\n\t\n\t$response = curl_exec($ch);\n\tif($response == FALSE) \n\t{\n\t\t$errorText = curl_error($ch);\n\t\tcurl_close($ch);\n\t\tdie($errorText);\n\t}\n\t\n\t$info = curl_getinfo($ch);\n\t$http_code = $info['http_code'];\n\t\t\n\tcurl_close($ch);\n\t\n\treturn $response;\n}", "protected function createCurlHandle()\n {\n $ch = curl_init();\n\n $bdurl = $this->request->getUrl();\n $config = $this->request->getConfig();\n\n \t$curl_opts = array(\n \t\t// request url\n \t\tCURLOPT_URL\t\t\t\t=> $this->requestUrl,\n \t\t// setup write callbacks\n \t\tCURLOPT_HEADERFUNCTION\t=> array($this, 'onWriteHeader'),\n \t\tCURLOPT_WRITEFUNCTION\t=> array($this, 'onWriteBody'),\n \t\t// buffer size\n \t\tCURLOPT_BUFFERSIZE\t\t=> $config['buffer_size'],\n \t\t// save full outgoing headers, in case someone is interested\n CURLINFO_HEADER_OUT\t\t=> true,\n CURLOPT_NOSIGNAL => 1,\n );\n\n // setup connection timeout\n\t\tif (defined('CURLOPT_CONNECTTIMEOUT_MS')) {\n\t\t\t$curl_opts[CURLOPT_CONNECTTIMEOUT_MS] = $config['connect_timeout'];\n\t\t} else {\n\t\t\t$curl_opts[CURLOPT_CONNECTTIMEOUT] = ceil($config['connect_timeout'] / 1000);\n\t\t}\n\n // setup request timeout\n\t\tif (defined('CURLOPT_TIMEOUT_MS')) {\n\t\t\t$curl_opts[CURLOPT_TIMEOUT_MS] = $config['timeout'];\n\t\t} else {\n\t\t\t$curl_opts[CURLOPT_TIMEOUT] = ceil($config['timeout'] / 1000);\n\t\t}\n\n // setup redirects\n if ($config['follow_redirects']) {\n \t$curl_opts[CURLOPT_FOLLOWLOCATION] = true;\n $curl_opts[CURLOPT_MAXREDIRS] = $config['max_redirects'];\n // limit redirects to http(s), works in 5.2.10+\n if (defined('CURLOPT_REDIR_PROTOCOLS')) {\n $curl_opts[CURLOPT_REDIR_PROTOCOLS] = CURLPROTO_HTTP | CURLPROTO_HTTPS;\n }\n // works sometime after 5.3.0, http://bugs.php.net/bug.php?id=49571\n if ($config['strict_redirects'] && defined('CURLOPT_POSTREDIR ')) {\n $curl_opts[CURLOPT_POSTREDIR] = 3;\n }\n } else {\n $curl_opts[CURLOPT_FOLLOWLOCATION] = false;\n }\n\n // set HTTP version\n switch ($config['protocol_version']) {\n case '1.0':\n $curl_opts[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0;\n break;\n case '1.1':\n $curl_opts[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1;\n }\n\n // set request method\n switch ($this->request->getMethod()) {\n case bdHttpRequest::METHOD_GET:\n $curl_opts[CURLOPT_HTTPGET] = true;\n break;\n case bdHttpRequest::METHOD_POST:\n $curl_opts[CURLOPT_POST] = true;\n break;\n case bdHttpRequest::METHOD_HEAD:\n $curl_opts[CURLOPT_NOBODY] = true;\n break;\n default:\n $curl_opts[CURLOPT_CUSTOMREQUEST] = $this->request->getMethod();\n }\n\n // set proxy, if needed\n if ($config['proxy_host']) {\n if (!$config['proxy_port']) {\n throw new bdHttpException('Proxy port not provided');\n }\n $curl_opts[CURLOPT_PROXY] = $config['proxy_host'] . ':' . $config['proxy_port'];\n if ($config['proxy_user']) {\n $curl_opts[CURLOPT_PROXYUSERPWD] = $config['proxy_user'] . ':' . $config['proxy_password'];\n switch ($config['proxy_auth_scheme']) {\n case bdHttpRequest::AUTH_BASIC:\n $curl_opts[CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;\n break;\n case bdHttpRequest::AUTH_DIGEST:\n $curl_opts[CURLOPT_PROXYAUTH] = CURLAUTH_DIGEST;\n }\n }\n }\n\n // set authentication data\n $auth = $this->request->getAuth();\n if ($auth) {\n $curl_opts[CURLOPT_USERPWD] = $auth['user'] . ':' . $auth['password'];\n switch ($auth['scheme']) {\n case bdHttpRequest::AUTH_BASIC:\n $curl_opts[CURLOPT_HTTPAUTH] = CURLAUTH_BASIC;\n break;\n case bdHttpRequest::AUTH_DIGEST:\n $curl_opts[CURLOPT_HTTPAUTH] = CURLAUTH_DIGEST;\n }\n }\n\n // set SSL options\n if (0 == strcasecmp($bdurl->getScheme(), 'https')) {\n \tif (isset($config['ssl_verify_host'])) {\n \t\t$curl_opts[CURLOPT_SSL_VERIFYHOST] = $config['ssl_verify_host'] ? 2 : 0;\n \t}\n \tforeach (self::$sslContextMap as $name => $option) {\n \t\tif (isset($config[$name])) {\n \t\t\t$curl_opts[$option] = $config[$name];\n \t\t}\n \t}\n }\n\n $headers = $this->request->getHeaders();\n // make cURL automagically send proper header\n if (!isset($headers['accept-encoding'])) {\n $headers['accept-encoding'] = '';\n }\n\n // set headers having special cURL keys\n foreach (self::$headerMap as $name => $option) {\n if (isset($headers[$name])) {\n $curl_opts[$option] = $headers[$name];\n unset($headers[$name]);\n }\n }\n\n $this->calculateRequestLength($headers);\n if (isset($headers['content-length'])) {\n $this->workaroundPhpBug47204($curl_opts, $headers);\n }\n\n // set headers not having special keys\n $headersFmt = array();\n foreach ($headers as $name => $value) {\n $canonicalName = implode('-', array_map('ucfirst', explode('-', $name)));\n $headersFmt[] = $canonicalName . ': ' . $value;\n }\n $curl_opts[CURLOPT_HTTPHEADER] = $headersFmt;\n\n curl_setopt_array($ch, $curl_opts);\n\n return $ch;\n }", "function http_post_contents($pay_server, $post_data){\n $timeout = 30;\n $ch = curl_init(); \n // set URL and other appropriate options\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_URL, $pay_server);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n $file_contents = curl_exec($ch);\n curl_close($ch);\n \n return $file_contents; \n}", "private function POST() {\n global $_POST;\n $postData = array();\n foreach($_POST as $key => $value) {\n $postData[$key] = $value;\n }\n $this -> response[\"response\"] = $postData;\n return;\n }", "private function execute() {\n\t\t// Max exec time of 1 minute.\n\t\tset_time_limit(60);\n\t\t// Open cURL request\n\t\t$curl_session = curl_init();\n\n\t\t// Set the url to post request to\n\t\tcurl_setopt ($curl_session, CURLOPT_URL, $this->url);\n\t\t// cURL params\n\t\tcurl_setopt ($curl_session, CURLOPT_HEADER, 0);\n\t\tcurl_setopt ($curl_session, CURLOPT_POST, 1);\n\t\t// Pass it the query string we created from $this->data earlier\n\t\tcurl_setopt ($curl_session, CURLOPT_POSTFIELDS, $this->curl_str);\n\t\t// Return the result instead of print\n\t\tcurl_setopt($curl_session, CURLOPT_RETURNTRANSFER,1);\n\t\t// Set a cURL timeout of 30 seconds\n\t\tcurl_setopt($curl_session, CURLOPT_TIMEOUT,30);\n\t\tcurl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, FALSE);\n\n\t\t// Send the request and convert the return value to an array\n\t\t$response = preg_split('/$\\R?^/m',curl_exec($curl_session));\n\n\t\t// Check that it actually reached the SagePay server\n\t\t// If it didn't, set the status as FAIL and the error as the cURL error\n\t\tif (curl_error($curl_session)){\n\t\t\t$this->status = 'FAIL';\n\t\t\t$this->error = curl_error($curl_session);\n\t\t}\n\n\t\t// Close the cURL session\n\t\tcurl_close ($curl_session);\n\n\t\t// Turn the response into an associative array\n\t\tfor ($i=0; $i < count($response); $i++) {\n\t\t\t// Find position of first \"=\" character\n\t\t\t$splitAt = strpos($response[$i], '=');\n\t\t\t// Create an associative array\n\t\t\t$this->response[trim(substr($response[$i], 0, $splitAt))] = trim(substr($response[$i], ($splitAt+1)));\n\t\t}\n\n\t\t// Return values. Assign stuff based on the return 'Status' value from SagePay\n\t\tswitch($this->response['Status']) {\n\t\t\tcase 'OK':\n\t\t\t\t// Transactino made succssfully\n\t\t\t\t$this->status = 'success';\n\t\t\t\t$_SESSION['transaction']['VPSTxId'] = $this->response['VPSTxId']; // assign the VPSTxId to a session variable for storing if need be\n\t\t\t\t$_SESSION['transaction']['TxAuthNo'] = $this->response['TxAuthNo']; // assign the TxAuthNo to a session variable for storing if need be\n\t\t\t\tbreak;\n\t\t\tcase '3DAUTH':\n\t\t\t\t// Transaction required 3D Secure authentication\n\t\t\t\t// The request will return two parameters that need to be passed with the 3D Secure\n\t\t\t\t$this->acsurl = $this->response['ACSURL']; // the url to request for 3D Secure\n\t\t\t\t$this->pareq = $this->response['PAReq']; // param to pass to 3D Secure\n\t\t\t\t$this->md = $this->response['MD']; // param to pass to 3D Secure\n\t\t\t\t$this->status = '3dAuth'; // set $this->status to '3dAuth' so your controller knows how to handle it\n\t\t\t\tbreak;\n\t\t\tcase 'REJECTED':\n\t\t\t\t// errors for if the card is declined\n\t\t\t\t$this->status = 'declined';\n\t\t\t\t$this->error = 'Your payment was not authorised by your bank or your card details where incorrect.';\n\t\t\t\tbreak;\n\t\t\tcase 'NOTAUTHED':\n\t\t\t\t// errors for if their card doesn't authenticate\n\t\t\t\t$this->status = 'notauthed';\n\t\t\t\t$this->error = 'Your payment was not authorised by your bank or your card details where incorrect.';\n\t\t\t\tbreak;\n\t\t\tcase 'INVALID':\n\t\t\t\t// errors for if the user provides incorrect card data\n\t\t\t\t$this->status = 'invalid';\n\t\t\t\t$this->error = 'One or more of your card details where invalid. Please try again.';\n\t\t\t\tbreak;\n\t\t\tcase 'FAIL':\n\t\t\t\t// errors for if the transaction fails for any reason\n\t\t\t\t$this->status = 'fail';\n\t\t\t\t$this->error = 'An unexpected error has occurred. Please try again.';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// default error if none of the above conditions are met\n\t\t\t\t$this->status = 'error';\n\t\t\t\t$this->error = 'An error has occurred. Please try again.';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// set error sessions if the request failed or was declined to be handled by controller\n\t\tif($this->status !== 'success') {\n\t\t\t$_SESSION['error']['status'] = $this->status;\n\t\t\t$_SESSION['error']['description'] = $this->error;\n\t\t}\n\t}", "public function execute()\n\t{\n\t\t$this->prepare();\n\t\t$result = $this->processor->execute( $this->method, $this->url, $this->headers, $this->body, $this->config );\n\n\t\tif ( $result ) { // XXX exceptions?\n\t\t\t$this->response_headers = $this->processor->get_response_headers();\n\t\t\t$this->response_body = $this->processor->get_response_body();\n\t\t\t$this->executed = true;\n\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\t// processor->execute should throw an Exception which would bubble up\n\t\t\t$this->executed = false;\n\n\t\t\treturn $result;\n\t\t}\n\t}", "public function zendRequest($url, $headers, $body)\n\t{\n\t\t$header_strings = array();\n\t\tforeach ($headers as $key => $val) {\n\t\t\t$header_strings[] = \"{$key}: {$val}\";\n\t\t}\n\n\t\t$client = new Zend_Http_Client($url);\n\t\t$client->setHeaders($header_strings);\n\t\t$client->setRawData($body, 'text/xml');\n\n\t\t$response = $client->request('POST');\n\n\t\treturn $response->getStatus();\n\t}", "private function post($url, $content, $type = '', $header = '') {\n\t\t$url = $this->api_url . $url;\n\n\t\t// Set headers.\n\t\t$headers = array();\n\t\tif (!empty($type)) {\n\t\t\t$headers[] = 'Content-Type: ' . $type . '; charset=UTF-8';\n\t\t}\n\t\tif (!empty($header)) {\n\t\t\t$headers[] = $header;\n\t\t}\n\n\t\t// Open curl.\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_USERPWD, $this->api_username . \":\" . $this->api_password);\n\t\tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n\t\tif (count($headers) > 0) {\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $content);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\t$output = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\treturn $output;\n\t}", "function post($url, $data) {\n $options = array(\n\t\t 'http' => array(\n\t\t\t\t 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n\t\t\t\t 'method' => 'POST',\n\t\t\t\t 'content' => http_build_query($data),\n\t\t\t\t ),\n\t\t );\n $context = stream_context_create($options);\n $result = file_get_contents($url, false, $context);\n return $result;\n}", "public static function post($url,$vars,$extended=false,$headers=null,$closeAfterUse=true,$timeout=-1,$cookies=null){\n\t\t\tif(!function_exists('connect_store_headers_callback')){\n\t\t\t\tfunction connect_store_headers_callback($ch,$header){\n\t\t\t\t\tConnect::$HEADERS[]=$header;\n\t\t\t\t\treturn strlen($header);\n\t\t\t\t}\n\t\t\t}\n\t\t\tself::$HEADERS=array();\n\t\t\t$ch=curl_init();\n\t\t\t$wp=fopen('php://temp','r+');\n\t\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\t\tcurl_setopt($ch,CURLOPT_STDERR,$wp);\n\t\t\tcurl_setopt($ch,CURLOPT_VERBOSE,true);\n\t\t\tif(substr($url,0,8)=='https://'){\n\t\t\t\tcurl_setopt($ch,CURLOPT_HTTPAUTH,CURLAUTH_ANY);\n\t\t\t\tcurl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);\n\t\t\t}\n\t\t\tif($headers)curl_setopt($ch,CURLOPT_HTTPHEADER,$headers);\n\t\t\tif($timeout!=-1)curl_setopt($ch,CURLOPT_TIMEOUT_MS,$timeout);\n\t\t\tif($cookies){\n\t\t\t\tforeach($cookies as $k=>$v)$cookies[$k]=$k.'='.urlencode($v);\n\t\t\t\tcurl_setopt($ch,CURLOPT_COOKIE,implode('; ',$cookies));\n\t\t\t}\n\t\t\tcurl_setopt($ch,CURLOPT_HEADER,false);\n\t\t\tcurl_setopt($ch,CURLOPT_USERAGENT,self::$USERAGENT);\n\t\t\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n\t\t\tcurl_setopt($ch,CURLOPT_POST,true);\n\t\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$vars);\n\t\t\tcurl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);\n\t\t\tcurl_setopt($ch,CURLOPT_MAXREDIRS,50);\n\t\t\tcurl_setopt($ch,CURLOPT_HEADERFUNCTION,'connect_store_headers_callback');\n\t\t\t$data=curl_exec($ch);\n\t\t\tif(CFG::get('DEBUG_VERBOSE'))xlog('HTTP POST ',$url,':',$data!==false?'success':'failure');\n\t\t\tif($data===false)$data='';\n\t\t\t$ips=self::_get_curl_remote_ips($wp);\n\t\t\tif(!$extended && (curl_getinfo($ch,CURLINFO_HTTP_CODE)>=400))$data='';\n\t\t\tif($extended)$data=array(\n\t\t\t\t'ip'=>count($ips)>0 ? end($ips) : '',\n\t\t\t\t'ips'=>$ips,\n\t\t\t\t'curl'=>$ch,\n\t\t\t\t'status'=>curl_getinfo($ch,CURLINFO_HTTP_CODE),\n\t\t\t\t'response'=>!$data?'':$data,\n\t\t\t\t'headers'=>self::$HEADERS,\n\t\t\t\t'headers_received'=>self::$HEADERS,\n\t\t\t\t'headers_sent'=>curl_getinfo($ch,CURLINFO_HEADER_OUT)\n\t\t\t);\n\t\t\tif($closeAfterUse)curl_close($ch);\n\t\t\tfclose($wp);\n\t\t\t$GLOBALS['K2F_CURL'][]=$ch;\n\t\t\treturn $data;\n\t\t}", "protected function _doPost($in_url, $in_content, $in_content_type, $in_additional_curl_options=array()) {\r\n return $this->__doRequest($in_url, 'POST', $in_content, $in_content_type, $in_additional_curl_options);\r\n }", "protected function postURL($url, array $parameters, &$report = null)\n {\n $content = false;\n $curlSetup = array(\n 'curlUse' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse'],\n 'curlTimeout' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlTimeout'],\n 'curlProxyServer' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer'],\n 'curlProxyTunnel' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel'],\n 'curlProxyUserPass' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass'],\n );\n\n if (isset($report)) {\n $report['error'] = 0;\n $report['message'] = '';\n }\n\n if ($curlSetup['curlUse'] == '1' && preg_match('/^(?:http|ftp)s?|s(?:ftp|cp):/', $url)) {\n if (isset($report)) {\n $report['lib'] = 'cURL';\n }\n\n // External URL without error checking.\n $ch = curl_init();\n if (!$ch) {\n if (isset($report)) {\n $report['error'] = -1;\n $report['message'] = 'Couldn\\'t initialize cURL.';\n }\n return false;\n }\n\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));\n // some sites need a user-agent\n curl_setopt($ch, CURLOPT_USERAGENT, 'My-Minifier/1.0');\n\n // may fail (PHP 5.2.0+ and 5.1.5+) when open_basedir or safe_mode are enabled\n $followLocation = @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\n if (!empty($curlSetup['curlProxyServer'])) {\n curl_setopt($ch, CURLOPT_PROXY, $curlSetup['curlProxyServer']);\n\n if (!empty($curlSetup['curlProxyTunnel'])) {\n curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, $curlSetup['curlProxyTunnel']);\n }\n if (!empty($curlSetup['curlProxyUserPass'])) {\n curl_setopt($ch, CURLOPT_PROXYUSERPWD, $curlSetup['curlProxyUserPass']);\n }\n }\n $content = curl_exec($ch);\n if (isset($report)) {\n $curlInfo = curl_getinfo($ch);\n $report['headers'] = $curlInfo;\n if ($content === false) {\n $report['error'] = curl_errno($ch);\n $report['message'] = curl_error($ch);\n } else {\n // We hit a redirection but we couldn't follow it\n if (!$followLocation && $curlInfo['status'] >= 300 && $curlInfo['status'] < 400) {\n $report['error'] = -1;\n $report['message'] = 'Couldn\\'t follow location redirect (either PHP configuration option safe_mode or open_basedir is in effect).';\n }\n }\n }\n curl_close($ch);\n } else {\n \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::devLog('curl is not enabled', 'my_minifier', 3);\n }\n\n return $content;\n }", "private function submit($url, $data)\n {\n $response = $this->get_content($url, $data);\n return $response;\n }", "public static function performRequest($url, $post = array()) {\r\n\t\t// preparation de l'envoi\r\n\t\t$ch = curl_init();\r\n\t\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\t\tif($post) {\r\n\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\r\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post, '', '&'));\r\n\t\t} else {\r\n\t\t\tcurl_setopt($ch, CURLOPT_POST, false);\r\n\t\t}\r\n\t\t\t\r\n\t\tif (isset($_SERVER['HTTPS'])) {\r\n\t\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\r\n\t\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\r\n\t\t}\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); //Fixes the HTTP/1.1 417 Expectation Failed Bug\r\n\t\r\n\t\t// Let's forward all cookies so the session in preserved.\r\n\t\t// Problem: because the session file is locked, we cannot do that without closing the session first\r\n\t\tsession_write_close();\r\n\t\r\n\t\t$cookieArr = array();\r\n\t\tforeach ($_COOKIE as $key=>$value) {\r\n\t\t\t$cookieArr[] = $key.\"=\".urlencode($value);\r\n\t\t}\r\n\t\t$cookieStr = implode(\"; \", $cookieArr);\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIE, $cookieStr);\r\n\t\r\n\t\t$response = curl_exec($ch );\r\n\t\r\n\t\t// And let's reopen the session...\r\n\t\tsession_start();\r\n\t\r\n\t\tif( curl_error($ch) ) {\r\n\t\t\tthrow new MoufException(\"An error occurred: \".curl_error($ch));\r\n\t\t}\r\n\t\tcurl_close( $ch );\r\n\t\r\n\t\treturn $response;\r\n\t}", "protected function doRequest($url, $headers, $method, $data) {\n return drupal_http_request($url, array('headers' => $headers, 'method' => $method, 'data' => $data));\n }", "private function __doPost($postUrl, $postData, $options) {\n\t\t// prepare the post data\n\t\t$postData = http_build_query($postData);\n\n\t\t// set the http options\n\t\t$postDefaults = array(\n\t\t\t'method' => 'POST',\n\t\t\t'header' => 'Content-type: application/x-www-form-urlencoded',\n\t\t\t'content' => $postData\n\t\t);\n\t\t// combine any other options with the defaults\n\t\t$postOptions['http'] = $options + $postDefaults;\n\n\t\t// post the request\n\t\t$context = stream_context_create($postOptions);\n\t\t$response = @file_get_contents($postUrl, false, $context);\n\n\t\t// problem connecting or bad url\n\t\tif ($response === false) {\n\t\t\treturn false;\n\t\t}\n\t\t// got something\n\t\treturn $response;\n\t}", "public function post($uri = null, $headers = null, $postBody = null)\n {\n return $this->createRequest('POST', $uri, $headers, $postBody);\n }", "function http($url, $method, $postfields = NULL, $headers = array()) {\r\n $this->http_info = array();\r\n $ci = curl_init();\r\n /* Curl settings */\r\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\r\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\r\n if (version_compare(phpversion(), '5.4.0', '<')) {\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\r\n } else {\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 2);\r\n }\r\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\r\n\r\n switch ($method) {\r\n case 'POST':\r\n curl_setopt($ci, CURLOPT_POST, TRUE);\r\n if (!empty($postfields)) {\r\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n $this->postdata = $postfields;\r\n }\r\n break;\r\n case 'DELETE':\r\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n if (!empty($postfields)) {\r\n $url = \"{$url}?{$postfields}\";\r\n }\r\n }\r\n\r\n if ( isset($this->access_token) && $this->access_token )\r\n $headers[] = \"Authorization: OAuth2 \".$this->access_token;\r\n\r\n if ( !empty($this->remote_ip) ) {\r\n if ( defined('SAE_ACCESSKEY') ) {\r\n $headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\r\n } else {\r\n $headers[] = \"API-RemoteIP: \" . $this->remote_ip;\r\n }\r\n } else {\r\n if ( !defined('SAE_ACCESSKEY') ) {\r\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n }\r\n }\r\n curl_setopt($ci, CURLOPT_URL, $url );\r\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\r\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\r\n\r\n $response = curl_exec($ci);\r\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n $this->url = $url;\r\n\r\n if ($this->debug) {\r\n echo \"=====post data======\\r\\n\";\r\n var_dump($postfields);\r\n\r\n echo \"=====headers======\\r\\n\";\r\n print_r($headers);\r\n\r\n echo '=====request info====='.\"\\r\\n\";\r\n print_r( curl_getinfo($ci) );\r\n\r\n echo '=====response====='.\"\\r\\n\";\r\n print_r( $response );\r\n }\r\n curl_close ($ci);\r\n return $response;\r\n }" ]
[ "0.6236165", "0.62089694", "0.61887836", "0.6186438", "0.6170436", "0.6157027", "0.6156237", "0.6142722", "0.60654277", "0.59908724", "0.5976432", "0.5942881", "0.59371054", "0.58215845", "0.5743717", "0.57297486", "0.57200503", "0.5718097", "0.563954", "0.56212306", "0.5615384", "0.5594763", "0.55873466", "0.5530912", "0.551406", "0.55114645", "0.5505618", "0.5503508", "0.5491528", "0.5478221", "0.5474443", "0.5469024", "0.54515195", "0.54503775", "0.5446937", "0.5444646", "0.54422927", "0.5431336", "0.5429292", "0.5427456", "0.5418876", "0.54168344", "0.5381355", "0.5381293", "0.53788817", "0.5375847", "0.53618705", "0.53414375", "0.5336629", "0.5320289", "0.531732", "0.5314073", "0.5313157", "0.53047574", "0.5299958", "0.5299898", "0.52795184", "0.5270764", "0.5265333", "0.52645224", "0.52620363", "0.5261247", "0.52542806", "0.52507454", "0.52449507", "0.5234167", "0.52321714", "0.52307576", "0.52274245", "0.5222538", "0.5217407", "0.52007526", "0.51972926", "0.51905125", "0.5184649", "0.5178284", "0.5173491", "0.5171595", "0.51713324", "0.5166721", "0.51624054", "0.51609564", "0.51568145", "0.51567864", "0.5153449", "0.5150424", "0.51450014", "0.51438797", "0.5143413", "0.51375014", "0.51349354", "0.5133106", "0.5127504", "0.5111913", "0.51100713", "0.51060903", "0.5098277", "0.5086897", "0.50811696", "0.50779134" ]
0.5872289
13
Delete publication related to resume
public function delete($iId) { $this->database()->delete($this->_sTable, 'resume_id = ' . (int) $iId); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Resume $resume)\n {\n /*$resumeDate = $resume;\n $resume->delete();\n return $resumeDate;*/\n\n $deleted_resume = Resume::where('id', $resume->id)->with([\n 'personalInformation.placeOfBirth',\n 'personalInformation.currentLocation',\n 'personalInformation.nationalities',\n 'summary',\n 'objective',\n 'contactInformation.emails',\n 'contactInformation.contactNumbers', 'contactInformation.internetCommunications.internetCommunicationType', 'contactInformation.personalLinks.socialMedia',\n 'educations.projects',\n 'languages.diplomas',\n 'drivingLicense.categories',\n 'achievements',\n 'work_experiences.company',\n 'hobbiesInterest',\n 'memberships',\n 'projects',\n 'publications',\n 'volunteers',\n 'ConferencesWorkshopSeminar',\n 'Portfolio',\n 'certifications',\n 'trainings',\n 'reReferences',\n 'skills'\n ])->first();\n\n //delete_personal_information\n foreach ($resume->personalInformation()->get() as $per) {\n $personalInformation = PersonalInformation::where('id', $per->id)->first();\n\n $placeOfBirth = PlaceOfBirth::where('personal_information_id', $personalInformation->id);\n $placeOfBirth->delete();\n\n $nationalities = DB::table('nationality_personal_information')->where('personal_information_id', $personalInformation->id)->get();\n foreach ($nationalities as $nationality) {\n DB::table('nationality_personal_information')->where('personal_information_id', $personalInformation->id)->delete();\n }\n $personalInformation->delete();\n }\n //delete_summary\n $summary = Summary::where('resume_id', $resume->id);\n $summary->delete();\n\n //delete_objectives\n $objective = Objective::where('resume_id', $resume->id);\n $objective->delete();\n\n //delete_hobbies_interests\n $hobbiesinterest = HobbiesInterest::where('resume_id', $resume->id);\n $hobbiesinterest->delete();\n\n //delete_languages\n foreach ($resume->languages()->get() as $lan) {\n $language = Language::where('languages.id', $lan->id)->first();\n foreach ($language->diplomas()->get() as $pro) {\n $diploma = Diploma::where('id', $pro->id)->first();\n $diploma->delete();\n }\n foreach ($language->languageAssessment()->get() as $ass) {\n $langAssess = LanguageAssessment::where('id', $ass->id)->first();\n $langAssess->delete();\n }\n $language->delete();\n }\n\n //delete_drivings\n $driving = Driving::where('resume_id', $resume->id);\n $driving->delete();\n\n //delete_achievements\n $achievement = Achievements::where('resume_id', $resume->id);\n $achievement->delete();\n\n //delete_memberships\n $membership = Membership::where('resume_id', $resume->id);\n $membership->delete();\n\n //delete_projects\n $project = Projects::where('resume_id', $resume->id);\n $project->delete();\n\n //delete_publications\n $publication = Publications::where('resume_id', $resume->id);\n $publication->delete();\n\n //delete_volunteers\n $volunteers = Volunteers::where('resume_id', $resume->id);\n $volunteers->delete();\n\n //delete_conferences_workshop_seminar\n $conferences_workshop_seminar = ConferencesWorkshopSeminar::where('resume_id', $resume->id);\n $conferences_workshop_seminar->delete();\n\n //delete_portfolios\n $portfolio = Portfolio::where('resume_id', $resume->id);\n $portfolio->delete();\n\n //delete_Certifications\n $certification = Certifications::where('resume_id', $resume->id);\n $certification->delete();\n\n //delete_trainings\n $trainings = Training::where('resume_id', $resume->id);\n $trainings->delete();\n\n //delete_references\n $reference = ReReference::where('resume_id', $resume->id);\n $reference->delete();\n\n //delete_educations\n $education = Education::where('resume_id', $resume->id);\n $education->delete();\n\n //delete_work_experience\n $work_exp = WorkExperience::where('resume_id', $resume->id);\n //$work_exp->employment_types()->delete();\n $work_exp->delete();\n\n //delete_skills\n $skills = Skill::where('resume_id', $resume->id);\n $skills->delete();\n\n //delete_contact_Information\n foreach ($resume->contactInformation()->get() as $con) {\n $contactInformation = ContactInformation::where('id', $con->id)->first();\n\n $personalLink = PersonalLink::where('contact_information_id', $contactInformation->id);\n $personalLink->delete();\n\n $contactInformation->delete();\n }\n\n $resume->delete();\n return response()->json([\n $deleted_resume,\n ], 200);\n }", "public function delete() { // Page::destroy($this->pages()->select('id')->get());\n $this->pages()->detach();\n parent::delete();\n }", "public function destroy(User $user, Publication $publication)\n {\n \n\n }", "public function destroy($id)\n {\n $publication = Publication::findOrFail($id);\n unlink(public_path() . $publication->photo->file);\n $publication->delete();\n Session::flash('delete_publication', 'This publication hast been deleted!');\n\n return redirect('/doctor/publications');\n }", "function delete(){\n // Renumber resolutions\n $resolutions = resolution::getResolutions($this->committeeId, $this->topicId);\n foreach($resolutions as $resolution){\n if($resolution->resolutionNum <= $this->resolutionNum)\n continue;\n $resolution->resolutionNum--;\n $resolution->saveInfo();\n }\n // Delete subclauses\n foreach($this->preambulatory as $clause){\n $clause->delete();\n }\n foreach($this->operative as $clause){\n $clause->delete();\n }\n // Delete resolution\n mysql_query(\"DELETE FROM resolution_list WHERE id='$this->resolutionId'\") or die(mysql_error());\n }", "public function delete(array $options = array())\n {\n $body = (isset($options['body']) ? $options['body'] : array());\n\n $response = $this->client->delete('/api/topics/'.rawurlencode($this->topic_id).'/publications/'.rawurlencode($this->id).'', $body, $options);\n\n return $response;\n }", "public function destroy(Publicacion $publicacion)\n {\n //\n }", "public function deleteAction() {\n// $cantDelete = array(1, 2, 3, 4);\n\n $id = $this->getRequest()->request->get('id');\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('CMSBundle:Publication')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Publication entity.');\n }\n\n// if (in_array($entity->getId(), $cantDelete)) {\n// $entities = $em->getRepository('CMSBundle:Publication')->findAll();\n//\n// return $this->render('CMSBundle:Administration/Publication:index.html.twig', array(\n// 'errors' => 'Can\\'t delete this page',\n// 'entities' => $entities,\n// ));\n// }\n $em->remove($entity);\n $em->flush();\n return $this->redirect($this->generateUrl('publication'));\n }", "function delete($author) {\r\n $CI = &get_instance();\r\n $userlogin = getUserLogin();\r\n //collect all cascaded to-be-deleted-id's: none\r\n //check rights\r\n //check, all through the cascade, whether you can read AND edit that object\r\n if (!$userlogin->hasRights('publication_edit')) {\r\n //if not, for any of them, give error message and return\r\n appendErrorMessage(__('Cannot delete author').': '.__('insufficient rights').'.<br/>');\r\n return;\r\n }\r\n if (empty($author->author_id)) {\r\n appendErrorMessage(__('Cannot delete author').': '.__('erroneous ID').'.<br/>');\r\n return;\r\n }\r\n //no delete for authors with publications. check through tables, not through object\r\n $Q = $CI->db->get_where('publicationauthorlink',array('author_id'=>$author->author_id));\r\n if ($Q->num_rows()>0) {\r\n appendErrorMessage(__('Cannot delete author').': '.__('still has publications (possibly invisible...). Do you need a quick way to delete all publications for an author? Add them to the bookmarklist, then delete them from there...').'.<br/>');\r\n return false;\r\n }\r\n \r\n //delete customfields\r\n $CI->customfields_db->deleteForAuthor($author->author_id);\r\n \r\n //otherwise, delete all dependent objects by directly accessing the rows in the table \r\n $CI->db->delete('author',array('author_id'=>$author->author_id));\r\n //delete links\r\n $CI->db->delete('publicationauthorlink',array('author_id'=>$author->author_id));\r\n //add the information of the deleted rows to trashcan(time, data), in such a way that at least manual reconstruction will be possible\r\n }", "public function onAfterUnpublish() {\n $this->doDeleteDocumentIfInSearch();\n }", "public function destroy(Preinscription $preinscription)\n {\n //\n }", "public function deleteUnpublished()\n {\n /**\n * @var OrderProduct[] $products\n */\n $products = $this->products;\n foreach ($products as $product) {\n $product->delete();\n }\n \n $this->delete();\n }", "public function destroy($id)\n {\n $resume = Resume::find($id);\n $resume->tags()->detach();\n $resume->comments()->delete();\n $resume->delete();\n\n Redis::hSet('user', 'modify_reusme:count', 1);\n return redirect('/home');\n }", "public function delete() {\n // Deleting microarticles.\n $microarticles = $this->getMicroarticles();\n if (!empty($microarticles)) {\n foreach ($microarticles as $microarticle) {\n $microarticle->delete();\n }\n }\n\n // Deleting selfservices.\n $selfServices = $this->getSelfservices();\n if (!empty($selfServices)) {\n foreach ($selfServices as $selfService) {\n $selfService->delete();\n }\n }\n\n parent::delete();\n }", "public function destroy($id)\n {\n $resume= resume::find($id);\n $file= $resume->img_url;\n $filename = public_path().'/uploads/resume/'.$file;\n if($resume->file_url != null){\n File::delete($filename);\n } \n $resume->delete();\n return redirect()->back();\n }", "public function destroy($id)\n {\n if (!empty($id)) {\n\n $publication = Publications::find($id);\n\n $publication->delete();\n }\n\n return redirect()->route('publications.index');\n }", "public function destroy($type)\n {\n $model = Student::whereUser_id(auth()->user()->id)->first();\n if (!is_null($model)) {\n if ($model->user_id == auth()->user()->id) {\n $documents = $model->getMedia($type);\n foreach ($documents as $document) $document->delete();\n toast('Document deleted succesfully', 'success')->autoClose(5000)->timerProgressBar();\n return redirect()->back();\n }\n }\n toast('Document not found', 'warning')->autoClose(5000)->timerProgressBar();\n return redirect()->back();\n }", "public function delete() {\n $this->remove_content();\n\n parent::delete();\n }", "public function destroy(Education $education)\n {\n //\n }", "public function destroy(Subject $subject)\n {\n //where('id', 1)->wherePivot('year', 2011)->detach(1);\n \n $subject->delete();\n $subject->tutors()->detach();\n return redirect()->route('subject.index');\n }", "function get_publication_deleting_url($profile)\r\n {\r\n return $this->get_url(array(self :: PARAM_ACTION => self :: ACTION_DELETE_PUBLICATION, self :: PARAM_PROFILE_ID => $profile->get_id()));\r\n }", "public function deleteResidence($residence) {\n\t\t\n\t\t$where = $this->quoteInto('id = ? ', $residence->id);\n $this->delete($where);\n\t}", "public function destroy(MemberPub $memberPub)\n {\n //\n }", "public function delete()\n {\n $oRemark = oxNew(\"oxRemark\");\n $oRemark->delete(oxRegistry::getConfig()->getRequestParameter(\"rem_oxid\"));\n }", "public function destroy($id)\n {\n $publicacion=Publicacion::findOrFail($id);\n $publicacion->delete();\n return redirect('publicar.index'); \n }", "public function destroy($id)\n {\n $publication = $this->publicationRepo->find($id);\n $publication->delete();\n\n return Redirect::back();\n }", "public function deleteContentAndCopyDraftPage() {}", "public function destroy(Provenance $provenance)\n {\n //\n }", "public static function destroy()\n {\n if (!Authentication::is_logged_in()) {\n AnswerHandler::create_response_and_kill_page(false, \"unauthorized\", 401);\n } else {\n $tutor = Tutor::get_Tutor(Authentication::$user_email);\n if ($tutor == false) {\n AnswerHandler::create_response_and_kill_page(false, \"No Data\", 400);\n } else {\n $tutor->delete_tutor();\n User::getUser(Authentication::$user_email)->deleteAllSubjects();\n AnswerHandler::create_response_and_kill_page(true, \"Sucessfully deleted\");\n }\n }\n }", "public function destroy(Request $request)\n {\n\n $publicacao=Publicacao::where('id','=',$request->id)->get();\n $interesses=Interesse::where('id_publicacao','=',$publicacao[0]->id)->get();\n foreach ($interesses as $interesse) {\n Interesse::destroy($interesse->id);\n }\n Publicacao::destroy($request->id);\n return redirect(route(\"timeLine\"));\n\n }", "public final function delete() {\n }", "public function destroy(Request $request)\n {\n //\n //dd('in');\n $pn = $request->get('Ed');\n $in = Image::where('des',$pn)->first();\n $pm = Project::where('pname',$pn)->first();\n $pm->delete();\n $in->delete();\n \n return redirect()->action('AmwCon@index');\n }", "public function deleteDocument(AgentProfileInterface $profile);", "public function delete() {\n global $DB;\n foreach ($this->targets as $target) {\n $DB->delete_records('progressreview_tutor', array('id' => $target->id));\n }\n }", "public function destroy(Publicidad $publicidad)\n {\n //\n }", "public function delete() {\n\t\t$this->assignment->delete();\n\t}", "public function delete()\n {\n $post['id'] = $this->request->getParameter('id'); // récupérer le paramètre de l'ID\n $this->post->deletePost($post['id']);\n $this->redirect(\"admin\", \"chapters\"); // une fois le post supprimé, je redirige vers la vue chapters\n }", "public function delete() {\r\n\r\n\t\t// Does the Genre object have an ID?\r\n\t\tif ( is_null( $this->id ) ) trigger_error ( \"Genre::delete(): Attempt to delete an Genre object that does not have its ID property set.\", E_USER_ERROR );\r\n\r\n\t\t// Delete the Article\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$st = $conn->prepare ( \"DELETE FROM :table WHERE id = :id LIMIT 1\" );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->execute();\r\n\t\t$conn = null;\r\n\t}", "public function destroy(Publikasi $publikasi)\n {\n //\n }", "public function destroy(Request $request)\n {\n $id = $request->all()['id'];\n $anexo = AnexoOrcamento::find($id);\n $anexoPath = 'documents/' . $anexo->nome_arquivo_salvo;\n $anexo->delete();\n Storage::delete($anexoPath);\n return ['status' => 'success'];\n }", "public function destroy(Publication $publication)\n {\n $publication->delete();\n return response()->json($publication, 200);\n }", "public function destroy(Provedor $provedore)\n {\n //\n }", "public function destroy(Request $request)\n {\n $id = $request->idD;\n\n\n $auth = AutorisationPassageSalle::where('idAutorisationPS', $id);\n $auth->delete();\n return Redirect::route('autorisationPS')->with('success',\"Personnel mis à jour !\");\n }", "public function destroy(Prescription $prescription)\n {\n //\n }", "public function destroy(Prescription $prescription)\n {\n //\n }", "public function destroy($id)\n {\n $user_id = Auth::user()->id;\n //\n\n $broker_info = BrokerInfo::where('user_id',$user_id)->first(); //Resume Table Data\n\n if($broker_info->profile_img != ''){\n unlink(public_path('profile_images/') . $broker_info->profile_img);\n }\n\n BrokerInfo::findOrfail($id)->delete();\n UserLocation::where('user_id',$user_id)->delete();\n\n Session::flash('deleteResume', 'Resume Has Been Deleted.');\n // update successfull then redirect \n return redirect(route('console'));\n }", "public function DeleteDocumentosFase() {\n\t\t\t$this->objDocumentosFase->Delete();\n\t\t}", "public function unlinkPublishJobAndDate()\n {\n $this->owner->PublishOnDate = null;\n $this->owner->PublishJobID = 0;\n }", "public function destroy(Proposal $proposal)\n {\n $proposal_id = $proposal->id;\n\n if (Auth::user()->role_id == 2) {\n\n $attachments = Attachment::where('proposal_id', '=', $proposal_id)->get();\n foreach ($attachments as $attachment) {\n $delete = File::delete('attachment/' . $attachment->path);\n }\n\n $proposal->delete();\n\n Session::flash('message', 'تم حذف المقترح بنجاح');\n return redirect()->route('proposal.index');\n } else {\n return redirect()->back()->with('message', 'غير مصرح لك بالدخول هنا');\n\n }\n }", "public function destroy(Request $request,$id)\n {\n $photo=Photo::find($id);\n $filename=$photo->filename;\n $res=Storage::disk('public')->delete($filename);\n \n if($res){\n $news_id=$request->news_id;\n $photo->News()->detach($news_id);\n $photo->delete();\n return back()->with('success','Image deleted successfully!');\n }\n else\n return back()->with('error','Image was not deleted!');\n }", "protected function _delete()\n {\n $pages = $this->getTable('ExhibitPage')->findBy(array('exhibit'=>$this->id));\n foreach($pages as $page) {\n $page->delete();\n }\n $this->deleteTaggings();\n }", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function testRemovePageWhenDeleted()\n {\n\n // Add a public page.\n $page = $this->_simplePage(true);\n\n // Delete.\n $page->delete();\n\n // Should remove Solr document.\n $this->_assertNotRecordInSolr($page);\n\n }", "function delete() {\n\t\t$this->status = \"deleted\";\n\t\t$sql = \"UPDATE \" . POLARBEAR_DB_PREFIX . \"_articles SET status = '$this->status' WHERE id = '$this->id'\";\n\t\tglobal $polarbear_db;\n\t\t$polarbear_db->query($sql);\n\n\t\t$args = array(\n\t\t\t\"article\" => $this,\n\t\t\t\"objectName\" => $this->getTitleArticle()\n\t\t);\n\t\tpb_event_fire(\"pb_article_deleted\", $args);\n\n\t\treturn true;\n\t}", "public function DeleteArticleRevisions() {\n\t\t\t$this->objArticleRevisions->Delete();\n\t\t}", "public function destroy()\n {\n $posts = Post::where('published', 0)->get();\n\n foreach ($posts as $post) {\n $post->subscriptions->each(function ($subscription) {\n $subscription->delete();\n });\n }\n\n return redirect(route('admin.subscription.index'));\n }", "function unpublish() {\n\t\t$option = JRequest::getCmd('option');\n\n\t\t// Se obtiene el modelo\n\t\t$model = $this->getModel('comments');\n\t\t// Se obtienen los ids de los registros a publicar\n\t\t$cids = JRequest::getVar('cid', array(0), 'post', 'array');\n\t\tJArrayHelper::toInteger($cids);\n $product_type_code = JRequest::getVar('product_type_code');\n\n\t\t// Lanzar error si no se ha seleccionado al menos un registro a despublicar\n\t\tif (count($cids) < 1 || !$product_type_code) {\n\t\t\tJError::raiseError(500, JText::_('CP.SELECT_AN_ITEM_TO_UNPUBLISH'));\n\t\t}\n\n\t\tif ($model->publish($cids, false, $product_type_code)) {\n\t\t\t$msg = JText::_('CP.ROWS_UNPUBLISHED');\n\t\t\t$type = 'message';\n\t\t} else {\n\t\t\t// Si hay algún error se ajusta el mensaje\n\t\t\t$msg = $model->getError();\n\t\t\tif (!$msg) {\n\t\t\t\t$msg = JText::_('CP.ERROR_ONE_OR_MORE_DATA_COULD_NOT_BE_UNPUBLISHED');\n\t\t\t}\n\t\t\t$type = 'error';\n\t\t}\n\t\t$this->setRedirect('index.php?option=' . $option . '&view=comments', $msg, $type);\n\t}", "public function removeWithDependencies(Resume $resume): bool;", "public function destroy($incidencia)\n {\n //\n Incidencies::find($incidencia)->delete();\n }", "protected function _before_delete(): void\n {\n //this will try to delete all the content records to which it has access\n //if there are remaining content records the deletion of the Page will fail due to the Foreign Key contraint restrict\n $contents = PageContent::get_by( ['page_id' => $this->page_id] );\n foreach ($contents as $PageContent) {\n $PageContent->delete();\n }\n }", "public function unpublish($a_id, $web_id){\n\t\t$mysqli = Configuration::mysqli_configation();\n\t\t$mainObj = Array(\"status\"=>false, \"msg\"=>\"Deleting failed, Please try one more time\");\t\t \t\t \n\t\t$update_query = \"DELETE FROM `tbl_article_published` WHERE a_id = '$a_id' and web_id = '$web_id'\";\n\t\t$result = $mysqli->query($update_query); \t\t\t\n\t\tif($result){\t\t\t\n\t\t\t$mainObj['status'] = true;\n\t\t\t$mainObj['msg'] = 'Deleted successfully';\n\t\t}\n\t\treturn $mainObj;\n\t}", "public function destroy(Request $request)\n {\n \n if ($request->status=='publish') {\n if ($request->ids) {\n\n foreach ($request->ids as $id) {\n $post=Terms::find($id);\n $post->status=1;\n $post->save(); \n }\n \n }\n }\n elseif ($request->status=='trash') {\n if ($request->ids) {\n foreach ($request->ids as $id) {\n $post=Terms::find($id);\n $post->status=0;\n $post->save(); \n }\n \n }\n }\n elseif ($request->status=='delete') {\n if ($request->ids) {\n foreach ($request->ids as $id) {\n Terms::destroy($id);\n \n }\n }\n }\n return response()->json('Success');\n\n }", "public function deleted(Remission $remission)\n {\n //\n }", "function deleteAutore()\n{\n global $connection;\n $_SESSION['authorDeleteSuccess'] = false;\n $_SESSION['authorDeleteError'] = false;\n if (isset($_POST['delete'])) {\n $idAutore = $_POST['delete'];\n $photoAutore = $_POST['photoAutore'];\n\n $delete_Autore = \"DELETE FROM autore_video WHERE id_autore='$idAutore'\";\n $result_delete = mysqli_query($connection, $delete_Autore);\n if ($result_delete) {\n if (file_exists($photoAutore)) {\n unlink($photoAutore);\n }\n $_SESSION['authorDeleteSuccess'] = true;\n } else {\n $_SESSION['authorDeleteError'] = true;\n }\n }\n}", "public static function destroyEstudiante($idEstu)\n{\n $estudiante = Estudiante::find($idEstu);\n $estudiante->delete();\n}", "function get_publication_deleting_url($personal_message)\r\n {\r\n return $this->get_url(array(\r\n self :: PARAM_ACTION => self :: ACTION_DELETE_PUBLICATION,\r\n self :: PARAM_PERSONAL_MESSAGE_ID => $personal_message->get_id()));\r\n }", "public function destroy(Request $request)\n {\n $record = PhotoArticle::find($request->key);\n if($record->delete()){\n $this->storage->delete($record->path . 'original-' . $record->image);\n $this->storage->delete($record->path . '250x200-' . $record->image);\n $this->storage->delete($record->path . '1200x600-' . $record->image);\n return response()->json(['success'=>'Removido']);\n }else {\n return response()->json(['error'=>'Houve um problema para excluir a imagem! por favor, tente novamente!']);\n }\n }", "function delete() {\n\t\t$sql = \"DELETE FROM \".$this->hr_db.\".hr_person_detail\n\t\t\t\tWHERE psd_ps_id=?\";\n\t\t$this->hr->query($sql, array($this->psd_ps_id));\n\t}", "public function destroy(Tipo_documento $tipo_documento)\n {\n //dd(count($tipo_documento->expedientes));\n if(count($tipo_documento->expedientes) == 0){\n $tipo_documento->delete();\n Session::flash('estado', 'ok');\n \n }else{\n Session::flash('estado', 'error');\n }\n \n return redirect()\n ->route('admin.tipodocumento.index')\n ->with('flash', 'La publicación ha sido eliminada.');\n \n \n }", "public function preDelete() { }", "public function deleted(PersonalAssignment $personalAssignment)\n {\n //\n }", "public function delete() {\n // Find document ID.\n if (!$this->find()) {\n debugging('Failed to find ousearch document');\n return false;\n }\n self::wipe_document($this->id);\n }", "public function destroy($id){$userLogin = Auth::user();\n $docente = pdg_dcn_docenteModel::where(\"id_gen_usuario\",\"=\",$userLogin->id)->first();\n $idDocente = $docente->id_pdg_dcn; \n $skillEliminar = rel_ski_dcn_skill_docenteModel::where(\"id_cat_ski\",\"=\",$id)->where(\"id_pdg_dcn\",\"=\",$idDocente)->first();\n rel_ski_dcn_skill_docenteModel::destroy($skillEliminar->id_rel_ski_dcn);\n Session::flash('message','Se eliminó la habilidad correctamente de su perfil!');\n Session::flash('apartado','5');\n return Redirect::to('DashboardPerfilDocente'); \n \n }", "public function destroy($id)\n {\n \\App\\Publication::destroy($id);\n\n return view('deletedResource'); \n }", "public function delete()\n {\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products;\");\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products_tiers;\");\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products_tiers_payment_options;\");\n }", "public function deleteDocumentAction()\n {\n try {\n $this->_helper->viewRenderer->setNoRender();\n\n // Les modèles\n $model_commission = new Model_DbTable_Commission();\n\n $commission = $model_commission->find($this->_request->id_commission)->current();\n\n // On supprime le fichier\n unlink(REAL_DATA_PATH.DS.'uploads'.DS.'documents_commission'.DS.$commission->DOCUMENT_CR);\n\n // On met à null dans la DB\n $commission->DOCUMENT_CR = null;\n $commission->save();\n\n $this->_helper->flashMessenger([\n 'context' => 'success',\n 'title' => 'Le document a bien été supprimé',\n 'message' => '',\n ]);\n } catch (Exception $e) {\n $this->_helper->flashMessenger([\n 'context' => 'error',\n 'title' => 'Erreur lors de la suppression du document',\n 'message' => $e->getMessage(),\n ]);\n }\n }", "public function DeleteDocente() {\n\t\t\t$this->objDocente->Delete();\n\t\t}", "public function destroy(Request $request, $id)\n {\n $request->session()->flash('success', 'Le doc à été Supprimé !');\n\n $doc = Document::find($id);\n \n File::delete(\"doc/\" . $doc->fichier);\n \n\n $doc->delete();\n\n return redirect()->route(\"document.index\");\n }", "public function destroy(Request $request)\n {\n\n $delete = invoice_attachments::find($request->id);\n if ($delete->delete()) {\n Storage::disk('file_invoices')->delete($request->invoice_number.'/'.$request->file_name);\n Session::flash('message', 'تم حذف المرفق بنجاح.');\n return back();\n } else {\n Session::flash('message', ' لم يتم الحذف ');\n }\n }", "public function destroy(Request $request)\n {\n $project = project::findOrFail($request->project_id);\n $file = ProjectAttachments::where('project_id', $request->project_id)->first();\n if ($project->images) {\n Storage::disk('projects_uploads')->deleteDirectory($project->name);\n }\n $project->delete();\n session()->flash('delete', 'Projet supprimé');\n return redirect('/project');\n }", "protected function _preDelete() {}", "public function destroy(PersonalDetail $personalDetail)\n {\n //\n }", "public function destroy($id)\n {\n //\n $post = Post::findOrFail($id);\n // unlink(public_path() . $post->photo->file);\n $post->delete();\n return redirect('/admin/posts')->with(\"reclam_delete\",'Reclamation effacee avec succes');\n }", "public function deleteDocument() {\n $file = $this->getDocumentFile().$this->getAttribute('evidencias')[2];\n\n// check if file exists on server\n if (empty($file) || !file_exists($file)) {\n return false;\n }\n\n// check if uploaded file can be deleted on server\n if (!unlink($file)) {\n return false;\n }\n\n// if deletion successful, reset your file attributes\n $this->evidencias = null;\n\n return true;\n }", "public function delete()\n {\n foreach ($this->versions as $version)\n {\n $version->delete();\n }\n\n parent::delete();\n }", "public function deleteMyPanier($article_id)\n\n { \n\n }", "public function delete() {}" ]
[ "0.6759238", "0.6153151", "0.61364806", "0.6102501", "0.60526264", "0.60450536", "0.6016246", "0.6014051", "0.6000988", "0.5968806", "0.5813356", "0.5764023", "0.5754738", "0.57365596", "0.5721235", "0.5707646", "0.5673888", "0.56627196", "0.56496507", "0.56446654", "0.5634203", "0.560957", "0.55823857", "0.5572926", "0.5569312", "0.556531", "0.556329", "0.55583674", "0.5558275", "0.55485535", "0.5527246", "0.55258036", "0.55230784", "0.55155534", "0.5510991", "0.5508777", "0.5500686", "0.5500307", "0.54824305", "0.5479221", "0.54752463", "0.54682654", "0.5458717", "0.5454917", "0.5454917", "0.5451674", "0.5451248", "0.54467064", "0.54404414", "0.54401326", "0.54295194", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.54285043", "0.5410721", "0.54086274", "0.54019415", "0.53978646", "0.5391812", "0.5386786", "0.5385148", "0.5383404", "0.53796715", "0.5377097", "0.53761137", "0.53758776", "0.5375027", "0.5373522", "0.53634435", "0.53604037", "0.5356353", "0.53476155", "0.53378683", "0.53297174", "0.5324807", "0.5316538", "0.5316333", "0.5315684", "0.53153104", "0.53110355", "0.5310957", "0.5306574", "0.5304612", "0.53032315", "0.5297424", "0.5294324", "0.52941597", "0.5293867", "0.5289361" ]
0.0
-1
Where to redirect users after login.
protected function redirectTo() { // if(Auth::user()->role_id < 2){ // return '/'; // }else{ // $ipaddress = Request::ip(); // THIS WILL GET THE IP OD THE CLIENT OKAY // $isonline = Auth::user()->update(['isonline'=>1, 'login_time' => Carbon::now(), // CURRENT TIME // 'ip_address' => $ipaddress]); // dd( $isonline ); return '/home'; // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function redirectLogin()\n\t{\n\t\tredirect('auth/login');\n\t}", "function redirect_logged_in_users()\n{\n\tif(is_user_logged_in())\n\t{\n\t\theader(\"Location: \".HOME_URL);\n\t}\n}", "function auth_redirect() {\n\n\t\tauth_redirect();\n\n\t}", "function redirect_when_logged() {\n $is_logged_in = AppAuthentication::is_logged_in();\n\n // If the user is already logged in we redirect to the default path of\n // his role.\n if ($is_logged_in) {\n $user_info = AppAuthentication::get_user_data();\n redirect_to_user_default_path($user_info);\n return TRUE;\n }\n\n return FALSE;\n }", "protected function afterLogin()\n\t{\n\t\t$returnUrlParts = explode('/',Yii::app()->user->returnUrl);\n\t\tif(end($returnUrlParts)=='index.php'){\n\t\t\t$url = '/';\n\t\t}else{\n\t\t\t$url = Yii::app()->user->returnUrl;\n\t\t}\n\t\t$this->redirect($url);\n\t}", "public function actionLogin()\r\n\t{\r\n\t $this->redirect(array('//user/auth'));\r\n\t}", "function _loginRedirect(){\r\n \t// send user to the login page\r\n \theader(\"Location:/index.php\");\r\n }", "protected function _loginPostRedirect()\n {\n $session = $this->_getSession();\n if ($session->isLoggedIn()) {\n $redirectUrl = Mage::getUrl('/');\n } else {\n $redirectUrl = Mage::getUrl('customer/account/login');\n }\n $this->_redirectUrl($redirectUrl);\n }", "protected function redirectTo()\n {\n //generate URL dynamicaly .\n return '/login'; // return dynamicaly generated URL.\n }", "private function redirect()\n\t\t{\n\t\t\tif(isUserLoggedIn())\n\t\t\t{\n\t\t\t\theader(\"Location: \" . APPROOT);\n\t\t\t}\n\t\t}", "function template_redirect() {\r\n\t\tappthemes_auth_redirect_login();\r\n\t}", "protected function _loginPostRedirect() {\n $session = $this->_getSession();\n\n if (!$session->getBeforeAuthUrl() || $session->getBeforeAuthUrl() == Mage::getBaseUrl()) {\n // Set default URL to redirect customer to\n $session->setBeforeAuthUrl(Mage::helper('customer')->getAccountUrl());\n // Redirect customer to the last page visited after logging in\n if ($session->isLoggedIn()) {\n if (!Mage::getStoreConfigFlag(\n Mage_Customer_Helper_Data::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD\n )) {\n $referer = $this->getRequest()->getParam(Mage_Customer_Helper_Data::REFERER_QUERY_PARAM_NAME);\n if ($referer) {\n // Rebuild referer URL to handle the case when SID was changed\n $referer = Mage::getModel('core/url')\n ->getRebuiltUrl(Mage::helper('core')->urlDecode($referer));\n if ($this->_isUrlInternal($referer)) {\n $session->setBeforeAuthUrl($referer);\n }\n }\n } else if ($session->getAfterAuthUrl()) {\n $session->setBeforeAuthUrl($session->getAfterAuthUrl(true));\n }\n } else {\n $session->setBeforeAuthUrl(Mage::helper('customer')->getLoginUrl());\n }\n } else if ($session->getBeforeAuthUrl() == Mage::helper('customer')->getLogoutUrl()) {\n $session->setBeforeAuthUrl(Mage::helper('customer')->getDashboardUrl());\n } else {\n if (!$session->getAfterAuthUrl()) {\n $session->setAfterAuthUrl($session->getBeforeAuthUrl());\n }\n if ($session->isLoggedIn()) {\n $session->setBeforeAuthUrl($session->getAfterAuthUrl(true));\n }\n }\n $this->_redirectUrl($session->getBeforeAuthUrl(true));\n }", "public function doRedirectLogin() {\n\t\t\theader(\"Location: ../../login.php?\".http_build_query($_REQUEST));\n\t\t\texit;\n\t\t}", "function vira_login_redirect( $redirect_to, $request, $user ) {\n //is there a user to check?\n global $user;\n if ( isset( $user->roles ) && is_array( $user->roles ) ) {\n //check for admins\n if ( in_array( 'administrator', $user->roles ) ) {\n // redirect them to the default place\n return $redirect_to;\n } else {\n return home_url();\n }\n } else {\n return $redirect_to;\n }\n}", "public function logged_in_redirect(){\n\n\t\tif (isset($_SESSION['user_id'])) {\n\t\t \t# code...\n\t\t \theader('Location: index.php');\n\t\t } \n\t}", "public function login_page()\n\t{\n\t\t$this->redirect( EagleAdminRoute::get_login_route() );\n\t}", "protected function redirectAfterSuccessfulLogin()\n {\n $member = Security::getCurrentUser();\n\n // Absolute redirection URLs may cause spoofing\n $backURL = $this->getBackURL();\n if ($backURL) {\n return $this->redirect($backURL);\n }\n\n // If a default login dest has been set, redirect to that.\n $defaultLoginDest = Security::config()->get('default_login_dest');\n if ($defaultLoginDest) {\n return $this->redirect($defaultLoginDest);\n }\n\n // Redirect the user to the page where they came from\n if ($member) {\n // Welcome message\n $message = _t(\n 'SilverStripe\\\\Security\\\\Member.WELCOMEBACK',\n 'Welcome Back, {firstname}',\n ['firstname' => $member->FirstName]\n );\n Security::singleton()->setSessionMessage($message, ValidationResult::TYPE_GOOD);\n }\n\n // Redirect back\n return $this->redirectBack();\n }", "function auth_redirect()\n {\n }", "private function _userLoggedIn()\n {\n $this->utility->redirect('write');\n }", "public function index() {\n redirect(\"auth/login\", \"refresh\");\n }", "function __redirectLoggedInUser()\n{\n global $action;\n \n if ($action == 'logout' || ! is_user_logged_in()) {\n return;\n }\n \n wp_redirect(current_user_can('read') ? admin_url() : home_url(), 302);\n\t\n\tdie();\n}", "function my_login_redirect( $redirect_to, $request, $user ) {\t\t\n\t\tif ( isset( $user->roles ) && is_array( $user->roles ) ) {\n\t\t\t//check for admins\n\t\t\tif ( in_array( 'endorser', $user->roles ) ) {\n\t\t\t\treturn get_permalink(get_option('ENDORSEMENT_FRONT_END'));\n\t\t\t} else {\n\t\t\t\treturn $redirect_to;\n\t\t\t}\n\t\t} else {\n\t\t\treturn $redirect_to;\n\t\t}\n\t}", "function _s_login_redirect( $redirect_to, $request, $user ) {\n $my_account_page_id = _s_get_page_id_from_template_name( 'page-templates/my-account.php' ); \n $custom_redirect = ! empty( $my_account_page_id ) ? get_permalink( $my_account_page_id ) : home_url(); \n\treturn ( ! empty( $user->roles ) && in_array( 'administrator', $user->roles ) ) ? admin_url() : $custom_redirect;\n}", "public function actionLogin()\n\t{\n\t\tif ($this->getUser()->isLoggedIn())\n\t\t\t$this->redirect('Administration:default');\n\t}", "protected function _checkAndRedirect() {\n $auth = $this->_checkAuthentication();\n if(true === $auth) { // authentication required, redirects to login page\n $user = $this->getCurrentUser();\n if(null === $user) { // user doesn't appear do be logged in\n $this->flashMessenger()->addErrorMessage(IControllerMessages::FATAL_ERROR_NOT_AUTHENTIFICATED);\n $this->redirect()->toRoute(IRouteStore::LOGIN); // break;\n return;\n }\n else {\n \treturn $user;\n }\n }\n else {\n \texit;\n \treturn false;\n }\n }", "abstract protected function redirectTo();", "public function redirectTo();", "function redirect_to_custom_login() {\n\t\tif( $_SERVER['REQUEST_METHOD'] == 'GET' ) {\n\t\t\t$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : null;\n\t\t\t\n\t\t\tif( is_user_logged_in() ) {\n\t\t\t\t$this->redirect_logged_in_user( $redirect_to );\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\n\t\t\t$login_url = home_url( 'member-login' );\n\t\t\tif( !empty( $redirect_to ) ) {\n\t\t\t\t$login_url = add_query_arg( 'redirect_to', $redirect_to, $login_url );\n\t\t\t}\n\t\t\t\n\t\t\twp_redirect( $login_url );\n\t\t\texit;\n\t\t}\n\t}", "function staff_alllogin() {\n \n $this->setLoginRedirects();\n \n $this->layout = 'login_layout';\n\t\t// Display error message on failed authentication\n\t\tif (!empty($this->data) && !$this->Auth->_loggedIn) {\n\t\t\t$this->Session->setFlash($this->Auth->loginError);\n $this->redirect(\"http://\" . $_SERVER['HTTP_HOST']);\n\t\t}else{\n $this->redirect(\"http://\" . $_SERVER['HTTP_HOST']);\n }\n\t\t// Redirect the logged in user to respective pages\n\t\t\n\t}", "public function redirect_users() {\n\t\t\t$front_page = get_option( 'maksimer_logged_in_front_page' );\n\n\t\t\tif ( true == $front_page ) {\n\t\t\t\tif ( is_front_page() && is_user_logged_in() ) {\n\t\t\t\t\t$url = get_the_permalink( $front_page );\n\t\t\t\t\twp_redirect( esc_url( $url ), 301 );\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\tif ( ( get_the_id() == $front_page ) && !is_user_logged_in() ) {\n\t\t\t\t\twp_redirect( esc_url( home_url() ), 301 );\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function redirectTo()\n {\n // User role\n $user = Auth::user();\n\n return '/';\n }", "public function indexAction()\n {\n $redirectionUri = $this->backendRedirectionService->getAfterLoginRedirectionUri($this->request);\n if ($redirectionUri === null) {\n $redirectionUri = $this->uriBuilder->uriFor('index', array(), 'Login', 'Neos.Neos');\n }\n $this->redirectToUri($redirectionUri);\n }", "protected function redirectTo()\n {\n return route( 'admin.login' );\n }", "private function _authRedirect() {\n $options = array('scope' => $this->settings['permissions']);\n if (!empty($this->settings['appUrl'])) {\n $options['redirect_uri'] = $this->settings['appUrl'];\n }\n $url = $this->facebook->getLoginUrl($options);\n echo \"<script type=\\\"text/javascript\\\">top.location.href = '$url';</script>\";\n exit;\n }", "private function checkLogin()\n {\n // save the user's destination in case we direct them to authenticate\n\n // whitelist authentication mechanisms\n if($this->_controller == \"authenticate\")\n return;\n\n // whitelist database reload\n if($this->_controller == \"populatetestdata\")\n return;\n\n if(!isset($_SESSION['userid']))\n {\n // Don't redirect the user to an error page just in principle\n // @todo possible @bug why would it do this?\n if($this->_controller != \"error\" && $this->_controller != \"undefined\")\n {\n $this->slogger->slog(\"saving destination to \" . $this->_controller, SLOG_DEBUG);\n $_SESSION['destination'] = $this->_controller;\n }\n redirect('authenticate');\n\n }\n\n }", "public function redirect_wp_login() {\n if (is_user_logged_in()) {\n wp_redirect(get_admin_url());\n }\n elseif (!$_GET['secret_key'] == $this->secret_key) {\n wp_redirect(home_url());\n }\n }", "function redirectToLogin()\n{\n\t\n\t$expired = \"\";\n\t$url = \"http://\";\n\tif( $_SERVER[\"HTTPS\"] && $_SERVER[\"HTTPS\"] != \"off\")\n\t\t$url = \"https://\";\n\t$url .= $_SERVER[\"HTTP_HOST\"] . $_SERVER['REQUEST_URI'];\n\n\n\tif( isset($_SERVER['HTTP_REFERER']) )\n\t{\n\t\tif( getDirectoryFromURI( $_SERVER['HTTP_REFERER'] ) == getDirectoryFromURI( $url ) \n\t\t\t&& getFilenameFromURI( $_SERVER['HTTP_REFERER'] ) != \"index.htm\" \n\t\t\t&& $_SERVER['HTTP_REFERER'] != getDirectoryFromURI( $url ))\n\t\t\t$expired = \"message=expired\";\n\t}\n\tHeaderRedirect(\"login\", \"\", $expired);\n\texit();\n}", "protected function LoginRedirect()\n {\n try\n {\n // set cookies to know where to redirect on success\n setcookie( 'AUTHURL', $this->sSuccessUrl, 0, \"/\", '.clemson.edu', false, true);\n setcookie( 'AUTHREASON', '', 0, \"/\", '.clemson.edu', false, true);\n\n // redirect to the login site\n header( 'Location: https://login.clemson.edu' );\n die();\n }\n catch( Exception $oException )\n {\n throw cAnomaly::BubbleException( $oException );\n }\n }", "function admin_login_redirect( $redirect_to, $request, $user ) { \n\tglobal $user; if( isset( $user->roles ) && is_array( $user->roles ) ) \n\t{ if( in_array( \"administrator\", $user->roles ) ) \n\t\t{ return $redirect_to; } \n\telse { return home_url(); } } \n\telse { return $redirect_to; } \n}", "public static function setRedirectUponAuthentication(){\n\n /**\n * Make sure we redirect to the requested page\n */\n if(isset($_SESSION[self::CONST_REQUESTED_URI_SESSION_KEY]) && !empty($_SESSION[self::CONST_REQUESTED_URI_SESSION_KEY])){\n CoreHeaders::setRedirect($_SESSION[self::CONST_REQUESTED_URI_SESSION_KEY]);\n unset($_SESSION[self::CONST_REQUESTED_URI_SESSION_KEY]);\n }else{\n CoreHeaders::setRedirect('/');\n }\n\n }", "function login_redirect_rules( $redirect_to, $requested_redirect_to, $user ) {\r\n\r\n // If they're on the login page, don't do anything\r\n if( !isset( $user->user_login ) ) {\r\n return $redirect_to;\r\n }\r\n\r\n\r\n //redirect by login/logout redirect table\r\n $wpc_enable_custom_redirects = get_option( 'wpc_enable_custom_redirects', 'no' );\r\n if ( 'yes' == $wpc_enable_custom_redirects ) {\r\n global $wpdb;\r\n\r\n $new_redirect_to = $wpdb->get_var( $wpdb->prepare( \"SELECT rul_url FROM {$wpdb->prefix}wpc_client_login_redirects WHERE rul_value = '%s'\", $user->user_login ) );\r\n if ( $new_redirect_to ) {\r\n return $new_redirect_to;\r\n }\r\n }\r\n\r\n //redirect Client and Staff to my-hub page\r\n if ( ( user_can( $user, 'wpc_client' ) ) && !user_can( $user, 'manage_network_options' ) ) {\r\n return wpc_client_get_slug( 'hub_page_id' );\r\n }\r\n\r\n return $redirect_to;\r\n\r\n }", "public function redirectUserAction() {\n //get the session object\n $session = $this->getRequest()->getSession();\n\n //check if we have a logged in user\n if ($this->has('security.context') && $this->getUser() && TRUE === $this->get('security.context')->isGranted('ROLE_USER')) {\n //set a hint message for the user\n $rediretUrl = $this->generateUrl(\"home_page\");\n }\n if ($this->has('security.context') && $this->getUser() && TRUE === $this->get('security.context')->isGranted('ROLE_ADMIN')) {\n //set a hint message for the user\n $rediretUrl = $this->generateUrl(\"sonata_admin_dashboard\");\n }\n\n //check if we have a url to redirect to\n //$rediretUrl = $session->get('redirectUrl', FALSE);\n if (!$rediretUrl) {\n //check if firewall redirected the user\n $rediretUrl = $session->get('_security.secured_area.target_path');\n if (!$rediretUrl) {\n //redirect to home page\n $rediretUrl = '/';\n //get the current enviroment\n $enviroment = $this->container->getParameter('kernel.environment');\n //check if this is the development enviroment\n if ($enviroment == 'dev') {\n //add the development enviroment entry point\n $rediretUrl .= 'app_dev.php/';\n }\n }\n } else {\n //remove the redirect url from the session\n $session->remove('redirectUrl');\n }\n return $this->redirect($rediretUrl);\n }", "public function home(){\n\t\t//debug($this->Session->read('Auth.User'));\n\t\t//juste verifier :\n\t\t//debug($this->Session->check('Auth.User'));\n\t\tif($this->Session->check('Auth.User')){\n\t\t\tif($this->Session->read('Auth.User.role')=='admin'){\n\t\t\t\t$this->redirect('/admins/home');\n\t\t\t}\n\t\t\telse{\n\n\t\t\t}\n\t\t}\n\t\telse {\n\n\t\t}\n\t}", "function logged_in_redirect() {\n if(logged_in()) {\n header('Location: index.php');\n exit();\n }\n }", "function thrive_redirect_user_after_logged_in( $redirect_to, $request, $user ) {\n\n\tglobal $user;\n\n\tif ( empty( $user ) ) {\n\n\t\treturn $redirect_to;\n\n\t}\n\n\tif ( isset( $user->ID ) ) {\n\n\t\t// check if buddypress is active\n\t\tif ( function_exists( 'bp_core_get_user_domain' ) ) {\n\n\t\t\treturn apply_filters( 'thrive_login_redirect', bp_core_get_user_domain( $user->ID ) );\n\n\t\t\t// otherwise, throw the user into homepage\n\t\t} else {\n\n\t\t\treturn apply_filters( 'thrive_login_redirect', home_url() );\n\n\t\t}\n\t}\n\t// double edge sword\n\treturn $redirect_to;\n}", "function my_login_redirect($redirect_to, $request, $user)\n{ if (isset($user->roles) && is_array($user->roles)) {\n //check for admins\n if (in_array('administrator', $user->roles)) {\n // redirect them to the default place\n return $redirect_to;\n } else {\n return home_url('/my-account/dashboard/');\n }\n } else {\n return $redirect_to;\n }\n}", "public function CASLogin()\n {\n // if student, then redirect to the student dashboard, if sponsor redirect to sponsor dashboard\n // else admin, redirect to admin page\n if(Auth::user()->roleID === 1)\n {\n return redirect()->action('Dashboard\\DashboardController@getStudentDashboard');\n }\n elseif(Auth::user()->roleID === 2)\n {\n return redirect()->action('Dashboard\\DashboardController@getSponsorDashboard');\n }\n else\n {\n return redirect('/admin');\n }\n }", "public function getLoginRedirect()\n {\n return [\"/\"];\n }", "function acme_login_redirect( $redirect_to, $request, $user ) {\n return ( is_array( $user->roles ) && in_array( 'administrator', $user->roles ) ) ? site_url() : site_url();\n}", "function pmpromh_login_redirect($redirect_to, $request, $user)\r\n{\r\n\t//check level\r\n\tif(!empty($user) && !empty($user->ID) && function_exists('pmpro_getMembershipLevelForUser')) {\r\n\t\t$level = pmpro_getMembershipLevelForUser($user->ID);\r\n\t\t$member_homepage_id = pmpromh_getHomepageForLevel($level->id);\r\n\t\t\r\n\t\tif(!empty($member_homepage_id)) {\r\n\t\t\t$redirect_to = get_permalink($member_homepage_id);\r\n\t\t}\r\n\t}\r\n\r\n\treturn $redirect_to;\r\n}", "function lkdkamp_login_redirect( $redirect_to, $request, $user ){ if( isset( $user->roles ) && is_array( $user->roles ) ) {\n //check for admins\n if( in_array( \"subscriber\", $user->roles ) ) {\n // redirect them to the default place\n return home_url( '/basvurum' );\n } else {\n return home_url();\n }\n }\n else {\n return $redirect_to;\n }\n}", "public function redirectLogin()\n {\n return redirect()->to('/login');\n }", "public function redirect_if_logged_in()\n {\n Session::_start();\n if(isset($_SESSION['user']))\n {\n header('location: ' . URL_WITH_INDEX_FILE . 'results/index');\n exit();\n }\n }", "function userLoggedInRedirect($location) {\n\tisLoggedIn() ? redirect($location) : '';\n}", "function login() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n \n \n // check for cookies and if set validate and redirect to corresponding page\n\t\t$this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\t\t$this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n\t\t\n }", "public static function userRedirect($path = \"\") {\n if (Session::isLogin()) {\n self::redirect($path);\n }\n }", "function index()\r\n\t{\r\n\t\t\tredirect('c_login', 'refresh');\r\n\t}", "protected function redirectTo($request)\n {\n $id =Session::get('user_id');\n\n if (isset($id)){\n \n } else {\n return route('login');\n } \n \n }", "function redirect_login_page(){\n\t$page_viewed = basename($_SERVER['REQUEST_URI']);\n\t\n // Where we want them to go\n \t$login_page = site_url();\n \t//Write your site URL here.\n\t// Two things happen here, we make sure we are on the login page\n\t// and we also make sure that the request isn't coming from a form\n\t// this ensures that our scripts & users can still log in and out.\n\tif( !is_user_logged_in() && $page_viewed == \"wp-admin\" && $_SERVER['REQUEST_METHOD'] == 'GET') {\n\t\twp_redirect($login_page);\n \t\texit();\n \t}\n}", "public function beforeRoute()\n {\n if (!Session::get('userid')) {\n \\BarkaneArts\\redirect('/login');\n }\n parent::beforeRoute();\n }", "protected function LoginRedirect()\n {\n try\n {\n // set the success url in session\n $_SESSION[ 'onsuccess' ] = $this->sSuccessUrl;\n\n // get the base url\n $sSlash = substr( $_SERVER[ 'HTTP_HOST' ], -1 ) == '/' ? '' : '/';\n\n // redirect to the login site\n header( 'Location: ' . $this->GetProtocol() . '://' . $_SERVER[ 'HTTP_HOST' ] . $sSlash . 'ldap-login.php' );\n die();\n }\n catch( Exception $oException )\n {\n throw cAnomaly::BubbleException( $oException );\n }\n }", "public function restrict() {\n\t\tif (!$this->is_logged_in()) {\n\t\t\tredirect('login', 'refresh');\n\t\t}\n\t}", "protected function redirectTo()\n {\n \\Auth::logout();\n Session::flash('alert-danger', 'Please Verify Your Email to Login.');\n return '/login'; \n }", "protected function redirectTo()\n {\n return AccountServiceProvider::HOME; //route('users.index')\n }", "function my_login_redirect( $url, $request, $user ){\n if( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) {\n if( $user->has_cap( 'administrator' ) ) {\n $url = admin_url();\n } else {\n $url = home_url();\n }\n }\n return $url;\n}", "private function checkLogin() {\n\t\t\n\t\tif ( ! $this->user_model->isLoggedIn() )\n\t\t\tredirect( base_url() . 'admin' );\n\n\t}", "public function redirectTo()\n {\n //跳转到登录前页面\n return $this->getReferrer($this->redirectTo);\n }", "function login() {\n $this->layout = \"no_header\";\n $this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display', \"home\");\n }", "function checkIfUserIsLoggedInAndRedirect($redirectLocation = null){\n if(isLoggedIn()){\n redirect($redirectLocation);\n }\n}", "public function admin()\n {\n redirect(admin_url('authentication'));\n }", "public function redirect();", "public function redirect();", "public function redirect();", "public function loginPost(){\n\t\t\tif($this->modelLogin())\n\t\t\t\techo \"<script>location.href='home';</script>\";\n\t\t\telse\n\t\t\t\techo \"<script>location.href='login/register-fail';</script>\";\n\t\t}", "protected function redirectTo($request)\n {\n $userData=Session::get('user_app');\n // dd($userData);\n if (!$userData['username']) {\n return route('login');\n }\n }", "function redirectAfterLogin() {\n\tsession_start();\n\tif(!isset($_SESSION[\"gotoPage\"]))\n\t\ttrigger_error(\"There is no redirect page\");\n\t//trigger_error(\"going to \" . $_SESSION[\"gotoPage\"]);\n\theader(\"Location: \" . $_SESSION[\"gotoPage\"]);\n}", "function my_login_redirect( $redirect_to, $request, $user ) {\n //is there a user to check?\n if ( isset( $user->roles ) && is_array( $user->roles ) ) {\n //check for admins\n if ( in_array( 'administrator', $user->roles ) ) {\n // redirect them to the default place\n return $redirect_to;\n } else {\n return admin_url( 'index.php?page=custom-dashboard' );\n }\n } else {\n return $redirect_to;\n }\n}", "protected function getLoginFormRedirection() {\n return new RedirectResponse(Url::fromRoute('user.login')->toString());\n }", "public function login_redirect( $redirect_to, $request, $user ) {\n\t\t\n\t\tif ( isset( $user->roles ) ) {\n\t\t\n\t\t\t$current_roles = $user->roles;\n\n\t\t\t$restricted_roles = apply_filters( 'l-e-assessment-restricted', array(\n\t\t\t\t'subscriber',\n\t\t\t) );\n\n\t\t\tforeach( $restricted_roles as $role ) {\n\n\t\t\t\tif ( in_array( $role, $current_roles ) ) {\n\n\t\t\t\t\treturn home_url();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $redirect_to;\n\t\t\n\t}", "public function loginAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $loginUser = $this->view->loginUser;\n\n if ( $loginUser ) {\n $homeUrl = $site->getUrl( 'home' );\n return $this->_redirect( $homeUrl );\n }\n\n // set the input params\n $this->processInput( null, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n return $this->renderPage( 'authLogin' );\n }", "public function redirectTo() {\n $role = Auth::user()->role_id; \n switch ($role) {\n case '1':\n return '/home-admin';\n break;\n case '2':\n return '/home-lecturer';\n break; \n case '3':\n return '/my-subjects';\n break; \n \n default:\n return '/home'; \n break;\n }\n }", "protected function Login()\n {\n $this->redirectParams[\"openid.realm\"] = $this->config[\"realm\"];\n $this->redirectParams[\"openid.return_to\"] = $this->config[\"return_to\"];\n\n $params = http_build_query($this->redirectParams);\n\n $url = $this->urlAuthorize . \"?$params\";\n\n header(\"Location: $url\");\n exit();\n }", "public function redirectToLogin() {\n\t\t//\tcreate and save the state parameter\n\t\t$openIdStateMap =& storageFindOrCreate( \"openIdStateMap\" );\n\t\t$state = generatePassword(10);\n\t\t$openIdStateMap[ $state ] = $this->code;\n\n\t\t//\tcreate the URL\n\t\t$config = $this->getConfig();\n\t\t$request = new HttpRequest( $config[\"authorization_endpoint\"], \"GET\", array( \n\t\t\t\"response_type\" => \"code\",\n\t\t\t\"scope\" => $this->scope,\n\t\t\t\"client_id\" => $this->clientId,\n\t\t\t\"state\" => $state,\n\t\t\t\"redirect_uri\" => projectURL() . GetTableLink(\"openidcallback\")\n\t\t));\n\n\t\theader( \"Location: \" . $request->getUrl() );\n\t}", "public function bootstrap()\n\t{\n\t\tif (Auth::guest()) return Redirect::to($this->base_uri.'login');\n\n\t\tSession_Filter::hydrate();\n\n\t\tif (Session::has('desired_uri')) {\n\n\t\t\t$desired_uri = Session::get('desired_uri');\n\t\t\tSession::forget('desired_uri');\n\t\t\treturn Redirect::to($desired_uri);\n\t\t}\n\n\t\t$panel_uri = Session::get('user_data.starting_panel_uri');\n\t\treturn Redirect::to($panel_uri);\n\t}", "public function loginAction()\n {\n $session = new Zend_Session_Namespace(__CLASS__);\n $baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();\n try {\n $referer = Zend_Uri_Http::factory($_SERVER['HTTP_REFERER']);\n } catch (Exception $e) {\n }\n if ($this->_getParam('referer')) {\n $session->referer = $this->_getParam('referer');\n } else if ($referer && \n $referer->getHost() == $_SERVER['HTTP_HOST'] &&\n (!$referer->getPort() || $referer->getPort() == $_SERVER['SERVER_PORT']) &&\n substr($referer->getPath(), 0, strlen($baseUrl)) == $baseUrl) {\n $session->referer = substr($referer->getPath(), strlen($baseUrl));\n $session->referer = ltrim($session->referer, '/'); \n if ($referer->getQuery()) {\n $session->referer .= '?' . $referer->getQuery();\n }\n if ($referer->getFragment()) {\n $session->referer .= '#' . $referer->getFragment();\n }\n } else {\n $session->referer = $this->_getDefaultLandingPath();\n }\n \n $this->_redirect($this->_getCasAdapter()->getLoginUrl());\n }", "function validateUser() {\n\tif (!isLoggedIn()) {\n\t\tredirectTo(\"index.php\");\n\t}\n}", "public function intendedLogin()\n {\n return redirect()->guest('auth/login');\n }", "abstract protected function redirect();", "public function LoginCheck()\n {\n $protocol = Yii::app()->params['protocol'];\n $servername = Yii::app()->request->getServerName();\n $user = Yii::app()->session['username'];\n if (empty($user)) {\n $returnUrl = $protocol . $servername . Yii::app()->homeUrl;\n $this->redirect($returnUrl);\n }\n }", "public function post_signin()\n\t{\n\t\tif(Service\\Validation\\Login::passes(Input::all()))\n\t\t{\n\t\t\tif(Service\\Security::authorize(array('username' => Input::get('username'), 'password' => Input::get('password'))))\n\t\t\t{\n\t\t\t\treturn Redirect::home();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn Redirect::to_route('login')->with_input()->with_errors(new Messages(array(\n\t\t\t\t\t__('login.failed')->get()\n\t\t\t\t)));\n\t\t\t}\n\t\t}\n\n\t\treturn Redirect::to_route('login')->with_input()->with_errors(Service\\Validation::errors());\n\t}", "public function requireLogin(){\n if( ! Authentifiacation::isLoggedIn()){\n Authentifiacation::rememberRequestedPage();\n Flash::addMessage('You need to login to view this page', Flash::INFO);\n self::redirect('/login/new');\n }\n }", "public function testRedirect()\n {\n //$member = $this->objFromFixture(Member::class, \"joebloggs\");\n //$this->logInAs($member);\n $this->markTestIncomplete('Test user config CMS fields');\n }", "public function postLogin()\n\t{\n\n\t\t$input = array(\n\t\t 'email' => \\Input::get( 'email' ),\n\t\t 'password' => \\Input::get( 'password' ),\n\t\t 'remember' => \\Input::get( 'remember' ),\n\t\t);\n\n\t\t// If you wish to only allow login from confirmed users, call logAttempt\n\t\t// with the second parameter as true.\n\t\t// logAttempt will check if the 'email' perhaps is the username.\n\t\tif ( \\Confide::logAttempt( $input, true ) ) \n\t\t{\n\t\t return \\Redirect::intended('/company'); \n\t\t}\n\t\telse\n\t\t{\n\t\t $user = new \\User;\n\n\t\t // Check if there was too many login attempts\n\t\t if( \\Confide::isThrottled( $input ) )\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.too_many_attempts');\n\t\t }\n\t\t elseif( $user->checkUserExists( $input ) and ! $user->isConfirmed( $input ) )\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.not_confirmed');\n\t\t }\n\t\t else\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.wrong_credentials');\n\t\t }\n\n\t\t return \\Redirect::action('controllers\\company\\AuthController@getLogin')\n\t\t ->withInput(\\Input::except('password'))\n\t\t ->with( 'error', $err_msg );\n\t\t}\n\n\t}", "function maybe_redirect_at_authenticate( $user, $username, $password ) {\n\t\tif( $_SERVER['REQUEST_METHOD'] === 'POST' ) {\n\t\t\tif( is_wp_error( $user ) ) {\n\t\t\t\t$error_codes = join( ',', $user->get_error_codes() );\n\t\t\t\t\n\t\t\t\t$login_url = home_url( 'member-login' );\n\t\t\t\t$login_url = add_query_arg( 'login', $error_codes, $login_url );\n\t\t\t\t\n\t\t\t\twp_redirect( $login_url );\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $user;\n\t}", "public static function loginThenRedirect ($message){\n unset($_SESSION['return_to']);\n if (!session::isUser()){\n $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];\n session::setActionMessage($message);\n http::locationHeader('/account/login/index');\n die;\n }\n }", "public function postLogin()\n {\n \t$params = array(\n 'username' => Input::get('username'),\n 'password' => Input::get('password'),\n );\n \n \t$user = User::where(array('username'=>$params['username'],'password'=>$params['password'])) ->count();\n if ($user >0) {\n // if next is present, redirect to that url\n $next = Input::get('next');\n if ($next) return Redirect::to($next);\n return Redirect::route('home');\n }\n return Redirect::route('auth.getLogin')\n ->with('message', 'Wrong username or password');\n }", "function scuba_wp_login() {\n\t$_REQUEST['st_url_redirect'] = st_after_login_redirect();\n//\texit;\n}", "public function index() {\r\n if ($this->session->userdata('accountant_login') != 1)\r\n redirect(base_url() . 'index.php?login', 'refresh');\r\n if ($this->session->userdata('accountant_login') == 1)\r\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\r\n }", "function login() {\n\n $this->redirect(\"/staff/users/alllogin\");\n \n $this->layout = 'login_layout';\n\t\t// Display error message on failed authentication\n\t\tif (!empty($this->data) && !$this->Auth->_loggedIn) {\n\t\t\t$this->Session->setFlash($this->Auth->loginError);\t\t\t\n\t\t}\n\t\t// Redirect the logged in user to respective pages\n\t\t$this->setLoginRedirects();\n\t}", "public function redirectAction()\n {\n $this->facebookOAuth->authorize();\n }" ]
[ "0.79676497", "0.7679899", "0.76394445", "0.76083356", "0.75418425", "0.74963963", "0.7470254", "0.74014354", "0.7377965", "0.73777264", "0.7332228", "0.7271691", "0.7263243", "0.72373563", "0.7192758", "0.7180092", "0.71526504", "0.71227586", "0.70993495", "0.70948017", "0.70918494", "0.7088359", "0.70796454", "0.7044846", "0.7040831", "0.703965", "0.70124614", "0.70056427", "0.6988487", "0.6968187", "0.69506", "0.6939874", "0.6930302", "0.6923188", "0.69212997", "0.68918186", "0.6873616", "0.6868793", "0.6850007", "0.6841491", "0.6830256", "0.68295264", "0.6813707", "0.6812214", "0.67941266", "0.6792949", "0.6783625", "0.6783282", "0.6777408", "0.67520404", "0.67508966", "0.6750106", "0.6747464", "0.67408586", "0.67325795", "0.67289513", "0.6727751", "0.672482", "0.6723809", "0.67190665", "0.6714835", "0.6712305", "0.6706987", "0.6703047", "0.6702611", "0.66996855", "0.66987586", "0.6692919", "0.6692686", "0.6691048", "0.668823", "0.668823", "0.668823", "0.6683864", "0.6678887", "0.6665588", "0.6659505", "0.6655537", "0.6654556", "0.66517746", "0.6637984", "0.66275734", "0.6617972", "0.66138285", "0.661146", "0.66110057", "0.66048265", "0.6601571", "0.6600408", "0.6597727", "0.65708447", "0.6560064", "0.65598035", "0.6558985", "0.65579176", "0.6538583", "0.6532041", "0.652947", "0.6527591", "0.6525618" ]
0.65489674
95
Create a new controller instance.
public function __construct() { $this->middleware('guest')->except('logout'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
if it isn't a string, it isn't serialized.
private function is_serialized_( $data, $strict = true ) { if ( ! is_string( $data ) ) { return false; } $data = trim( $data ); if ( 'N;' == $data ) { return true; } if ( strlen( $data ) < 4 ) { return false; } if ( ':' !== $data[1] ) { return false; } if ( $strict ) { $lastc = substr( $data, -1 ); if ( ';' !== $lastc && '}' !== $lastc ) { return false; } } else { $semicolon = strpos( $data, ';' ); $brace = strpos( $data, '}' ); // Either ; or } must exist. if ( false === $semicolon && false === $brace ) return false; // But neither must be in the first X characters. if ( false !== $semicolon && $semicolon < 3 ) return false; if ( false !== $brace && $brace < 4 ) return false; } $token = $data[0]; switch ( $token ) { case 's' : if ( $strict ) { if ( '"' !== substr( $data, -2, 1 ) ) { return false; } } elseif ( false === strpos( $data, '"' ) ) { return false; } // or else fall through case 'a' : case 'O' : return (bool) preg_match( "/^{$token}:[0-9]+:/s", $data ); case 'b' : case 'i' : case 'd' : $end = $strict ? '$' : ''; return (bool) preg_match( "/^{$token}:[0-9.E-]+;$end/", $data ); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_serialized_string($data)\n {\n }", "public static function isSerialized($str) {}", "function is_serialized_string($data) {\n\t\tif (!is_string($data)) {\n\t\t\treturn false;\n\t\t}\n\t\t$data = trim($data);\n\t\tif (strlen($data) < 4) {\n\t\t\treturn false;\n\t\t} elseif (':' !== $data[1]) {\n\t\t\treturn false;\n\t\t} elseif (';' !== substr($data, -1)) {\n\t\t\treturn false;\n\t\t} elseif ($data[0] !== 's') {\n\t\t\treturn false;\n\t\t} elseif ('\"' !== substr($data, -2, 1)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function isSerialized()\n {\n if (!isset($this->str[0])) {\n return false;\n }\n\n /** @noinspection PhpUsageOfSilenceOperatorInspection */\n if (\n $this->str === 'b:0;'\n ||\n @unserialize($this->str) !== false\n ) {\n return true;\n } else {\n return false;\n }\n }", "function is_serial($string) {\n return (@unserialize($string) !== false);\n}", "private function isSerialized($string)\n {\n if ($string === 'b:0;' or @unserialize($string) !== false)\n {\n return true;\n }\n\n return false;\n }", "public static function is_serialized(string $str)\n {\n $array = @unserialize($str);\n return ! ($array === false and $str !== 'b:0;');\n }", "function is_serialized( $data ) {\n if ( !is_string( $data ) )\n return false;\n $data = trim( $data );\n if ( 'N;' == $data )\n return true;\n if ( !preg_match( '/^([adObis]):/', $data, $badions ) )\n return false;\n switch ( $badions[1] ) {\n case 'a' :\n case 'O' :\n case 's' :\n if ( preg_match( \"/^{$badions[1]}:[0-9]+:.*[;}]\\$/s\", $data ) )\n return true;\n break;\n case 'b' :\n case 'i' :\n case 'd' :\n if ( preg_match( \"/^{$badions[1]}:[0-9.E-]+;\\$/\", $data ) )\n return true;\n break;\n }\n return false;\n }", "function is_serialized($data) {\n if (!is_string($data))\n return false;\n $data = trim($data);\n if ('N;' == $data)\n return true;\n if (!preg_match('/^([adObis]):/', $data, $badions))\n return false;\n switch ($badions[1]) {\n case 'a' :\n case 'O' :\n case 's' :\n if (preg_match(\"/^{$badions[1]}:[0-9]+:.*[;}]\\$/s\", $data))\n return true;\n break;\n case 'b' :\n case 'i' :\n case 'd' :\n if (preg_match(\"/^{$badions[1]}:[0-9.E-]+;\\$/\", $data))\n return true;\n break;\n }\n return false;\n }", "public static function is_serialized(string $str): bool\n {\n if ($str === '') {\n return false;\n }\n\n /** @noinspection PhpUsageOfSilenceOperatorInspection */\n /** @noinspection UnserializeExploitsInspection */\n return $str === 'b:0;'\n ||\n @\\unserialize($str, []) !== false;\n }", "function is_serialized( $value, &$result = null ){\n\tif( !is_string( $value ) ){\n\t\treturn false;\n\t}\n\n\t// Serialized false, return true. unserialize() returns false on an\n\t// invalid string or it could return false if the string is serialized\n\t// false, eliminate that possibility.\n\tif( $value === 'b:0;')\n\t{\n\t\t$result = false;\n\t\treturn true;\n\t}\n\n\t$length\t= strlen( $value );\n\t$end\t= '';\n\n\tswitch ( $value[0])\t{\n\t\tcase 's':\n\t\t\tif( $value[$length - 2] !== '\"'){\n\t\t\t\treturn false;\n\t\t\t}\n\t\tcase 'b':\n\t\tcase 'i':\n\t\tcase 'd':\n\t\t\t// This looks odd but it is quicker than isset()ing\n\t\t\t$end .= ';';\n\t\tcase 'a':\n\t\tcase 'O':\n\t\t\t$end .= '}';\n\n\t\t\tif( $value[1] !== ':'){\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tswitch ( $value[2]){\n\t\t\t\tcase 0:\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\tcase 4:\n\t\t\t\tcase 5:\n\t\t\t\tcase 6:\n\t\t\t\tcase 7:\n\t\t\t\tcase 8:\n\t\t\t\tcase 9:\n\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\tcase 'N':\n\t\t\t$end .= ';';\n\n\t\t\tif( $value[$length - 1] !== $end[0]){\n\t\t\t\treturn false;\n\t\t\t}\n\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn false;\n\t}\n\n\tif(( $result = @unserialize( $value ) ) === false )\t{\n\t\t$result = null;\n\t\treturn false;\n\t}\n\treturn true;\n}", "function is_serialized($data, $strict = \\true)\n {\n }", "function is_serialized($value, &$result = null)\n{\n\tif (!is_string($value))\n\t{\n\t\treturn false;\n\t}\n\t// Serialized false, return true. unserialize() returns false on an\n\t// invalid string or it could return false if the string is serialized\n\t// false, eliminate that possibility.\n\tif ($value === 'b:0;')\n\t{\n\t\t$result = false;\n\t\treturn true;\n\t}\n\t$length\t= strlen($value);\n\t$end\t= '';\n\tswitch ($value[0])\n\t{\n\t\tcase 's':\n\t\t\tif ($value[$length - 2] !== '\"')\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\tcase 'b':\n\t\tcase 'i':\n\t\tcase 'd':\n\t\t\t// This looks odd but it is quicker than isset()ing\n\t\t\t$end .= ';';\n\t\tcase 'a':\n\t\tcase 'O':\n\t\t\t$end .= '}';\n\t\t\tif ($value[1] !== ':')\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tswitch ($value[2])\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\tcase 4:\n\t\t\t\tcase 5:\n\t\t\t\tcase 6:\n\t\t\t\tcase 7:\n\t\t\t\tcase 8:\n\t\t\t\tcase 9:\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\tcase 'N':\n\t\t\t$end .= ';';\n\t\t\tif ($value[$length - 1] !== $end[0])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n\tif (($result = @unserialize($value)) === false)\n\t{\n\t\t$result = null;\n\t\treturn false;\n\t}\n\treturn true;\n}", "function maybe_serialize($data)\n {\n }", "function unserialize_safe($serialized) {\r\r\n // as well as if there is any ws between O and :\r\r\n if (is_string($serialized) && strpos($serialized, \"\\0\") === false) {\r\r\n if (strpos($serialized, 'O:') === false) {\r\r\n // the easy case, nothing to worry about\r\r\n // let unserialize do the job\r\r\n return @unserialize($serialized);\r\r\n } else if (!preg_match('/(^|;|{|})O:[0-9]+:\"/', $serialized)) {\r\r\n // in case we did have a string with O: in it,\r\r\n // but it was not a true serialized object\r\r\n return @unserialize($serialized);\r\r\n }\r\r\n }\r\r\n return false;\r\r\n}", "public static function is_serialized( $data ) {\r\n\t\t// if it isn't a string, it isn't serialized\r\n\t\tif ( !is_string( $data ) )\r\n\t\t\treturn false;\r\n\r\n\t\t$data = trim( $data );\r\n\r\n\t\tif ( 'N;' == $data )\r\n\t\t\treturn true;\r\n\r\n\t\tif ( !preg_match( '/^([adObis]):/', $data, $badions ) )\r\n\t\t\treturn false;\r\n\r\n\t\tswitch ( $badions[1] ) {\r\n\t\t\tcase 'a':\r\n\t\t\tcase 'O':\r\n\t\t\tcase 's':\r\n\t\t\t\tif ( preg_match( \"/^{$badions[1]}:[0-9]+:.*[;}]\\$/s\", $data ) )\r\n\t\t\t\t\treturn true;\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase 'b':\r\n\t\t\tcase 'i':\r\n\t\t\tcase 'd':\r\n\t\t\t\tif ( preg_match( \"/^{$badions[1]}:[0-9.E-]+;\\$/\", $data ) )\r\n\t\t\t\t\treturn true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "function maybe_unserialize($data)\n {\n }", "private function isSerialized($value)\n {\n $data = @unserialize($value);\n if ($value === 'b:0;' || $data !== false) {\n return true;\n } else {\n return false;\n }\n }", "public static function isSerialized($data) {\n return (@unserialize($data) !== false);\n }", "abstract public function getIsSerializedAttribute() : bool;", "static function serialized( $data ) {\n\t\tif(empty($data)) return false;\n\t\tif ( !is_string( $data ) ) \n\t\t\treturn false; \n\t\t$data = trim( $data ); \n\t\tif ( 'N;' == $data ) \n\t\t\treturn true; \n\t\tif ( !preg_match( '/^([adObis]):/', $data, $badions ) ) \n\t\t\treturn false; \n\t\tswitch ( $badions[1] ) { \n\t\t\tcase 'a' : \n\t\t\tcase 'O' : \n\t\t\tcase 's' : \n\t\t\t\tif ( preg_match( \"/^{$badions[1]}:[0-9]+:.*[;}]\\$/s\", $data ) ) \n\t\t\t\t\treturn true; \n\t\t\t\tbreak; \n\t\t\tcase 'b' : \n\t\t\tcase 'i' : \n\t\t\tcase 'd' : \n\t\t\t\tif ( preg_match( \"/^{$badions[1]}:[0-9.E-]+;\\$/\", $data ) ) \n\t\t\t\t\treturn true; \n\t\t\t\tbreak; \n\t\t} \n\t\treturn false; \n\t}", "public function testString()\r\n {\r\n $s = new XML_Serializer();\r\n $s->serialize('a string');\r\n $this->assertEquals('<string>a string</string>', $s->getSerializedData());\r\n $s->serialize('');\r\n $this->assertEquals('<string />', $s->getSerializedData());\r\n }", "abstract public function serialize();", "abstract public function serialize();", "public abstract function serialize();", "public function unserialize($serialized=null){ }", "abstract public function serialize($data);", "private function shouldSerialize()\n {\n $serialize = Common::getRequestVar('serialize', 0, 'int', $this->request);\n\n return !empty($serialize);\n }", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "function unserialize($str)\n{\n}", "public function serialize();", "public function serialize();", "public function serialize();", "abstract protected function serializeData($unSerializedData);", "public function getIsString() {\n return $this->getType() == \"string\";\n }", "function allowserialize($propname)\r\n {\r\n return(true);\r\n }", "public function jsonSerialize():mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "function safe_unserialize( $str )\n{\n\t// ensure we use the byte count for strings even when strlen() is overloaded by mb_strlen()\n\tif (function_exists('mb_internal_encoding') &&\n\t\t(((int) ini_get('mbstring.func_overload')) & 2))\n\t{\n\t\t$mbIntEnc = mb_internal_encoding();\n\t\tmb_internal_encoding('ASCII');\n\t}\n\n\ttry {\n\t\t$out = _safe_unserialize($str);\n\t} catch(Exception $e) {\n\t\t$out = false;\n\t}\n\n\tif (isset($mbIntEnc))\n\t{\n\t\tmb_internal_encoding($mbIntEnc);\n\t}\n\treturn $out;\n}", "public function serialize()\n {\n }", "public function serialize()\n {\n }", "public function serialize($data)\n {\n }", "abstract public function unserialize($serialized);", "public function serialize($value) : bool\n {\n }", "public function unserialize($serialized)\n {\n }", "function stringToObject( $data, $namespace='' ) {\n\t\treturn true;\n\t}", "function stringToObject( $data, $namespace='' ) {\n\t\treturn true;\n\t}", "abstract protected function serializeData();", "public static function serialized(string $name): bool\n {\n return static::$serialize;\n }", "protected function caseRendererPHPSerialize($defaultSerializeValue = 1)\n\t{\n\t\t$serialize = Piwik_Common::getRequestVar('serialize', $defaultSerializeValue, 'int', $this->request);\n\t\tif($serialize)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function serialize(){ }", "public function serialize($data);", "public function testInvalidSerializedData()\n {\n $someData = 12;\n\n $serializer = ArrayObject::DEFAULT_SERIALIZER;\n $serializer = new $serializer;\n\n $data = new ArrayObject;\n $data->unserialize($serializer->serialize($someData));\n }", "function serialise(): string;", "public function unserialize($serialized);", "public function unserialize($serialized);", "function safe_serialize( $value )\n{\n\t// ensure we use the byte count for strings even when strlen() is overloaded by mb_strlen()\n\tif (function_exists('mb_internal_encoding') &&\n\t\t(((int) ini_get('mbstring.func_overload')) & 2))\n\t{\n\t\t$mbIntEnc = mb_internal_encoding();\n\t\tmb_internal_encoding('ASCII');\n\t}\n\n\ttry {\n\t\t$out = _safe_serialize($value);\n\t} catch(Exception $e) {\n\t\t$out = false;\n\t}\n\n\tif (isset($mbIntEnc))\n\t{\n\t\tmb_internal_encoding($mbIntEnc);\n\t}\n\treturn $out;\n}", "public function unserialize($data) {}", "private function isJSONString($string)\n\t{\n\t\tjson_decode($string);\n\t\treturn (json_last_error() == JSON_ERROR_NONE);\n\t}", "public static function safeSerialize($toSerialize)\n\t{\n\t\t$serialized = serialize($toSerialize);\n\n\t\tif (self::serializedContainsObject($serialized))\n\t\t{\n\t\t\tthrow new InvalidArgumentException(\"Serialized value contains an object and this is not allowed\");\n\t\t}\n\n\t\treturn $serialized;\n\t}", "function _safe_unserialize($str)\n{\n\tif(strlen($str) > MAX_SERIALIZED_INPUT_LENGTH)\n\t{\n\t\tthrow new Exception('safe_unserialize: input exceeds ' . MAX_SERIALIZED_INPUT_LENGTH);\n\t}\n\n\tif(empty($str) || !is_string($str))\n\t{\n\t\treturn false;\n\t}\n\n\t$stack = array();\n\t$expected = array();\n\n\t/*\n\t * states:\n\t * 0 - initial state, expecting a single value or array\n\t * 1 - terminal state\n\t * 2 - in array, expecting end of array or a key\n\t * 3 - in array, expecting value or another array\n\t */\n\t$state = 0;\n\twhile($state != 1)\n\t{\n\t\t$type = isset($str[0]) ? $str[0] : '';\n\n\t\tif($type == '}')\n\t\t{\n\t\t\t$str = substr($str, 1);\n\t\t}\n\t\telse if($type == 'N' && $str[1] == ';')\n\t\t{\n\t\t\t$value = null;\n\t\t\t$str = substr($str, 2);\n\t\t}\n\t\telse if($type == 'b' && preg_match('/^b:([01]);/', $str, $matches))\n\t\t{\n\t\t\t$value = $matches[1] == '1' ? true : false;\n\t\t\t$str = substr($str, 4);\n\t\t}\n\t\telse if($type == 'i' && preg_match('/^i:(-?[0-9]+);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'd' && preg_match('/^d:(-?[0-9]+\\.?[0-9]*(E[+-][0-9]+)?);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (float)$matches[1];\n\t\t\t$str = $matches[3];\n\t\t}\n\t\telse if($type == 's' && preg_match('/^s:([0-9]+):\"(.*)/s', $str, $matches) && substr($matches[2], (int)$matches[1], 2) == '\";')\n\t\t{\n\t\t\t$value = substr($matches[2], 0, (int)$matches[1]);\n\t\t\t$str = substr($matches[2], (int)$matches[1] + 2);\n\t\t}\n\t\telse if($type == 'a' && preg_match('/^a:([0-9]+):{(.*)/s', $str, $matches) && $matches[1] < MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t{\n\t\t\t$expectedLength = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'O')\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: objects not supported');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: unknown/malformed type: '.$type);\n\t\t}\n\n\t\tswitch($state)\n\t\t{\n\t\t\tcase 3: // in array, expecting value or another array\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$stack[] = &$list;\n\t\t\t\t\t$list[$key] = array();\n\t\t\t\t\t$list = &$list[$key];\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$list[$key] = $value;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: missing array value');\n\n\t\t\tcase 2: // in array, expecting end of array or a key\n\t\t\t\tif($type == '}')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) < end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size less than expected ' . $expected[0]);\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($list);\n\t\t\t\t\t$list = &$stack[count($stack)-1];\n\t\t\t\t\tarray_pop($stack);\n\n\t\t\t\t\t// go to terminal state if we're at the end of the root array\n\t\t\t\t\tarray_pop($expected);\n\t\t\t\t\tif(count($expected) == 0) {\n\t\t\t\t\t\t$state = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type == 'i' || $type == 's')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) >= MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds ' . MAX_SERIALIZED_ARRAY_LENGTH);\n\t\t\t\t\t}\n\t\t\t\t\tif(count($list) >= end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds expected length');\n\t\t\t\t\t}\n\n\t\t\t\t\t$key = $value;\n\t\t\t\t\t$state = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: illegal array index type');\n\n\t\t\tcase 0: // expecting array or value\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$list = &$data;\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$data = $value;\n\t\t\t\t\t$state = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: not in array');\n\t\t}\n\t}\n\n\tif(!empty($str))\n\t{\n\t\tthrow new Exception('safe_unserialize: trailing data in input');\n\t}\n\treturn $data;\n}", "public static function isSerializedVar($val)\n {\n\t\tif (!is_string($val)) return false;\n else return (strrpos($val, \"__\", 2) !== false && strrpos($val, \"__\", -2) !== false) ? true : false;\n }", "function is_serialized($data, $strict = true) {\n\t\tif (!is_string($data)) {\n\t\t\treturn false;\n\t\t}\n\t\t$data = trim($data);\n\t\tif ('N;' == $data) {\n\t\t\treturn true;\n\t\t}\n\t\tif (strlen($data) < 4) {\n\t\t\treturn false;\n\t\t}\n\t\tif (':' !== $data[1]) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($strict) {\n\t\t\t$lastc = substr($data, -1);\n\t\t\tif (';' !== $lastc && '}' !== $lastc) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t$semicolon = strpos($data, ';');\n\t\t\t$brace = strpos($data, '}');\n\t\t\t// Either ; or } must exist.\n\t\t\tif (false === $semicolon && false === $brace) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// But neither must be in the first X characters.\n\t\t\tif (false !== $semicolon && $semicolon < 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (false !== $brace && $brace < 4) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}\n\t\t$token = $data[0];\n\t\tswitch ($token) {\n\t\tcase 's':\n\t\t\tif ($strict) {\n\t\t\t\tif ('\"' !== substr($data, -2, 1)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} elseif (false === strpos($data, '\"')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// or else fall through\n\t\tcase 'a':\n\t\tcase 'O':\n\t\t\treturn (bool) preg_match(\"/^{$token}:[0-9]+:/s\", $data);\n\t\tcase 'b':\n\t\tcase 'i':\n\t\tcase 'd':\n\t\t\t$end = $strict ? '$' : '';\n\t\t\treturn (bool) preg_match(\"/^{$token}:[0-9.E-]+;$end/\", $data);\n\t\t}\n\t\treturn false;\n\t}", "private function isJson($string) {\n json_decode($string);\n return (json_last_error() == JSON_ERROR_NONE);\n }", "public function testGetSerialization()\n {\n $this->assertEquals('turtle', $this->fixture->getSerialization('@prefix foo:'));\n\n $this->assertEquals(null, $this->fixture->getSerialization(''));\n }", "public function serialize()\n {\n // TODO: Implement serialize() method.\n }", "public static function is( $string ){\n\t\t\t\t\n\t\t\t\tif( !is_string( $string ) ){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn ( is_object( json_decode( $string ) ) || is_array( json_decode( $string ) ) );\n\t\t\t}", "public function testSerialize()\n {\n $data = $this->getDB()->get('SELECT * FROM grps');\n json_encode($data);\n $this->assertEquals(true, strlen(serialize($data)) > 0);\n }", "public function __toString()\r\n\t{\r\n\t\tif (Tainted::$TaintChecking and $this->Tainted)\t//If the string is tainted, then trigger the error\r\n\t\t\ttrigger_error(\"Trying to use tainted variable without decontamination.\");\r\n\t\t\r\n\t\tif($this->data == null)\r\n\t\t\treturn ($this->strict==true)? false : $this->default_data;\r\n\t\telse \r\n\t\t\treturn $this->data;\r\n\t}", "public static function safeUnserialize($serialized)\n\t{\n\t\tif (PHP_VERSION_ID >= 70000)\n\t\t{\n\t\t\t// PHP 7 has an option to disable unserializing objects, so use that if available\n\t\t\treturn @unserialize($serialized, array('allowed_classes' => false));\n\t\t}\n\n\t\tif (self::serializedContainsObject($serialized))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn @unserialize($serialized);\n\t}", "function isJSON($string)\n{\n return (is_null(json_decode($string))) ? false : true;\n}", "private function isJson($string) {\n\t\tjson_decode($string);\n\t\treturn (json_last_error() == \"JSON_ERROR_NONE\");\n\t}", "public function jsonSerialize(): mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize(): mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize() : mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize() : mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function testSerialize() {\n $index = Phish_Index::load();\n $str = serialize($index);\n $indexRestored = unserialize($str);\n $this->assertEquals($index, $indexRestored);\n }", "public function binarySerialize();", "public function isSerializable($data = null)\n {\n if (is_object($data) || is_array($data)) {\n return true;\n }\n\n return false;\n }", "function is_json(string $string): bool\n\t{\n\t\tjson_decode($string);\n\n\t\treturn empty(json_last_error());\n\t}", "public function is_serialized($data, $strict = true)\n {\n // if it isn't a string, it isn't serialized.\n if (!is_string($data)) {\n return false;\n }\n $data = trim($data);\n if ('N;' == $data) {\n return true;\n }\n if (strlen($data) < 4) {\n return false;\n }\n if (':' !== $data[1]) {\n return false;\n }\n if ($strict) {\n $lastc = substr($data, -1);\n if (';' !== $lastc && '}' !== $lastc) {\n return false;\n }\n } else {\n $semicolon = strpos($data, ';');\n $brace = strpos($data, '}');\n // Either ; or } must exist.\n if (false === $semicolon && false === $brace) {\n return false;\n }\n // But neither must be in the first X characters.\n if (false !== $semicolon && $semicolon < 3) {\n return false;\n }\n if (false !== $brace && $brace < 4) {\n return false;\n }\n }\n $token = $data[0];\n switch ($token) {\n case 's':\n if ($strict) {\n if ('\"' !== substr($data, -2, 1)) {\n return false;\n }\n } elseif (false === strpos($data, '\"')) {\n return false;\n }\n // or else fall through\n case 'a':\n case 'O':\n return (bool)preg_match(\"/^{$token}:[0-9]+:/s\", $data);\n case 'b':\n case 'i':\n case 'd':\n $end = $strict ? '$' : '';\n return (bool)preg_match(\"/^{$token}:[0-9.E-]+;$end/\", $data);\n }\n return false;\n }", "public function isJson()\n {\n if (!isset($this->str[0])) {\n return false;\n }\n\n json_decode($this->str);\n\n if (json_last_error() === JSON_ERROR_NONE) {\n return true;\n } else {\n return false;\n }\n }", "public function isJson($string){\n\t\treturn self::stringIsJson($string);\n\t}", "public function isJSON($string){\n return is_string($string) && is_array(json_decode($string, true)) ? true : false;\n }", "public static function isSerializedArray($data)\n {\n return $data === null || (is_string($data) && preg_match('/^a:[0-9]+:{.*;}$/s', $data));\n }", "function maybe_unserialize( $item ){\n if( is_serialized( $item ) ){\n \n try{\n \n // Try unzerialising\n $output = unserialize( $item );\n \n } catch( Exception $e ){\n \n // If there's an error it might be corrupted, so try uncorrupting then unserializing\n $output = unserialize( serialize_fix( $item ) );\n \n }\n \n return $output;\n \n } else {\n return $item;\n }\n}", "function scrappy_isJson($string) {\n return ((is_string($string) &&\n (is_object(json_decode($string)) ||\n is_array(json_decode($string))))) ? true : false;\n}", "public static function isJson($str) {}", "public function isJson($string)\r\n {\r\n json_decode($string);\r\n return (json_last_error() == JSON_ERROR_NONE);\r\n }", "public function __toString(){\r\n\t\t$data = serialize($this->_data);\r\n\t\t// Obfuscate the data with base64 encoding\r\n\t\t$data = base64_encode($data);\r\n\t\treturn $data;\r\n\t}", "function is_json( $string ){\n if( is_string( $string ) ){\n \n @json_decode( $string );\n return ( json_last_error() == JSON_ERROR_NONE );\n \n } else {\n \n return false;\n \n }\n}", "function isJson($str)\n\t{\n\n\t\tjson_decode($str);\n\t\treturn (json_last_error() == JSON_ERROR_NONE);\n\n\t}", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }" ]
[ "0.8052579", "0.79438084", "0.75996095", "0.7568577", "0.73373723", "0.72699547", "0.70558757", "0.70501626", "0.69670165", "0.693527", "0.6861039", "0.68501645", "0.678459", "0.6771449", "0.6769389", "0.6763466", "0.6688163", "0.66310936", "0.6593939", "0.6571848", "0.6563544", "0.65292305", "0.64910704", "0.64910704", "0.6424732", "0.63648564", "0.6321948", "0.62829673", "0.6276628", "0.6276628", "0.6276089", "0.6276089", "0.6276089", "0.6276089", "0.6276089", "0.6276089", "0.626184", "0.62508243", "0.62508243", "0.62508243", "0.6196052", "0.61722827", "0.6151755", "0.6135048", "0.61321354", "0.61267394", "0.61267394", "0.6119504", "0.60999155", "0.6093552", "0.60900277", "0.60584015", "0.60584015", "0.60527617", "0.6047756", "0.6041178", "0.603691", "0.59610635", "0.5927333", "0.5895954", "0.5875945", "0.5875945", "0.5873338", "0.5840155", "0.58339685", "0.5827231", "0.5797041", "0.5792137", "0.57834095", "0.57715464", "0.5759311", "0.57408357", "0.57349634", "0.5734719", "0.57346815", "0.57317984", "0.5725108", "0.572225", "0.5702544", "0.5702544", "0.5676672", "0.5676672", "0.5675057", "0.56420165", "0.5618319", "0.5609981", "0.56095046", "0.55978966", "0.5596175", "0.5588892", "0.55887336", "0.558678", "0.5574851", "0.55683005", "0.55663216", "0.5566167", "0.5564521", "0.55378956", "0.55272454", "0.55272454" ]
0.5783026
69
Methods to clear message
function ClearMessage() { $_SESSION[EW_SESSION_MESSAGE] = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear(){\r\n\t\t$this->_init_messages();\r\n\t}", "public function clear_messages() {\n\t\t$this->_write_messages( null );\n\t}", "public function clear()\r\n {\r\n $this->messages->clear();\r\n }", "public function clearMsg() {\n\t\t$_SESSION['msg'] = null;\n\t}", "public function clear_message() {\n unset($_SESSION['message']);\n }", "public function clear()\n {\n $this->messages = [];\n }", "public function clear(): void\n {\n $this->messages = [];\n }", "function ClearMessage() {\r\n\t\t$_SESSION[EW_SESSION_MESSAGE] = \"\";\r\n\t}", "function ClearMessage() {\r\n\t\t$_SESSION[EW_SESSION_MESSAGE] = \"\";\r\n\t}", "function ClearMessage() {\r\n\t\t$_SESSION[EW_SESSION_MESSAGE] = \"\";\r\n\t}", "function ClearMessage() {\r\n\t\t$_SESSION[EW_SESSION_MESSAGE] = \"\";\r\n\t}", "public function resetMessage() {\n self::$message = '';\n }", "public function\n\tclearMessages()\n\t{\n\t\t$this -> m_aStorage = [];\n\t}", "public function resetMessage(){\n\t\t\tif (isset($_SESSION['message']) && $_SESSION['message']!='') {\n\t\t\t\t$_SESSION['message']='';\n\t\t\t}\n\t\t}", "public function reset()\n {\n $this->messages = [];\n }", "function clear()\n\t{\n\t\t$this->to \t\t= '';\n\t\t$this->from \t= '';\n\t\t$this->reply_to\t= '';\n\t\t$this->cc\t\t= '';\n\t\t$this->bcc\t\t= '';\n\t\t$this->subject \t= '';\n\t\t$this->message\t= '';\n\t\t$this->debugger = '';\n\t}", "public function reset()\n {\n $this->values[self::MESSAGE] = null;\n $this->values[self::SENDER_KEY] = null;\n }", "public function delete_messages()\n {\n $this->message=array();\n Session::instance()->delete(\"hana_message\");\n }", "protected function clearMessageBody()\n {\n $this->messageBody = '';\n \n if ($this->isHeaderSet(self::CONTENT_LENGTH_HEADER))\n {\n $this->removeHeader(self::CONTENT_LENGTH_HEADER);\n }\n }", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public function clear() {}", "function clear() {}", "function clear() {}", "public function clear () {\n \n }", "protected function clear()\n {\n $this->error = '';\n $this->success = false;\n }", "public function reset()\n {\n $this->values[self::_CHANNEL] = null;\n $this->values[self::_CONTENTS] = array();\n }", "public function clear( );", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clearMessage()\n {\n $this->setMessage(null);\n $this->clearFormState();\n return $this;\n }", "public function clear() {\n\t}", "protected function clear() {}", "public function clearMessages() {\n $this->connection->truncate($this->messageTable)\n ->execute();\n }", "public function clear()\n {\n }", "public function clearMessages()\n {\n $this->_messages = array();\n return $this;\n }", "public function reset()\n {\n $this->values[self::_PLAIN_MAIL] = null;\n $this->values[self::_FORMAT_MAIL] = null;\n }", "public function reset()\n {\n $this->values[self::_SAY] = null;\n $this->values[self::_FRESH] = null;\n $this->values[self::_FETCH] = null;\n $this->values[self::_CHAT_ADD_BL] = null;\n $this->values[self::_CHAT_DEL_BL] = null;\n $this->values[self::_CHAT_BLACKLIST] = null;\n $this->values[self::_CHAT_BORAD_SAY] = null;\n }", "public function clear()\n {\n $this->contents = '';\n }", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function __destruct()\n\t{\n\t\t\\Message::reset();\t\n\t}", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_CHANNEL] = null;\n $this->values[self::_CONTENTS] = array();\n }", "public function reset()\n\t{\n\t\t$this->method = NOTIFY_MAIL;\n\t\t$this->body = '';\n\t\t$this->subject = '';\n\t\t$this->bcc = array();\n\t\t$this->vars = array();\n\t}", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_CHANNEL] = null;\n $this->values[self::_CONTENTS] = array();\n }", "public function removeMessage($id = 1)\n {\n $this->_raw = '';\n }", "function clear(): void;", "private function clearBuffer() {\r\n\t\t$this->buffer = '';\r\n\t}", "function clear_warning_message()\n {\n $this->_warning_message = \"\";\n }", "public function clearBuffer() {\n $this->buffer = '';\n }" ]
[ "0.8554459", "0.8400055", "0.8383649", "0.8250235", "0.82295597", "0.8217056", "0.81421286", "0.81211466", "0.81211466", "0.81211466", "0.81211466", "0.8119306", "0.81142914", "0.7910898", "0.75500125", "0.74679124", "0.74363226", "0.7379802", "0.72077256", "0.71495235", "0.71495235", "0.71495235", "0.71495235", "0.7125616", "0.712428", "0.7107634", "0.7082137", "0.70472306", "0.70468014", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.70416075", "0.7035641", "0.7025388", "0.7005753", "0.70051104", "0.69856083", "0.69620657", "0.6907155", "0.6897256", "0.684784", "0.683163", "0.683163", "0.683163", "0.683163", "0.683163", "0.683163", "0.68187344", "0.67915034", "0.67901736", "0.67901313", "0.67731255", "0.67625445", "0.6761274", "0.6741361", "0.67406917" ]
0.8174217
27
Load row based on key values
function LoadRow() { global $Security, $Language; $sFilter = $this->KeyFilter(); // Call Row Selecting event $this->Row_Selecting($sFilter); // Load SQL based on filter $this->CurrentFilter = $sFilter; $sSql = $this->SQL(); $conn = &$this->Connection(); $res = FALSE; $rs = ew_LoadRecordset($sSql, $conn); if ($rs && !$rs->EOF) { $res = TRUE; $this->LoadRowValues($rs); // Load row values $rs->Close(); } return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function loadRow() {}", "function Load($id_value, $key_row_name = ''){\r\n\t\tif(!empty($key_row_name)){\r\n\t\t\t$key_row = \", t.\" . $key_row_name . \" \";\r\n\t\t}else{\r\n\t\t\t$key_row = \", '' AS `key`\";\r\n\t\t}\r\n\r\n\t\t$sql = \"SELECT t.\" . $this->data_row . \" \" . $key_row . \"\r\n\t\t\t\tFROM \" . $this->table_name . \" AS t\r\n\t\t\t\tWHERE t.\" . $this->id_row . \" = '\" . $id_value . \"'\";\r\n\r\n\t\t$result = OBE_App::$db->query($sql);\r\n\t\tif($result){\r\n\t\t\tlist($blob, $key) = OBE_App::$db->fetch_row($result);\r\n\t\t\tif(!empty($blob)){\r\n\t\t\t\tif(!empty($key_row_name) && !empty($key)){\r\n\t\t\t\t\t$this->data[$key] = unserialize($blob);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$this->data = unserialize($blob);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function loadRowList( $key='' ) {\n\t\tif (!($cur = $this->query())) {\n\t\t\treturn null;\n\t\t}\n\t\t$array = array();\n\t\twhile ($row = mysql_fetch_array( $cur )) {\n\t\t\tif ($key) {\n\t\t\t\t$array[$row[$key]] = $row;\n\t\t\t} else {\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t}\n\t\tmysql_free_result( $cur );\n\t\treturn $array;\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\t\t$sFilter = $filesystem->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$filesystem->Row_Selecting($sFilter);\r\n\r\n\t\t// Load sql based on filter\r\n\t\t$filesystem->CurrentFilter = $sFilter;\r\n\t\t$sSql = $filesystem->SQL();\r\n\t\tif ($rs = $conn->Execute($sSql)) {\r\n\t\t\tif ($rs->EOF) {\r\n\t\t\t\t$LoadRow = FALSE;\r\n\t\t\t} else {\r\n\t\t\t\t$LoadRow = TRUE;\r\n\t\t\t\t$rs->MoveFirst();\r\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t\t// Call Row Selected event\r\n\t\t\t\t$filesystem->Row_Selected($rs);\r\n\t\t\t}\r\n\t\t\t$rs->Close();\r\n\t\t} else {\r\n\t\t\t$LoadRow = FALSE;\r\n\t\t}\r\n\t\treturn $LoadRow;\r\n\t}", "function _load()\n\t{\n\t\tif($this->primary_key)\n\t\t{\n\t\t\t$row = $this->db->get_where($this->table_name, array(\n\t\t\t\t$this->primary_key => $this->{$this->primary_key},\n\t\t\t))->result();\n\t\t\t\n\t\t\tif(count($row))\n\t\t\t\t$this->load_db_values($row[0]);\n\t\t}\n\t}", "function LoadRow() {\r\r\tglobal $conn, $Security, $ratings;\r\r\t$sFilter = $ratings->SqlKeyFilter();\r\r\tif (!is_numeric($ratings->id_2->CurrentValue)) {\r\r\t\treturn FALSE; // Invalid key, exit\r\r\t}\r\r\t$sFilter = str_replace(\"@id_2@\", ew_AdjustSql($ratings->id_2->CurrentValue), $sFilter); // Replace key value\r\r\r\r\t// Call Row Selecting event\r\r\t$ratings->Row_Selecting($sFilter);\r\r\r\r\t// Load sql based on filter\r\r\t$ratings->CurrentFilter = $sFilter;\r\r\t$sSql = $ratings->SQL();\r\r\tif ($rs = $conn->Execute($sSql)) {\r\r\t\tif ($rs->EOF) {\r\r\t\t\t$LoadRow = FALSE;\r\r\t\t} else {\r\r\t\t\t$LoadRow = TRUE;\r\r\t\t\t$rs->MoveFirst();\r\r\t\t\tLoadRowValues($rs); // Load row values\r\r\r\r\t\t\t// Call Row Selected event\r\r\t\t\t$ratings->Row_Selected($rs);\r\r\t\t}\r\r\t\t$rs->Close();\r\r\t} else {\r\r\t\t$LoadRow = FALSE;\r\r\t}\r\r\treturn $LoadRow;\r\r}", "public function Load_from_key($key_row)\n {\n $result = $this->connection->RunQuery(\"Select * from tbl_estado_domiciliarios where ID_ESTADO_DOMICILIARIOS = \\\"$key_row\\\" \");\n while ($row = $result->fetch_array(MYSQLI_ASSOC)) {\n $this->ID_ESTADO_DOMICILIARIOS = $row[\"ID_ESTADO_DOMICILIARIOS\"];\n $this->ID_USUARIO = $row[\"ID_USUARIO\"];\n $this->DESCRIPCION = $row[\"DESCRIPCION_ESTADO\"];\n }\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn = &$this->Connection();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn = &$this->Connection();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn = &$this->Connection();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $fs_multijoin_v;\r\n\t\t$sFilter = $fs_multijoin_v->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$fs_multijoin_v->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$fs_multijoin_v->CurrentFilter = $sFilter;\r\n\t\t$sSql = $fs_multijoin_v->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t// Call Row Selected event\r\n\t\t\t$fs_multijoin_v->Row_Selected($rs);\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $st_peserta_kelas_kelompok;\r\n\t\t$sFilter = $st_peserta_kelas_kelompok->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$st_peserta_kelas_kelompok->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$st_peserta_kelas_kelompok->CurrentFilter = $sFilter;\r\n\t\t$sSql = $st_peserta_kelas_kelompok->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "public function loadRow($rowData)\n\t{\n\t\t\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $responsable;\n\t\t$sFilter = $responsable->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$responsable->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$responsable->CurrentFilter = $sFilter;\n\t\t$sSql = $responsable->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$responsable->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "public function load($key);", "function LoadRow() {\n\t\tglobal $conn, $Security, $planilla;\n\t\t$sFilter = $planilla->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$planilla->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$planilla->CurrentFilter = $sFilter;\n\t\t$sSql = $planilla->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$planilla->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $archv_finished;\n\t\t$sFilter = $archv_finished->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$archv_finished->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$archv_finished->CurrentFilter = $sFilter;\n\t\t$sSql = $archv_finished->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$archv_finished->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $rekeningju;\r\n\t\t$sFilter = $rekeningju->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$rekeningju->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$rekeningju->CurrentFilter = $sFilter;\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $tbl_profile;\n\t\t$sFilter = $tbl_profile->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$tbl_profile->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$tbl_profile->CurrentFilter = $sFilter;\n\t\t$sSql = $tbl_profile->SQL();\n\t\t$res = FALSE;\n\t\t$rs = up_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $mst_vendor;\n\t\t$sFilter = $mst_vendor->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$mst_vendor->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$mst_vendor->CurrentFilter = $sFilter;\n\t\t$sSql = $mst_vendor->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$mst_vendor->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\t\t$sFilter = $patient_detail->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$patient_detail->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$patient_detail->CurrentFilter = $sFilter;\n\t\t$sSql = $patient_detail->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$patient_detail->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\t\t$sFilter = $patient_detail->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$patient_detail->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$patient_detail->CurrentFilter = $sFilter;\n\t\t$sSql = $patient_detail->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$patient_detail->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $scholarship_package;\n\t\t$sFilter = $scholarship_package->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$scholarship_package->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$scholarship_package->CurrentFilter = $sFilter;\n\t\t$sSql = $scholarship_package->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$scholarship_package->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $scholarship_package;\n\t\t$sFilter = $scholarship_package->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$scholarship_package->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$scholarship_package->CurrentFilter = $sFilter;\n\t\t$sSql = $scholarship_package->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$scholarship_package->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $t_tinbai_mainsite;\n\t\t$sFilter = $t_tinbai_mainsite->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$t_tinbai_mainsite->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$t_tinbai_mainsite->CurrentFilter = $sFilter;\n\t\t$sSql = $t_tinbai_mainsite->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$t_tinbai_mainsite->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\tglobal $conn, $Security, $dpp_proveedores;\n\t$sFilter = $dpp_proveedores->SqlKeyFilter();\n\tif (!is_numeric($dpp_proveedores->provee_id->CurrentValue)) {\n\t\treturn FALSE; // Invalid key, exit\n\t}\n\t$sFilter = str_replace(\"@provee_id@\", ew_AdjustSql($dpp_proveedores->provee_id->CurrentValue), $sFilter); // Replace key value\n\n\t// Call Row Selecting event\n\t$dpp_proveedores->Row_Selecting($sFilter);\n\n\t// Load sql based on filter\n\t$dpp_proveedores->CurrentFilter = $sFilter;\n\t$sSql = $dpp_proveedores->SQL();\n\tif ($rs = $conn->Execute($sSql)) {\n\t\tif ($rs->EOF) {\n\t\t\t$LoadRow = FALSE;\n\t\t} else {\n\t\t\t$LoadRow = TRUE;\n\t\t\t$rs->MoveFirst();\n\t\t\tLoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$dpp_proveedores->Row_Selected($rs);\n\t\t}\n\t\t$rs->Close();\n\t} else {\n\t\t$LoadRow = FALSE;\n\t}\n\treturn $LoadRow;\n}", "abstract public function getSpecificRow();", "public final function row($table, $keyname, $value) \n {\n return AutoRecord::loadRow($this, $table, $keyname, $value);\n }", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $fs_multijoin_v;\r\n\t\t$fs_multijoin_v->id->setDbValue($rs->fields('id'));\r\n\t\t$fs_multijoin_v->mount->setDbValue($rs->fields('mount'));\r\n\t\t$fs_multijoin_v->path->setDbValue($rs->fields('path'));\r\n\t\t$fs_multijoin_v->parent->setDbValue($rs->fields('parent'));\r\n\t\t$fs_multijoin_v->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$fs_multijoin_v->name->setDbValue($rs->fields('name'));\r\n\t\t$fs_multijoin_v->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$fs_multijoin_v->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$fs_multijoin_v->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$fs_multijoin_v->type->setDbValue($rs->fields('type'));\r\n\t\t$fs_multijoin_v->CONTACT->setDbValue($rs->fields('CONTACT'));\r\n\t\t$fs_multijoin_v->CONTACT2->setDbValue($rs->fields('CONTACT2'));\r\n\t\t$fs_multijoin_v->RESCOMP->setDbValue($rs->fields('RESCOMP'));\r\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $financial_year;\n\t\t$sFilter = $financial_year->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$financial_year->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$financial_year->CurrentFilter = $sFilter;\n\t\t$sSql = $financial_year->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$financial_year->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function read($keys,$extra_cols='',$join='')\n\t{\n\t\tif (!parent::read($keys,$extra_cols,$join))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (($id = (int)$this->data[$this->db_key_cols[$this->autoinc_id]]) && $this->customfields &&\n\t\t\t($cfs = $this->read_customfields($id)))\n\t\t{\n\t\t\t$this->data = array_merge($this->data,$cfs[$id]);\n\t\t}\n\t\treturn $this->data;\n\t}", "protected function load()\n\t{\n\t\t//---------------------\n\t\t// Your code goes here\n\t\t// --------------------\n\t\t// rebuild the keys table\n\t\t$this->reindex();\n\t}", "public function load()\n {\n $pdo = $this->getDbConnection();\n $query = \"SELECT * FROM {$this->dbTable}\";\n $data = $pdo->query($query)->fetchAll(\\PDO::FETCH_ASSOC);\n\n foreach ($data as ['key' => $key, 'value' => $value]) {\n $this->setData($key, $value);\n }\n }", "public function load($key)\n {\n return $this->dba->get($key);\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $tbl_slide;\n\t\t$sFilter = $tbl_slide->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$tbl_slide->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$tbl_slide->CurrentFilter = $sFilter;\n\t\t$sSql = $tbl_slide->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$tbl_slide->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $selection_grade_point;\n\t\t$sFilter = $selection_grade_point->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$selection_grade_point->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$selection_grade_point->CurrentFilter = $sFilter;\n\t\t$sSql = $selection_grade_point->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$selection_grade_point->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $frm_fp_units_accomplishment;\n\t\t$sFilter = $frm_fp_units_accomplishment->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$frm_fp_units_accomplishment->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$frm_fp_units_accomplishment->CurrentFilter = $sFilter;\n\t\t$sSql = $frm_fp_units_accomplishment->SQL();\n\t\t$res = FALSE;\n\t\t$rs = up_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRowValues(&$rs) {\r\r\tglobal $ratings;\r\r\t$ratings->id->setDbValue($rs->fields('id'));\r\r\t$ratings->rating->setDbValue($rs->fields('rating'));\r\r\t$ratings->domain->setDbValue($rs->fields('domain'));\r\r\t$ratings->id_2->setDbValue($rs->fields('id_2'));\r\r}", "public function row($key='*')\n {\n if(self::$use_cache && self::$is_cached !== false){\n $res= $this->mc->get(md5($this->sql));\n\n return $key=='*' ? $res : $res[$key];\n }\n \n $res = $this->result->fetch(DB::FETCH_ASSOC);\n if(self::$use_cache){\n $this->mc->set(md5($this->sql), $res, $this->mc_time);\n }\n return $key=='*' ? $res : $res[$key];\n }", "protected function load($row) {\n\t\t\t$this->data = (array)$row;\n\t\t\t\n\t\t\tif ($this->highway) {\n\t\t\t\t// split off highway\n\t\t\t\t$q = new Query();\n\t\t\t\t$q->addTable('highways');\n\t\t\t\t$q->addWhere('highway', $this->highway);\n\t\t\t\t$q->addColumn('highway_id');\n\t\t\t\tif (!($this->highway_id = $this->db->getOne($q))) {\n\t\t\t\t\t$q->addField('highway', $this->highway);\n\t\t\t\t\t$this->highway_id = $this->db->insert($q);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->direction) {\n\t\t\t\t// split off direction\n\t\t\t\t$q = new Query();\n\t\t\t\t$q->addTable('directions');\n\t\t\t\t$q->addWhere('direction', $this->direction);\n\t\t\t\t$q->addColumn('direction_id');\n\t\t\t\tif (!($this->direction_id = $this->db->getOne($q))) {\n\t\t\t\t\t$q->addField('direction', $this->direction);\n\t\t\t\t\t$this->direction_id = $this->db->insert($q);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function load($key)\n {\n }", "abstract protected function fetchRowAssocDb();", "function load($key,$val) {\n\t\tif ($found=$this->find($key,$val)) {\n\t\t\t$this->id=$found[0]->id;\n\t\t\treturn $this->item=$found[0]->item;\n\t\t}\n\t\t$this->reset();\n\t\treturn [];\n\t}", "public function testLoad()\n {\n \t$this->assertEquals(array('id'=>1, 'key'=>'one', 'title'=>'first row', 'status'=>'ACTIVE'), $this->conn->load(\"test\", 1, DB::FETCH_ASSOC), 'Using id=1');\n \t$this->assertEquals(array('id'=>3, 'key'=>'three', 'title'=>'another row', 'status'=>'PASSIVE'), $this->conn->load(\"test\", array('key'=>'three'), DB::FETCH_ASSOC), 'Using id=array(\"key\"=>\"three\")');\n\n \t$this->assertEquals(array(1, 'one', 'first row', 'ACTIVE'), $this->conn->load(\"test\", 1, DB::FETCH_ORDERED), 'Using id=1');\n \t$this->assertEquals(array(1, 'one', 'first row', 'ACTIVE', 'id'=>1, 'key'=>'one', 'title'=>'first row', 'status'=>'ACTIVE'), $this->conn->load(\"test\", 1, DB::FETCH_FULLARRAY), 'Using id=1');\n \t\n \t$this->assertNull($this->conn->load(\"test\", 99), 'Using id=99');\n }", "abstract public function load($Type, $Key, $DetailLevel);", "public function load($ids = null){\n\t\t\tif(is_numeric($ids) && count($this->keys) == 1){//primary key has one column\n\t\t\t\t$this->addParam($this->keys[0], $ids);\n\t\t\t}elseif(is_array($ids) && count($ids) == count($this->keys)){//primary key has many ids\n\t\t\t\ttry{\n\t\t\t\t\tfor ($i=0; $i < count($ids); $i++) {//add all the keys to the parameters\n\t\t\t\t\t\t//add each key, assuming $ids is $key=>$value where the key matches\n\t\t\t\t\t\t$this->addParam($this->keys[$i], $ids[$this->keys[$i]]);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception $e){\n\t\t\t\t\t//load is assuming ordered list of keys\n\t\t\t\t\tfor ($i=0; $i < count($ids); $i++) {//add all the keys to the parameters\n\t\t\t\t\t\t//add each key, assuming $ids is $value and the order is the same as $this->keys\n\t\t\t\t\t\t$this->addParam($this->keys[$i], $ids[$i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}elseif($this->isGeneric){//if this a class and not an inheritance and has no id, fails\n\t\t\t\tthrow new Exception('QueryBuilder: load function should receive a number, if the id is just one column; or an array of $key=>$value where $key matches every key in the primary key; or an ordered array of values that match the multiple columns in the primary key', 1);\n\t\t\t}\n\t\t\t//load the object\n\t\t\tif($objectLoad = $this->select()->where(true)->limit(1)->get()){\n\t\t\t\t$this->toUpdate = array();\n\t\t\t\tif($this->isGeneric){//return an object of the generic type, argument order must match\n\t\t\t\t\t$reflector = new ReflectionClass($this->class);\n\t\t\t\t\treturn $reflector->newInstanceArgs(array_diff(array_values($objectLoad), $this->toIgnore));\n\t\t\t\t}\n\t\t\t\t$allColumns = $this->getAllColumns();//the columns that are keys and not\n\t\t\t\tforeach ($allColumns as $column) {\n\t\t\t\t\t$this->$column = $objectLoad[$column];\n\t\t\t\t}\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "function load_db_values($row)\n\t{\n\t\tforeach($row as $prop => $val)\n\t\t\t$this->{$prop} = $val;\n\t}", "public function fetch($key);", "public function fetch($key);", "public function fetch($key);", "function database_load_all_assoc($key_column)\n {\n if( !is_resource($this->_last_resource) )\n {\n return FALSE;\n }\n \n $resource = $this->_last_resource;\n $return_data = array();\n while( $data = $this->database_fetch_assoc($resource) )\n {\n $return_data[$data[$key_column]] = $data;\n }\n \n return $return_data;\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $t_tinbai_mainsite;\n\t\t$t_tinbai_mainsite->PK_TINBAI_ID->setDbValue($rs->fields('PK_TINBAI_ID'));\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->setDbValue($rs->fields('FK_CONGTY_ID'));\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->setDbValue($rs->fields('FK_DMGIOITHIEU_ID'));\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->setDbValue($rs->fields('FK_DMTUYENSINH_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->setDbValue($rs->fields('FK_DTSVTUONGLAI_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->setDbValue($rs->fields('FK_DTSVDANGHOC_ID'));\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->setDbValue($rs->fields('FK_DTCUUSV_ID'));\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->setDbValue($rs->fields('FK_DTDOANHNGHIEP_ID'));\n\t\t$t_tinbai_mainsite->C_TITLE->setDbValue($rs->fields('C_TITLE'));\n\t\t$t_tinbai_mainsite->C_SUMARY->setDbValue($rs->fields('C_SUMARY'));\n\t\t$t_tinbai_mainsite->C_CONTENTS->setDbValue($rs->fields('C_CONTENTS'));\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->setDbValue($rs->fields('C_HIT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_PIC_HIT->Upload->DbValue = $rs->fields('C_PIC_HIT');\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->setDbValue($rs->fields('C_NEW_MYSEFLT'));\n\t\t$t_tinbai_mainsite->C_PIC_MYSEFLT->Upload->DbValue = $rs->fields('C_PIC_MYSEFLT');\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->setDbValue($rs->fields('C_COMMENT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->setDbValue($rs->fields('C_ORDER_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->setDbValue($rs->fields('C_STATUS_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->setDbValue($rs->fields('C_VISITOR_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->setDbValue($rs->fields('C_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->setDbValue($rs->fields('C_TIME_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->setDbValue($rs->fields('FK_NGUOIDUNGID_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_NOTE->setDbValue($rs->fields('C_NOTE'));\n\t\t$t_tinbai_mainsite->C_USER_ADD->setDbValue($rs->fields('C_USER_ADD'));\n\t\t$t_tinbai_mainsite->C_ADD_TIME->setDbValue($rs->fields('C_ADD_TIME'));\n\t\t$t_tinbai_mainsite->C_USER_EDIT->setDbValue($rs->fields('C_USER_EDIT'));\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->setDbValue($rs->fields('C_EDIT_TIME'));\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->setDbValue($rs->fields('FK_EDITOR_ID'));\n\t}", "public function loadRow()\n\t{\n\t\tglobal $Security, $Language;\n\t\t$filter = $this->getRecordFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($filter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $filter;\n\t\t$sql = $this->getCurrentSql();\n\t\t$conn = &$this->getConnection();\n\t\t$res = FALSE;\n\t\t$rs = LoadRecordset($sql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->loadRowValues($rs); // Load row values\n\t\t\t$rs->close();\n\t\t}\n\n\t\t// Check if valid User ID\n\t\tif ($res) {\n\t\t\t$res = $this->showOptionLink('add');\n\t\t\tif (!$res) {\n\t\t\t\t$userIdMsg = DeniedMessage();\n\t\t\t\t$this->setFailureMessage($userIdMsg);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $filesystem;\r\n\t\t$filesystem->id->setDbValue($rs->fields('id'));\r\n\t\t$filesystem->mount->setDbValue($rs->fields('mount'));\r\n\t\t$filesystem->path->setDbValue($rs->fields('path'));\r\n\t\t$filesystem->parent->setDbValue($rs->fields('parent'));\r\n\t\t$filesystem->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$filesystem->gid->setDbValue($rs->fields('gid'));\r\n\t\t$filesystem->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$filesystem->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$filesystem->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$filesystem->type->setDbValue($rs->fields('type'));\r\n\t\t$filesystem->contact->setDbValue($rs->fields('contact'));\r\n\t\t$filesystem->contact2->setDbValue($rs->fields('contact2'));\r\n\t\t$filesystem->rescomp->setDbValue($rs->fields('rescomp'));\r\n\t}", "abstract public function getRow($cond_vars);", "function loadTable(string $filename, array $keys, array $rows = [])\n{\n $filename = RESOURCES_PATH.\"/partials/tables/{$filename}.view.php\";\n\n Validate::var($filename)->fileExists();\n\n return include $filename;\n}", "function read($keys,$extra_cols='',$join='')\n\t{\n\t\tif (!is_array($keys))\n\t\t{\n\t\t\t$pk = array_values($this->db_key_cols);\n\t\t\tif ($pk) $keys = array($pk[0] => $keys);\n\t\t}\n\n\t\t$this->init($keys);\n\t\t$this->data2db();\n\n\t\t$query = false;\n\t\tforeach ($this->db_key_cols as $db_col => $col)\n\t\t{\n\t\t\tif ($this->data[$col] != '')\n\t\t\t{\n\t\t\t\t$query[$db_col] = $this->data[$col];\n\t\t\t}\n\t\t}\n\t\tif (!$query)\t// no primary key in keys, lets try the data_cols for a unique key\n\t\t{\n\t\t\tforeach($this->db_uni_cols as $db_col => $col)\n\t\t\t{\n\t\t\t\tif (!is_array($col) && $this->data[$col] != '')\n\t\t\t\t{\n\t\t\t\t\t$query[$db_col] = $this->data[$col];\n\t\t\t\t}\n\t\t\t\telseif(is_array($col))\n\t\t\t\t{\n\t\t\t\t\t$q = array();\n\t\t\t\t\tforeach($col as $db_c => $c)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($this->data[$col] == '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$q = null;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$q[$db_c] = $this->data[$c];\n\t\t\t\t\t}\n\t\t\t\t\tif ($q) $query += $q;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!$query)\t// no unique key in keys, lets try everything else\n\t\t{\n\t\t\tforeach($this->db_data_cols as $db_col => $col)\n\t\t\t{\n\t\t\t\tif ($this->data[$col] != '')\n\t\t\t\t{\n\t\t\t\t\t$query[$db_col] = $this->data[$col];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!$query)\t// keys has no cols\n\t\t{\n\t\t\t$this->db2data();\n\n\t\t\treturn False;\n\t\t}\n\t\tif ($join)\t// Prefix the columns with the table-name, as they might exist in the join\n\t\t{\n\t\t\tforeach($query as $col => $val)\n\t\t\t{\n\t\t\t\tif (is_int($col) || strpos($join,$col) === false) continue;\n\t\t\t\t$query[] = $this->db->expression($this->table_name,$this->table_name.'.',array($col=>$val));\n\t\t\t\tunset($query[$col]);\n\t\t\t}\n\t\t}\n\t\tforeach($this->db->select($this->table_name,'*'.($extra_cols?','.(is_array($extra_cols)?implode(',',$extra_cols):$extra_cols):''),\n\t\t\t$query,__LINE__,__FILE__,False,'',$this->app,0,$join) as $row)\n\t\t{\n\t\t\t$cols = $this->db_cols;\n\t\t\tif ($extra_cols)\t// extra columns to report\n\t\t\t{\n\t\t\t\tforeach(is_array($extra_cols) ? $extra_cols : array($extra_cols) as $col)\n\t\t\t\t{\n\t\t\t\t\tif (FALSE!==stripos($col,' as ')) $col = preg_replace('/^.* as *([a-z0-9_]+) *$/i','\\\\1',$col);\n\t\t\t\t\t$cols[$col] = $col;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach ($cols as $db_col => $col)\n\t\t\t{\n\t\t\t\t$this->data[$col] = $row[$db_col];\n\t\t\t}\n\t\t\t$this->db2data();\n\n\t\t\t// store user timezone used for reading\n\t\t\t$this->data[self::USER_TIMEZONE_READ] = egw_time::$user_timezone->getName();\n\n\t\t\tif ((int) $this->debug >= 4)\n\t\t\t{\n\t\t\t\techo \"data =\\n\"; _debug_array($this->data);\n\t\t\t}\n\t\t\treturn $this->data;\n\t\t}\n\t\tif ($this->autoinc_id)\n\t\t{\n\t\t\tunset($this->data[$this->db_key_cols[$this->autoinc_id]]);\n\t\t}\n\t\tif ((int) $this->debug >= 4) echo \"nothing found !!!</p>\\n\";\n\n\t\t$this->db2data();\n\n\t\treturn False;\n\t}", "abstract public function loadColumns();", "function load_from_row ($row) {\n $this->id = $row['content_id'];\n $this->path = $row['content_path'];\n $this->user_id = $row['user_id'];\n $this->perso_id = $row['perso_id'];\n $this->title = $row['content_title'];\n }", "public function fetch_row($table_name,$key,$id)\n {\n\t\t$res=pg_query($this->connection,\"SELECT * FROM $table_name WHERE $key=$id\");\n\t\treturn pg_fetch_assoc($res);\n }", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $st_peserta_kelas_kelompok;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$st_peserta_kelas_kelompok->Row_Selected($row);\r\n\t\t$st_peserta_kelas_kelompok->identitas->setDbValue($rs->fields('identitas'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->setDbValue($rs->fields('kode_otomatis_kelompok'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t}", "public function readFromRow( $row );", "function stdRec_loadRow($row, $flags=0) {\n $this->rstKid_kidId = $row['rKd:KidId'];\n $this->rstParent_name[] = $row['rPU:FirstName'] . ' ' . $row['rPU:LastName'];\n $this->rstParent_home[] = $row['rPU:HomePhone'];\n $this->rstParent_cell[] = $row['rPU:CellPhone'];\n $this->rstParent_work[] = $row['rPU:WorkPhone'];\n $this->rstParent_emergency_name = $row['rFa:EmergencyPhone'];\n $this->rstParent_emergency_phone = $row['rFa:EmergencyName'];\n}", "abstract protected function _getRowAssoc($rs);", "function loadData()\n\t{\n\t\tstatic $data;\n\t\t\n\t\tif(!$data)\n\t\t\t$data=self::getData();\n\n\t\tif(isset($data[$this->id]))\n\t\t\t$this->setValues((array)$data[$this->id]);\t\t\t\n\t}", "protected function load()\n\t{\n //---------------------\n\t\tif (($handle = simplexml_load_file($this->_origin)) !== FALSE)\n\t\t{\n $this->_fields = array(\"id\",\"task\",\"priority\",\"size\",\"group\",\"deadline\", \"status\",\"flag\");\n foreach($handle as $item){\n $record = new stdClass();\n for ($i = 0; $i < count($this->_fields); $i ++ )\n $record->{$this->_fields[$i]} = (string)$item[$this->_fields[$i]];\n $this->_data[$record->id] = $record;\n }\n\t\t}\n\t\t// --------------------\n\t\t// rebuild the keys table\n\t\t$this->reindex();\n\t}", "function LoadRowValues(&$rs) {\n\tglobal $dpp_proveedores;\n\t$dpp_proveedores->provee_id->setDbValue($rs->fields('provee_id'));\n\t$dpp_proveedores->provee_rut->setDbValue($rs->fields('provee_rut'));\n\t$dpp_proveedores->provee_dig->setDbValue($rs->fields('provee_dig'));\n\t$dpp_proveedores->provee_cat_juri->setDbValue($rs->fields('provee_cat_juri'));\n\t$dpp_proveedores->provee_nombre->setDbValue($rs->fields('provee_nombre'));\n\t$dpp_proveedores->provee_paterno->setDbValue($rs->fields('provee_paterno'));\n\t$dpp_proveedores->provee_materno->setDbValue($rs->fields('provee_materno'));\n\t$dpp_proveedores->provee_dir->setDbValue($rs->fields('provee_dir'));\n\t$dpp_proveedores->provee_fono->setDbValue($rs->fields('provee_fono'));\n}", "abstract protected function getRow($row);" ]
[ "0.7271997", "0.6805986", "0.638924", "0.636429", "0.63320684", "0.6320305", "0.6143464", "0.61429864", "0.61429864", "0.61429864", "0.61429864", "0.61354184", "0.61354184", "0.61354184", "0.6126332", "0.6097254", "0.6097254", "0.6097254", "0.6097254", "0.6097254", "0.6097254", "0.60733664", "0.60551655", "0.60343295", "0.6027423", "0.60208523", "0.6003856", "0.60003096", "0.59994197", "0.59765077", "0.59278786", "0.59278786", "0.58798814", "0.58798814", "0.587246", "0.5855534", "0.5811767", "0.5792666", "0.5788625", "0.57799417", "0.5769591", "0.5769229", "0.576428", "0.56971055", "0.56931615", "0.5691872", "0.5679912", "0.5622532", "0.5577818", "0.5561202", "0.5558933", "0.55344445", "0.5523517", "0.5516549", "0.5476352", "0.54723674", "0.5471596", "0.54549444", "0.54549444", "0.54549444", "0.5434605", "0.5429128", "0.54205716", "0.54051137", "0.5401396", "0.53882766", "0.5367463", "0.53643715", "0.5363062", "0.5319134", "0.5315477", "0.5301065", "0.53007686", "0.52910364", "0.52904314", "0.528396", "0.52791756", "0.5272408" ]
0.6178232
26
Load row values from recordset
function LoadRowValues(&$rs) { if (!$rs || $rs->EOF) return; // Call Row Selected event $row = &$rs->fields; $this->Row_Selected($row); $this->Id_tercero->setDbValue($rs->fields('Id_tercero')); $this->nombre_tercero->setDbValue($rs->fields('nombre_tercero')); $this->direccion_tercero->setDbValue($rs->fields('direccion_tercero')); $this->telefono1_tercero->setDbValue($rs->fields('telefono1_tercero')); $this->telefono2_tercero->setDbValue($rs->fields('telefono2_tercero')); $this->fax_tercero->setDbValue($rs->fields('fax_tercero')); $this->nit_tercero->setDbValue($rs->fields('nit_tercero')); $this->tipo_tercero->setDbValue($rs->fields('tipo_tercero')); $this->e_mail_tercero->setDbValue($rs->fields('e_mail_tercero')); $this->Contacto_tercero->setDbValue($rs->fields('Contacto_tercero')); $this->gran_contrib_tercero->setDbValue($rs->fields('gran_contrib_tercero')); $this->autoretenedor_tercero->setDbValue($rs->fields('autoretenedor_tercero')); $this->activo_tercero->setDbValue($rs->fields('activo_tercero')); $this->tercero__registrado_por->setDbValue($rs->fields('tercero_ registrado_por')); $this->reg_comun_tercero->setDbValue($rs->fields('reg_comun_tercero')); $this->responsable_materiales_tercero->setDbValue($rs->fields('responsable_materiales_tercero')); $this->grupo_nomina_tercero->setDbValue($rs->fields('grupo_nomina_tercero')); $this->tercero__lider_Obra->setDbValue($rs->fields('tercero_ lider_Obra')); $this->tercero_nombre_lider->setDbValue($rs->fields('tercero_nombre_lider')); $this->empresa_tercero->setDbValue($rs->fields('empresa_tercero')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->datetime->setDbValue($rs->fields('datetime'));\r\n\t\t$this->script->setDbValue($rs->fields('script'));\r\n\t\t$this->user->setDbValue($rs->fields('user'));\r\n\t\t$this->action->setDbValue($rs->fields('action'));\r\n\t\t$this->_table->setDbValue($rs->fields('table'));\r\n\t\t$this->_field->setDbValue($rs->fields('field'));\r\n\t\t$this->keyvalue->setDbValue($rs->fields('keyvalue'));\r\n\t\t$this->oldvalue->setDbValue($rs->fields('oldvalue'));\r\n\t\t$this->newvalue->setDbValue($rs->fields('newvalue'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $planilla;\n\t\t$planilla->idPlanilla->setDbValue($rs->fields('idPlanilla'));\n\t\t$planilla->Nombre->setDbValue($rs->fields('Nombre'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $tbl_slide;\n\t\t$tbl_slide->banner_id->setDbValue($rs->fields('banner_id'));\n\t\t$tbl_slide->title->setDbValue($rs->fields('title'));\n\t\t$tbl_slide->images->Upload->DbValue = $rs->fields('images');\n\t\t$tbl_slide->description->setDbValue($rs->fields('description'));\n\t\t$tbl_slide->order_by->setDbValue($rs->fields('order_by'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->fbid->setDbValue($rs->fields('fbid'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->validated_mobile->setDbValue($rs->fields('validated_mobile'));\n\t\t$this->role_id->setDbValue($rs->fields('role_id'));\n\t\t$this->image->setDbValue($rs->fields('image'));\n\t\t$this->newsletter->setDbValue($rs->fields('newsletter'));\n\t\t$this->points->setDbValue($rs->fields('points'));\n\t\t$this->last_modified->setDbValue($rs->fields('last_modified'));\n\t\t$this->p2->setDbValue($rs->fields('p2'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $fs_multijoin_v;\r\n\t\t$fs_multijoin_v->id->setDbValue($rs->fields('id'));\r\n\t\t$fs_multijoin_v->mount->setDbValue($rs->fields('mount'));\r\n\t\t$fs_multijoin_v->path->setDbValue($rs->fields('path'));\r\n\t\t$fs_multijoin_v->parent->setDbValue($rs->fields('parent'));\r\n\t\t$fs_multijoin_v->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$fs_multijoin_v->name->setDbValue($rs->fields('name'));\r\n\t\t$fs_multijoin_v->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$fs_multijoin_v->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$fs_multijoin_v->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$fs_multijoin_v->type->setDbValue($rs->fields('type'));\r\n\t\t$fs_multijoin_v->CONTACT->setDbValue($rs->fields('CONTACT'));\r\n\t\t$fs_multijoin_v->CONTACT2->setDbValue($rs->fields('CONTACT2'));\r\n\t\t$fs_multijoin_v->RESCOMP->setDbValue($rs->fields('RESCOMP'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $scholarship_package;\n\t\t$scholarship_package->scholarship_package_id->setDbValue($rs->fields('scholarship_package_id'));\n\t\t$scholarship_package->start_date->setDbValue($rs->fields('start_date'));\n\t\t$scholarship_package->end_date->setDbValue($rs->fields('end_date'));\n\t\t$scholarship_package->status->setDbValue($rs->fields('status'));\n\t\t$scholarship_package->annual_amount->setDbValue($rs->fields('annual_amount'));\n\t\t$scholarship_package->grant_package_grant_package_id->setDbValue($rs->fields('grant_package_grant_package_id'));\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->setDbValue($rs->fields('sponsored_student_sponsored_student_id'));\n\t\t$scholarship_package->scholarship_type->setDbValue($rs->fields('scholarship_type'));\n\t\t$scholarship_package->scholarship_type_scholarship_type->setDbValue($rs->fields('scholarship_type_scholarship_type'));\n\t\t$scholarship_package->group_id->setDbValue($rs->fields('group_id'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $scholarship_package;\n\t\t$scholarship_package->scholarship_package_id->setDbValue($rs->fields('scholarship_package_id'));\n\t\t$scholarship_package->start_date->setDbValue($rs->fields('start_date'));\n\t\t$scholarship_package->end_date->setDbValue($rs->fields('end_date'));\n\t\t$scholarship_package->status->setDbValue($rs->fields('status'));\n\t\t$scholarship_package->annual_amount->setDbValue($rs->fields('annual_amount'));\n\t\t$scholarship_package->grant_package_grant_package_id->setDbValue($rs->fields('grant_package_grant_package_id'));\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->setDbValue($rs->fields('sponsored_student_sponsored_student_id'));\n\t\t$scholarship_package->scholarship_type->setDbValue($rs->fields('scholarship_type'));\n\t\t$scholarship_package->scholarship_type_scholarship_type->setDbValue($rs->fields('scholarship_type_scholarship_type'));\n\t\t$scholarship_package->group_id->setDbValue($rs->fields('group_id'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->spec_id->setDbValue($rs->fields('spec_id'));\n\t\t$this->model_id->setDbValue($rs->fields('model_id'));\n\t\t$this->title->setDbValue($rs->fields('title'));\n\t\t$this->description->setDbValue($rs->fields('description'));\n\t\t$this->s_order->setDbValue($rs->fields('s_order'));\n\t\t$this->status->setDbValue($rs->fields('status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $financial_year;\n\t\t$financial_year->financial_year_id->setDbValue($rs->fields('financial_year_id'));\n\t\t$financial_year->year_name->setDbValue($rs->fields('year_name'));\n\t\t$financial_year->date_start->setDbValue($rs->fields('date_start'));\n\t\t$financial_year->date_end->setDbValue($rs->fields('date_end'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->identries->setDbValue($rs->fields('identries'));\r\n\t\t$this->domain_id->setDbValue($rs->fields('domain_id'));\r\n\t\t$this->hash_content->setDbValue($rs->fields('hash_content'));\r\n\t\t$this->fuente->setDbValue($rs->fields('fuente'));\r\n\t\t$this->published->setDbValue($rs->fields('published'));\r\n\t\t$this->updated->setDbValue($rs->fields('updated'));\r\n\t\t$this->categorias->setDbValue($rs->fields('categorias'));\r\n\t\t$this->titulo->setDbValue($rs->fields('titulo'));\r\n\t\t$this->contenido->setDbValue($rs->fields('contenido'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->islive->setDbValue($rs->fields('islive'));\r\n\t\t$this->thumbnail->setDbValue($rs->fields('thumbnail'));\r\n\t\t$this->reqdate->setDbValue($rs->fields('reqdate'));\r\n\t\t$this->author->setDbValue($rs->fields('author'));\r\n\t\t$this->trans_en->setDbValue($rs->fields('trans_en'));\r\n\t\t$this->trans_es->setDbValue($rs->fields('trans_es'));\r\n\t\t$this->trans_fr->setDbValue($rs->fields('trans_fr'));\r\n\t\t$this->trans_it->setDbValue($rs->fields('trans_it'));\r\n\t\t$this->fid->setDbValue($rs->fields('fid'));\r\n\t\t$this->fmd5->setDbValue($rs->fields('fmd5'));\r\n\t\t$this->tool_id->setDbValue($rs->fields('tool_id'));\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->identries->setDbValue($rs->fields('identries'));\r\n\t\t$this->domain_id->setDbValue($rs->fields('domain_id'));\r\n\t\t$this->hash_content->setDbValue($rs->fields('hash_content'));\r\n\t\t$this->fuente->setDbValue($rs->fields('fuente'));\r\n\t\t$this->published->setDbValue($rs->fields('published'));\r\n\t\t$this->updated->setDbValue($rs->fields('updated'));\r\n\t\t$this->categorias->setDbValue($rs->fields('categorias'));\r\n\t\t$this->titulo->setDbValue($rs->fields('titulo'));\r\n\t\t$this->contenido->setDbValue($rs->fields('contenido'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->islive->setDbValue($rs->fields('islive'));\r\n\t\t$this->thumbnail->setDbValue($rs->fields('thumbnail'));\r\n\t\t$this->reqdate->setDbValue($rs->fields('reqdate'));\r\n\t\t$this->author->setDbValue($rs->fields('author'));\r\n\t\t$this->trans_en->setDbValue($rs->fields('trans_en'));\r\n\t\t$this->trans_es->setDbValue($rs->fields('trans_es'));\r\n\t\t$this->trans_fr->setDbValue($rs->fields('trans_fr'));\r\n\t\t$this->trans_it->setDbValue($rs->fields('trans_it'));\r\n\t\t$this->fid->setDbValue($rs->fields('fid'));\r\n\t\t$this->fmd5->setDbValue($rs->fields('fmd5'));\r\n\t\t$this->tool_id->setDbValue($rs->fields('tool_id'));\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $st_peserta_kelas_kelompok;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$st_peserta_kelas_kelompok->Row_Selected($row);\r\n\t\t$st_peserta_kelas_kelompok->identitas->setDbValue($rs->fields('identitas'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->setDbValue($rs->fields('kode_otomatis_kelompok'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $patient_detail;\n\t\t$patient_detail->DetailNo->setDbValue($rs->fields('DetailNo'));\n\t\t$patient_detail->StudyID->setDbValue($rs->fields('StudyID'));\n\t\t$patient_detail->PatientID->setDbValue($rs->fields('PatientID'));\n\t\t$patient_detail->StudyDate->setDbValue($rs->fields('StudyDate'));\n\t\t$patient_detail->ContentDate->setDbValue($rs->fields('ContentDate'));\n\t\t$patient_detail->StudyTime->setDbValue($rs->fields('StudyTime'));\n\t\t$patient_detail->ContentTime->setDbValue($rs->fields('ContentTime'));\n\t\t$patient_detail->InstitutionName->setDbValue($rs->fields('InstitutionName'));\n\t\t$patient_detail->InstitutionAddress->setDbValue($rs->fields('InstitutionAddress'));\n\t\t$patient_detail->InstitutionDepartmentName->setDbValue($rs->fields('InstitutionDepartmentName'));\n\t\t$patient_detail->Modality->setDbValue($rs->fields('Modality'));\n\t\t$patient_detail->OperatorName->setDbValue($rs->fields('OperatorName'));\n\t\t$patient_detail->Manufacturer->setDbValue($rs->fields('Manufacturer'));\n\t\t$patient_detail->BodyPartExamined->setDbValue($rs->fields('BodyPartExamined'));\n\t\t$patient_detail->ProtocolName->setDbValue($rs->fields('ProtocolName'));\n\t\t$patient_detail->AccessionNumber->setDbValue($rs->fields('AccessionNumber'));\n\t\t$patient_detail->InstanceNumber->setDbValue($rs->fields('InstanceNumber'));\n\t\t$patient_detail->Status->setDbValue($rs->fields('Status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $patient_detail;\n\t\t$patient_detail->DetailNo->setDbValue($rs->fields('DetailNo'));\n\t\t$patient_detail->StudyID->setDbValue($rs->fields('StudyID'));\n\t\t$patient_detail->PatientID->setDbValue($rs->fields('PatientID'));\n\t\t$patient_detail->StudyDate->setDbValue($rs->fields('StudyDate'));\n\t\t$patient_detail->ContentDate->setDbValue($rs->fields('ContentDate'));\n\t\t$patient_detail->StudyTime->setDbValue($rs->fields('StudyTime'));\n\t\t$patient_detail->ContentTime->setDbValue($rs->fields('ContentTime'));\n\t\t$patient_detail->InstitutionName->setDbValue($rs->fields('InstitutionName'));\n\t\t$patient_detail->InstitutionAddress->setDbValue($rs->fields('InstitutionAddress'));\n\t\t$patient_detail->InstitutionDepartmentName->setDbValue($rs->fields('InstitutionDepartmentName'));\n\t\t$patient_detail->Modality->setDbValue($rs->fields('Modality'));\n\t\t$patient_detail->OperatorName->setDbValue($rs->fields('OperatorName'));\n\t\t$patient_detail->Manufacturer->setDbValue($rs->fields('Manufacturer'));\n\t\t$patient_detail->BodyPartExamined->setDbValue($rs->fields('BodyPartExamined'));\n\t\t$patient_detail->ProtocolName->setDbValue($rs->fields('ProtocolName'));\n\t\t$patient_detail->AccessionNumber->setDbValue($rs->fields('AccessionNumber'));\n\t\t$patient_detail->InstanceNumber->setDbValue($rs->fields('InstanceNumber'));\n\t\t$patient_detail->Status->setDbValue($rs->fields('Status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->idservicio_medico_prestado->setDbValue($rs->fields('idservicio_medico_prestado'));\n\t\t$this->idcuenta->setDbValue($rs->fields('idcuenta'));\n\t\t$this->fecha_inicio->setDbValue($rs->fields('fecha_inicio'));\n\t\t$this->fecha_final->setDbValue($rs->fields('fecha_final'));\n\t\t$this->estado->setDbValue($rs->fields('estado'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->unid->setDbValue($row['unid']);\n\t\t$this->u_id->setDbValue($row['u_id']);\n\t\t$this->acl_id->setDbValue($row['acl_id']);\n\t\t$this->Title->setDbValue($row['Title']);\n\t\t$this->LV->setDbValue($row['LV']);\n\t\t$this->Type->setDbValue($row['Type']);\n\t\t$this->ResetTime->setDbValue($row['ResetTime']);\n\t\t$this->ResetType->setDbValue($row['ResetType']);\n\t\t$this->CompleteTask->setDbValue($row['CompleteTask']);\n\t\t$this->Occupation->setDbValue($row['Occupation']);\n\t\t$this->Target->setDbValue($row['Target']);\n\t\t$this->Data->setDbValue($row['Data']);\n\t\t$this->Reward_Gold->setDbValue($row['Reward_Gold']);\n\t\t$this->Reward_Diamonds->setDbValue($row['Reward_Diamonds']);\n\t\t$this->Reward_EXP->setDbValue($row['Reward_EXP']);\n\t\t$this->Reward_Goods->setDbValue($row['Reward_Goods']);\n\t\t$this->Info->setDbValue($row['Info']);\n\t\t$this->DATETIME->setDbValue($row['DATETIME']);\n\t}", "function LoadRowValues(&$rs) {\r\r\tglobal $ratings;\r\r\t$ratings->id->setDbValue($rs->fields('id'));\r\r\t$ratings->rating->setDbValue($rs->fields('rating'));\r\r\t$ratings->domain->setDbValue($rs->fields('domain'));\r\r\t$ratings->id_2->setDbValue($rs->fields('id_2'));\r\r}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\t$this->auc_date->setDbValue($row['auc_date']);\n\t\t$this->auc_number->setDbValue($row['auc_number']);\n\t\t$this->auc_place->setDbValue($row['auc_place']);\n\t\t$this->start_bid->setDbValue($row['start_bid']);\n\t\t$this->close_bid->setDbValue($row['close_bid']);\n\t\t$this->auc_notes->setDbValue($row['auc_notes']);\n\t\t$this->total_sack->setDbValue($row['total_sack']);\n\t\t$this->total_netto->setDbValue($row['total_netto']);\n\t\t$this->total_gross->setDbValue($row['total_gross']);\n\t\t$this->auc_status->setDbValue($row['auc_status']);\n\t\t$this->rate->setDbValue($row['rate']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $responsable;\n\t\t$responsable->idResponsable->setDbValue($rs->fields('idResponsable'));\n\t\t$responsable->idGerente->setDbValue($rs->fields('idGerente'));\n\t\t$responsable->idMer->setDbValue($rs->fields('idMer'));\n\t\t$responsable->fecha->setDbValue($rs->fields('fecha'));\n\t\t$responsable->habilitado->setDbValue($rs->fields('habilitado'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->period_id->setDbValue($rs->fields('period_id'));\n\t\t$this->person_id->setDbValue($rs->fields('person_id'));\n\t\t$this->tipejurnal_id->setDbValue($rs->fields('tipejurnal_id'));\n\t\t$this->nomer->setDbValue($rs->fields('nomer'));\n\t\t$this->createon->setDbValue($rs->fields('createon'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t}", "protected function loadRow() {}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Venta_Eq->setDbValue($rs->fields('Id_Venta_Eq'));\r\n\t\t$this->CLIENTE->setDbValue($rs->fields('CLIENTE'));\r\n\t\t$this->Id_Articulo->setDbValue($rs->fields('Id_Articulo'));\r\n\t\t$this->Acabado_eq->setDbValue($rs->fields('Acabado_eq'));\r\n\t\t$this->Num_IMEI->setDbValue($rs->fields('Num_IMEI'));\r\n\t\t$this->Num_ICCID->setDbValue($rs->fields('Num_ICCID'));\r\n\t\t$this->Num_CEL->setDbValue($rs->fields('Num_CEL'));\r\n\t\t$this->Causa->setDbValue($rs->fields('Causa'));\r\n\t\t$this->Con_SIM->setDbValue($rs->fields('Con_SIM'));\r\n\t\t$this->Observaciones->setDbValue($rs->fields('Observaciones'));\r\n\t\t$this->PrecioUnitario->setDbValue($rs->fields('PrecioUnitario'));\r\n\t\t$this->MontoDescuento->setDbValue($rs->fields('MontoDescuento'));\r\n\t\t$this->Precio_SIM->setDbValue($rs->fields('Precio_SIM'));\r\n\t\t$this->Monto->setDbValue($rs->fields('Monto'));\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t\t$this->auc_date->DbValue = $row['auc_date'];\n\t\t$this->auc_number->DbValue = $row['auc_number'];\n\t\t$this->auc_place->DbValue = $row['auc_place'];\n\t\t$this->start_bid->DbValue = $row['start_bid'];\n\t\t$this->close_bid->DbValue = $row['close_bid'];\n\t\t$this->auc_notes->DbValue = $row['auc_notes'];\n\t\t$this->total_sack->DbValue = $row['total_sack'];\n\t\t$this->total_netto->DbValue = $row['total_netto'];\n\t\t$this->total_gross->DbValue = $row['total_gross'];\n\t\t$this->auc_status->DbValue = $row['auc_status'];\n\t\t$this->rate->DbValue = $row['rate'];\n\t}", "function LoadRowValues(&$rs) {\n\tglobal $dpp_proveedores;\n\t$dpp_proveedores->provee_id->setDbValue($rs->fields('provee_id'));\n\t$dpp_proveedores->provee_rut->setDbValue($rs->fields('provee_rut'));\n\t$dpp_proveedores->provee_dig->setDbValue($rs->fields('provee_dig'));\n\t$dpp_proveedores->provee_cat_juri->setDbValue($rs->fields('provee_cat_juri'));\n\t$dpp_proveedores->provee_nombre->setDbValue($rs->fields('provee_nombre'));\n\t$dpp_proveedores->provee_paterno->setDbValue($rs->fields('provee_paterno'));\n\t$dpp_proveedores->provee_materno->setDbValue($rs->fields('provee_materno'));\n\t$dpp_proveedores->provee_dir->setDbValue($rs->fields('provee_dir'));\n\t$dpp_proveedores->provee_fono->setDbValue($rs->fields('provee_fono'));\n}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->id_admission->setDbValue($rs->fields('id_admission'));\n\t\t$this->nomr->setDbValue($rs->fields('nomr'));\n\t\t$this->statusbayar->setDbValue($rs->fields('statusbayar'));\n\t\t$this->kelas->setDbValue($rs->fields('kelas'));\n\t\t$this->tanggal->setDbValue($rs->fields('tanggal'));\n\t\t$this->kode_tindakan->setDbValue($rs->fields('kode_tindakan'));\n\t\t$this->qty->setDbValue($rs->fields('qty'));\n\t\t$this->tarif->setDbValue($rs->fields('tarif'));\n\t\t$this->bhp->setDbValue($rs->fields('bhp'));\n\t\t$this->user->setDbValue($rs->fields('user'));\n\t\t$this->nama_tindakan->setDbValue($rs->fields('nama_tindakan'));\n\t\t$this->kelompok_tindakan->setDbValue($rs->fields('kelompok_tindakan'));\n\t\t$this->kelompok1->setDbValue($rs->fields('kelompok1'));\n\t\t$this->kelompok2->setDbValue($rs->fields('kelompok2'));\n\t\t$this->kode_dokter->setDbValue($rs->fields('kode_dokter'));\n\t\t$this->no_ruang->setDbValue($rs->fields('no_ruang'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $t_tinbai_mainsite;\n\t\t$t_tinbai_mainsite->PK_TINBAI_ID->setDbValue($rs->fields('PK_TINBAI_ID'));\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->setDbValue($rs->fields('FK_CONGTY_ID'));\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->setDbValue($rs->fields('FK_DMGIOITHIEU_ID'));\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->setDbValue($rs->fields('FK_DMTUYENSINH_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->setDbValue($rs->fields('FK_DTSVTUONGLAI_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->setDbValue($rs->fields('FK_DTSVDANGHOC_ID'));\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->setDbValue($rs->fields('FK_DTCUUSV_ID'));\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->setDbValue($rs->fields('FK_DTDOANHNGHIEP_ID'));\n\t\t$t_tinbai_mainsite->C_TITLE->setDbValue($rs->fields('C_TITLE'));\n\t\t$t_tinbai_mainsite->C_SUMARY->setDbValue($rs->fields('C_SUMARY'));\n\t\t$t_tinbai_mainsite->C_CONTENTS->setDbValue($rs->fields('C_CONTENTS'));\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->setDbValue($rs->fields('C_HIT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_PIC_HIT->Upload->DbValue = $rs->fields('C_PIC_HIT');\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->setDbValue($rs->fields('C_NEW_MYSEFLT'));\n\t\t$t_tinbai_mainsite->C_PIC_MYSEFLT->Upload->DbValue = $rs->fields('C_PIC_MYSEFLT');\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->setDbValue($rs->fields('C_COMMENT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->setDbValue($rs->fields('C_ORDER_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->setDbValue($rs->fields('C_STATUS_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->setDbValue($rs->fields('C_VISITOR_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->setDbValue($rs->fields('C_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->setDbValue($rs->fields('C_TIME_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->setDbValue($rs->fields('FK_NGUOIDUNGID_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_NOTE->setDbValue($rs->fields('C_NOTE'));\n\t\t$t_tinbai_mainsite->C_USER_ADD->setDbValue($rs->fields('C_USER_ADD'));\n\t\t$t_tinbai_mainsite->C_ADD_TIME->setDbValue($rs->fields('C_ADD_TIME'));\n\t\t$t_tinbai_mainsite->C_USER_EDIT->setDbValue($rs->fields('C_USER_EDIT'));\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->setDbValue($rs->fields('C_EDIT_TIME'));\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->setDbValue($rs->fields('FK_EDITOR_ID'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->nombre_contacto->setDbValue($row['nombre_contacto']);\n\t\t$this->name->setDbValue($row['name']);\n\t\t$this->lastname->setDbValue($row['lastname']);\n\t\t$this->_email->setDbValue($row['email']);\n\t\t$this->address->setDbValue($row['address']);\n\t\t$this->phone->setDbValue($row['phone']);\n\t\t$this->cell->setDbValue($row['cell']);\n\t\t$this->is_active->setDbValue($row['is_active']);\n\t\t$this->created_at->setDbValue($row['created_at']);\n\t\t$this->id_sucursal->setDbValue($row['id_sucursal']);\n\t\t$this->documentos->setDbValue($row['documentos']);\n\t\t$this->DateModified->setDbValue($row['DateModified']);\n\t\t$this->DateDeleted->setDbValue($row['DateDeleted']);\n\t\t$this->CreatedBy->setDbValue($row['CreatedBy']);\n\t\t$this->ModifiedBy->setDbValue($row['ModifiedBy']);\n\t\t$this->DeletedBy->setDbValue($row['DeletedBy']);\n\t\t$this->latitud->setDbValue($row['latitud']);\n\t\t$this->longitud->setDbValue($row['longitud']);\n\t\t$this->tipoinmueble->setDbValue($row['tipoinmueble']);\n\t\t$this->id_ciudad_inmueble->setDbValue($row['id_ciudad_inmueble']);\n\t\t$this->id_provincia_inmueble->setDbValue($row['id_provincia_inmueble']);\n\t\t$this->imagen_inmueble01->Upload->DbValue = $row['imagen_inmueble01'];\n\t\tif (is_array($this->imagen_inmueble01->Upload->DbValue) || is_object($this->imagen_inmueble01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble01->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble01->Upload->DbValue);\n\t\t$this->imagen_inmueble02->Upload->DbValue = $row['imagen_inmueble02'];\n\t\tif (is_array($this->imagen_inmueble02->Upload->DbValue) || is_object($this->imagen_inmueble02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble02->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble02->Upload->DbValue);\n\t\t$this->imagen_inmueble03->Upload->DbValue = $row['imagen_inmueble03'];\n\t\tif (is_array($this->imagen_inmueble03->Upload->DbValue) || is_object($this->imagen_inmueble03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble03->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble03->Upload->DbValue);\n\t\t$this->imagen_inmueble04->Upload->DbValue = $row['imagen_inmueble04'];\n\t\tif (is_array($this->imagen_inmueble04->Upload->DbValue) || is_object($this->imagen_inmueble04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble04->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble04->Upload->DbValue);\n\t\t$this->imagen_inmueble05->Upload->DbValue = $row['imagen_inmueble05'];\n\t\tif (is_array($this->imagen_inmueble05->Upload->DbValue) || is_object($this->imagen_inmueble05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble05->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble05->Upload->DbValue);\n\t\t$this->imagen_inmueble06->Upload->DbValue = $row['imagen_inmueble06'];\n\t\tif (is_array($this->imagen_inmueble06->Upload->DbValue) || is_object($this->imagen_inmueble06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble06->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble06->Upload->DbValue);\n\t\t$this->imagen_inmueble07->Upload->DbValue = $row['imagen_inmueble07'];\n\t\tif (is_array($this->imagen_inmueble07->Upload->DbValue) || is_object($this->imagen_inmueble07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble07->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble07->Upload->DbValue);\n\t\t$this->imagen_inmueble08->Upload->DbValue = $row['imagen_inmueble08'];\n\t\tif (is_array($this->imagen_inmueble08->Upload->DbValue) || is_object($this->imagen_inmueble08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble08->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble08->Upload->DbValue);\n\t\t$this->tipovehiculo->setDbValue($row['tipovehiculo']);\n\t\t$this->id_ciudad_vehiculo->setDbValue($row['id_ciudad_vehiculo']);\n\t\t$this->id_provincia_vehiculo->setDbValue($row['id_provincia_vehiculo']);\n\t\t$this->imagen_vehiculo01->Upload->DbValue = $row['imagen_vehiculo01'];\n\t\tif (is_array($this->imagen_vehiculo01->Upload->DbValue) || is_object($this->imagen_vehiculo01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo01->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo01->Upload->DbValue);\n\t\t$this->imagen_vehiculo02->Upload->DbValue = $row['imagen_vehiculo02'];\n\t\tif (is_array($this->imagen_vehiculo02->Upload->DbValue) || is_object($this->imagen_vehiculo02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo02->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo02->Upload->DbValue);\n\t\t$this->imagen_vehiculo03->Upload->DbValue = $row['imagen_vehiculo03'];\n\t\tif (is_array($this->imagen_vehiculo03->Upload->DbValue) || is_object($this->imagen_vehiculo03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo03->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo03->Upload->DbValue);\n\t\t$this->imagen_vehiculo04->Upload->DbValue = $row['imagen_vehiculo04'];\n\t\tif (is_array($this->imagen_vehiculo04->Upload->DbValue) || is_object($this->imagen_vehiculo04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo04->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo04->Upload->DbValue);\n\t\t$this->imagen_vehiculo05->Upload->DbValue = $row['imagen_vehiculo05'];\n\t\tif (is_array($this->imagen_vehiculo05->Upload->DbValue) || is_object($this->imagen_vehiculo05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo05->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo05->Upload->DbValue);\n\t\t$this->imagen_vehiculo06->Upload->DbValue = $row['imagen_vehiculo06'];\n\t\tif (is_array($this->imagen_vehiculo06->Upload->DbValue) || is_object($this->imagen_vehiculo06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo06->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo06->Upload->DbValue);\n\t\t$this->imagen_vehiculo07->Upload->DbValue = $row['imagen_vehiculo07'];\n\t\tif (is_array($this->imagen_vehiculo07->Upload->DbValue) || is_object($this->imagen_vehiculo07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo07->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo07->Upload->DbValue);\n\t\t$this->imagen_vehiculo08->Upload->DbValue = $row['imagen_vehiculo08'];\n\t\tif (is_array($this->imagen_vehiculo08->Upload->DbValue) || is_object($this->imagen_vehiculo08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo08->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo08->Upload->DbValue);\n\t\t$this->tipomaquinaria->setDbValue($row['tipomaquinaria']);\n\t\t$this->id_ciudad_maquinaria->setDbValue($row['id_ciudad_maquinaria']);\n\t\t$this->id_provincia_maquinaria->setDbValue($row['id_provincia_maquinaria']);\n\t\t$this->imagen_maquinaria01->Upload->DbValue = $row['imagen_maquinaria01'];\n\t\tif (is_array($this->imagen_maquinaria01->Upload->DbValue) || is_object($this->imagen_maquinaria01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria01->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria01->Upload->DbValue);\n\t\t$this->imagen_maquinaria02->Upload->DbValue = $row['imagen_maquinaria02'];\n\t\tif (is_array($this->imagen_maquinaria02->Upload->DbValue) || is_object($this->imagen_maquinaria02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria02->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria02->Upload->DbValue);\n\t\t$this->imagen_maquinaria03->Upload->DbValue = $row['imagen_maquinaria03'];\n\t\tif (is_array($this->imagen_maquinaria03->Upload->DbValue) || is_object($this->imagen_maquinaria03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria03->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria03->Upload->DbValue);\n\t\t$this->imagen_maquinaria04->Upload->DbValue = $row['imagen_maquinaria04'];\n\t\tif (is_array($this->imagen_maquinaria04->Upload->DbValue) || is_object($this->imagen_maquinaria04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria04->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria04->Upload->DbValue);\n\t\t$this->imagen_maquinaria05->Upload->DbValue = $row['imagen_maquinaria05'];\n\t\tif (is_array($this->imagen_maquinaria05->Upload->DbValue) || is_object($this->imagen_maquinaria05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria05->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria05->Upload->DbValue);\n\t\t$this->imagen_maquinaria06->Upload->DbValue = $row['imagen_maquinaria06'];\n\t\tif (is_array($this->imagen_maquinaria06->Upload->DbValue) || is_object($this->imagen_maquinaria06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria06->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria06->Upload->DbValue);\n\t\t$this->imagen_maquinaria07->Upload->DbValue = $row['imagen_maquinaria07'];\n\t\tif (is_array($this->imagen_maquinaria07->Upload->DbValue) || is_object($this->imagen_maquinaria07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria07->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria07->Upload->DbValue);\n\t\t$this->imagen_maquinaria08->Upload->DbValue = $row['imagen_maquinaria08'];\n\t\tif (is_array($this->imagen_maquinaria08->Upload->DbValue) || is_object($this->imagen_maquinaria08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria08->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria08->Upload->DbValue);\n\t\t$this->tipomercaderia->setDbValue($row['tipomercaderia']);\n\t\t$this->imagen_mercaderia01->Upload->DbValue = $row['imagen_mercaderia01'];\n\t\tif (is_array($this->imagen_mercaderia01->Upload->DbValue) || is_object($this->imagen_mercaderia01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_mercaderia01->Upload->DbValue = ew_BytesToStr($this->imagen_mercaderia01->Upload->DbValue);\n\t\t$this->documento_mercaderia->setDbValue($row['documento_mercaderia']);\n\t\t$this->tipoespecial->setDbValue($row['tipoespecial']);\n\t\t$this->imagen_tipoespecial01->Upload->DbValue = $row['imagen_tipoespecial01'];\n\t\tif (is_array($this->imagen_tipoespecial01->Upload->DbValue) || is_object($this->imagen_tipoespecial01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_tipoespecial01->Upload->DbValue = ew_BytesToStr($this->imagen_tipoespecial01->Upload->DbValue);\n\t\t$this->email_contacto->setDbValue($row['email_contacto']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->idfb_posts->setDbValue($rs->fields('idfb_posts'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->created_time->setDbValue($rs->fields('created_time'));\r\n\t\t$this->actions->setDbValue($rs->fields('actions'));\r\n\t\t$this->icon->setDbValue($rs->fields('icon'));\r\n\t\t$this->is_published->setDbValue($rs->fields('is_published'));\r\n\t\t$this->message->setDbValue($rs->fields('message'));\r\n\t\t$this->link->setDbValue($rs->fields('link'));\r\n\t\t$this->object_id->setDbValue($rs->fields('object_id'));\r\n\t\t$this->picture->setDbValue($rs->fields('picture'));\r\n\t\t$this->privacy->setDbValue($rs->fields('privacy'));\r\n\t\t$this->promotion_status->setDbValue($rs->fields('promotion_status'));\r\n\t\t$this->timeline_visibility->setDbValue($rs->fields('timeline_visibility'));\r\n\t\t$this->type->setDbValue($rs->fields('type'));\r\n\t\t$this->updated_time->setDbValue($rs->fields('updated_time'));\r\n\t\t$this->caption->setDbValue($rs->fields('caption'));\r\n\t\t$this->description->setDbValue($rs->fields('description'));\r\n\t\t$this->name->setDbValue($rs->fields('name'));\r\n\t\t$this->source->setDbValue($rs->fields('source'));\r\n\t\t$this->from->setDbValue($rs->fields('from'));\r\n\t\t$this->to->setDbValue($rs->fields('to'));\r\n\t\t$this->comments->setDbValue($rs->fields('comments'));\r\n\t\t$this->id_grupo->setDbValue($rs->fields('id_grupo'));\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->period_id->DbValue = $row['period_id'];\n\t\t$this->person_id->DbValue = $row['person_id'];\n\t\t$this->tipejurnal_id->DbValue = $row['tipejurnal_id'];\n\t\t$this->nomer->DbValue = $row['nomer'];\n\t\t$this->createon->DbValue = $row['createon'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $selection_grade_point;\n\t\t$selection_grade_point->selection_grade_points_id->setDbValue($rs->fields('selection_grade_points_id'));\n\t\t$selection_grade_point->grade_point->setDbValue($rs->fields('grade_point'));\n\t\t$selection_grade_point->min_grade->setDbValue($rs->fields('min_grade'));\n\t\t$selection_grade_point->max_grade->setDbValue($rs->fields('max_grade'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->unid->setDbValue($row['unid']);\n\t\t$this->u_id->setDbValue($row['u_id']);\n\t\t$this->acl_id->setDbValue($row['acl_id']);\n\t\t$this->Name->setDbValue($row['Name']);\n\t\t$this->Basics->setDbValue($row['Basics']);\n\t\t$this->HP->setDbValue($row['HP']);\n\t\t$this->MP->setDbValue($row['MP']);\n\t\t$this->AD->setDbValue($row['AD']);\n\t\t$this->AP->setDbValue($row['AP']);\n\t\t$this->Defense->setDbValue($row['Defense']);\n\t\t$this->Hit->setDbValue($row['Hit']);\n\t\t$this->Dodge->setDbValue($row['Dodge']);\n\t\t$this->Crit->setDbValue($row['Crit']);\n\t\t$this->AbsorbHP->setDbValue($row['AbsorbHP']);\n\t\t$this->ADPTV->setDbValue($row['ADPTV']);\n\t\t$this->ADPTR->setDbValue($row['ADPTR']);\n\t\t$this->APPTR->setDbValue($row['APPTR']);\n\t\t$this->APPTV->setDbValue($row['APPTV']);\n\t\t$this->ImmuneDamage->setDbValue($row['ImmuneDamage']);\n\t\t$this->Intro->setDbValue($row['Intro']);\n\t\t$this->ExclusiveSkills->setDbValue($row['ExclusiveSkills']);\n\t\t$this->TransferDemand->setDbValue($row['TransferDemand']);\n\t\t$this->TransferLevel->setDbValue($row['TransferLevel']);\n\t\t$this->FormerOccupation->setDbValue($row['FormerOccupation']);\n\t\t$this->Belong->setDbValue($row['Belong']);\n\t\t$this->AttackEffect->setDbValue($row['AttackEffect']);\n\t\t$this->AttackTips->setDbValue($row['AttackTips']);\n\t\t$this->MagicResistance->setDbValue($row['MagicResistance']);\n\t\t$this->IgnoreShield->setDbValue($row['IgnoreShield']);\n\t\t$this->DATETIME->setDbValue($row['DATETIME']);\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->idservicio_medico_prestado->DbValue = $row['idservicio_medico_prestado'];\n\t\t$this->idcuenta->DbValue = $row['idcuenta'];\n\t\t$this->fecha_inicio->DbValue = $row['fecha_inicio'];\n\t\t$this->fecha_final->DbValue = $row['fecha_final'];\n\t\t$this->estado->DbValue = $row['estado'];\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\t$this->master_id->setDbValue($row['master_id']);\n\t\t$this->lot_number->setDbValue($row['lot_number']);\n\t\t$this->chop->setDbValue($row['chop']);\n\t\t$this->estate->setDbValue($row['estate']);\n\t\t$this->grade->setDbValue($row['grade']);\n\t\t$this->jenis->setDbValue($row['jenis']);\n\t\t$this->sack->setDbValue($row['sack']);\n\t\t$this->netto->setDbValue($row['netto']);\n\t\t$this->gross->setDbValue($row['gross']);\n\t\t$this->open_bid->setDbValue($row['open_bid']);\n\t\t$this->currency->setDbValue($row['currency']);\n\t\t$this->bid_step->setDbValue($row['bid_step']);\n\t\t$this->rate->setDbValue($row['rate']);\n\t\t$this->winner_id->setDbValue($row['winner_id']);\n\t\t$this->sold_bid->setDbValue($row['sold_bid']);\n\t\t$this->proforma_number->setDbValue($row['proforma_number']);\n\t\t$this->proforma_amount->setDbValue($row['proforma_amount']);\n\t\t$this->proforma_status->setDbValue($row['proforma_status']);\n\t\t$this->auction_status->setDbValue($row['auction_status']);\n\t\t$this->enter_bid->setDbValue($row['enter_bid']);\n\t\t$this->last_bid->setDbValue($row['last_bid']);\n\t\t$this->highest_bid->setDbValue($row['highest_bid']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Pase->setDbValue($rs->fields('Id_Pase'));\r\n\t\t$this->Serie_Equipo->setDbValue($rs->fields('Serie_Equipo'));\r\n\t\t$this->Id_Hardware->setDbValue($rs->fields('Id_Hardware'));\r\n\t\t$this->SN->setDbValue($rs->fields('SN'));\r\n\t\t$this->Modelo_Net->setDbValue($rs->fields('Modelo_Net'));\r\n\t\t$this->Marca_Arranque->setDbValue($rs->fields('Marca_Arranque'));\r\n\t\t$this->Nombre_Titular->setDbValue($rs->fields('Nombre_Titular'));\r\n\t\t$this->Dni_Titular->setDbValue($rs->fields('Dni_Titular'));\r\n\t\t$this->Cuil_Titular->setDbValue($rs->fields('Cuil_Titular'));\r\n\t\t$this->Nombre_Tutor->setDbValue($rs->fields('Nombre_Tutor'));\r\n\t\t$this->DniTutor->setDbValue($rs->fields('DniTutor'));\r\n\t\t$this->Domicilio->setDbValue($rs->fields('Domicilio'));\r\n\t\t$this->Tel_Tutor->setDbValue($rs->fields('Tel_Tutor'));\r\n\t\t$this->CelTutor->setDbValue($rs->fields('CelTutor'));\r\n\t\t$this->Cue_Establecimiento_Alta->setDbValue($rs->fields('Cue_Establecimiento_Alta'));\r\n\t\t$this->Escuela_Alta->setDbValue($rs->fields('Escuela_Alta'));\r\n\t\t$this->Directivo_Alta->setDbValue($rs->fields('Directivo_Alta'));\r\n\t\t$this->Cuil_Directivo_Alta->setDbValue($rs->fields('Cuil_Directivo_Alta'));\r\n\t\t$this->Dpto_Esc_alta->setDbValue($rs->fields('Dpto_Esc_alta'));\r\n\t\t$this->Localidad_Esc_Alta->setDbValue($rs->fields('Localidad_Esc_Alta'));\r\n\t\t$this->Domicilio_Esc_Alta->setDbValue($rs->fields('Domicilio_Esc_Alta'));\r\n\t\t$this->Rte_Alta->setDbValue($rs->fields('Rte_Alta'));\r\n\t\t$this->Tel_Rte_Alta->setDbValue($rs->fields('Tel_Rte_Alta'));\r\n\t\t$this->Email_Rte_Alta->setDbValue($rs->fields('Email_Rte_Alta'));\r\n\t\t$this->Serie_Server_Alta->setDbValue($rs->fields('Serie_Server_Alta'));\r\n\t\t$this->Cue_Establecimiento_Baja->setDbValue($rs->fields('Cue_Establecimiento_Baja'));\r\n\t\t$this->Escuela_Baja->setDbValue($rs->fields('Escuela_Baja'));\r\n\t\t$this->Directivo_Baja->setDbValue($rs->fields('Directivo_Baja'));\r\n\t\t$this->Cuil_Directivo_Baja->setDbValue($rs->fields('Cuil_Directivo_Baja'));\r\n\t\t$this->Dpto_Esc_Baja->setDbValue($rs->fields('Dpto_Esc_Baja'));\r\n\t\t$this->Localidad_Esc_Baja->setDbValue($rs->fields('Localidad_Esc_Baja'));\r\n\t\t$this->Domicilio_Esc_Baja->setDbValue($rs->fields('Domicilio_Esc_Baja'));\r\n\t\t$this->Rte_Baja->setDbValue($rs->fields('Rte_Baja'));\r\n\t\t$this->Tel_Rte_Baja->setDbValue($rs->fields('Tel_Rte_Baja'));\r\n\t\t$this->Email_Rte_Baja->setDbValue($rs->fields('Email_Rte_Baja'));\r\n\t\t$this->Serie_Server_Baja->setDbValue($rs->fields('Serie_Server_Baja'));\r\n\t\t$this->Fecha_Pase->setDbValue($rs->fields('Fecha_Pase'));\r\n\t\t$this->Id_Estado_Pase->setDbValue($rs->fields('Id_Estado_Pase'));\r\n\t\t$this->Ruta_Archivo->Upload->DbValue = $rs->fields('Ruta_Archivo');\r\n\t\t$this->Ruta_Archivo->CurrentValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $rekeningju;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$rekeningju->Row_Selected($row);\r\n\t\t$rekeningju->NoRek->setDbValue($rs->fields('NoRek'));\r\n\t\t$rekeningju->Keterangan->setDbValue($rs->fields('Keterangan'));\r\n\t\t$rekeningju->debet->setDbValue($rs->fields('debet'));\r\n\t\t$rekeningju->kredit->setDbValue($rs->fields('kredit'));\r\n\t\t$rekeningju->kode_bukti->setDbValue($rs->fields('kode_bukti'));\r\n\t\t$rekeningju->tanggal->setDbValue($rs->fields('tanggal'));\r\n\t\t$rekeningju->kode_otomatis_master->setDbValue($rs->fields('kode_otomatis_master'));\r\n\t\t$rekeningju->tanggal_nota->setDbValue($rs->fields('tanggal_nota'));\r\n\t\t$rekeningju->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t\t$rekeningju->kode_otomatis_tingkat->setDbValue($rs->fields('kode_otomatis_tingkat'));\r\n\t\t$rekeningju->id->setDbValue($rs->fields('id'));\r\n\t\t$rekeningju->apakah_original->setDbValue($rs->fields('apakah_original'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->companyname->setDbValue($rs->fields('companyname'));\n\t\t$this->servicetime->setDbValue($rs->fields('servicetime'));\n\t\t$this->country->setDbValue($rs->fields('country'));\n\t\t$this->phone->setDbValue($rs->fields('phone'));\n\t\t$this->skype->setDbValue($rs->fields('skype'));\n\t\t$this->website->setDbValue($rs->fields('website'));\n\t\t$this->linkedin->setDbValue($rs->fields('linkedin'));\n\t\t$this->facebook->setDbValue($rs->fields('facebook'));\n\t\t$this->twitter->setDbValue($rs->fields('twitter'));\n\t\t$this->active_code->setDbValue($rs->fields('active_code'));\n\t\t$this->identification->setDbValue($rs->fields('identification'));\n\t\t$this->link_expired->setDbValue($rs->fields('link_expired'));\n\t\t$this->isactive->setDbValue($rs->fields('isactive'));\n\t\t$this->pio->setDbValue($rs->fields('pio'));\n\t\t$this->google->setDbValue($rs->fields('google'));\n\t\t$this->instagram->setDbValue($rs->fields('instagram'));\n\t\t$this->account_type->setDbValue($rs->fields('account_type'));\n\t\t$this->logo->setDbValue($rs->fields('logo'));\n\t\t$this->profilepic->setDbValue($rs->fields('profilepic'));\n\t\t$this->mailref->setDbValue($rs->fields('mailref'));\n\t\t$this->deleted->setDbValue($rs->fields('deleted'));\n\t\t$this->deletefeedback->setDbValue($rs->fields('deletefeedback'));\n\t\t$this->account_id->setDbValue($rs->fields('account_id'));\n\t\t$this->start_date->setDbValue($rs->fields('start_date'));\n\t\t$this->end_date->setDbValue($rs->fields('end_date'));\n\t\t$this->year_moth->setDbValue($rs->fields('year_moth'));\n\t\t$this->registerdate->setDbValue($rs->fields('registerdate'));\n\t\t$this->login_type->setDbValue($rs->fields('login_type'));\n\t\t$this->accountstatus->setDbValue($rs->fields('accountstatus'));\n\t\t$this->ispay->setDbValue($rs->fields('ispay'));\n\t\t$this->profilelink->setDbValue($rs->fields('profilelink'));\n\t\t$this->source->setDbValue($rs->fields('source'));\n\t\t$this->agree->setDbValue($rs->fields('agree'));\n\t\t$this->balance->setDbValue($rs->fields('balance'));\n\t\t$this->job_title->setDbValue($rs->fields('job_title'));\n\t\t$this->projects->setDbValue($rs->fields('projects'));\n\t\t$this->opportunities->setDbValue($rs->fields('opportunities'));\n\t\t$this->isconsaltant->setDbValue($rs->fields('isconsaltant'));\n\t\t$this->isagent->setDbValue($rs->fields('isagent'));\n\t\t$this->isinvestor->setDbValue($rs->fields('isinvestor'));\n\t\t$this->isbusinessman->setDbValue($rs->fields('isbusinessman'));\n\t\t$this->isprovider->setDbValue($rs->fields('isprovider'));\n\t\t$this->isproductowner->setDbValue($rs->fields('isproductowner'));\n\t\t$this->states->setDbValue($rs->fields('states'));\n\t\t$this->cities->setDbValue($rs->fields('cities'));\n\t\t$this->offers->setDbValue($rs->fields('offers'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->companyname->setDbValue($rs->fields('companyname'));\n\t\t$this->servicetime->setDbValue($rs->fields('servicetime'));\n\t\t$this->country->setDbValue($rs->fields('country'));\n\t\t$this->phone->setDbValue($rs->fields('phone'));\n\t\t$this->skype->setDbValue($rs->fields('skype'));\n\t\t$this->website->setDbValue($rs->fields('website'));\n\t\t$this->linkedin->setDbValue($rs->fields('linkedin'));\n\t\t$this->facebook->setDbValue($rs->fields('facebook'));\n\t\t$this->twitter->setDbValue($rs->fields('twitter'));\n\t\t$this->active_code->setDbValue($rs->fields('active_code'));\n\t\t$this->identification->setDbValue($rs->fields('identification'));\n\t\t$this->link_expired->setDbValue($rs->fields('link_expired'));\n\t\t$this->isactive->setDbValue($rs->fields('isactive'));\n\t\t$this->pio->setDbValue($rs->fields('pio'));\n\t\t$this->google->setDbValue($rs->fields('google'));\n\t\t$this->instagram->setDbValue($rs->fields('instagram'));\n\t\t$this->account_type->setDbValue($rs->fields('account_type'));\n\t\t$this->logo->setDbValue($rs->fields('logo'));\n\t\t$this->profilepic->setDbValue($rs->fields('profilepic'));\n\t\t$this->mailref->setDbValue($rs->fields('mailref'));\n\t\t$this->deleted->setDbValue($rs->fields('deleted'));\n\t\t$this->deletefeedback->setDbValue($rs->fields('deletefeedback'));\n\t\t$this->account_id->setDbValue($rs->fields('account_id'));\n\t\t$this->start_date->setDbValue($rs->fields('start_date'));\n\t\t$this->end_date->setDbValue($rs->fields('end_date'));\n\t\t$this->year_moth->setDbValue($rs->fields('year_moth'));\n\t\t$this->registerdate->setDbValue($rs->fields('registerdate'));\n\t\t$this->login_type->setDbValue($rs->fields('login_type'));\n\t\t$this->accountstatus->setDbValue($rs->fields('accountstatus'));\n\t\t$this->ispay->setDbValue($rs->fields('ispay'));\n\t\t$this->profilelink->setDbValue($rs->fields('profilelink'));\n\t\t$this->source->setDbValue($rs->fields('source'));\n\t\t$this->agree->setDbValue($rs->fields('agree'));\n\t\t$this->balance->setDbValue($rs->fields('balance'));\n\t\t$this->job_title->setDbValue($rs->fields('job_title'));\n\t\t$this->projects->setDbValue($rs->fields('projects'));\n\t\t$this->opportunities->setDbValue($rs->fields('opportunities'));\n\t\t$this->isconsaltant->setDbValue($rs->fields('isconsaltant'));\n\t\t$this->isagent->setDbValue($rs->fields('isagent'));\n\t\t$this->isinvestor->setDbValue($rs->fields('isinvestor'));\n\t\t$this->isbusinessman->setDbValue($rs->fields('isbusinessman'));\n\t\t$this->isprovider->setDbValue($rs->fields('isprovider'));\n\t\t$this->isproductowner->setDbValue($rs->fields('isproductowner'));\n\t\t$this->states->setDbValue($rs->fields('states'));\n\t\t$this->cities->setDbValue($rs->fields('cities'));\n\t\t$this->offers->setDbValue($rs->fields('offers'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->fecha_tamizaje->setDbValue($row['fecha_tamizaje']);\n\t\t$this->id_centro->setDbValue($row['id_centro']);\n\t\t$this->apellidopaterno->setDbValue($row['apellidopaterno']);\n\t\t$this->apellidomaterno->setDbValue($row['apellidomaterno']);\n\t\t$this->nombre->setDbValue($row['nombre']);\n\t\t$this->ci->setDbValue($row['ci']);\n\t\t$this->fecha_nacimiento->setDbValue($row['fecha_nacimiento']);\n\t\t$this->dias->setDbValue($row['dias']);\n\t\t$this->semanas->setDbValue($row['semanas']);\n\t\t$this->meses->setDbValue($row['meses']);\n\t\t$this->sexo->setDbValue($row['sexo']);\n\t\t$this->discapacidad->setDbValue($row['discapacidad']);\n\t\t$this->id_tipodiscapacidad->setDbValue($row['id_tipodiscapacidad']);\n\t\t$this->resultado->setDbValue($row['resultado']);\n\t\t$this->resultadotamizaje->setDbValue($row['resultadotamizaje']);\n\t\t$this->tapon->setDbValue($row['tapon']);\n\t\t$this->tipo->setDbValue($row['tipo']);\n\t\t$this->repetirprueba->setDbValue($row['repetirprueba']);\n\t\t$this->observaciones->setDbValue($row['observaciones']);\n\t\t$this->id_apoderado->setDbValue($row['id_apoderado']);\n\t\tif (array_key_exists('EV__id_apoderado', $rs->fields)) {\n\t\t\t$this->id_apoderado->VirtualValue = $rs->fields('EV__id_apoderado'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->id_apoderado->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->id_referencia->setDbValue($row['id_referencia']);\n\t\tif (array_key_exists('EV__id_referencia', $rs->fields)) {\n\t\t\t$this->id_referencia->VirtualValue = $rs->fields('EV__id_referencia'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->id_referencia->VirtualValue = \"\"; // Clear value\n\t\t}\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Proveedor->setDbValue($rs->fields('Id_Proveedor'));\r\n\t\t$this->RazonSocial->setDbValue($rs->fields('RazonSocial'));\r\n\t\t$this->RFC->setDbValue($rs->fields('RFC'));\r\n\t\t$this->NombreContacto->setDbValue($rs->fields('NombreContacto'));\r\n\t\t$this->CalleYNumero->setDbValue($rs->fields('CalleYNumero'));\r\n\t\t$this->Colonia->setDbValue($rs->fields('Colonia'));\r\n\t\t$this->Poblacion->setDbValue($rs->fields('Poblacion'));\r\n\t\t$this->Municipio_Delegacion->setDbValue($rs->fields('Municipio_Delegacion'));\r\n\t\t$this->Id_Estado->setDbValue($rs->fields('Id_Estado'));\r\n\t\t$this->CP->setDbValue($rs->fields('CP'));\r\n\t\t$this->_EMail->setDbValue($rs->fields('EMail'));\r\n\t\t$this->Telefonos->setDbValue($rs->fields('Telefonos'));\r\n\t\t$this->Celular->setDbValue($rs->fields('Celular'));\r\n\t\t$this->Fax->setDbValue($rs->fields('Fax'));\r\n\t\t$this->Banco->setDbValue($rs->fields('Banco'));\r\n\t\t$this->NumCuenta->setDbValue($rs->fields('NumCuenta'));\r\n\t\t$this->CLABE->setDbValue($rs->fields('CLABE'));\r\n\t\t$this->Maneja_Papeleta->setDbValue($rs->fields('Maneja_Papeleta'));\r\n\t\t$this->Observaciones->setDbValue($rs->fields('Observaciones'));\r\n\t\t$this->Maneja_Activacion_Movi->setDbValue($rs->fields('Maneja_Activacion_Movi'));\r\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->replid->setDbValue($row['replid']);\n\t\t$this->nama->setDbValue($row['nama']);\n\t\t$this->besar->setDbValue($row['besar']);\n\t\t$this->idkategori->setDbValue($row['idkategori']);\n\t\t$this->rekkas->setDbValue($row['rekkas']);\n\t\t$this->rekpendapatan->setDbValue($row['rekpendapatan']);\n\t\t$this->rekpiutang->setDbValue($row['rekpiutang']);\n\t\t$this->aktif->setDbValue($row['aktif']);\n\t\t$this->keterangan->setDbValue($row['keterangan']);\n\t\t$this->departemen->setDbValue($row['departemen']);\n\t\t$this->info1->setDbValue($row['info1']);\n\t\t$this->info2->setDbValue($row['info2']);\n\t\t$this->info3->setDbValue($row['info3']);\n\t\t$this->ts->setDbValue($row['ts']);\n\t\t$this->token->setDbValue($row['token']);\n\t\t$this->issync->setDbValue($row['issync']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id_admission->setDbValue($rs->fields('id_admission'));\n\t\t$this->nomr->setDbValue($rs->fields('nomr'));\n\t\t$this->ket_nama->setDbValue($rs->fields('ket_nama'));\n\t\t$this->ket_tgllahir->setDbValue($rs->fields('ket_tgllahir'));\n\t\t$this->ket_alamat->setDbValue($rs->fields('ket_alamat'));\n\t\t$this->ket_jeniskelamin->setDbValue($rs->fields('ket_jeniskelamin'));\n\t\t$this->ket_title->setDbValue($rs->fields('ket_title'));\n\t\t$this->dokterpengirim->setDbValue($rs->fields('dokterpengirim'));\n\t\t$this->statusbayar->setDbValue($rs->fields('statusbayar'));\n\t\t$this->kirimdari->setDbValue($rs->fields('kirimdari'));\n\t\t$this->keluargadekat->setDbValue($rs->fields('keluargadekat'));\n\t\t$this->panggungjawab->setDbValue($rs->fields('panggungjawab'));\n\t\t$this->masukrs->setDbValue($rs->fields('masukrs'));\n\t\t$this->noruang->setDbValue($rs->fields('noruang'));\n\t\t$this->tempat_tidur_id->setDbValue($rs->fields('tempat_tidur_id'));\n\t\t$this->nott->setDbValue($rs->fields('nott'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->dokter_penanggungjawab->setDbValue($rs->fields('dokter_penanggungjawab'));\n\t\t$this->KELASPERAWATAN_ID->setDbValue($rs->fields('KELASPERAWATAN_ID'));\n\t\t$this->NO_SKP->setDbValue($rs->fields('NO_SKP'));\n\t\t$this->sep_tglsep->setDbValue($rs->fields('sep_tglsep'));\n\t\t$this->sep_tglrujuk->setDbValue($rs->fields('sep_tglrujuk'));\n\t\t$this->sep_kodekelasrawat->setDbValue($rs->fields('sep_kodekelasrawat'));\n\t\t$this->sep_norujukan->setDbValue($rs->fields('sep_norujukan'));\n\t\t$this->sep_kodeppkasal->setDbValue($rs->fields('sep_kodeppkasal'));\n\t\t$this->sep_namappkasal->setDbValue($rs->fields('sep_namappkasal'));\n\t\t$this->sep_kodeppkpelayanan->setDbValue($rs->fields('sep_kodeppkpelayanan'));\n\t\t$this->sep_jenisperawatan->setDbValue($rs->fields('sep_jenisperawatan'));\n\t\t$this->sep_catatan->setDbValue($rs->fields('sep_catatan'));\n\t\t$this->sep_kodediagnosaawal->setDbValue($rs->fields('sep_kodediagnosaawal'));\n\t\t$this->sep_namadiagnosaawal->setDbValue($rs->fields('sep_namadiagnosaawal'));\n\t\t$this->sep_lakalantas->setDbValue($rs->fields('sep_lakalantas'));\n\t\t$this->sep_lokasilaka->setDbValue($rs->fields('sep_lokasilaka'));\n\t\t$this->sep_user->setDbValue($rs->fields('sep_user'));\n\t\t$this->sep_flag_cekpeserta->setDbValue($rs->fields('sep_flag_cekpeserta'));\n\t\t$this->sep_flag_generatesep->setDbValue($rs->fields('sep_flag_generatesep'));\n\t\t$this->sep_nik->setDbValue($rs->fields('sep_nik'));\n\t\t$this->sep_namapeserta->setDbValue($rs->fields('sep_namapeserta'));\n\t\t$this->sep_jeniskelamin->setDbValue($rs->fields('sep_jeniskelamin'));\n\t\t$this->sep_pisat->setDbValue($rs->fields('sep_pisat'));\n\t\t$this->sep_tgllahir->setDbValue($rs->fields('sep_tgllahir'));\n\t\t$this->sep_kodejeniskepesertaan->setDbValue($rs->fields('sep_kodejeniskepesertaan'));\n\t\t$this->sep_namajeniskepesertaan->setDbValue($rs->fields('sep_namajeniskepesertaan'));\n\t\t$this->sep_nokabpjs->setDbValue($rs->fields('sep_nokabpjs'));\n\t\t$this->sep_status_peserta->setDbValue($rs->fields('sep_status_peserta'));\n\t\t$this->sep_umur_pasien_sekarang->setDbValue($rs->fields('sep_umur_pasien_sekarang'));\n\t\t$this->statuskeluarranap_id->setDbValue($rs->fields('statuskeluarranap_id'));\n\t\t$this->keluarrs->setDbValue($rs->fields('keluarrs'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Supplier_ID->setDbValue($rs->fields('Supplier_ID'));\n\t\t$this->Supplier_Number->setDbValue($rs->fields('Supplier_Number'));\n\t\t$this->Supplier_Name->setDbValue($rs->fields('Supplier_Name'));\n\t\t$this->Address->setDbValue($rs->fields('Address'));\n\t\t$this->City->setDbValue($rs->fields('City'));\n\t\t$this->Country->setDbValue($rs->fields('Country'));\n\t\t$this->Contact_Person->setDbValue($rs->fields('Contact_Person'));\n\t\t$this->Phone_Number->setDbValue($rs->fields('Phone_Number'));\n\t\t$this->_Email->setDbValue($rs->fields('Email'));\n\t\t$this->Mobile_Number->setDbValue($rs->fields('Mobile_Number'));\n\t\t$this->Notes->setDbValue($rs->fields('Notes'));\n\t\t$this->Balance->setDbValue($rs->fields('Balance'));\n\t\t$this->Is_Stock_Available->setDbValue($rs->fields('Is_Stock_Available'));\n\t\t$this->Date_Added->setDbValue($rs->fields('Date_Added'));\n\t\t$this->Added_By->setDbValue($rs->fields('Added_By'));\n\t\t$this->Date_Updated->setDbValue($rs->fields('Date_Updated'));\n\t\t$this->Updated_By->setDbValue($rs->fields('Updated_By'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->id_sector->setDbValue($row['id_sector']);\n\t\t$this->id_actividad->setDbValue($row['id_actividad']);\n\t\t$this->id_categoria->setDbValue($row['id_categoria']);\n\t\t$this->apellidopaterno->setDbValue($row['apellidopaterno']);\n\t\t$this->apellidomaterno->setDbValue($row['apellidomaterno']);\n\t\t$this->nombre->setDbValue($row['nombre']);\n\t\t$this->fecha_nacimiento->setDbValue($row['fecha_nacimiento']);\n\t\t$this->sexo->setDbValue($row['sexo']);\n\t\t$this->ci->setDbValue($row['ci']);\n\t\t$this->nrodiscapacidad->setDbValue($row['nrodiscapacidad']);\n\t\t$this->celular->setDbValue($row['celular']);\n\t\t$this->direcciondomicilio->setDbValue($row['direcciondomicilio']);\n\t\t$this->ocupacion->setDbValue($row['ocupacion']);\n\t\t$this->_email->setDbValue($row['email']);\n\t\t$this->cargo->setDbValue($row['cargo']);\n\t\t$this->nivelestudio->setDbValue($row['nivelestudio']);\n\t\t$this->id_institucion->setDbValue($row['id_institucion']);\n\t\t$this->observaciones->setDbValue($row['observaciones']);\n\t\t$this->id_centro->setDbValue($row['id_centro']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->pegawai_id->setDbValue($rs->fields('pegawai_id'));\n\t\t$this->tgl_shift->setDbValue($rs->fields('tgl_shift'));\n\t\t$this->khusus_lembur->setDbValue($rs->fields('khusus_lembur'));\n\t\t$this->khusus_extra->setDbValue($rs->fields('khusus_extra'));\n\t\t$this->temp_id_auto->setDbValue($rs->fields('temp_id_auto'));\n\t\t$this->jdw_kerja_m_id->setDbValue($rs->fields('jdw_kerja_m_id'));\n\t\t$this->jk_id->setDbValue($rs->fields('jk_id'));\n\t\t$this->jns_dok->setDbValue($rs->fields('jns_dok'));\n\t\t$this->izin_jenis_id->setDbValue($rs->fields('izin_jenis_id'));\n\t\t$this->cuti_n_id->setDbValue($rs->fields('cuti_n_id'));\n\t\t$this->libur_umum->setDbValue($rs->fields('libur_umum'));\n\t\t$this->libur_rutin->setDbValue($rs->fields('libur_rutin'));\n\t\t$this->jk_ot->setDbValue($rs->fields('jk_ot'));\n\t\t$this->scan_in->setDbValue($rs->fields('scan_in'));\n\t\t$this->att_id_in->setDbValue($rs->fields('att_id_in'));\n\t\t$this->late_permission->setDbValue($rs->fields('late_permission'));\n\t\t$this->late_minute->setDbValue($rs->fields('late_minute'));\n\t\t$this->late->setDbValue($rs->fields('late'));\n\t\t$this->break_out->setDbValue($rs->fields('break_out'));\n\t\t$this->att_id_break1->setDbValue($rs->fields('att_id_break1'));\n\t\t$this->break_in->setDbValue($rs->fields('break_in'));\n\t\t$this->att_id_break2->setDbValue($rs->fields('att_id_break2'));\n\t\t$this->break_minute->setDbValue($rs->fields('break_minute'));\n\t\t$this->break->setDbValue($rs->fields('break'));\n\t\t$this->break_ot_minute->setDbValue($rs->fields('break_ot_minute'));\n\t\t$this->break_ot->setDbValue($rs->fields('break_ot'));\n\t\t$this->early_permission->setDbValue($rs->fields('early_permission'));\n\t\t$this->early_minute->setDbValue($rs->fields('early_minute'));\n\t\t$this->early->setDbValue($rs->fields('early'));\n\t\t$this->scan_out->setDbValue($rs->fields('scan_out'));\n\t\t$this->att_id_out->setDbValue($rs->fields('att_id_out'));\n\t\t$this->durasi_minute->setDbValue($rs->fields('durasi_minute'));\n\t\t$this->durasi->setDbValue($rs->fields('durasi'));\n\t\t$this->durasi_eot_minute->setDbValue($rs->fields('durasi_eot_minute'));\n\t\t$this->jk_count_as->setDbValue($rs->fields('jk_count_as'));\n\t\t$this->status_jk->setDbValue($rs->fields('status_jk'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $filesystem;\r\n\t\t$filesystem->id->setDbValue($rs->fields('id'));\r\n\t\t$filesystem->mount->setDbValue($rs->fields('mount'));\r\n\t\t$filesystem->path->setDbValue($rs->fields('path'));\r\n\t\t$filesystem->parent->setDbValue($rs->fields('parent'));\r\n\t\t$filesystem->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$filesystem->gid->setDbValue($rs->fields('gid'));\r\n\t\t$filesystem->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$filesystem->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$filesystem->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$filesystem->type->setDbValue($rs->fields('type'));\r\n\t\t$filesystem->contact->setDbValue($rs->fields('contact'));\r\n\t\t$filesystem->contact2->setDbValue($rs->fields('contact2'));\r\n\t\t$filesystem->rescomp->setDbValue($rs->fields('rescomp'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $archv_finished;\n\t\t$archv_finished->ID->setDbValue($rs->fields('ID'));\n\t\t$archv_finished->strjrfnum->setDbValue($rs->fields('strjrfnum'));\n\t\t$archv_finished->strquarter->setDbValue($rs->fields('strquarter'));\n\t\t$archv_finished->strmon->setDbValue($rs->fields('strmon'));\n\t\t$archv_finished->stryear->setDbValue($rs->fields('stryear'));\n\t\t$archv_finished->strdate->setDbValue($rs->fields('strdate'));\n\t\t$archv_finished->strtime->setDbValue($rs->fields('strtime'));\n\t\t$archv_finished->strusername->setDbValue($rs->fields('strusername'));\n\t\t$archv_finished->strusereadd->setDbValue($rs->fields('strusereadd'));\n\t\t$archv_finished->strcompany->setDbValue($rs->fields('strcompany'));\n\t\t$archv_finished->strdepartment->setDbValue($rs->fields('strdepartment'));\n\t\t$archv_finished->strloc->setDbValue($rs->fields('strloc'));\n\t\t$archv_finished->strposition->setDbValue($rs->fields('strposition'));\n\t\t$archv_finished->strtelephone->setDbValue($rs->fields('strtelephone'));\n\t\t$archv_finished->strcostcent->setDbValue($rs->fields('strcostcent'));\n\t\t$archv_finished->strsubject->setDbValue($rs->fields('strsubject'));\n\t\t$archv_finished->strnature->setDbValue($rs->fields('strnature'));\n\t\t$archv_finished->strdescript->setDbValue($rs->fields('strdescript'));\n\t\t$archv_finished->strarea->setDbValue($rs->fields('strarea'));\n\t\t$archv_finished->strattach->setDbValue($rs->fields('strattach'));\n\t\t$archv_finished->strpriority->setDbValue($rs->fields('strpriority'));\n\t\t$archv_finished->strduedate->setDbValue($rs->fields('strduedate'));\n\t\t$archv_finished->strstatus->setDbValue($rs->fields('strstatus'));\n\t\t$archv_finished->strlastedit->setDbValue($rs->fields('strlastedit'));\n\t\t$archv_finished->strcategory->setDbValue($rs->fields('strcategory'));\n\t\t$archv_finished->strassigned->setDbValue($rs->fields('strassigned'));\n\t\t$archv_finished->strdatecomplete->setDbValue($rs->fields('strdatecomplete'));\n\t\t$archv_finished->strwithpr->setDbValue($rs->fields('strwithpr'));\n\t\t$archv_finished->strremarks->setDbValue($rs->fields('strremarks'));\n\t\t$archv_finished->sap_num->setDbValue($rs->fields('sap_num'));\n\t\t$archv_finished->work_days->setDbValue($rs->fields('work_days'));\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->rid->setDbValue($rs->fields('rid'));\n\t\t$this->usn->setDbValue($rs->fields('usn'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->sc1->setDbValue($rs->fields('sc1'));\n\t\t$this->s1->setDbValue($rs->fields('s1'));\n\t\t$this->sc2->setDbValue($rs->fields('sc2'));\n\t\t$this->s2->setDbValue($rs->fields('s2'));\n\t\t$this->sc3->setDbValue($rs->fields('sc3'));\n\t\t$this->s3->setDbValue($rs->fields('s3'));\n\t\t$this->sc4->setDbValue($rs->fields('sc4'));\n\t\t$this->s4->setDbValue($rs->fields('s4'));\n\t\t$this->sc5->setDbValue($rs->fields('sc5'));\n\t\t$this->s5->setDbValue($rs->fields('s5'));\n\t\t$this->sc6->setDbValue($rs->fields('sc6'));\n\t\t$this->s6->setDbValue($rs->fields('s6'));\n\t\t$this->sc7->setDbValue($rs->fields('sc7'));\n\t\t$this->s7->setDbValue($rs->fields('s7'));\n\t\t$this->sc8->setDbValue($rs->fields('sc8'));\n\t\t$this->s8->setDbValue($rs->fields('s8'));\n\t\t$this->total->setDbValue($rs->fields('total'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Supplier_ID->DbValue = $row['Supplier_ID'];\n\t\t$this->Supplier_Number->DbValue = $row['Supplier_Number'];\n\t\t$this->Supplier_Name->DbValue = $row['Supplier_Name'];\n\t\t$this->Address->DbValue = $row['Address'];\n\t\t$this->City->DbValue = $row['City'];\n\t\t$this->Country->DbValue = $row['Country'];\n\t\t$this->Contact_Person->DbValue = $row['Contact_Person'];\n\t\t$this->Phone_Number->DbValue = $row['Phone_Number'];\n\t\t$this->_Email->DbValue = $row['Email'];\n\t\t$this->Mobile_Number->DbValue = $row['Mobile_Number'];\n\t\t$this->Notes->DbValue = $row['Notes'];\n\t\t$this->Balance->DbValue = $row['Balance'];\n\t\t$this->Is_Stock_Available->DbValue = $row['Is_Stock_Available'];\n\t\t$this->Date_Added->DbValue = $row['Date_Added'];\n\t\t$this->Added_By->DbValue = $row['Added_By'];\n\t\t$this->Date_Updated->DbValue = $row['Date_Updated'];\n\t\t$this->Updated_By->DbValue = $row['Updated_By'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->IDXDAFTAR->setDbValue($rs->fields('IDXDAFTAR'));\n\t\t$this->NOMR->setDbValue($rs->fields('NOMR'));\n\t\t$this->KDPOLY->setDbValue($rs->fields('KDPOLY'));\n\t\t$this->KDCARABAYAR->setDbValue($rs->fields('KDCARABAYAR'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->TGLREG->setDbValue($rs->fields('TGLREG'));\n\t\t$this->JAMREG->setDbValue($rs->fields('JAMREG'));\n\t\t$this->NO_SJP->setDbValue($rs->fields('NO_SJP'));\n\t\t$this->NOKARTU->setDbValue($rs->fields('NOKARTU'));\n\t\t$this->TANGGAL_SEP->setDbValue($rs->fields('TANGGAL_SEP'));\n\t\t$this->TANGGALRUJUK_SEP->setDbValue($rs->fields('TANGGALRUJUK_SEP'));\n\t\t$this->KELASRAWAT_SEP->setDbValue($rs->fields('KELASRAWAT_SEP'));\n\t\t$this->NORUJUKAN_SEP->setDbValue($rs->fields('NORUJUKAN_SEP'));\n\t\t$this->PPKPELAYANAN_SEP->setDbValue($rs->fields('PPKPELAYANAN_SEP'));\n\t\t$this->JENISPERAWATAN_SEP->setDbValue($rs->fields('JENISPERAWATAN_SEP'));\n\t\t$this->CATATAN_SEP->setDbValue($rs->fields('CATATAN_SEP'));\n\t\t$this->DIAGNOSAAWAL_SEP->setDbValue($rs->fields('DIAGNOSAAWAL_SEP'));\n\t\t$this->NAMADIAGNOSA_SEP->setDbValue($rs->fields('NAMADIAGNOSA_SEP'));\n\t\t$this->LAKALANTAS_SEP->setDbValue($rs->fields('LAKALANTAS_SEP'));\n\t\t$this->LOKASILAKALANTAS->setDbValue($rs->fields('LOKASILAKALANTAS'));\n\t\t$this->USER->setDbValue($rs->fields('USER'));\n\t\t$this->generate_sep->setDbValue($rs->fields('generate_sep'));\n\t\t$this->PESERTANIK_SEP->setDbValue($rs->fields('PESERTANIK_SEP'));\n\t\t$this->PESERTANAMA_SEP->setDbValue($rs->fields('PESERTANAMA_SEP'));\n\t\t$this->PESERTAJENISKELAMIN_SEP->setDbValue($rs->fields('PESERTAJENISKELAMIN_SEP'));\n\t\t$this->PESERTANAMAKELAS_SEP->setDbValue($rs->fields('PESERTANAMAKELAS_SEP'));\n\t\t$this->PESERTAPISAT->setDbValue($rs->fields('PESERTAPISAT'));\n\t\t$this->PESERTATGLLAHIR->setDbValue($rs->fields('PESERTATGLLAHIR'));\n\t\t$this->PESERTAJENISPESERTA_SEP->setDbValue($rs->fields('PESERTAJENISPESERTA_SEP'));\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->setDbValue($rs->fields('PESERTANAMAJENISPESERTA_SEP'));\n\t\t$this->POLITUJUAN_SEP->setDbValue($rs->fields('POLITUJUAN_SEP'));\n\t\t$this->NAMAPOLITUJUAN_SEP->setDbValue($rs->fields('NAMAPOLITUJUAN_SEP'));\n\t\t$this->KDPPKRUJUKAN_SEP->setDbValue($rs->fields('KDPPKRUJUKAN_SEP'));\n\t\t$this->NMPPKRUJUKAN_SEP->setDbValue($rs->fields('NMPPKRUJUKAN_SEP'));\n\t\t$this->mapingtransaksi->setDbValue($rs->fields('mapingtransaksi'));\n\t\t$this->bridging_kepesertaan_by_no_ka->setDbValue($rs->fields('bridging_kepesertaan_by_no_ka'));\n\t\t$this->pasien_NOTELP->setDbValue($rs->fields('pasien_NOTELP'));\n\t\t$this->penjamin_kkl_id->setDbValue($rs->fields('penjamin_kkl_id'));\n\t\t$this->asalfaskesrujukan_id->setDbValue($rs->fields('asalfaskesrujukan_id'));\n\t\t$this->peserta_cob->setDbValue($rs->fields('peserta_cob'));\n\t\t$this->poli_eksekutif->setDbValue($rs->fields('poli_eksekutif'));\n\t\t$this->status_kepesertaan_BPJS->setDbValue($rs->fields('status_kepesertaan_BPJS'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Nro_Serie->setDbValue($rs->fields('Nro_Serie'));\r\n\t\t$this->SN->setDbValue($rs->fields('SN'));\r\n\t\t$this->Cant_Net_Asoc->setDbValue($rs->fields('Cant_Net_Asoc'));\r\n\t\t$this->Id_Marca->setDbValue($rs->fields('Id_Marca'));\r\n\t\t$this->Id_Modelo->setDbValue($rs->fields('Id_Modelo'));\r\n\t\t$this->Id_SO->setDbValue($rs->fields('Id_SO'));\r\n\t\t$this->Id_Estado->setDbValue($rs->fields('Id_Estado'));\r\n\t\t$this->User_Server->setDbValue($rs->fields('User_Server'));\r\n\t\t$this->Pass_Server->setDbValue($rs->fields('Pass_Server'));\r\n\t\t$this->User_TdServer->setDbValue($rs->fields('User_TdServer'));\r\n\t\t$this->Pass_TdServer->setDbValue($rs->fields('Pass_TdServer'));\r\n\t\t$this->Cue->setDbValue($rs->fields('Cue'));\r\n\t\t$this->Fecha_Actualizacion->setDbValue($rs->fields('Fecha_Actualizacion'));\r\n\t\t$this->Usuario->setDbValue($rs->fields('Usuario'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->empleado_id->setDbValue($rs->fields('empleado_id'));\n\t\t$this->codigo->setDbValue($rs->fields('codigo'));\n\t\t$this->cui->setDbValue($rs->fields('cui'));\n\t\t$this->nombre->setDbValue($rs->fields('nombre'));\n\t\t$this->apellido->setDbValue($rs->fields('apellido'));\n\t\t$this->direccion->setDbValue($rs->fields('direccion'));\n\t\t$this->departamento_origen_id->setDbValue($rs->fields('departamento_origen_id'));\n\t\t$this->municipio_id->setDbValue($rs->fields('municipio_id'));\n\t\t$this->telefono_residencia->setDbValue($rs->fields('telefono_residencia'));\n\t\t$this->telefono_celular->setDbValue($rs->fields('telefono_celular'));\n\t\t$this->fecha_nacimiento->setDbValue($rs->fields('fecha_nacimiento'));\n\t\t$this->nacionalidad->setDbValue($rs->fields('nacionalidad'));\n\t\t$this->estado_civil->setDbValue($rs->fields('estado_civil'));\n\t\t$this->sexo->setDbValue($rs->fields('sexo'));\n\t\t$this->igss->setDbValue($rs->fields('igss'));\n\t\t$this->nit->setDbValue($rs->fields('nit'));\n\t\t$this->licencia_conducir->setDbValue($rs->fields('licencia_conducir'));\n\t\t$this->area_id->setDbValue($rs->fields('area_id'));\n\t\t$this->departmento_id->setDbValue($rs->fields('departmento_id'));\n\t\t$this->seccion_id->setDbValue($rs->fields('seccion_id'));\n\t\t$this->puesto_id->setDbValue($rs->fields('puesto_id'));\n\t\t$this->observaciones->setDbValue($rs->fields('observaciones'));\n\t\t$this->tipo_sangre_id->setDbValue($rs->fields('tipo_sangre_id'));\n\t\t$this->estado->setDbValue($rs->fields('estado'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->unid->DbValue = $row['unid'];\n\t\t$this->u_id->DbValue = $row['u_id'];\n\t\t$this->acl_id->DbValue = $row['acl_id'];\n\t\t$this->Title->DbValue = $row['Title'];\n\t\t$this->LV->DbValue = $row['LV'];\n\t\t$this->Type->DbValue = $row['Type'];\n\t\t$this->ResetTime->DbValue = $row['ResetTime'];\n\t\t$this->ResetType->DbValue = $row['ResetType'];\n\t\t$this->CompleteTask->DbValue = $row['CompleteTask'];\n\t\t$this->Occupation->DbValue = $row['Occupation'];\n\t\t$this->Target->DbValue = $row['Target'];\n\t\t$this->Data->DbValue = $row['Data'];\n\t\t$this->Reward_Gold->DbValue = $row['Reward_Gold'];\n\t\t$this->Reward_Diamonds->DbValue = $row['Reward_Diamonds'];\n\t\t$this->Reward_EXP->DbValue = $row['Reward_EXP'];\n\t\t$this->Reward_Goods->DbValue = $row['Reward_Goods'];\n\t\t$this->Info->DbValue = $row['Info'];\n\t\t$this->DATETIME->DbValue = $row['DATETIME'];\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->gjd_id->setDbValue($rs->fields('gjd_id'));\n\t\t$this->gjm_id->setDbValue($rs->fields('gjm_id'));\n\t\t$this->peg_id->setDbValue($rs->fields('peg_id'));\n\t\t$this->b_mn->setDbValue($rs->fields('b_mn'));\n\t\t$this->b_sn->setDbValue($rs->fields('b_sn'));\n\t\t$this->b_sl->setDbValue($rs->fields('b_sl'));\n\t\t$this->b_rb->setDbValue($rs->fields('b_rb'));\n\t\t$this->b_km->setDbValue($rs->fields('b_km'));\n\t\t$this->b_jm->setDbValue($rs->fields('b_jm'));\n\t\t$this->b_sb->setDbValue($rs->fields('b_sb'));\n\t\t$this->l_mn->setDbValue($rs->fields('l_mn'));\n\t\t$this->l_sn->setDbValue($rs->fields('l_sn'));\n\t\t$this->l_sl->setDbValue($rs->fields('l_sl'));\n\t\t$this->l_rb->setDbValue($rs->fields('l_rb'));\n\t\t$this->l_km->setDbValue($rs->fields('l_km'));\n\t\t$this->l_jm->setDbValue($rs->fields('l_jm'));\n\t\t$this->l_sb->setDbValue($rs->fields('l_sb'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->tanggal->setDbValue($row['tanggal']);\n\t\t$this->auc_number->setDbValue($row['auc_number']);\n\t\t$this->start_bid->setDbValue($row['start_bid']);\n\t\t$this->close_bid->setDbValue($row['close_bid']);\n\t\t$this->lot_number->setDbValue($row['lot_number']);\n\t\t$this->chop->setDbValue($row['chop']);\n\t\t$this->grade->setDbValue($row['grade']);\n\t\t$this->estate->setDbValue($row['estate']);\n\t\t$this->sack->setDbValue($row['sack']);\n\t\t$this->netto->setDbValue($row['netto']);\n\t\t$this->open_bid->setDbValue($row['open_bid']);\n\t\t$this->last_bid->setDbValue($row['last_bid']);\n\t\t$this->highest_bid->setDbValue($row['highest_bid']);\n\t\t$this->enter_bid->setDbValue($row['enter_bid']);\n\t\t$this->auction_status->setDbValue($row['auction_status']);\n\t\t$this->gross->setDbValue($row['gross']);\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\tif (!isset($GLOBALS[\"v_bid_histories_admin_grid\"])) $GLOBALS[\"v_bid_histories_admin_grid\"] = new cv_bid_histories_admin_grid;\n\t\t$sDetailFilter = $GLOBALS[\"v_bid_histories_admin\"]->SqlDetailFilter_v_auction_list_admin();\n\t\t$sDetailFilter = str_replace(\"@master_id@\", ew_AdjustSql($this->row_id->DbValue, \"DB\"), $sDetailFilter);\n\t\t$GLOBALS[\"v_bid_histories_admin\"]->setCurrentMasterTable(\"v_auction_list_admin\");\n\t\t$sDetailFilter = $GLOBALS[\"v_bid_histories_admin\"]->ApplyUserIDFilters($sDetailFilter);\n\t\t$this->v_bid_histories_admin_Count = $GLOBALS[\"v_bid_histories_admin\"]->LoadRecordCount($sDetailFilter);\n\t}", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->fecha->setDbValue($rs->fields('fecha'));\n\t\t$this->hora->setDbValue($rs->fields('hora'));\n\t\t$this->audio->setDbValue($rs->fields('audio'));\n\t\t$this->st->setDbValue($rs->fields('st'));\n\t\t$this->fechaHoraIni->setDbValue($rs->fields('fechaHoraIni'));\n\t\t$this->fechaHoraFin->setDbValue($rs->fields('fechaHoraFin'));\n\t\t$this->telefono->setDbValue($rs->fields('telefono'));\n\t\t$this->agente->setDbValue($rs->fields('agente'));\n\t\t$this->fechabo->setDbValue($rs->fields('fechabo'));\n\t\t$this->agentebo->setDbValue($rs->fields('agentebo'));\n\t\t$this->comentariosbo->setDbValue($rs->fields('comentariosbo'));\n\t\t$this->IP->setDbValue($rs->fields('IP'));\n\t\t$this->actual->setDbValue($rs->fields('actual'));\n\t\t$this->completado->setDbValue($rs->fields('completado'));\n\t\t$this->_2_1_R->setDbValue($rs->fields('2_1_R'));\n\t\t$this->_2_2_R->setDbValue($rs->fields('2_2_R'));\n\t\t$this->_2_3_R->setDbValue($rs->fields('2_3_R'));\n\t\t$this->_3_4_R->setDbValue($rs->fields('3_4_R'));\n\t\t$this->_4_5_R->setDbValue($rs->fields('4_5_R'));\n\t\t$this->_4_6_R->setDbValue($rs->fields('4_6_R'));\n\t\t$this->_4_7_R->setDbValue($rs->fields('4_7_R'));\n\t\t$this->_4_8_R->setDbValue($rs->fields('4_8_R'));\n\t\t$this->_5_9_R->setDbValue($rs->fields('5_9_R'));\n\t\t$this->_5_10_R->setDbValue($rs->fields('5_10_R'));\n\t\t$this->_5_11_R->setDbValue($rs->fields('5_11_R'));\n\t\t$this->_5_12_R->setDbValue($rs->fields('5_12_R'));\n\t\t$this->_5_13_R->setDbValue($rs->fields('5_13_R'));\n\t\t$this->_5_14_R->setDbValue($rs->fields('5_14_R'));\n\t\t$this->_5_51_R->setDbValue($rs->fields('5_51_R'));\n\t\t$this->_6_15_R->setDbValue($rs->fields('6_15_R'));\n\t\t$this->_6_16_R->setDbValue($rs->fields('6_16_R'));\n\t\t$this->_6_17_R->setDbValue($rs->fields('6_17_R'));\n\t\t$this->_6_18_R->setDbValue($rs->fields('6_18_R'));\n\t\t$this->_6_19_R->setDbValue($rs->fields('6_19_R'));\n\t\t$this->_6_20_R->setDbValue($rs->fields('6_20_R'));\n\t\t$this->_6_52_R->setDbValue($rs->fields('6_52_R'));\n\t\t$this->_7_21_R->setDbValue($rs->fields('7_21_R'));\n\t\t$this->_8_22_R->setDbValue($rs->fields('8_22_R'));\n\t\t$this->_8_23_R->setDbValue($rs->fields('8_23_R'));\n\t\t$this->_8_24_R->setDbValue($rs->fields('8_24_R'));\n\t\t$this->_8_25_R->setDbValue($rs->fields('8_25_R'));\n\t\t$this->_9_26_R->setDbValue($rs->fields('9_26_R'));\n\t\t$this->_9_27_R->setDbValue($rs->fields('9_27_R'));\n\t\t$this->_9_28_R->setDbValue($rs->fields('9_28_R'));\n\t\t$this->_9_29_R->setDbValue($rs->fields('9_29_R'));\n\t\t$this->_9_30_R->setDbValue($rs->fields('9_30_R'));\n\t\t$this->_9_31_R->setDbValue($rs->fields('9_31_R'));\n\t\t$this->_9_32_R->setDbValue($rs->fields('9_32_R'));\n\t\t$this->_9_33_R->setDbValue($rs->fields('9_33_R'));\n\t\t$this->_9_34_R->setDbValue($rs->fields('9_34_R'));\n\t\t$this->_9_35_R->setDbValue($rs->fields('9_35_R'));\n\t\t$this->_9_36_R->setDbValue($rs->fields('9_36_R'));\n\t\t$this->_9_37_R->setDbValue($rs->fields('9_37_R'));\n\t\t$this->_9_38_R->setDbValue($rs->fields('9_38_R'));\n\t\t$this->_9_39_R->setDbValue($rs->fields('9_39_R'));\n\t\t$this->_10_40_R->setDbValue($rs->fields('10_40_R'));\n\t\t$this->_10_41_R->setDbValue($rs->fields('10_41_R'));\n\t\t$this->_11_42_R->setDbValue($rs->fields('11_42_R'));\n\t\t$this->_11_43_R->setDbValue($rs->fields('11_43_R'));\n\t\t$this->_12_44_R->setDbValue($rs->fields('12_44_R'));\n\t\t$this->_12_45_R->setDbValue($rs->fields('12_45_R'));\n\t\t$this->_12_46_R->setDbValue($rs->fields('12_46_R'));\n\t\t$this->_12_47_R->setDbValue($rs->fields('12_47_R'));\n\t\t$this->_12_48_R->setDbValue($rs->fields('12_48_R'));\n\t\t$this->_12_49_R->setDbValue($rs->fields('12_49_R'));\n\t\t$this->_12_50_R->setDbValue($rs->fields('12_50_R'));\n\t\t$this->_1__R->setDbValue($rs->fields('1__R'));\n\t\t$this->_13_54_R->setDbValue($rs->fields('13_54_R'));\n\t\t$this->_13_54_1_R->setDbValue($rs->fields('13_54_1_R'));\n\t\t$this->_13_54_2_R->setDbValue($rs->fields('13_54_2_R'));\n\t\t$this->_13_55_R->setDbValue($rs->fields('13_55_R'));\n\t\t$this->_13_55_1_R->setDbValue($rs->fields('13_55_1_R'));\n\t\t$this->_13_55_2_R->setDbValue($rs->fields('13_55_2_R'));\n\t\t$this->_13_56_R->setDbValue($rs->fields('13_56_R'));\n\t\t$this->_13_56_1_R->setDbValue($rs->fields('13_56_1_R'));\n\t\t$this->_13_56_2_R->setDbValue($rs->fields('13_56_2_R'));\n\t\t$this->_12_53_R->setDbValue($rs->fields('12_53_R'));\n\t\t$this->_12_53_1_R->setDbValue($rs->fields('12_53_1_R'));\n\t\t$this->_12_53_2_R->setDbValue($rs->fields('12_53_2_R'));\n\t\t$this->_12_53_3_R->setDbValue($rs->fields('12_53_3_R'));\n\t\t$this->_12_53_4_R->setDbValue($rs->fields('12_53_4_R'));\n\t\t$this->_12_53_5_R->setDbValue($rs->fields('12_53_5_R'));\n\t\t$this->_12_53_6_R->setDbValue($rs->fields('12_53_6_R'));\n\t\t$this->_13_57_R->setDbValue($rs->fields('13_57_R'));\n\t\t$this->_13_57_1_R->setDbValue($rs->fields('13_57_1_R'));\n\t\t$this->_13_57_2_R->setDbValue($rs->fields('13_57_2_R'));\n\t\t$this->_13_58_R->setDbValue($rs->fields('13_58_R'));\n\t\t$this->_13_58_1_R->setDbValue($rs->fields('13_58_1_R'));\n\t\t$this->_13_58_2_R->setDbValue($rs->fields('13_58_2_R'));\n\t\t$this->_13_59_R->setDbValue($rs->fields('13_59_R'));\n\t\t$this->_13_59_1_R->setDbValue($rs->fields('13_59_1_R'));\n\t\t$this->_13_59_2_R->setDbValue($rs->fields('13_59_2_R'));\n\t\t$this->_13_60_R->setDbValue($rs->fields('13_60_R'));\n\t\t$this->_12_53_7_R->setDbValue($rs->fields('12_53_7_R'));\n\t\t$this->_12_53_8_R->setDbValue($rs->fields('12_53_8_R'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\tif ($this->AuditTrailOnView) $this->WriteAuditTrailOnView($row);\r\n\t\t$this->Dni_Tutor->setDbValue($rs->fields('Dni_Tutor'));\r\n\t\t$this->Apellidos_Nombres->setDbValue($rs->fields('Apellidos_Nombres'));\r\n\t\t$this->Edad->setDbValue($rs->fields('Edad'));\r\n\t\t$this->Domicilio->setDbValue($rs->fields('Domicilio'));\r\n\t\t$this->Tel_Contacto->setDbValue($rs->fields('Tel_Contacto'));\r\n\t\t$this->Fecha_Nac->setDbValue($rs->fields('Fecha_Nac'));\r\n\t\t$this->Cuil->setDbValue($rs->fields('Cuil'));\r\n\t\t$this->MasHijos->setDbValue($rs->fields('MasHijos'));\r\n\t\t$this->Id_Estado_Civil->setDbValue($rs->fields('Id_Estado_Civil'));\r\n\t\t$this->Id_Sexo->setDbValue($rs->fields('Id_Sexo'));\r\n\t\t$this->Id_Relacion->setDbValue($rs->fields('Id_Relacion'));\r\n\t\t$this->Id_Ocupacion->setDbValue($rs->fields('Id_Ocupacion'));\r\n\t\t$this->Lugar_Nacimiento->setDbValue($rs->fields('Lugar_Nacimiento'));\r\n\t\t$this->Id_Provincia->setDbValue($rs->fields('Id_Provincia'));\r\n\t\t$this->Id_Departamento->setDbValue($rs->fields('Id_Departamento'));\r\n\t\t$this->Id_Localidad->setDbValue($rs->fields('Id_Localidad'));\r\n\t\t$this->Fecha_Actualizacion->setDbValue($rs->fields('Fecha_Actualizacion'));\r\n\t\t$this->Usuario->setDbValue($rs->fields('Usuario'));\r\n\t\tif (!isset($GLOBALS[\"observacion_tutor_grid\"])) $GLOBALS[\"observacion_tutor_grid\"] = new cobservacion_tutor_grid;\r\n\t\t$sDetailFilter = $GLOBALS[\"observacion_tutor\"]->SqlDetailFilter_tutores();\r\n\t\t$sDetailFilter = str_replace(\"@Dni_Tutor@\", ew_AdjustSql($this->Dni_Tutor->DbValue, \"DB\"), $sDetailFilter);\r\n\t\t$GLOBALS[\"observacion_tutor\"]->setCurrentMasterTable(\"tutores\");\r\n\t\t$sDetailFilter = $GLOBALS[\"observacion_tutor\"]->ApplyUserIDFilters($sDetailFilter);\r\n\t\t$this->observacion_tutor_Count = $GLOBALS[\"observacion_tutor\"]->LoadRecordCount($sDetailFilter);\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->detail_jenis_spp->setDbValue($rs->fields('detail_jenis_spp'));\n\t\t$this->id_jenis_spp->setDbValue($rs->fields('id_jenis_spp'));\n\t\t$this->status_spp->setDbValue($rs->fields('status_spp'));\n\t\t$this->no_spp->setDbValue($rs->fields('no_spp'));\n\t\t$this->tgl_spp->setDbValue($rs->fields('tgl_spp'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t\t$this->jumlah_up->setDbValue($rs->fields('jumlah_up'));\n\t\t$this->bendahara->setDbValue($rs->fields('bendahara'));\n\t\t$this->nama_pptk->setDbValue($rs->fields('nama_pptk'));\n\t\t$this->nip_pptk->setDbValue($rs->fields('nip_pptk'));\n\t\t$this->kode_program->setDbValue($rs->fields('kode_program'));\n\t\t$this->kode_kegiatan->setDbValue($rs->fields('kode_kegiatan'));\n\t\t$this->kode_sub_kegiatan->setDbValue($rs->fields('kode_sub_kegiatan'));\n\t\t$this->tahun_anggaran->setDbValue($rs->fields('tahun_anggaran'));\n\t\t$this->jumlah_spd->setDbValue($rs->fields('jumlah_spd'));\n\t\t$this->nomer_dasar_spd->setDbValue($rs->fields('nomer_dasar_spd'));\n\t\t$this->tanggal_spd->setDbValue($rs->fields('tanggal_spd'));\n\t\t$this->id_spd->setDbValue($rs->fields('id_spd'));\n\t\t$this->kode_rekening->setDbValue($rs->fields('kode_rekening'));\n\t\t$this->nama_bendahara->setDbValue($rs->fields('nama_bendahara'));\n\t\t$this->nip_bendahara->setDbValue($rs->fields('nip_bendahara'));\n\t\t$this->no_spm->setDbValue($rs->fields('no_spm'));\n\t\t$this->tgl_spm->setDbValue($rs->fields('tgl_spm'));\n\t\t$this->status_spm->setDbValue($rs->fields('status_spm'));\n\t\t$this->nama_bank->setDbValue($rs->fields('nama_bank'));\n\t\t$this->nomer_rekening_bank->setDbValue($rs->fields('nomer_rekening_bank'));\n\t\t$this->npwp->setDbValue($rs->fields('npwp'));\n\t\t$this->pimpinan_blud->setDbValue($rs->fields('pimpinan_blud'));\n\t\t$this->nip_pimpinan->setDbValue($rs->fields('nip_pimpinan'));\n\t\t$this->no_sptb->setDbValue($rs->fields('no_sptb'));\n\t\t$this->tgl_sptb->setDbValue($rs->fields('tgl_sptb'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t\t$this->master_id->DbValue = $row['master_id'];\n\t\t$this->lot_number->DbValue = $row['lot_number'];\n\t\t$this->chop->DbValue = $row['chop'];\n\t\t$this->estate->DbValue = $row['estate'];\n\t\t$this->grade->DbValue = $row['grade'];\n\t\t$this->jenis->DbValue = $row['jenis'];\n\t\t$this->sack->DbValue = $row['sack'];\n\t\t$this->netto->DbValue = $row['netto'];\n\t\t$this->gross->DbValue = $row['gross'];\n\t\t$this->open_bid->DbValue = $row['open_bid'];\n\t\t$this->currency->DbValue = $row['currency'];\n\t\t$this->bid_step->DbValue = $row['bid_step'];\n\t\t$this->rate->DbValue = $row['rate'];\n\t\t$this->winner_id->DbValue = $row['winner_id'];\n\t\t$this->sold_bid->DbValue = $row['sold_bid'];\n\t\t$this->proforma_number->DbValue = $row['proforma_number'];\n\t\t$this->proforma_amount->DbValue = $row['proforma_amount'];\n\t\t$this->proforma_status->DbValue = $row['proforma_status'];\n\t\t$this->auction_status->DbValue = $row['auction_status'];\n\t\t$this->enter_bid->DbValue = $row['enter_bid'];\n\t\t$this->last_bid->DbValue = $row['last_bid'];\n\t\t$this->highest_bid->DbValue = $row['highest_bid'];\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->C_EVENT_ID->setDbValue($rs->fields('C_EVENT_ID'));\n\t\t$this->FK_CONGTY_ID->setDbValue($rs->fields('FK_CONGTY_ID'));\n\t\t$this->C_EVENT_NAME->setDbValue($rs->fields('C_EVENT_NAME'));\n\t\t$this->C_TYPE_EVENT->setDbValue($rs->fields('C_TYPE_EVENT'));\n\t\t$this->C_POST->setDbValue($rs->fields('C_POST'));\n\t\t$this->C_URL_IMAGES->setDbValue($rs->fields('C_URL_IMAGES'));\n\t\t$this->C_URL_LINK->setDbValue($rs->fields('C_URL_LINK'));\n\t\t$this->C_DATETIME_BEGIN->setDbValue($rs->fields('C_DATETIME_BEGIN'));\n\t\t$this->C_DATETIME_END->setDbValue($rs->fields('C_DATETIME_END'));\n\t\t$this->C_ODER->setDbValue($rs->fields('C_ODER'));\n\t\t$this->C_NOTE->setDbValue($rs->fields('C_NOTE'));\n\t\t$this->C_USER_ADD->setDbValue($rs->fields('C_USER_ADD'));\n\t\t$this->C_ADD_TIME->setDbValue($rs->fields('C_ADD_TIME'));\n\t\t$this->C_USER_EDIT->setDbValue($rs->fields('C_USER_EDIT'));\n\t\t$this->C_EDIT_TIME->setDbValue($rs->fields('C_EDIT_TIME'));\n\t\t$this->C_ACTIVE_LEVELSITE->setDbValue($rs->fields('C_ACTIVE_LEVELSITE'));\n\t\t$this->C_TIME_ACTIVE->setDbValue($rs->fields('C_TIME_ACTIVE'));\n\t\t$this->C_SEND_MAIL->setDbValue($rs->fields('C_SEND_MAIL'));\n\t\t$this->C_CONTENT_MAIL->setDbValue($rs->fields('C_CONTENT_MAIL'));\n\t\t$this->C_FK_BROWSE->setDbValue($rs->fields('C_FK_BROWSE'));\n\t\t$this->FK_ARRAY_TINBAI->setDbValue($rs->fields('FK_ARRAY_TINBAI'));\n\t\t$this->FK_ARRAY_CONGTY->setDbValue($rs->fields('FK_ARRAY_CONGTY'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->userlevelid->setDbValue($rs->fields('userlevelid'));\n\t\tif (is_null($this->userlevelid->CurrentValue)) {\n\t\t\t$this->userlevelid->CurrentValue = 0;\n\t\t} else {\n\t\t\t$this->userlevelid->CurrentValue = intval($this->userlevelid->CurrentValue);\n\t\t}\n\t\t$this->userlevelname->setDbValue($rs->fields('userlevelname'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->tanggal->DbValue = $row['tanggal'];\n\t\t$this->auc_number->DbValue = $row['auc_number'];\n\t\t$this->start_bid->DbValue = $row['start_bid'];\n\t\t$this->close_bid->DbValue = $row['close_bid'];\n\t\t$this->lot_number->DbValue = $row['lot_number'];\n\t\t$this->chop->DbValue = $row['chop'];\n\t\t$this->grade->DbValue = $row['grade'];\n\t\t$this->estate->DbValue = $row['estate'];\n\t\t$this->sack->DbValue = $row['sack'];\n\t\t$this->netto->DbValue = $row['netto'];\n\t\t$this->open_bid->DbValue = $row['open_bid'];\n\t\t$this->last_bid->DbValue = $row['last_bid'];\n\t\t$this->highest_bid->DbValue = $row['highest_bid'];\n\t\t$this->enter_bid->DbValue = $row['enter_bid'];\n\t\t$this->auction_status->DbValue = $row['auction_status'];\n\t\t$this->gross->DbValue = $row['gross'];\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->tgl->setDbValue($rs->fields('tgl'));\n\t\t$this->no_spp->setDbValue($rs->fields('no_spp'));\n\t\t$this->jns_spp->setDbValue($rs->fields('jns_spp'));\n\t\t$this->kd_mata->setDbValue($rs->fields('kd_mata'));\n\t\t$this->urai->setDbValue($rs->fields('urai'));\n\t\t$this->jmlh->setDbValue($rs->fields('jmlh'));\n\t\t$this->jmlh1->setDbValue($rs->fields('jmlh1'));\n\t\t$this->jmlh2->setDbValue($rs->fields('jmlh2'));\n\t\t$this->jmlh3->setDbValue($rs->fields('jmlh3'));\n\t\t$this->jmlh4->setDbValue($rs->fields('jmlh4'));\n\t\t$this->nm_perus->setDbValue($rs->fields('nm_perus'));\n\t\t$this->alamat->setDbValue($rs->fields('alamat'));\n\t\t$this->npwp->setDbValue($rs->fields('npwp'));\n\t\t$this->pimpinan->setDbValue($rs->fields('pimpinan'));\n\t\t$this->bank->setDbValue($rs->fields('bank'));\n\t\t$this->rek->setDbValue($rs->fields('rek'));\n\t\t$this->nospm->setDbValue($rs->fields('nospm'));\n\t\t$this->tglspm->setDbValue($rs->fields('tglspm'));\n\t\t$this->ppn->setDbValue($rs->fields('ppn'));\n\t\t$this->ps21->setDbValue($rs->fields('ps21'));\n\t\t$this->ps22->setDbValue($rs->fields('ps22'));\n\t\t$this->ps23->setDbValue($rs->fields('ps23'));\n\t\t$this->ps4->setDbValue($rs->fields('ps4'));\n\t\t$this->kodespm->setDbValue($rs->fields('kodespm'));\n\t\t$this->nambud->setDbValue($rs->fields('nambud'));\n\t\t$this->nppk->setDbValue($rs->fields('nppk'));\n\t\t$this->nipppk->setDbValue($rs->fields('nipppk'));\n\t\t$this->prog->setDbValue($rs->fields('prog'));\n\t\t$this->prog1->setDbValue($rs->fields('prog1'));\n\t\t$this->bayar->setDbValue($rs->fields('bayar'));\n\t}", "public function loadRowValues($rs = NULL)\n\t{\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->newRow();\n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->document_sequence->setDbValue($row['document_sequence']);\n\t\t$this->firelink_doc_no->setDbValue($row['firelink_doc_no']);\n\t\tif (array_key_exists('EV__firelink_doc_no', $rs->fields)) {\n\t\t\t$this->firelink_doc_no->VirtualValue = $rs->fields('EV__firelink_doc_no'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->firelink_doc_no->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->project_name->setDbValue($row['project_name']);\n\t\t$this->document_tittle->setDbValue($row['document_tittle']);\n\t\t$this->submit_no->setDbValue($row['submit_no']);\n\t\t$this->revision_no->setDbValue($row['revision_no']);\n\t\t$this->transmit_no->setDbValue($row['transmit_no']);\n\t\tif (array_key_exists('EV__transmit_no', $rs->fields)) {\n\t\t\t$this->transmit_no->VirtualValue = $rs->fields('EV__transmit_no'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->transmit_no->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->transmit_date->setDbValue($row['transmit_date']);\n\t\t$this->direction->setDbValue($row['direction']);\n\t\t$this->approval_status->setDbValue($row['approval_status']);\n\t\t$this->document_link->Upload->DbValue = $row['document_link'];\n\t\t$this->document_link->setDbValue($this->document_link->Upload->DbValue);\n\t\t$this->transaction_date->setDbValue($row['transaction_date']);\n\t\t$this->document_native->setDbValue($row['document_native']);\n\t\t$this->username->setDbValue($row['username']);\n\t\t$this->expiry_date->setDbValue($row['expiry_date']);\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->pegawai_id->DbValue = $row['pegawai_id'];\n\t\t$this->tgl_shift->DbValue = $row['tgl_shift'];\n\t\t$this->khusus_lembur->DbValue = $row['khusus_lembur'];\n\t\t$this->khusus_extra->DbValue = $row['khusus_extra'];\n\t\t$this->temp_id_auto->DbValue = $row['temp_id_auto'];\n\t\t$this->jdw_kerja_m_id->DbValue = $row['jdw_kerja_m_id'];\n\t\t$this->jk_id->DbValue = $row['jk_id'];\n\t\t$this->jns_dok->DbValue = $row['jns_dok'];\n\t\t$this->izin_jenis_id->DbValue = $row['izin_jenis_id'];\n\t\t$this->cuti_n_id->DbValue = $row['cuti_n_id'];\n\t\t$this->libur_umum->DbValue = $row['libur_umum'];\n\t\t$this->libur_rutin->DbValue = $row['libur_rutin'];\n\t\t$this->jk_ot->DbValue = $row['jk_ot'];\n\t\t$this->scan_in->DbValue = $row['scan_in'];\n\t\t$this->att_id_in->DbValue = $row['att_id_in'];\n\t\t$this->late_permission->DbValue = $row['late_permission'];\n\t\t$this->late_minute->DbValue = $row['late_minute'];\n\t\t$this->late->DbValue = $row['late'];\n\t\t$this->break_out->DbValue = $row['break_out'];\n\t\t$this->att_id_break1->DbValue = $row['att_id_break1'];\n\t\t$this->break_in->DbValue = $row['break_in'];\n\t\t$this->att_id_break2->DbValue = $row['att_id_break2'];\n\t\t$this->break_minute->DbValue = $row['break_minute'];\n\t\t$this->break->DbValue = $row['break'];\n\t\t$this->break_ot_minute->DbValue = $row['break_ot_minute'];\n\t\t$this->break_ot->DbValue = $row['break_ot'];\n\t\t$this->early_permission->DbValue = $row['early_permission'];\n\t\t$this->early_minute->DbValue = $row['early_minute'];\n\t\t$this->early->DbValue = $row['early'];\n\t\t$this->scan_out->DbValue = $row['scan_out'];\n\t\t$this->att_id_out->DbValue = $row['att_id_out'];\n\t\t$this->durasi_minute->DbValue = $row['durasi_minute'];\n\t\t$this->durasi->DbValue = $row['durasi'];\n\t\t$this->durasi_eot_minute->DbValue = $row['durasi_eot_minute'];\n\t\t$this->jk_count_as->DbValue = $row['jk_count_as'];\n\t\t$this->status_jk->DbValue = $row['status_jk'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->id_admission->DbValue = $row['id_admission'];\n\t\t$this->nomr->DbValue = $row['nomr'];\n\t\t$this->statusbayar->DbValue = $row['statusbayar'];\n\t\t$this->kelas->DbValue = $row['kelas'];\n\t\t$this->tanggal->DbValue = $row['tanggal'];\n\t\t$this->kode_tindakan->DbValue = $row['kode_tindakan'];\n\t\t$this->qty->DbValue = $row['qty'];\n\t\t$this->tarif->DbValue = $row['tarif'];\n\t\t$this->bhp->DbValue = $row['bhp'];\n\t\t$this->user->DbValue = $row['user'];\n\t\t$this->nama_tindakan->DbValue = $row['nama_tindakan'];\n\t\t$this->kelompok_tindakan->DbValue = $row['kelompok_tindakan'];\n\t\t$this->kelompok1->DbValue = $row['kelompok1'];\n\t\t$this->kelompok2->DbValue = $row['kelompok2'];\n\t\t$this->kode_dokter->DbValue = $row['kode_dokter'];\n\t\t$this->no_ruang->DbValue = $row['no_ruang'];\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->product_id->setDbValue($row['product_id']);\n\t\t$this->cat_id->setDbValue($row['cat_id']);\n\t\tif (array_key_exists('EV__cat_id', $rs->fields)) {\n\t\t\t$this->cat_id->VirtualValue = $rs->fields('EV__cat_id'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->cat_id->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->company_id->setDbValue($row['company_id']);\n\t\tif (array_key_exists('EV__company_id', $rs->fields)) {\n\t\t\t$this->company_id->VirtualValue = $rs->fields('EV__company_id'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->company_id->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_model->setDbValue($row['pro_model']);\n\t\tif (array_key_exists('EV__pro_model', $rs->fields)) {\n\t\t\t$this->pro_model->VirtualValue = $rs->fields('EV__pro_model'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->pro_model->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_name->setDbValue($row['pro_name']);\n\t\t$this->pro_description->setDbValue($row['pro_description']);\n\t\t$this->pro_condition->setDbValue($row['pro_condition']);\n\t\t$this->pro_features->setDbValue($row['pro_features']);\n\t\t$this->post_date->setDbValue($row['post_date']);\n\t\t$this->ads_id->setDbValue($row['ads_id']);\n\t\t$this->pro_base_price->setDbValue($row['pro_base_price']);\n\t\t$this->pro_sell_price->setDbValue($row['pro_sell_price']);\n\t\t$this->featured_image->Upload->DbValue = $row['featured_image'];\n\t\t$this->featured_image->setDbValue($this->featured_image->Upload->DbValue);\n\t\t$this->folder_image->setDbValue($row['folder_image']);\n\t\tif (array_key_exists('EV__folder_image', $rs->fields)) {\n\t\t\t$this->folder_image->VirtualValue = $rs->fields('EV__folder_image'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->folder_image->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_status->setDbValue($row['pro_status']);\n\t\t$this->branch_id->setDbValue($row['branch_id']);\n\t\t$this->lang->setDbValue($row['lang']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Id_Item->setDbValue($rs->fields('Id_Item'));\n\t\t$this->codigo_item->setDbValue($rs->fields('codigo_item'));\n\t\t$this->nombre_item->setDbValue($rs->fields('nombre_item'));\n\t\t$this->und_item->setDbValue($rs->fields('und_item'));\n\t\t$this->precio_item->setDbValue($rs->fields('precio_item'));\n\t\t$this->costo_item->setDbValue($rs->fields('costo_item'));\n\t\t$this->tipo_item->setDbValue($rs->fields('tipo_item'));\n\t\t$this->marca_item->setDbValue($rs->fields('marca_item'));\n\t\t$this->cod_marca_item->setDbValue($rs->fields('cod_marca_item'));\n\t\t$this->detalle_item->setDbValue($rs->fields('detalle_item'));\n\t\t$this->saldo_item->setDbValue($rs->fields('saldo_item'));\n\t\t$this->activo_item->setDbValue($rs->fields('activo_item'));\n\t\t$this->maneja_serial_item->setDbValue($rs->fields('maneja_serial_item'));\n\t\t$this->asignado_item->setDbValue($rs->fields('asignado_item'));\n\t\t$this->si_no_item->setDbValue($rs->fields('si_no_item'));\n\t\t$this->precio_old_item->setDbValue($rs->fields('precio_old_item'));\n\t\t$this->costo_old_item->setDbValue($rs->fields('costo_old_item'));\n\t\t$this->registra_item->setDbValue($rs->fields('registra_item'));\n\t\t$this->fecha_registro_item->setDbValue($rs->fields('fecha_registro_item'));\n\t\t$this->empresa_item->setDbValue($rs->fields('empresa_item'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$mst_vendor->kode->setDbValue($rs->fields('kode'));\n\t\t$mst_vendor->nama->setDbValue($rs->fields('nama'));\n\t\t$mst_vendor->alamat->setDbValue($rs->fields('alamat'));\n\t\t$mst_vendor->alamatpajak->setDbValue($rs->fields('alamatpajak'));\n\t\t$mst_vendor->npwp->setDbValue($rs->fields('npwp'));\n\t\t$mst_vendor->pic->setDbValue($rs->fields('pic'));\n\t\t$mst_vendor->phone->setDbValue($rs->fields('phone'));\n\t\t$mst_vendor->fax->setDbValue($rs->fields('fax'));\n\t\t$mst_vendor->zemail->setDbValue($rs->fields('email'));\n\t\t$mst_vendor->peruntukan->setDbValue($rs->fields('peruntukan'));\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Id_Pase->DbValue = $row['Id_Pase'];\r\n\t\t$this->Serie_Equipo->DbValue = $row['Serie_Equipo'];\r\n\t\t$this->Id_Hardware->DbValue = $row['Id_Hardware'];\r\n\t\t$this->SN->DbValue = $row['SN'];\r\n\t\t$this->Modelo_Net->DbValue = $row['Modelo_Net'];\r\n\t\t$this->Marca_Arranque->DbValue = $row['Marca_Arranque'];\r\n\t\t$this->Nombre_Titular->DbValue = $row['Nombre_Titular'];\r\n\t\t$this->Dni_Titular->DbValue = $row['Dni_Titular'];\r\n\t\t$this->Cuil_Titular->DbValue = $row['Cuil_Titular'];\r\n\t\t$this->Nombre_Tutor->DbValue = $row['Nombre_Tutor'];\r\n\t\t$this->DniTutor->DbValue = $row['DniTutor'];\r\n\t\t$this->Domicilio->DbValue = $row['Domicilio'];\r\n\t\t$this->Tel_Tutor->DbValue = $row['Tel_Tutor'];\r\n\t\t$this->CelTutor->DbValue = $row['CelTutor'];\r\n\t\t$this->Cue_Establecimiento_Alta->DbValue = $row['Cue_Establecimiento_Alta'];\r\n\t\t$this->Escuela_Alta->DbValue = $row['Escuela_Alta'];\r\n\t\t$this->Directivo_Alta->DbValue = $row['Directivo_Alta'];\r\n\t\t$this->Cuil_Directivo_Alta->DbValue = $row['Cuil_Directivo_Alta'];\r\n\t\t$this->Dpto_Esc_alta->DbValue = $row['Dpto_Esc_alta'];\r\n\t\t$this->Localidad_Esc_Alta->DbValue = $row['Localidad_Esc_Alta'];\r\n\t\t$this->Domicilio_Esc_Alta->DbValue = $row['Domicilio_Esc_Alta'];\r\n\t\t$this->Rte_Alta->DbValue = $row['Rte_Alta'];\r\n\t\t$this->Tel_Rte_Alta->DbValue = $row['Tel_Rte_Alta'];\r\n\t\t$this->Email_Rte_Alta->DbValue = $row['Email_Rte_Alta'];\r\n\t\t$this->Serie_Server_Alta->DbValue = $row['Serie_Server_Alta'];\r\n\t\t$this->Cue_Establecimiento_Baja->DbValue = $row['Cue_Establecimiento_Baja'];\r\n\t\t$this->Escuela_Baja->DbValue = $row['Escuela_Baja'];\r\n\t\t$this->Directivo_Baja->DbValue = $row['Directivo_Baja'];\r\n\t\t$this->Cuil_Directivo_Baja->DbValue = $row['Cuil_Directivo_Baja'];\r\n\t\t$this->Dpto_Esc_Baja->DbValue = $row['Dpto_Esc_Baja'];\r\n\t\t$this->Localidad_Esc_Baja->DbValue = $row['Localidad_Esc_Baja'];\r\n\t\t$this->Domicilio_Esc_Baja->DbValue = $row['Domicilio_Esc_Baja'];\r\n\t\t$this->Rte_Baja->DbValue = $row['Rte_Baja'];\r\n\t\t$this->Tel_Rte_Baja->DbValue = $row['Tel_Rte_Baja'];\r\n\t\t$this->Email_Rte_Baja->DbValue = $row['Email_Rte_Baja'];\r\n\t\t$this->Serie_Server_Baja->DbValue = $row['Serie_Server_Baja'];\r\n\t\t$this->Fecha_Pase->DbValue = $row['Fecha_Pase'];\r\n\t\t$this->Id_Estado_Pase->DbValue = $row['Id_Estado_Pase'];\r\n\t\t$this->Ruta_Archivo->Upload->DbValue = $row['Ruta_Archivo'];\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $frm_fp_units_accomplishment;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$frm_fp_units_accomplishment->Row_Selected($row);\n\t\t$frm_fp_units_accomplishment->units_id->setDbValue($rs->fields('units_id'));\n\t\t$frm_fp_units_accomplishment->focal_person_id->setDbValue($rs->fields('focal_person_id'));\n\t\t$frm_fp_units_accomplishment->unit_id->setDbValue($rs->fields('unit_id'));\n\t\t$frm_fp_units_accomplishment->cu_sequence->setDbValue($rs->fields('cu_sequence'));\n\t\t$frm_fp_units_accomplishment->cu_short_name->setDbValue($rs->fields('cu_short_name'));\n\t\t$frm_fp_units_accomplishment->cu_unit_name->setDbValue($rs->fields('cu_unit_name'));\n\t\t$frm_fp_units_accomplishment->unit_name->setDbValue($rs->fields('unit_name'));\n\t\t$frm_fp_units_accomplishment->unit_name_short->setDbValue($rs->fields('unit_name_short'));\n\t\t$frm_fp_units_accomplishment->personnel_count->setDbValue($rs->fields('personnel_count'));\n\t\t$frm_fp_units_accomplishment->mfo_1->setDbValue($rs->fields('mfo_1'));\n\t\t$frm_fp_units_accomplishment->mfo_2->setDbValue($rs->fields('mfo_2'));\n\t\t$frm_fp_units_accomplishment->mfo_3->setDbValue($rs->fields('mfo_3'));\n\t\t$frm_fp_units_accomplishment->mfo_4->setDbValue($rs->fields('mfo_4'));\n\t\t$frm_fp_units_accomplishment->mfo_5->setDbValue($rs->fields('mfo_5'));\n\t\t$frm_fp_units_accomplishment->sto->setDbValue($rs->fields('sto'));\n\t\t$frm_fp_units_accomplishment->gass->setDbValue($rs->fields('gass'));\n\t\t$frm_fp_units_accomplishment->users_name->setDbValue($rs->fields('users_name'));\n\t\t$frm_fp_units_accomplishment->users_nameLast->setDbValue($rs->fields('users_nameLast'));\n\t\t$frm_fp_units_accomplishment->users_nameFirst->setDbValue($rs->fields('users_nameFirst'));\n\t\t$frm_fp_units_accomplishment->users_nameMiddle->setDbValue($rs->fields('users_nameMiddle'));\n\t\t$frm_fp_units_accomplishment->users_userLoginName->setDbValue($rs->fields('users_userLoginName'));\n\t\t$frm_fp_units_accomplishment->users_password->setDbValue($rs->fields('users_password'));\n\t\t$frm_fp_units_accomplishment->users_email->setDbValue($rs->fields('users_email'));\n\t\t$frm_fp_units_accomplishment->users_contactNo->setDbValue($rs->fields('users_contactNo'));\n\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->setDbValue($rs->fields('tbl_cutOffDate_id'));\n\t\t$frm_fp_units_accomplishment->t_cutOffDate->setDbValue($rs->fields('t_cutOffDate'));\n\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->setDbValue($rs->fields('t_cutOffDate_remarks'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->product_id->DbValue = $row['product_id'];\n\t\t$this->cat_id->DbValue = $row['cat_id'];\n\t\t$this->company_id->DbValue = $row['company_id'];\n\t\t$this->pro_model->DbValue = $row['pro_model'];\n\t\t$this->pro_name->DbValue = $row['pro_name'];\n\t\t$this->pro_description->DbValue = $row['pro_description'];\n\t\t$this->pro_condition->DbValue = $row['pro_condition'];\n\t\t$this->pro_features->DbValue = $row['pro_features'];\n\t\t$this->post_date->DbValue = $row['post_date'];\n\t\t$this->ads_id->DbValue = $row['ads_id'];\n\t\t$this->pro_base_price->DbValue = $row['pro_base_price'];\n\t\t$this->pro_sell_price->DbValue = $row['pro_sell_price'];\n\t\t$this->featured_image->Upload->DbValue = $row['featured_image'];\n\t\t$this->folder_image->DbValue = $row['folder_image'];\n\t\t$this->pro_status->DbValue = $row['pro_status'];\n\t\t$this->branch_id->DbValue = $row['branch_id'];\n\t\t$this->lang->DbValue = $row['lang'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Nro_Serie->DbValue = $row['Nro_Serie'];\r\n\t\t$this->SN->DbValue = $row['SN'];\r\n\t\t$this->Cant_Net_Asoc->DbValue = $row['Cant_Net_Asoc'];\r\n\t\t$this->Id_Marca->DbValue = $row['Id_Marca'];\r\n\t\t$this->Id_Modelo->DbValue = $row['Id_Modelo'];\r\n\t\t$this->Id_SO->DbValue = $row['Id_SO'];\r\n\t\t$this->Id_Estado->DbValue = $row['Id_Estado'];\r\n\t\t$this->User_Server->DbValue = $row['User_Server'];\r\n\t\t$this->Pass_Server->DbValue = $row['Pass_Server'];\r\n\t\t$this->User_TdServer->DbValue = $row['User_TdServer'];\r\n\t\t$this->Pass_TdServer->DbValue = $row['Pass_TdServer'];\r\n\t\t$this->Cue->DbValue = $row['Cue'];\r\n\t\t$this->Fecha_Actualizacion->DbValue = $row['Fecha_Actualizacion'];\r\n\t\t$this->Usuario->DbValue = $row['Usuario'];\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->empleado_id->DbValue = $row['empleado_id'];\n\t\t$this->codigo->DbValue = $row['codigo'];\n\t\t$this->cui->DbValue = $row['cui'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->apellido->DbValue = $row['apellido'];\n\t\t$this->direccion->DbValue = $row['direccion'];\n\t\t$this->departamento_origen_id->DbValue = $row['departamento_origen_id'];\n\t\t$this->municipio_id->DbValue = $row['municipio_id'];\n\t\t$this->telefono_residencia->DbValue = $row['telefono_residencia'];\n\t\t$this->telefono_celular->DbValue = $row['telefono_celular'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->nacionalidad->DbValue = $row['nacionalidad'];\n\t\t$this->estado_civil->DbValue = $row['estado_civil'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->igss->DbValue = $row['igss'];\n\t\t$this->nit->DbValue = $row['nit'];\n\t\t$this->licencia_conducir->DbValue = $row['licencia_conducir'];\n\t\t$this->area_id->DbValue = $row['area_id'];\n\t\t$this->departmento_id->DbValue = $row['departmento_id'];\n\t\t$this->seccion_id->DbValue = $row['seccion_id'];\n\t\t$this->puesto_id->DbValue = $row['puesto_id'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->tipo_sangre_id->DbValue = $row['tipo_sangre_id'];\n\t\t$this->estado->DbValue = $row['estado'];\n\t}", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->IncomeCode->setDbValue($rs->fields('IncomeCode'));\n\t\t$this->IncomeName->setDbValue($rs->fields('IncomeName'));\n\t\t$this->IncomeDescription->setDbValue($rs->fields('IncomeDescription'));\n\t\t$this->Division->setDbValue($rs->fields('Division'));\n\t\t$this->IncomeAmount->setDbValue($rs->fields('IncomeAmount'));\n\t\t$this->IncomeBasicRate->setDbValue($rs->fields('IncomeBasicRate'));\n\t\t$this->BaseIncomeCode->setDbValue($rs->fields('BaseIncomeCode'));\n\t\t$this->Taxable->setDbValue($rs->fields('Taxable'));\n\t\t$this->AccountNo->setDbValue($rs->fields('AccountNo'));\n\t\t$this->JobIncluded->setDbValue($rs->fields('JobIncluded'));\n\t\t$this->Application->setDbValue($rs->fields('Application'));\n\t\t$this->JobExcluded->setDbValue($rs->fields('JobExcluded'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->replid->DbValue = $row['replid'];\n\t\t$this->nama->DbValue = $row['nama'];\n\t\t$this->besar->DbValue = $row['besar'];\n\t\t$this->idkategori->DbValue = $row['idkategori'];\n\t\t$this->rekkas->DbValue = $row['rekkas'];\n\t\t$this->rekpendapatan->DbValue = $row['rekpendapatan'];\n\t\t$this->rekpiutang->DbValue = $row['rekpiutang'];\n\t\t$this->aktif->DbValue = $row['aktif'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t\t$this->departemen->DbValue = $row['departemen'];\n\t\t$this->info1->DbValue = $row['info1'];\n\t\t$this->info2->DbValue = $row['info2'];\n\t\t$this->info3->DbValue = $row['info3'];\n\t\t$this->ts->DbValue = $row['ts'];\n\t\t$this->token->DbValue = $row['token'];\n\t\t$this->issync->DbValue = $row['issync'];\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->IDXDAFTAR->setDbValue($rs->fields('IDXDAFTAR'));\n\t\t$this->TGLREG->setDbValue($rs->fields('TGLREG'));\n\t\t$this->NOMR->setDbValue($rs->fields('NOMR'));\n\t\t$this->KETERANGAN->setDbValue($rs->fields('KETERANGAN'));\n\t\t$this->NOKARTU_BPJS->setDbValue($rs->fields('NOKARTU_BPJS'));\n\t\t$this->NOKTP->setDbValue($rs->fields('NOKTP'));\n\t\t$this->KDDOKTER->setDbValue($rs->fields('KDDOKTER'));\n\t\t$this->KDPOLY->setDbValue($rs->fields('KDPOLY'));\n\t\t$this->KDRUJUK->setDbValue($rs->fields('KDRUJUK'));\n\t\t$this->KDCARABAYAR->setDbValue($rs->fields('KDCARABAYAR'));\n\t\t$this->NOJAMINAN->setDbValue($rs->fields('NOJAMINAN'));\n\t\t$this->SHIFT->setDbValue($rs->fields('SHIFT'));\n\t\t$this->STATUS->setDbValue($rs->fields('STATUS'));\n\t\t$this->KETERANGAN_STATUS->setDbValue($rs->fields('KETERANGAN_STATUS'));\n\t\t$this->PASIENBARU->setDbValue($rs->fields('PASIENBARU'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->MASUKPOLY->setDbValue($rs->fields('MASUKPOLY'));\n\t\t$this->KELUARPOLY->setDbValue($rs->fields('KELUARPOLY'));\n\t\t$this->KETRUJUK->setDbValue($rs->fields('KETRUJUK'));\n\t\t$this->KETBAYAR->setDbValue($rs->fields('KETBAYAR'));\n\t\t$this->PENANGGUNGJAWAB_NAMA->setDbValue($rs->fields('PENANGGUNGJAWAB_NAMA'));\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->setDbValue($rs->fields('PENANGGUNGJAWAB_HUBUNGAN'));\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->setDbValue($rs->fields('PENANGGUNGJAWAB_ALAMAT'));\n\t\t$this->PENANGGUNGJAWAB_PHONE->setDbValue($rs->fields('PENANGGUNGJAWAB_PHONE'));\n\t\t$this->JAMREG->setDbValue($rs->fields('JAMREG'));\n\t\t$this->BATAL->setDbValue($rs->fields('BATAL'));\n\t\t$this->NO_SJP->setDbValue($rs->fields('NO_SJP'));\n\t\t$this->NO_PESERTA->setDbValue($rs->fields('NO_PESERTA'));\n\t\t$this->NOKARTU->setDbValue($rs->fields('NOKARTU'));\n\t\t$this->TANGGAL_SEP->setDbValue($rs->fields('TANGGAL_SEP'));\n\t\t$this->TANGGALRUJUK_SEP->setDbValue($rs->fields('TANGGALRUJUK_SEP'));\n\t\t$this->KELASRAWAT_SEP->setDbValue($rs->fields('KELASRAWAT_SEP'));\n\t\t$this->MINTA_RUJUKAN->setDbValue($rs->fields('MINTA_RUJUKAN'));\n\t\t$this->NORUJUKAN_SEP->setDbValue($rs->fields('NORUJUKAN_SEP'));\n\t\t$this->PPKRUJUKANASAL_SEP->setDbValue($rs->fields('PPKRUJUKANASAL_SEP'));\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->setDbValue($rs->fields('NAMAPPKRUJUKANASAL_SEP'));\n\t\t$this->PPKPELAYANAN_SEP->setDbValue($rs->fields('PPKPELAYANAN_SEP'));\n\t\t$this->JENISPERAWATAN_SEP->setDbValue($rs->fields('JENISPERAWATAN_SEP'));\n\t\t$this->CATATAN_SEP->setDbValue($rs->fields('CATATAN_SEP'));\n\t\t$this->DIAGNOSAAWAL_SEP->setDbValue($rs->fields('DIAGNOSAAWAL_SEP'));\n\t\t$this->NAMADIAGNOSA_SEP->setDbValue($rs->fields('NAMADIAGNOSA_SEP'));\n\t\t$this->LAKALANTAS_SEP->setDbValue($rs->fields('LAKALANTAS_SEP'));\n\t\t$this->LOKASILAKALANTAS->setDbValue($rs->fields('LOKASILAKALANTAS'));\n\t\t$this->USER->setDbValue($rs->fields('USER'));\n\t\t$this->tanggal->setDbValue($rs->fields('tanggal'));\n\t\t$this->bulan->setDbValue($rs->fields('bulan'));\n\t\t$this->tahun->setDbValue($rs->fields('tahun'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Id_Item->DbValue = $row['Id_Item'];\n\t\t$this->codigo_item->DbValue = $row['codigo_item'];\n\t\t$this->nombre_item->DbValue = $row['nombre_item'];\n\t\t$this->und_item->DbValue = $row['und_item'];\n\t\t$this->precio_item->DbValue = $row['precio_item'];\n\t\t$this->costo_item->DbValue = $row['costo_item'];\n\t\t$this->tipo_item->DbValue = $row['tipo_item'];\n\t\t$this->marca_item->DbValue = $row['marca_item'];\n\t\t$this->cod_marca_item->DbValue = $row['cod_marca_item'];\n\t\t$this->detalle_item->DbValue = $row['detalle_item'];\n\t\t$this->saldo_item->DbValue = $row['saldo_item'];\n\t\t$this->activo_item->DbValue = $row['activo_item'];\n\t\t$this->maneja_serial_item->DbValue = $row['maneja_serial_item'];\n\t\t$this->asignado_item->DbValue = $row['asignado_item'];\n\t\t$this->si_no_item->DbValue = $row['si_no_item'];\n\t\t$this->precio_old_item->DbValue = $row['precio_old_item'];\n\t\t$this->costo_old_item->DbValue = $row['costo_old_item'];\n\t\t$this->registra_item->DbValue = $row['registra_item'];\n\t\t$this->fecha_registro_item->DbValue = $row['fecha_registro_item'];\n\t\t$this->empresa_item->DbValue = $row['empresa_item'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->id_sector->DbValue = $row['id_sector'];\n\t\t$this->id_actividad->DbValue = $row['id_actividad'];\n\t\t$this->id_categoria->DbValue = $row['id_categoria'];\n\t\t$this->apellidopaterno->DbValue = $row['apellidopaterno'];\n\t\t$this->apellidomaterno->DbValue = $row['apellidomaterno'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->ci->DbValue = $row['ci'];\n\t\t$this->nrodiscapacidad->DbValue = $row['nrodiscapacidad'];\n\t\t$this->celular->DbValue = $row['celular'];\n\t\t$this->direcciondomicilio->DbValue = $row['direcciondomicilio'];\n\t\t$this->ocupacion->DbValue = $row['ocupacion'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->cargo->DbValue = $row['cargo'];\n\t\t$this->nivelestudio->DbValue = $row['nivelestudio'];\n\t\t$this->id_institucion->DbValue = $row['id_institucion'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->id_centro->DbValue = $row['id_centro'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->unid->DbValue = $row['unid'];\n\t\t$this->u_id->DbValue = $row['u_id'];\n\t\t$this->acl_id->DbValue = $row['acl_id'];\n\t\t$this->Name->DbValue = $row['Name'];\n\t\t$this->Basics->DbValue = $row['Basics'];\n\t\t$this->HP->DbValue = $row['HP'];\n\t\t$this->MP->DbValue = $row['MP'];\n\t\t$this->AD->DbValue = $row['AD'];\n\t\t$this->AP->DbValue = $row['AP'];\n\t\t$this->Defense->DbValue = $row['Defense'];\n\t\t$this->Hit->DbValue = $row['Hit'];\n\t\t$this->Dodge->DbValue = $row['Dodge'];\n\t\t$this->Crit->DbValue = $row['Crit'];\n\t\t$this->AbsorbHP->DbValue = $row['AbsorbHP'];\n\t\t$this->ADPTV->DbValue = $row['ADPTV'];\n\t\t$this->ADPTR->DbValue = $row['ADPTR'];\n\t\t$this->APPTR->DbValue = $row['APPTR'];\n\t\t$this->APPTV->DbValue = $row['APPTV'];\n\t\t$this->ImmuneDamage->DbValue = $row['ImmuneDamage'];\n\t\t$this->Intro->DbValue = $row['Intro'];\n\t\t$this->ExclusiveSkills->DbValue = $row['ExclusiveSkills'];\n\t\t$this->TransferDemand->DbValue = $row['TransferDemand'];\n\t\t$this->TransferLevel->DbValue = $row['TransferLevel'];\n\t\t$this->FormerOccupation->DbValue = $row['FormerOccupation'];\n\t\t$this->Belong->DbValue = $row['Belong'];\n\t\t$this->AttackEffect->DbValue = $row['AttackEffect'];\n\t\t$this->AttackTips->DbValue = $row['AttackTips'];\n\t\t$this->MagicResistance->DbValue = $row['MagicResistance'];\n\t\t$this->IgnoreShield->DbValue = $row['IgnoreShield'];\n\t\t$this->DATETIME->DbValue = $row['DATETIME'];\n\t}", "protected function loadDbValues(&$rs)\n\t{\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->IncomeCode->DbValue = $row['IncomeCode'];\n\t\t$this->IncomeName->DbValue = $row['IncomeName'];\n\t\t$this->IncomeDescription->DbValue = $row['IncomeDescription'];\n\t\t$this->Division->DbValue = $row['Division'];\n\t\t$this->IncomeAmount->DbValue = $row['IncomeAmount'];\n\t\t$this->IncomeBasicRate->DbValue = $row['IncomeBasicRate'];\n\t\t$this->BaseIncomeCode->DbValue = $row['BaseIncomeCode'];\n\t\t$this->Taxable->DbValue = $row['Taxable'];\n\t\t$this->AccountNo->DbValue = $row['AccountNo'];\n\t\t$this->JobIncluded->DbValue = $row['JobIncluded'];\n\t\t$this->Application->DbValue = $row['Application'];\n\t\t$this->JobExcluded->DbValue = $row['JobExcluded'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Id_tercero->DbValue = $row['Id_tercero'];\n\t\t$this->nombre_tercero->DbValue = $row['nombre_tercero'];\n\t\t$this->direccion_tercero->DbValue = $row['direccion_tercero'];\n\t\t$this->telefono1_tercero->DbValue = $row['telefono1_tercero'];\n\t\t$this->telefono2_tercero->DbValue = $row['telefono2_tercero'];\n\t\t$this->fax_tercero->DbValue = $row['fax_tercero'];\n\t\t$this->nit_tercero->DbValue = $row['nit_tercero'];\n\t\t$this->tipo_tercero->DbValue = $row['tipo_tercero'];\n\t\t$this->e_mail_tercero->DbValue = $row['e_mail_tercero'];\n\t\t$this->Contacto_tercero->DbValue = $row['Contacto_tercero'];\n\t\t$this->gran_contrib_tercero->DbValue = $row['gran_contrib_tercero'];\n\t\t$this->autoretenedor_tercero->DbValue = $row['autoretenedor_tercero'];\n\t\t$this->activo_tercero->DbValue = $row['activo_tercero'];\n\t\t$this->tercero__registrado_por->DbValue = $row['tercero_ registrado_por'];\n\t\t$this->reg_comun_tercero->DbValue = $row['reg_comun_tercero'];\n\t\t$this->responsable_materiales_tercero->DbValue = $row['responsable_materiales_tercero'];\n\t\t$this->grupo_nomina_tercero->DbValue = $row['grupo_nomina_tercero'];\n\t\t$this->tercero__lider_Obra->DbValue = $row['tercero_ lider_Obra'];\n\t\t$this->tercero_nombre_lider->DbValue = $row['tercero_nombre_lider'];\n\t\t$this->empresa_tercero->DbValue = $row['empresa_tercero'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $tbl_profile;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$tbl_profile->Row_Selected($row);\n\t\t$tbl_profile->facultyprofile_ID->setDbValue($rs->fields('facultyprofile_ID'));\n\t\t$tbl_profile->faculty_ID->setDbValue($rs->fields('faculty_ID'));\n\t\t$tbl_profile->faculty_name->setDbValue($rs->fields('faculty_name'));\n\t\t$tbl_profile->collectionPeriod_ID->setDbValue($rs->fields('collectionPeriod_ID'));\n\t\t$tbl_profile->cu->setDbValue($rs->fields('cu'));\n\t\t$tbl_profile->collectionPeriod_ay->setDbValue($rs->fields('collectionPeriod_ay'));\n\t\t$tbl_profile->collectionPeriod_sem->setDbValue($rs->fields('collectionPeriod_sem'));\n\t\t$tbl_profile->collectionPeriod_cutOffDate->setDbValue($rs->fields('collectionPeriod_cutOffDate'));\n\t\t$tbl_profile->unitID->setDbValue($rs->fields('unitID'));\n\t\t$tbl_profile->facultyprofile_homeUnit_ID->setDbValue($rs->fields('facultyprofile_homeUnit_ID'));\n\t\t$tbl_profile->facultyprofile_isHomeUnit->setDbValue($rs->fields('facultyprofile_isHomeUnit'));\n\t\t$tbl_profile->facultyGroup_CHEDCode->setDbValue($rs->fields('facultyGroup_CHEDCode'));\n\t\t$tbl_profile->facultyRank_ID->setDbValue($rs->fields('facultyRank_ID'));\n\t\t$tbl_profile->facultyprofile_sg->setDbValue($rs->fields('facultyprofile_sg'));\n\t\t$tbl_profile->facultyprofile_annualSalary->setDbValue($rs->fields('facultyprofile_annualSalary'));\n\t\t$tbl_profile->facultyprofile_fte->setDbValue($rs->fields('facultyprofile_fte'));\n\t\t$tbl_profile->facultyprofile_tenureCode->setDbValue($rs->fields('facultyprofile_tenureCode'));\n\t\t$tbl_profile->facultyprofile_leaveCode->setDbValue($rs->fields('facultyprofile_leaveCode'));\n\t\t$tbl_profile->facultyprofile_disCHED_disciplineMajorCode_gen->setDbValue($rs->fields('facultyprofile_disCHED_disciplineMajorCode_gen'));\n\t\t$tbl_profile->disCHED_disciplineCode_gen->setDbValue($rs->fields('disCHED_disciplineCode_gen'));\n\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->setDbValue($rs->fields('facultyprofile_specificDiscipline_1_primaryTeachingLoad'));\n\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->setDbValue($rs->fields('facultyprofile_specificDiscipline_2_primaryTeachingLoad'));\n\t\t$tbl_profile->facultyprofile_labHrs_basic->setDbValue($rs->fields('facultyprofile_labHrs_basic'));\n\t\t$tbl_profile->facultyprofile_lecHrs_basic->setDbValue($rs->fields('facultyprofile_lecHrs_basic'));\n\t\t$tbl_profile->facultyprofile_totalHrs_basic->setDbValue($rs->fields('facultyprofile_totalHrs_basic'));\n\t\t$tbl_profile->facultyprofile_labSCH_basic->setDbValue($rs->fields('facultyprofile_labSCH_basic'));\n\t\t$tbl_profile->facultyprofile_lecSCH_basic->setDbValue($rs->fields('facultyprofile_lecSCH_basic'));\n\t\t$tbl_profile->facultyprofile_totalSCH_basic->setDbValue($rs->fields('facultyprofile_totalSCH_basic'));\n\t\t$tbl_profile->facultyprofile_labCr_ugrad->setDbValue($rs->fields('facultyprofile_labCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_lecCr_ugrad->setDbValue($rs->fields('facultyprofile_lecCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->setDbValue($rs->fields('facultyprofile_mixedLabLecCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_totalCr_ugrad->setDbValue($rs->fields('facultyprofile_totalCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_labHrs_ugrad->setDbValue($rs->fields('facultyprofile_labHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->setDbValue($rs->fields('facultyprofile_lecHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->setDbValue($rs->fields('facultyprofile_mixedLabLecHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->setDbValue($rs->fields('facultyprofile_totalHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_labSCH_ugrad->setDbValue($rs->fields('facultyprofile_labSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->setDbValue($rs->fields('facultyprofile_lecSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->setDbValue($rs->fields('facultyprofile_mixedLabLecSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->setDbValue($rs->fields('facultyprofile_totalSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_labCr_graduate->setDbValue($rs->fields('facultyprofile_labCr_graduate'));\n\t\t$tbl_profile->facultyprofile_lecCr_graduate->setDbValue($rs->fields('facultyprofile_lecCr_graduate'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->setDbValue($rs->fields('facultyprofile_mixedLabLecCr_graduate'));\n\t\t$tbl_profile->facultyprofile_totalCr_graduate->setDbValue($rs->fields('facultyprofile_totalCr_graduate'));\n\t\t$tbl_profile->facultyprofile_labHrs_graduate->setDbValue($rs->fields('facultyprofile_labHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_lecHrs_graduate->setDbValue($rs->fields('facultyprofile_lecHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->setDbValue($rs->fields('facultyprofile_mixedLabLecHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_totalHrs_graduate->setDbValue($rs->fields('facultyprofile_totalHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_labSCH_graduate->setDbValue($rs->fields('facultyprofile_labSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_lecSCH_graduate->setDbValue($rs->fields('facultyprofile_lecSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->setDbValue($rs->fields('facultyprofile_mixedLabLecSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_totalSCH_graduate->setDbValue($rs->fields('facultyprofile_totalSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_researchLoad->setDbValue($rs->fields('facultyprofile_researchLoad'));\n\t\t$tbl_profile->facultyprofile_extensionServicesLoad->setDbValue($rs->fields('facultyprofile_extensionServicesLoad'));\n\t\t$tbl_profile->facultyprofile_studyLoad->setDbValue($rs->fields('facultyprofile_studyLoad'));\n\t\t$tbl_profile->facultyprofile_forProductionLoad->setDbValue($rs->fields('facultyprofile_forProductionLoad'));\n\t\t$tbl_profile->facultyprofile_administrativeLoad->setDbValue($rs->fields('facultyprofile_administrativeLoad'));\n\t\t$tbl_profile->facultyprofile_otherLoadCredits->setDbValue($rs->fields('facultyprofile_otherLoadCredits'));\n\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->setDbValue($rs->fields('facultyprofile_total_nonTeachingLoad'));\n\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->setDbValue($rs->fields('facultyprofile_totalWorkloadInCreditUnits_gen'));\n\t\t$tbl_profile->facultyprofile_remarks->setDbValue($rs->fields('facultyprofile_remarks'));\n\t\t$tbl_profile->collectionPeriod_status->setDbValue($rs->fields('collectionPeriod_status'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id_admission->DbValue = $row['id_admission'];\n\t\t$this->nomr->DbValue = $row['nomr'];\n\t\t$this->ket_nama->DbValue = $row['ket_nama'];\n\t\t$this->ket_tgllahir->DbValue = $row['ket_tgllahir'];\n\t\t$this->ket_alamat->DbValue = $row['ket_alamat'];\n\t\t$this->ket_jeniskelamin->DbValue = $row['ket_jeniskelamin'];\n\t\t$this->ket_title->DbValue = $row['ket_title'];\n\t\t$this->dokterpengirim->DbValue = $row['dokterpengirim'];\n\t\t$this->statusbayar->DbValue = $row['statusbayar'];\n\t\t$this->kirimdari->DbValue = $row['kirimdari'];\n\t\t$this->keluargadekat->DbValue = $row['keluargadekat'];\n\t\t$this->panggungjawab->DbValue = $row['panggungjawab'];\n\t\t$this->masukrs->DbValue = $row['masukrs'];\n\t\t$this->noruang->DbValue = $row['noruang'];\n\t\t$this->tempat_tidur_id->DbValue = $row['tempat_tidur_id'];\n\t\t$this->nott->DbValue = $row['nott'];\n\t\t$this->NIP->DbValue = $row['NIP'];\n\t\t$this->dokter_penanggungjawab->DbValue = $row['dokter_penanggungjawab'];\n\t\t$this->KELASPERAWATAN_ID->DbValue = $row['KELASPERAWATAN_ID'];\n\t\t$this->NO_SKP->DbValue = $row['NO_SKP'];\n\t\t$this->sep_tglsep->DbValue = $row['sep_tglsep'];\n\t\t$this->sep_tglrujuk->DbValue = $row['sep_tglrujuk'];\n\t\t$this->sep_kodekelasrawat->DbValue = $row['sep_kodekelasrawat'];\n\t\t$this->sep_norujukan->DbValue = $row['sep_norujukan'];\n\t\t$this->sep_kodeppkasal->DbValue = $row['sep_kodeppkasal'];\n\t\t$this->sep_namappkasal->DbValue = $row['sep_namappkasal'];\n\t\t$this->sep_kodeppkpelayanan->DbValue = $row['sep_kodeppkpelayanan'];\n\t\t$this->sep_jenisperawatan->DbValue = $row['sep_jenisperawatan'];\n\t\t$this->sep_catatan->DbValue = $row['sep_catatan'];\n\t\t$this->sep_kodediagnosaawal->DbValue = $row['sep_kodediagnosaawal'];\n\t\t$this->sep_namadiagnosaawal->DbValue = $row['sep_namadiagnosaawal'];\n\t\t$this->sep_lakalantas->DbValue = $row['sep_lakalantas'];\n\t\t$this->sep_lokasilaka->DbValue = $row['sep_lokasilaka'];\n\t\t$this->sep_user->DbValue = $row['sep_user'];\n\t\t$this->sep_flag_cekpeserta->DbValue = $row['sep_flag_cekpeserta'];\n\t\t$this->sep_flag_generatesep->DbValue = $row['sep_flag_generatesep'];\n\t\t$this->sep_nik->DbValue = $row['sep_nik'];\n\t\t$this->sep_namapeserta->DbValue = $row['sep_namapeserta'];\n\t\t$this->sep_jeniskelamin->DbValue = $row['sep_jeniskelamin'];\n\t\t$this->sep_pisat->DbValue = $row['sep_pisat'];\n\t\t$this->sep_tgllahir->DbValue = $row['sep_tgllahir'];\n\t\t$this->sep_kodejeniskepesertaan->DbValue = $row['sep_kodejeniskepesertaan'];\n\t\t$this->sep_namajeniskepesertaan->DbValue = $row['sep_namajeniskepesertaan'];\n\t\t$this->sep_nokabpjs->DbValue = $row['sep_nokabpjs'];\n\t\t$this->sep_status_peserta->DbValue = $row['sep_status_peserta'];\n\t\t$this->sep_umur_pasien_sekarang->DbValue = $row['sep_umur_pasien_sekarang'];\n\t\t$this->statuskeluarranap_id->DbValue = $row['statuskeluarranap_id'];\n\t\t$this->keluarrs->DbValue = $row['keluarrs'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->nombre_contacto->DbValue = $row['nombre_contacto'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->lastname->DbValue = $row['lastname'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->address->DbValue = $row['address'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->cell->DbValue = $row['cell'];\n\t\t$this->is_active->DbValue = $row['is_active'];\n\t\t$this->created_at->DbValue = $row['created_at'];\n\t\t$this->id_sucursal->DbValue = $row['id_sucursal'];\n\t\t$this->documentos->DbValue = $row['documentos'];\n\t\t$this->DateModified->DbValue = $row['DateModified'];\n\t\t$this->DateDeleted->DbValue = $row['DateDeleted'];\n\t\t$this->CreatedBy->DbValue = $row['CreatedBy'];\n\t\t$this->ModifiedBy->DbValue = $row['ModifiedBy'];\n\t\t$this->DeletedBy->DbValue = $row['DeletedBy'];\n\t\t$this->latitud->DbValue = $row['latitud'];\n\t\t$this->longitud->DbValue = $row['longitud'];\n\t\t$this->tipoinmueble->DbValue = $row['tipoinmueble'];\n\t\t$this->id_ciudad_inmueble->DbValue = $row['id_ciudad_inmueble'];\n\t\t$this->id_provincia_inmueble->DbValue = $row['id_provincia_inmueble'];\n\t\t$this->imagen_inmueble01->Upload->DbValue = $row['imagen_inmueble01'];\n\t\t$this->imagen_inmueble02->Upload->DbValue = $row['imagen_inmueble02'];\n\t\t$this->imagen_inmueble03->Upload->DbValue = $row['imagen_inmueble03'];\n\t\t$this->imagen_inmueble04->Upload->DbValue = $row['imagen_inmueble04'];\n\t\t$this->imagen_inmueble05->Upload->DbValue = $row['imagen_inmueble05'];\n\t\t$this->imagen_inmueble06->Upload->DbValue = $row['imagen_inmueble06'];\n\t\t$this->imagen_inmueble07->Upload->DbValue = $row['imagen_inmueble07'];\n\t\t$this->imagen_inmueble08->Upload->DbValue = $row['imagen_inmueble08'];\n\t\t$this->tipovehiculo->DbValue = $row['tipovehiculo'];\n\t\t$this->id_ciudad_vehiculo->DbValue = $row['id_ciudad_vehiculo'];\n\t\t$this->id_provincia_vehiculo->DbValue = $row['id_provincia_vehiculo'];\n\t\t$this->imagen_vehiculo01->Upload->DbValue = $row['imagen_vehiculo01'];\n\t\t$this->imagen_vehiculo02->Upload->DbValue = $row['imagen_vehiculo02'];\n\t\t$this->imagen_vehiculo03->Upload->DbValue = $row['imagen_vehiculo03'];\n\t\t$this->imagen_vehiculo04->Upload->DbValue = $row['imagen_vehiculo04'];\n\t\t$this->imagen_vehiculo05->Upload->DbValue = $row['imagen_vehiculo05'];\n\t\t$this->imagen_vehiculo06->Upload->DbValue = $row['imagen_vehiculo06'];\n\t\t$this->imagen_vehiculo07->Upload->DbValue = $row['imagen_vehiculo07'];\n\t\t$this->imagen_vehiculo08->Upload->DbValue = $row['imagen_vehiculo08'];\n\t\t$this->tipomaquinaria->DbValue = $row['tipomaquinaria'];\n\t\t$this->id_ciudad_maquinaria->DbValue = $row['id_ciudad_maquinaria'];\n\t\t$this->id_provincia_maquinaria->DbValue = $row['id_provincia_maquinaria'];\n\t\t$this->imagen_maquinaria01->Upload->DbValue = $row['imagen_maquinaria01'];\n\t\t$this->imagen_maquinaria02->Upload->DbValue = $row['imagen_maquinaria02'];\n\t\t$this->imagen_maquinaria03->Upload->DbValue = $row['imagen_maquinaria03'];\n\t\t$this->imagen_maquinaria04->Upload->DbValue = $row['imagen_maquinaria04'];\n\t\t$this->imagen_maquinaria05->Upload->DbValue = $row['imagen_maquinaria05'];\n\t\t$this->imagen_maquinaria06->Upload->DbValue = $row['imagen_maquinaria06'];\n\t\t$this->imagen_maquinaria07->Upload->DbValue = $row['imagen_maquinaria07'];\n\t\t$this->imagen_maquinaria08->Upload->DbValue = $row['imagen_maquinaria08'];\n\t\t$this->tipomercaderia->DbValue = $row['tipomercaderia'];\n\t\t$this->imagen_mercaderia01->Upload->DbValue = $row['imagen_mercaderia01'];\n\t\t$this->documento_mercaderia->DbValue = $row['documento_mercaderia'];\n\t\t$this->tipoespecial->DbValue = $row['tipoespecial'];\n\t\t$this->imagen_tipoespecial01->Upload->DbValue = $row['imagen_tipoespecial01'];\n\t\t$this->email_contacto->DbValue = $row['email_contacto'];\n\t}", "public abstract function fetchRow($result_set);", "protected function loadDbValues(&$rs)\n\t{\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->fecha->DbValue = $row['fecha'];\n\t\t$this->hora->DbValue = $row['hora'];\n\t\t$this->audio->DbValue = $row['audio'];\n\t\t$this->st->DbValue = $row['st'];\n\t\t$this->fechaHoraIni->DbValue = $row['fechaHoraIni'];\n\t\t$this->fechaHoraFin->DbValue = $row['fechaHoraFin'];\n\t\t$this->telefono->DbValue = $row['telefono'];\n\t\t$this->agente->DbValue = $row['agente'];\n\t\t$this->fechabo->DbValue = $row['fechabo'];\n\t\t$this->agentebo->DbValue = $row['agentebo'];\n\t\t$this->comentariosbo->DbValue = $row['comentariosbo'];\n\t\t$this->IP->DbValue = $row['IP'];\n\t\t$this->actual->DbValue = $row['actual'];\n\t\t$this->completado->DbValue = $row['completado'];\n\t\t$this->_2_1_R->DbValue = $row['2_1_R'];\n\t\t$this->_2_2_R->DbValue = $row['2_2_R'];\n\t\t$this->_2_3_R->DbValue = $row['2_3_R'];\n\t\t$this->_3_4_R->DbValue = $row['3_4_R'];\n\t\t$this->_4_5_R->DbValue = $row['4_5_R'];\n\t\t$this->_4_6_R->DbValue = $row['4_6_R'];\n\t\t$this->_4_7_R->DbValue = $row['4_7_R'];\n\t\t$this->_4_8_R->DbValue = $row['4_8_R'];\n\t\t$this->_5_9_R->DbValue = $row['5_9_R'];\n\t\t$this->_5_10_R->DbValue = $row['5_10_R'];\n\t\t$this->_5_11_R->DbValue = $row['5_11_R'];\n\t\t$this->_5_12_R->DbValue = $row['5_12_R'];\n\t\t$this->_5_13_R->DbValue = $row['5_13_R'];\n\t\t$this->_5_14_R->DbValue = $row['5_14_R'];\n\t\t$this->_5_51_R->DbValue = $row['5_51_R'];\n\t\t$this->_6_15_R->DbValue = $row['6_15_R'];\n\t\t$this->_6_16_R->DbValue = $row['6_16_R'];\n\t\t$this->_6_17_R->DbValue = $row['6_17_R'];\n\t\t$this->_6_18_R->DbValue = $row['6_18_R'];\n\t\t$this->_6_19_R->DbValue = $row['6_19_R'];\n\t\t$this->_6_20_R->DbValue = $row['6_20_R'];\n\t\t$this->_6_52_R->DbValue = $row['6_52_R'];\n\t\t$this->_7_21_R->DbValue = $row['7_21_R'];\n\t\t$this->_8_22_R->DbValue = $row['8_22_R'];\n\t\t$this->_8_23_R->DbValue = $row['8_23_R'];\n\t\t$this->_8_24_R->DbValue = $row['8_24_R'];\n\t\t$this->_8_25_R->DbValue = $row['8_25_R'];\n\t\t$this->_9_26_R->DbValue = $row['9_26_R'];\n\t\t$this->_9_27_R->DbValue = $row['9_27_R'];\n\t\t$this->_9_28_R->DbValue = $row['9_28_R'];\n\t\t$this->_9_29_R->DbValue = $row['9_29_R'];\n\t\t$this->_9_30_R->DbValue = $row['9_30_R'];\n\t\t$this->_9_31_R->DbValue = $row['9_31_R'];\n\t\t$this->_9_32_R->DbValue = $row['9_32_R'];\n\t\t$this->_9_33_R->DbValue = $row['9_33_R'];\n\t\t$this->_9_34_R->DbValue = $row['9_34_R'];\n\t\t$this->_9_35_R->DbValue = $row['9_35_R'];\n\t\t$this->_9_36_R->DbValue = $row['9_36_R'];\n\t\t$this->_9_37_R->DbValue = $row['9_37_R'];\n\t\t$this->_9_38_R->DbValue = $row['9_38_R'];\n\t\t$this->_9_39_R->DbValue = $row['9_39_R'];\n\t\t$this->_10_40_R->DbValue = $row['10_40_R'];\n\t\t$this->_10_41_R->DbValue = $row['10_41_R'];\n\t\t$this->_11_42_R->DbValue = $row['11_42_R'];\n\t\t$this->_11_43_R->DbValue = $row['11_43_R'];\n\t\t$this->_12_44_R->DbValue = $row['12_44_R'];\n\t\t$this->_12_45_R->DbValue = $row['12_45_R'];\n\t\t$this->_12_46_R->DbValue = $row['12_46_R'];\n\t\t$this->_12_47_R->DbValue = $row['12_47_R'];\n\t\t$this->_12_48_R->DbValue = $row['12_48_R'];\n\t\t$this->_12_49_R->DbValue = $row['12_49_R'];\n\t\t$this->_12_50_R->DbValue = $row['12_50_R'];\n\t\t$this->_1__R->DbValue = $row['1__R'];\n\t\t$this->_13_54_R->DbValue = $row['13_54_R'];\n\t\t$this->_13_54_1_R->DbValue = $row['13_54_1_R'];\n\t\t$this->_13_54_2_R->DbValue = $row['13_54_2_R'];\n\t\t$this->_13_55_R->DbValue = $row['13_55_R'];\n\t\t$this->_13_55_1_R->DbValue = $row['13_55_1_R'];\n\t\t$this->_13_55_2_R->DbValue = $row['13_55_2_R'];\n\t\t$this->_13_56_R->DbValue = $row['13_56_R'];\n\t\t$this->_13_56_1_R->DbValue = $row['13_56_1_R'];\n\t\t$this->_13_56_2_R->DbValue = $row['13_56_2_R'];\n\t\t$this->_12_53_R->DbValue = $row['12_53_R'];\n\t\t$this->_12_53_1_R->DbValue = $row['12_53_1_R'];\n\t\t$this->_12_53_2_R->DbValue = $row['12_53_2_R'];\n\t\t$this->_12_53_3_R->DbValue = $row['12_53_3_R'];\n\t\t$this->_12_53_4_R->DbValue = $row['12_53_4_R'];\n\t\t$this->_12_53_5_R->DbValue = $row['12_53_5_R'];\n\t\t$this->_12_53_6_R->DbValue = $row['12_53_6_R'];\n\t\t$this->_13_57_R->DbValue = $row['13_57_R'];\n\t\t$this->_13_57_1_R->DbValue = $row['13_57_1_R'];\n\t\t$this->_13_57_2_R->DbValue = $row['13_57_2_R'];\n\t\t$this->_13_58_R->DbValue = $row['13_58_R'];\n\t\t$this->_13_58_1_R->DbValue = $row['13_58_1_R'];\n\t\t$this->_13_58_2_R->DbValue = $row['13_58_2_R'];\n\t\t$this->_13_59_R->DbValue = $row['13_59_R'];\n\t\t$this->_13_59_1_R->DbValue = $row['13_59_1_R'];\n\t\t$this->_13_59_2_R->DbValue = $row['13_59_2_R'];\n\t\t$this->_13_60_R->DbValue = $row['13_60_R'];\n\t\t$this->_12_53_7_R->DbValue = $row['12_53_7_R'];\n\t\t$this->_12_53_8_R->DbValue = $row['12_53_8_R'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->tgl->DbValue = $row['tgl'];\n\t\t$this->no_spp->DbValue = $row['no_spp'];\n\t\t$this->jns_spp->DbValue = $row['jns_spp'];\n\t\t$this->kd_mata->DbValue = $row['kd_mata'];\n\t\t$this->urai->DbValue = $row['urai'];\n\t\t$this->jmlh->DbValue = $row['jmlh'];\n\t\t$this->jmlh1->DbValue = $row['jmlh1'];\n\t\t$this->jmlh2->DbValue = $row['jmlh2'];\n\t\t$this->jmlh3->DbValue = $row['jmlh3'];\n\t\t$this->jmlh4->DbValue = $row['jmlh4'];\n\t\t$this->nm_perus->DbValue = $row['nm_perus'];\n\t\t$this->alamat->DbValue = $row['alamat'];\n\t\t$this->npwp->DbValue = $row['npwp'];\n\t\t$this->pimpinan->DbValue = $row['pimpinan'];\n\t\t$this->bank->DbValue = $row['bank'];\n\t\t$this->rek->DbValue = $row['rek'];\n\t\t$this->nospm->DbValue = $row['nospm'];\n\t\t$this->tglspm->DbValue = $row['tglspm'];\n\t\t$this->ppn->DbValue = $row['ppn'];\n\t\t$this->ps21->DbValue = $row['ps21'];\n\t\t$this->ps22->DbValue = $row['ps22'];\n\t\t$this->ps23->DbValue = $row['ps23'];\n\t\t$this->ps4->DbValue = $row['ps4'];\n\t\t$this->kodespm->DbValue = $row['kodespm'];\n\t\t$this->nambud->DbValue = $row['nambud'];\n\t\t$this->nppk->DbValue = $row['nppk'];\n\t\t$this->nipppk->DbValue = $row['nipppk'];\n\t\t$this->prog->DbValue = $row['prog'];\n\t\t$this->prog1->DbValue = $row['prog1'];\n\t\t$this->bayar->DbValue = $row['bayar'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->fecha_tamizaje->DbValue = $row['fecha_tamizaje'];\n\t\t$this->id_centro->DbValue = $row['id_centro'];\n\t\t$this->apellidopaterno->DbValue = $row['apellidopaterno'];\n\t\t$this->apellidomaterno->DbValue = $row['apellidomaterno'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->ci->DbValue = $row['ci'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->dias->DbValue = $row['dias'];\n\t\t$this->semanas->DbValue = $row['semanas'];\n\t\t$this->meses->DbValue = $row['meses'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->discapacidad->DbValue = $row['discapacidad'];\n\t\t$this->id_tipodiscapacidad->DbValue = $row['id_tipodiscapacidad'];\n\t\t$this->resultado->DbValue = $row['resultado'];\n\t\t$this->resultadotamizaje->DbValue = $row['resultadotamizaje'];\n\t\t$this->tapon->DbValue = $row['tapon'];\n\t\t$this->tipo->DbValue = $row['tipo'];\n\t\t$this->repetirprueba->DbValue = $row['repetirprueba'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->id_apoderado->DbValue = $row['id_apoderado'];\n\t\t$this->id_referencia->DbValue = $row['id_referencia'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->detail_jenis_spp->DbValue = $row['detail_jenis_spp'];\n\t\t$this->id_jenis_spp->DbValue = $row['id_jenis_spp'];\n\t\t$this->status_spp->DbValue = $row['status_spp'];\n\t\t$this->no_spp->DbValue = $row['no_spp'];\n\t\t$this->tgl_spp->DbValue = $row['tgl_spp'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t\t$this->jumlah_up->DbValue = $row['jumlah_up'];\n\t\t$this->bendahara->DbValue = $row['bendahara'];\n\t\t$this->nama_pptk->DbValue = $row['nama_pptk'];\n\t\t$this->nip_pptk->DbValue = $row['nip_pptk'];\n\t\t$this->kode_program->DbValue = $row['kode_program'];\n\t\t$this->kode_kegiatan->DbValue = $row['kode_kegiatan'];\n\t\t$this->kode_sub_kegiatan->DbValue = $row['kode_sub_kegiatan'];\n\t\t$this->tahun_anggaran->DbValue = $row['tahun_anggaran'];\n\t\t$this->jumlah_spd->DbValue = $row['jumlah_spd'];\n\t\t$this->nomer_dasar_spd->DbValue = $row['nomer_dasar_spd'];\n\t\t$this->tanggal_spd->DbValue = $row['tanggal_spd'];\n\t\t$this->id_spd->DbValue = $row['id_spd'];\n\t\t$this->kode_rekening->DbValue = $row['kode_rekening'];\n\t\t$this->nama_bendahara->DbValue = $row['nama_bendahara'];\n\t\t$this->nip_bendahara->DbValue = $row['nip_bendahara'];\n\t\t$this->no_spm->DbValue = $row['no_spm'];\n\t\t$this->tgl_spm->DbValue = $row['tgl_spm'];\n\t\t$this->status_spm->DbValue = $row['status_spm'];\n\t\t$this->nama_bank->DbValue = $row['nama_bank'];\n\t\t$this->nomer_rekening_bank->DbValue = $row['nomer_rekening_bank'];\n\t\t$this->npwp->DbValue = $row['npwp'];\n\t\t$this->pimpinan_blud->DbValue = $row['pimpinan_blud'];\n\t\t$this->nip_pimpinan->DbValue = $row['nip_pimpinan'];\n\t\t$this->no_sptb->DbValue = $row['no_sptb'];\n\t\t$this->tgl_sptb->DbValue = $row['tgl_sptb'];\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $rekeningju;\r\n\t\t$sFilter = $rekeningju->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$rekeningju->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$rekeningju->CurrentFilter = $sFilter;\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->IDXDAFTAR->DbValue = $row['IDXDAFTAR'];\n\t\t$this->NOMR->DbValue = $row['NOMR'];\n\t\t$this->KDPOLY->DbValue = $row['KDPOLY'];\n\t\t$this->KDCARABAYAR->DbValue = $row['KDCARABAYAR'];\n\t\t$this->NIP->DbValue = $row['NIP'];\n\t\t$this->TGLREG->DbValue = $row['TGLREG'];\n\t\t$this->JAMREG->DbValue = $row['JAMREG'];\n\t\t$this->NO_SJP->DbValue = $row['NO_SJP'];\n\t\t$this->NOKARTU->DbValue = $row['NOKARTU'];\n\t\t$this->TANGGAL_SEP->DbValue = $row['TANGGAL_SEP'];\n\t\t$this->TANGGALRUJUK_SEP->DbValue = $row['TANGGALRUJUK_SEP'];\n\t\t$this->KELASRAWAT_SEP->DbValue = $row['KELASRAWAT_SEP'];\n\t\t$this->NORUJUKAN_SEP->DbValue = $row['NORUJUKAN_SEP'];\n\t\t$this->PPKPELAYANAN_SEP->DbValue = $row['PPKPELAYANAN_SEP'];\n\t\t$this->JENISPERAWATAN_SEP->DbValue = $row['JENISPERAWATAN_SEP'];\n\t\t$this->CATATAN_SEP->DbValue = $row['CATATAN_SEP'];\n\t\t$this->DIAGNOSAAWAL_SEP->DbValue = $row['DIAGNOSAAWAL_SEP'];\n\t\t$this->NAMADIAGNOSA_SEP->DbValue = $row['NAMADIAGNOSA_SEP'];\n\t\t$this->LAKALANTAS_SEP->DbValue = $row['LAKALANTAS_SEP'];\n\t\t$this->LOKASILAKALANTAS->DbValue = $row['LOKASILAKALANTAS'];\n\t\t$this->USER->DbValue = $row['USER'];\n\t\t$this->generate_sep->DbValue = $row['generate_sep'];\n\t\t$this->PESERTANIK_SEP->DbValue = $row['PESERTANIK_SEP'];\n\t\t$this->PESERTANAMA_SEP->DbValue = $row['PESERTANAMA_SEP'];\n\t\t$this->PESERTAJENISKELAMIN_SEP->DbValue = $row['PESERTAJENISKELAMIN_SEP'];\n\t\t$this->PESERTANAMAKELAS_SEP->DbValue = $row['PESERTANAMAKELAS_SEP'];\n\t\t$this->PESERTAPISAT->DbValue = $row['PESERTAPISAT'];\n\t\t$this->PESERTATGLLAHIR->DbValue = $row['PESERTATGLLAHIR'];\n\t\t$this->PESERTAJENISPESERTA_SEP->DbValue = $row['PESERTAJENISPESERTA_SEP'];\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->DbValue = $row['PESERTANAMAJENISPESERTA_SEP'];\n\t\t$this->POLITUJUAN_SEP->DbValue = $row['POLITUJUAN_SEP'];\n\t\t$this->NAMAPOLITUJUAN_SEP->DbValue = $row['NAMAPOLITUJUAN_SEP'];\n\t\t$this->KDPPKRUJUKAN_SEP->DbValue = $row['KDPPKRUJUKAN_SEP'];\n\t\t$this->NMPPKRUJUKAN_SEP->DbValue = $row['NMPPKRUJUKAN_SEP'];\n\t\t$this->mapingtransaksi->DbValue = $row['mapingtransaksi'];\n\t\t$this->bridging_kepesertaan_by_no_ka->DbValue = $row['bridging_kepesertaan_by_no_ka'];\n\t\t$this->pasien_NOTELP->DbValue = $row['pasien_NOTELP'];\n\t\t$this->penjamin_kkl_id->DbValue = $row['penjamin_kkl_id'];\n\t\t$this->asalfaskesrujukan_id->DbValue = $row['asalfaskesrujukan_id'];\n\t\t$this->peserta_cob->DbValue = $row['peserta_cob'];\n\t\t$this->poli_eksekutif->DbValue = $row['poli_eksekutif'];\n\t\t$this->status_kepesertaan_BPJS->DbValue = $row['status_kepesertaan_BPJS'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Dni_Tutor->DbValue = $row['Dni_Tutor'];\r\n\t\t$this->Apellidos_Nombres->DbValue = $row['Apellidos_Nombres'];\r\n\t\t$this->Edad->DbValue = $row['Edad'];\r\n\t\t$this->Domicilio->DbValue = $row['Domicilio'];\r\n\t\t$this->Tel_Contacto->DbValue = $row['Tel_Contacto'];\r\n\t\t$this->Fecha_Nac->DbValue = $row['Fecha_Nac'];\r\n\t\t$this->Cuil->DbValue = $row['Cuil'];\r\n\t\t$this->MasHijos->DbValue = $row['MasHijos'];\r\n\t\t$this->Id_Estado_Civil->DbValue = $row['Id_Estado_Civil'];\r\n\t\t$this->Id_Sexo->DbValue = $row['Id_Sexo'];\r\n\t\t$this->Id_Relacion->DbValue = $row['Id_Relacion'];\r\n\t\t$this->Id_Ocupacion->DbValue = $row['Id_Ocupacion'];\r\n\t\t$this->Lugar_Nacimiento->DbValue = $row['Lugar_Nacimiento'];\r\n\t\t$this->Id_Provincia->DbValue = $row['Id_Provincia'];\r\n\t\t$this->Id_Departamento->DbValue = $row['Id_Departamento'];\r\n\t\t$this->Id_Localidad->DbValue = $row['Id_Localidad'];\r\n\t\t$this->Fecha_Actualizacion->DbValue = $row['Fecha_Actualizacion'];\r\n\t\t$this->Usuario->DbValue = $row['Usuario'];\r\n\t}", "abstract protected function _getRowAssoc($rs);", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $fs_multijoin_v;\r\n\t\t$sFilter = $fs_multijoin_v->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$fs_multijoin_v->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$fs_multijoin_v->CurrentFilter = $sFilter;\r\n\t\t$sSql = $fs_multijoin_v->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t// Call Row Selected event\r\n\t\t\t$fs_multijoin_v->Row_Selected($rs);\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->password->DbValue = $row['password'];\n\t\t$this->companyname->DbValue = $row['companyname'];\n\t\t$this->servicetime->DbValue = $row['servicetime'];\n\t\t$this->country->DbValue = $row['country'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->skype->DbValue = $row['skype'];\n\t\t$this->website->DbValue = $row['website'];\n\t\t$this->linkedin->DbValue = $row['linkedin'];\n\t\t$this->facebook->DbValue = $row['facebook'];\n\t\t$this->twitter->DbValue = $row['twitter'];\n\t\t$this->active_code->DbValue = $row['active_code'];\n\t\t$this->identification->DbValue = $row['identification'];\n\t\t$this->link_expired->DbValue = $row['link_expired'];\n\t\t$this->isactive->DbValue = $row['isactive'];\n\t\t$this->pio->DbValue = $row['pio'];\n\t\t$this->google->DbValue = $row['google'];\n\t\t$this->instagram->DbValue = $row['instagram'];\n\t\t$this->account_type->DbValue = $row['account_type'];\n\t\t$this->logo->DbValue = $row['logo'];\n\t\t$this->profilepic->DbValue = $row['profilepic'];\n\t\t$this->mailref->DbValue = $row['mailref'];\n\t\t$this->deleted->DbValue = $row['deleted'];\n\t\t$this->deletefeedback->DbValue = $row['deletefeedback'];\n\t\t$this->account_id->DbValue = $row['account_id'];\n\t\t$this->start_date->DbValue = $row['start_date'];\n\t\t$this->end_date->DbValue = $row['end_date'];\n\t\t$this->year_moth->DbValue = $row['year_moth'];\n\t\t$this->registerdate->DbValue = $row['registerdate'];\n\t\t$this->login_type->DbValue = $row['login_type'];\n\t\t$this->accountstatus->DbValue = $row['accountstatus'];\n\t\t$this->ispay->DbValue = $row['ispay'];\n\t\t$this->profilelink->DbValue = $row['profilelink'];\n\t\t$this->source->DbValue = $row['source'];\n\t\t$this->agree->DbValue = $row['agree'];\n\t\t$this->balance->DbValue = $row['balance'];\n\t\t$this->job_title->DbValue = $row['job_title'];\n\t\t$this->projects->DbValue = $row['projects'];\n\t\t$this->opportunities->DbValue = $row['opportunities'];\n\t\t$this->isconsaltant->DbValue = $row['isconsaltant'];\n\t\t$this->isagent->DbValue = $row['isagent'];\n\t\t$this->isinvestor->DbValue = $row['isinvestor'];\n\t\t$this->isbusinessman->DbValue = $row['isbusinessman'];\n\t\t$this->isprovider->DbValue = $row['isprovider'];\n\t\t$this->isproductowner->DbValue = $row['isproductowner'];\n\t\t$this->states->DbValue = $row['states'];\n\t\t$this->cities->DbValue = $row['cities'];\n\t\t$this->offers->DbValue = $row['offers'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->password->DbValue = $row['password'];\n\t\t$this->companyname->DbValue = $row['companyname'];\n\t\t$this->servicetime->DbValue = $row['servicetime'];\n\t\t$this->country->DbValue = $row['country'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->skype->DbValue = $row['skype'];\n\t\t$this->website->DbValue = $row['website'];\n\t\t$this->linkedin->DbValue = $row['linkedin'];\n\t\t$this->facebook->DbValue = $row['facebook'];\n\t\t$this->twitter->DbValue = $row['twitter'];\n\t\t$this->active_code->DbValue = $row['active_code'];\n\t\t$this->identification->DbValue = $row['identification'];\n\t\t$this->link_expired->DbValue = $row['link_expired'];\n\t\t$this->isactive->DbValue = $row['isactive'];\n\t\t$this->pio->DbValue = $row['pio'];\n\t\t$this->google->DbValue = $row['google'];\n\t\t$this->instagram->DbValue = $row['instagram'];\n\t\t$this->account_type->DbValue = $row['account_type'];\n\t\t$this->logo->DbValue = $row['logo'];\n\t\t$this->profilepic->DbValue = $row['profilepic'];\n\t\t$this->mailref->DbValue = $row['mailref'];\n\t\t$this->deleted->DbValue = $row['deleted'];\n\t\t$this->deletefeedback->DbValue = $row['deletefeedback'];\n\t\t$this->account_id->DbValue = $row['account_id'];\n\t\t$this->start_date->DbValue = $row['start_date'];\n\t\t$this->end_date->DbValue = $row['end_date'];\n\t\t$this->year_moth->DbValue = $row['year_moth'];\n\t\t$this->registerdate->DbValue = $row['registerdate'];\n\t\t$this->login_type->DbValue = $row['login_type'];\n\t\t$this->accountstatus->DbValue = $row['accountstatus'];\n\t\t$this->ispay->DbValue = $row['ispay'];\n\t\t$this->profilelink->DbValue = $row['profilelink'];\n\t\t$this->source->DbValue = $row['source'];\n\t\t$this->agree->DbValue = $row['agree'];\n\t\t$this->balance->DbValue = $row['balance'];\n\t\t$this->job_title->DbValue = $row['job_title'];\n\t\t$this->projects->DbValue = $row['projects'];\n\t\t$this->opportunities->DbValue = $row['opportunities'];\n\t\t$this->isconsaltant->DbValue = $row['isconsaltant'];\n\t\t$this->isagent->DbValue = $row['isagent'];\n\t\t$this->isinvestor->DbValue = $row['isinvestor'];\n\t\t$this->isbusinessman->DbValue = $row['isbusinessman'];\n\t\t$this->isprovider->DbValue = $row['isprovider'];\n\t\t$this->isproductowner->DbValue = $row['isproductowner'];\n\t\t$this->states->DbValue = $row['states'];\n\t\t$this->cities->DbValue = $row['cities'];\n\t\t$this->offers->DbValue = $row['offers'];\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}" ]
[ "0.7389275", "0.73217857", "0.7303611", "0.72863", "0.7282693", "0.7209876", "0.7209876", "0.71737766", "0.7168146", "0.7162371", "0.7162371", "0.7152201", "0.714214", "0.714214", "0.71417767", "0.7127528", "0.7094694", "0.70793027", "0.7076669", "0.7076019", "0.7071033", "0.7057916", "0.70534873", "0.7020043", "0.70054424", "0.69995934", "0.69991744", "0.6987693", "0.6969372", "0.6965423", "0.69642013", "0.69604945", "0.6951176", "0.69450027", "0.6943015", "0.6938732", "0.6938732", "0.6932942", "0.69315404", "0.6926421", "0.6910367", "0.6908802", "0.6905244", "0.6892408", "0.6885115", "0.68723506", "0.68663037", "0.6864424", "0.6863823", "0.68426186", "0.68395805", "0.68331295", "0.6831923", "0.68199575", "0.6818638", "0.6814648", "0.68021655", "0.6785377", "0.6775594", "0.6767261", "0.67587954", "0.67481196", "0.6740892", "0.673392", "0.67241937", "0.6720117", "0.6718276", "0.6717603", "0.66876596", "0.6636257", "0.66339064", "0.6631501", "0.6623039", "0.6601243", "0.6595668", "0.65866226", "0.65705204", "0.65605086", "0.65586954", "0.6550713", "0.6550611", "0.65440553", "0.6539059", "0.6536284", "0.6526991", "0.6515273", "0.6509071", "0.6506333", "0.6479519", "0.64190495", "0.63976896", "0.6347786", "0.6327512", "0.6316368", "0.6315682", "0.6315682", "0.6312715", "0.6312715", "0.6312715", "0.6312715" ]
0.6662922
69
Load DbValue from recordset
function LoadDbValues(&$rs) { if (!$rs || !is_array($rs) && $rs->EOF) return; $row = is_array($rs) ? $rs : $rs->fields; $this->Id_tercero->DbValue = $row['Id_tercero']; $this->nombre_tercero->DbValue = $row['nombre_tercero']; $this->direccion_tercero->DbValue = $row['direccion_tercero']; $this->telefono1_tercero->DbValue = $row['telefono1_tercero']; $this->telefono2_tercero->DbValue = $row['telefono2_tercero']; $this->fax_tercero->DbValue = $row['fax_tercero']; $this->nit_tercero->DbValue = $row['nit_tercero']; $this->tipo_tercero->DbValue = $row['tipo_tercero']; $this->e_mail_tercero->DbValue = $row['e_mail_tercero']; $this->Contacto_tercero->DbValue = $row['Contacto_tercero']; $this->gran_contrib_tercero->DbValue = $row['gran_contrib_tercero']; $this->autoretenedor_tercero->DbValue = $row['autoretenedor_tercero']; $this->activo_tercero->DbValue = $row['activo_tercero']; $this->tercero__registrado_por->DbValue = $row['tercero_ registrado_por']; $this->reg_comun_tercero->DbValue = $row['reg_comun_tercero']; $this->responsable_materiales_tercero->DbValue = $row['responsable_materiales_tercero']; $this->grupo_nomina_tercero->DbValue = $row['grupo_nomina_tercero']; $this->tercero__lider_Obra->DbValue = $row['tercero_ lider_Obra']; $this->tercero_nombre_lider->DbValue = $row['tercero_nombre_lider']; $this->empresa_tercero->DbValue = $row['empresa_tercero']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->period_id->DbValue = $row['period_id'];\n\t\t$this->person_id->DbValue = $row['person_id'];\n\t\t$this->tipejurnal_id->DbValue = $row['tipejurnal_id'];\n\t\t$this->nomer->DbValue = $row['nomer'];\n\t\t$this->createon->DbValue = $row['createon'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->idservicio_medico_prestado->DbValue = $row['idservicio_medico_prestado'];\n\t\t$this->idcuenta->DbValue = $row['idcuenta'];\n\t\t$this->fecha_inicio->DbValue = $row['fecha_inicio'];\n\t\t$this->fecha_final->DbValue = $row['fecha_final'];\n\t\t$this->estado->DbValue = $row['estado'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t\t$this->auc_date->DbValue = $row['auc_date'];\n\t\t$this->auc_number->DbValue = $row['auc_number'];\n\t\t$this->auc_place->DbValue = $row['auc_place'];\n\t\t$this->start_bid->DbValue = $row['start_bid'];\n\t\t$this->close_bid->DbValue = $row['close_bid'];\n\t\t$this->auc_notes->DbValue = $row['auc_notes'];\n\t\t$this->total_sack->DbValue = $row['total_sack'];\n\t\t$this->total_netto->DbValue = $row['total_netto'];\n\t\t$this->total_gross->DbValue = $row['total_gross'];\n\t\t$this->auc_status->DbValue = $row['auc_status'];\n\t\t$this->rate->DbValue = $row['rate'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->unid->DbValue = $row['unid'];\n\t\t$this->u_id->DbValue = $row['u_id'];\n\t\t$this->acl_id->DbValue = $row['acl_id'];\n\t\t$this->Title->DbValue = $row['Title'];\n\t\t$this->LV->DbValue = $row['LV'];\n\t\t$this->Type->DbValue = $row['Type'];\n\t\t$this->ResetTime->DbValue = $row['ResetTime'];\n\t\t$this->ResetType->DbValue = $row['ResetType'];\n\t\t$this->CompleteTask->DbValue = $row['CompleteTask'];\n\t\t$this->Occupation->DbValue = $row['Occupation'];\n\t\t$this->Target->DbValue = $row['Target'];\n\t\t$this->Data->DbValue = $row['Data'];\n\t\t$this->Reward_Gold->DbValue = $row['Reward_Gold'];\n\t\t$this->Reward_Diamonds->DbValue = $row['Reward_Diamonds'];\n\t\t$this->Reward_EXP->DbValue = $row['Reward_EXP'];\n\t\t$this->Reward_Goods->DbValue = $row['Reward_Goods'];\n\t\t$this->Info->DbValue = $row['Info'];\n\t\t$this->DATETIME->DbValue = $row['DATETIME'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Supplier_ID->DbValue = $row['Supplier_ID'];\n\t\t$this->Supplier_Number->DbValue = $row['Supplier_Number'];\n\t\t$this->Supplier_Name->DbValue = $row['Supplier_Name'];\n\t\t$this->Address->DbValue = $row['Address'];\n\t\t$this->City->DbValue = $row['City'];\n\t\t$this->Country->DbValue = $row['Country'];\n\t\t$this->Contact_Person->DbValue = $row['Contact_Person'];\n\t\t$this->Phone_Number->DbValue = $row['Phone_Number'];\n\t\t$this->_Email->DbValue = $row['Email'];\n\t\t$this->Mobile_Number->DbValue = $row['Mobile_Number'];\n\t\t$this->Notes->DbValue = $row['Notes'];\n\t\t$this->Balance->DbValue = $row['Balance'];\n\t\t$this->Is_Stock_Available->DbValue = $row['Is_Stock_Available'];\n\t\t$this->Date_Added->DbValue = $row['Date_Added'];\n\t\t$this->Added_By->DbValue = $row['Added_By'];\n\t\t$this->Date_Updated->DbValue = $row['Date_Updated'];\n\t\t$this->Updated_By->DbValue = $row['Updated_By'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->tanggal->DbValue = $row['tanggal'];\n\t\t$this->auc_number->DbValue = $row['auc_number'];\n\t\t$this->start_bid->DbValue = $row['start_bid'];\n\t\t$this->close_bid->DbValue = $row['close_bid'];\n\t\t$this->lot_number->DbValue = $row['lot_number'];\n\t\t$this->chop->DbValue = $row['chop'];\n\t\t$this->grade->DbValue = $row['grade'];\n\t\t$this->estate->DbValue = $row['estate'];\n\t\t$this->sack->DbValue = $row['sack'];\n\t\t$this->netto->DbValue = $row['netto'];\n\t\t$this->open_bid->DbValue = $row['open_bid'];\n\t\t$this->last_bid->DbValue = $row['last_bid'];\n\t\t$this->highest_bid->DbValue = $row['highest_bid'];\n\t\t$this->enter_bid->DbValue = $row['enter_bid'];\n\t\t$this->auction_status->DbValue = $row['auction_status'];\n\t\t$this->gross->DbValue = $row['gross'];\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t\t$this->master_id->DbValue = $row['master_id'];\n\t\t$this->lot_number->DbValue = $row['lot_number'];\n\t\t$this->chop->DbValue = $row['chop'];\n\t\t$this->estate->DbValue = $row['estate'];\n\t\t$this->grade->DbValue = $row['grade'];\n\t\t$this->jenis->DbValue = $row['jenis'];\n\t\t$this->sack->DbValue = $row['sack'];\n\t\t$this->netto->DbValue = $row['netto'];\n\t\t$this->gross->DbValue = $row['gross'];\n\t\t$this->open_bid->DbValue = $row['open_bid'];\n\t\t$this->currency->DbValue = $row['currency'];\n\t\t$this->bid_step->DbValue = $row['bid_step'];\n\t\t$this->rate->DbValue = $row['rate'];\n\t\t$this->winner_id->DbValue = $row['winner_id'];\n\t\t$this->sold_bid->DbValue = $row['sold_bid'];\n\t\t$this->proforma_number->DbValue = $row['proforma_number'];\n\t\t$this->proforma_amount->DbValue = $row['proforma_amount'];\n\t\t$this->proforma_status->DbValue = $row['proforma_status'];\n\t\t$this->auction_status->DbValue = $row['auction_status'];\n\t\t$this->enter_bid->DbValue = $row['enter_bid'];\n\t\t$this->last_bid->DbValue = $row['last_bid'];\n\t\t$this->highest_bid->DbValue = $row['highest_bid'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->fecha_tamizaje->DbValue = $row['fecha_tamizaje'];\n\t\t$this->id_centro->DbValue = $row['id_centro'];\n\t\t$this->apellidopaterno->DbValue = $row['apellidopaterno'];\n\t\t$this->apellidomaterno->DbValue = $row['apellidomaterno'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->ci->DbValue = $row['ci'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->dias->DbValue = $row['dias'];\n\t\t$this->semanas->DbValue = $row['semanas'];\n\t\t$this->meses->DbValue = $row['meses'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->discapacidad->DbValue = $row['discapacidad'];\n\t\t$this->id_tipodiscapacidad->DbValue = $row['id_tipodiscapacidad'];\n\t\t$this->resultado->DbValue = $row['resultado'];\n\t\t$this->resultadotamizaje->DbValue = $row['resultadotamizaje'];\n\t\t$this->tapon->DbValue = $row['tapon'];\n\t\t$this->tipo->DbValue = $row['tipo'];\n\t\t$this->repetirprueba->DbValue = $row['repetirprueba'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->id_apoderado->DbValue = $row['id_apoderado'];\n\t\t$this->id_referencia->DbValue = $row['id_referencia'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->id_admission->DbValue = $row['id_admission'];\n\t\t$this->nomr->DbValue = $row['nomr'];\n\t\t$this->statusbayar->DbValue = $row['statusbayar'];\n\t\t$this->kelas->DbValue = $row['kelas'];\n\t\t$this->tanggal->DbValue = $row['tanggal'];\n\t\t$this->kode_tindakan->DbValue = $row['kode_tindakan'];\n\t\t$this->qty->DbValue = $row['qty'];\n\t\t$this->tarif->DbValue = $row['tarif'];\n\t\t$this->bhp->DbValue = $row['bhp'];\n\t\t$this->user->DbValue = $row['user'];\n\t\t$this->nama_tindakan->DbValue = $row['nama_tindakan'];\n\t\t$this->kelompok_tindakan->DbValue = $row['kelompok_tindakan'];\n\t\t$this->kelompok1->DbValue = $row['kelompok1'];\n\t\t$this->kelompok2->DbValue = $row['kelompok2'];\n\t\t$this->kode_dokter->DbValue = $row['kode_dokter'];\n\t\t$this->no_ruang->DbValue = $row['no_ruang'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Id_Pase->DbValue = $row['Id_Pase'];\r\n\t\t$this->Serie_Equipo->DbValue = $row['Serie_Equipo'];\r\n\t\t$this->Id_Hardware->DbValue = $row['Id_Hardware'];\r\n\t\t$this->SN->DbValue = $row['SN'];\r\n\t\t$this->Modelo_Net->DbValue = $row['Modelo_Net'];\r\n\t\t$this->Marca_Arranque->DbValue = $row['Marca_Arranque'];\r\n\t\t$this->Nombre_Titular->DbValue = $row['Nombre_Titular'];\r\n\t\t$this->Dni_Titular->DbValue = $row['Dni_Titular'];\r\n\t\t$this->Cuil_Titular->DbValue = $row['Cuil_Titular'];\r\n\t\t$this->Nombre_Tutor->DbValue = $row['Nombre_Tutor'];\r\n\t\t$this->DniTutor->DbValue = $row['DniTutor'];\r\n\t\t$this->Domicilio->DbValue = $row['Domicilio'];\r\n\t\t$this->Tel_Tutor->DbValue = $row['Tel_Tutor'];\r\n\t\t$this->CelTutor->DbValue = $row['CelTutor'];\r\n\t\t$this->Cue_Establecimiento_Alta->DbValue = $row['Cue_Establecimiento_Alta'];\r\n\t\t$this->Escuela_Alta->DbValue = $row['Escuela_Alta'];\r\n\t\t$this->Directivo_Alta->DbValue = $row['Directivo_Alta'];\r\n\t\t$this->Cuil_Directivo_Alta->DbValue = $row['Cuil_Directivo_Alta'];\r\n\t\t$this->Dpto_Esc_alta->DbValue = $row['Dpto_Esc_alta'];\r\n\t\t$this->Localidad_Esc_Alta->DbValue = $row['Localidad_Esc_Alta'];\r\n\t\t$this->Domicilio_Esc_Alta->DbValue = $row['Domicilio_Esc_Alta'];\r\n\t\t$this->Rte_Alta->DbValue = $row['Rte_Alta'];\r\n\t\t$this->Tel_Rte_Alta->DbValue = $row['Tel_Rte_Alta'];\r\n\t\t$this->Email_Rte_Alta->DbValue = $row['Email_Rte_Alta'];\r\n\t\t$this->Serie_Server_Alta->DbValue = $row['Serie_Server_Alta'];\r\n\t\t$this->Cue_Establecimiento_Baja->DbValue = $row['Cue_Establecimiento_Baja'];\r\n\t\t$this->Escuela_Baja->DbValue = $row['Escuela_Baja'];\r\n\t\t$this->Directivo_Baja->DbValue = $row['Directivo_Baja'];\r\n\t\t$this->Cuil_Directivo_Baja->DbValue = $row['Cuil_Directivo_Baja'];\r\n\t\t$this->Dpto_Esc_Baja->DbValue = $row['Dpto_Esc_Baja'];\r\n\t\t$this->Localidad_Esc_Baja->DbValue = $row['Localidad_Esc_Baja'];\r\n\t\t$this->Domicilio_Esc_Baja->DbValue = $row['Domicilio_Esc_Baja'];\r\n\t\t$this->Rte_Baja->DbValue = $row['Rte_Baja'];\r\n\t\t$this->Tel_Rte_Baja->DbValue = $row['Tel_Rte_Baja'];\r\n\t\t$this->Email_Rte_Baja->DbValue = $row['Email_Rte_Baja'];\r\n\t\t$this->Serie_Server_Baja->DbValue = $row['Serie_Server_Baja'];\r\n\t\t$this->Fecha_Pase->DbValue = $row['Fecha_Pase'];\r\n\t\t$this->Id_Estado_Pase->DbValue = $row['Id_Estado_Pase'];\r\n\t\t$this->Ruta_Archivo->Upload->DbValue = $row['Ruta_Archivo'];\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->empleado_id->DbValue = $row['empleado_id'];\n\t\t$this->codigo->DbValue = $row['codigo'];\n\t\t$this->cui->DbValue = $row['cui'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->apellido->DbValue = $row['apellido'];\n\t\t$this->direccion->DbValue = $row['direccion'];\n\t\t$this->departamento_origen_id->DbValue = $row['departamento_origen_id'];\n\t\t$this->municipio_id->DbValue = $row['municipio_id'];\n\t\t$this->telefono_residencia->DbValue = $row['telefono_residencia'];\n\t\t$this->telefono_celular->DbValue = $row['telefono_celular'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->nacionalidad->DbValue = $row['nacionalidad'];\n\t\t$this->estado_civil->DbValue = $row['estado_civil'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->igss->DbValue = $row['igss'];\n\t\t$this->nit->DbValue = $row['nit'];\n\t\t$this->licencia_conducir->DbValue = $row['licencia_conducir'];\n\t\t$this->area_id->DbValue = $row['area_id'];\n\t\t$this->departmento_id->DbValue = $row['departmento_id'];\n\t\t$this->seccion_id->DbValue = $row['seccion_id'];\n\t\t$this->puesto_id->DbValue = $row['puesto_id'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->tipo_sangre_id->DbValue = $row['tipo_sangre_id'];\n\t\t$this->estado->DbValue = $row['estado'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->id_sector->DbValue = $row['id_sector'];\n\t\t$this->id_actividad->DbValue = $row['id_actividad'];\n\t\t$this->id_categoria->DbValue = $row['id_categoria'];\n\t\t$this->apellidopaterno->DbValue = $row['apellidopaterno'];\n\t\t$this->apellidomaterno->DbValue = $row['apellidomaterno'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->ci->DbValue = $row['ci'];\n\t\t$this->nrodiscapacidad->DbValue = $row['nrodiscapacidad'];\n\t\t$this->celular->DbValue = $row['celular'];\n\t\t$this->direcciondomicilio->DbValue = $row['direcciondomicilio'];\n\t\t$this->ocupacion->DbValue = $row['ocupacion'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->cargo->DbValue = $row['cargo'];\n\t\t$this->nivelestudio->DbValue = $row['nivelestudio'];\n\t\t$this->id_institucion->DbValue = $row['id_institucion'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->id_centro->DbValue = $row['id_centro'];\n\t}", "protected function loadDbValues(&$rs)\n\t{\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->fecha->DbValue = $row['fecha'];\n\t\t$this->hora->DbValue = $row['hora'];\n\t\t$this->audio->DbValue = $row['audio'];\n\t\t$this->st->DbValue = $row['st'];\n\t\t$this->fechaHoraIni->DbValue = $row['fechaHoraIni'];\n\t\t$this->fechaHoraFin->DbValue = $row['fechaHoraFin'];\n\t\t$this->telefono->DbValue = $row['telefono'];\n\t\t$this->agente->DbValue = $row['agente'];\n\t\t$this->fechabo->DbValue = $row['fechabo'];\n\t\t$this->agentebo->DbValue = $row['agentebo'];\n\t\t$this->comentariosbo->DbValue = $row['comentariosbo'];\n\t\t$this->IP->DbValue = $row['IP'];\n\t\t$this->actual->DbValue = $row['actual'];\n\t\t$this->completado->DbValue = $row['completado'];\n\t\t$this->_2_1_R->DbValue = $row['2_1_R'];\n\t\t$this->_2_2_R->DbValue = $row['2_2_R'];\n\t\t$this->_2_3_R->DbValue = $row['2_3_R'];\n\t\t$this->_3_4_R->DbValue = $row['3_4_R'];\n\t\t$this->_4_5_R->DbValue = $row['4_5_R'];\n\t\t$this->_4_6_R->DbValue = $row['4_6_R'];\n\t\t$this->_4_7_R->DbValue = $row['4_7_R'];\n\t\t$this->_4_8_R->DbValue = $row['4_8_R'];\n\t\t$this->_5_9_R->DbValue = $row['5_9_R'];\n\t\t$this->_5_10_R->DbValue = $row['5_10_R'];\n\t\t$this->_5_11_R->DbValue = $row['5_11_R'];\n\t\t$this->_5_12_R->DbValue = $row['5_12_R'];\n\t\t$this->_5_13_R->DbValue = $row['5_13_R'];\n\t\t$this->_5_14_R->DbValue = $row['5_14_R'];\n\t\t$this->_5_51_R->DbValue = $row['5_51_R'];\n\t\t$this->_6_15_R->DbValue = $row['6_15_R'];\n\t\t$this->_6_16_R->DbValue = $row['6_16_R'];\n\t\t$this->_6_17_R->DbValue = $row['6_17_R'];\n\t\t$this->_6_18_R->DbValue = $row['6_18_R'];\n\t\t$this->_6_19_R->DbValue = $row['6_19_R'];\n\t\t$this->_6_20_R->DbValue = $row['6_20_R'];\n\t\t$this->_6_52_R->DbValue = $row['6_52_R'];\n\t\t$this->_7_21_R->DbValue = $row['7_21_R'];\n\t\t$this->_8_22_R->DbValue = $row['8_22_R'];\n\t\t$this->_8_23_R->DbValue = $row['8_23_R'];\n\t\t$this->_8_24_R->DbValue = $row['8_24_R'];\n\t\t$this->_8_25_R->DbValue = $row['8_25_R'];\n\t\t$this->_9_26_R->DbValue = $row['9_26_R'];\n\t\t$this->_9_27_R->DbValue = $row['9_27_R'];\n\t\t$this->_9_28_R->DbValue = $row['9_28_R'];\n\t\t$this->_9_29_R->DbValue = $row['9_29_R'];\n\t\t$this->_9_30_R->DbValue = $row['9_30_R'];\n\t\t$this->_9_31_R->DbValue = $row['9_31_R'];\n\t\t$this->_9_32_R->DbValue = $row['9_32_R'];\n\t\t$this->_9_33_R->DbValue = $row['9_33_R'];\n\t\t$this->_9_34_R->DbValue = $row['9_34_R'];\n\t\t$this->_9_35_R->DbValue = $row['9_35_R'];\n\t\t$this->_9_36_R->DbValue = $row['9_36_R'];\n\t\t$this->_9_37_R->DbValue = $row['9_37_R'];\n\t\t$this->_9_38_R->DbValue = $row['9_38_R'];\n\t\t$this->_9_39_R->DbValue = $row['9_39_R'];\n\t\t$this->_10_40_R->DbValue = $row['10_40_R'];\n\t\t$this->_10_41_R->DbValue = $row['10_41_R'];\n\t\t$this->_11_42_R->DbValue = $row['11_42_R'];\n\t\t$this->_11_43_R->DbValue = $row['11_43_R'];\n\t\t$this->_12_44_R->DbValue = $row['12_44_R'];\n\t\t$this->_12_45_R->DbValue = $row['12_45_R'];\n\t\t$this->_12_46_R->DbValue = $row['12_46_R'];\n\t\t$this->_12_47_R->DbValue = $row['12_47_R'];\n\t\t$this->_12_48_R->DbValue = $row['12_48_R'];\n\t\t$this->_12_49_R->DbValue = $row['12_49_R'];\n\t\t$this->_12_50_R->DbValue = $row['12_50_R'];\n\t\t$this->_1__R->DbValue = $row['1__R'];\n\t\t$this->_13_54_R->DbValue = $row['13_54_R'];\n\t\t$this->_13_54_1_R->DbValue = $row['13_54_1_R'];\n\t\t$this->_13_54_2_R->DbValue = $row['13_54_2_R'];\n\t\t$this->_13_55_R->DbValue = $row['13_55_R'];\n\t\t$this->_13_55_1_R->DbValue = $row['13_55_1_R'];\n\t\t$this->_13_55_2_R->DbValue = $row['13_55_2_R'];\n\t\t$this->_13_56_R->DbValue = $row['13_56_R'];\n\t\t$this->_13_56_1_R->DbValue = $row['13_56_1_R'];\n\t\t$this->_13_56_2_R->DbValue = $row['13_56_2_R'];\n\t\t$this->_12_53_R->DbValue = $row['12_53_R'];\n\t\t$this->_12_53_1_R->DbValue = $row['12_53_1_R'];\n\t\t$this->_12_53_2_R->DbValue = $row['12_53_2_R'];\n\t\t$this->_12_53_3_R->DbValue = $row['12_53_3_R'];\n\t\t$this->_12_53_4_R->DbValue = $row['12_53_4_R'];\n\t\t$this->_12_53_5_R->DbValue = $row['12_53_5_R'];\n\t\t$this->_12_53_6_R->DbValue = $row['12_53_6_R'];\n\t\t$this->_13_57_R->DbValue = $row['13_57_R'];\n\t\t$this->_13_57_1_R->DbValue = $row['13_57_1_R'];\n\t\t$this->_13_57_2_R->DbValue = $row['13_57_2_R'];\n\t\t$this->_13_58_R->DbValue = $row['13_58_R'];\n\t\t$this->_13_58_1_R->DbValue = $row['13_58_1_R'];\n\t\t$this->_13_58_2_R->DbValue = $row['13_58_2_R'];\n\t\t$this->_13_59_R->DbValue = $row['13_59_R'];\n\t\t$this->_13_59_1_R->DbValue = $row['13_59_1_R'];\n\t\t$this->_13_59_2_R->DbValue = $row['13_59_2_R'];\n\t\t$this->_13_60_R->DbValue = $row['13_60_R'];\n\t\t$this->_12_53_7_R->DbValue = $row['12_53_7_R'];\n\t\t$this->_12_53_8_R->DbValue = $row['12_53_8_R'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Nro_Serie->DbValue = $row['Nro_Serie'];\r\n\t\t$this->SN->DbValue = $row['SN'];\r\n\t\t$this->Cant_Net_Asoc->DbValue = $row['Cant_Net_Asoc'];\r\n\t\t$this->Id_Marca->DbValue = $row['Id_Marca'];\r\n\t\t$this->Id_Modelo->DbValue = $row['Id_Modelo'];\r\n\t\t$this->Id_SO->DbValue = $row['Id_SO'];\r\n\t\t$this->Id_Estado->DbValue = $row['Id_Estado'];\r\n\t\t$this->User_Server->DbValue = $row['User_Server'];\r\n\t\t$this->Pass_Server->DbValue = $row['Pass_Server'];\r\n\t\t$this->User_TdServer->DbValue = $row['User_TdServer'];\r\n\t\t$this->Pass_TdServer->DbValue = $row['Pass_TdServer'];\r\n\t\t$this->Cue->DbValue = $row['Cue'];\r\n\t\t$this->Fecha_Actualizacion->DbValue = $row['Fecha_Actualizacion'];\r\n\t\t$this->Usuario->DbValue = $row['Usuario'];\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->replid->DbValue = $row['replid'];\n\t\t$this->nama->DbValue = $row['nama'];\n\t\t$this->besar->DbValue = $row['besar'];\n\t\t$this->idkategori->DbValue = $row['idkategori'];\n\t\t$this->rekkas->DbValue = $row['rekkas'];\n\t\t$this->rekpendapatan->DbValue = $row['rekpendapatan'];\n\t\t$this->rekpiutang->DbValue = $row['rekpiutang'];\n\t\t$this->aktif->DbValue = $row['aktif'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t\t$this->departemen->DbValue = $row['departemen'];\n\t\t$this->info1->DbValue = $row['info1'];\n\t\t$this->info2->DbValue = $row['info2'];\n\t\t$this->info3->DbValue = $row['info3'];\n\t\t$this->ts->DbValue = $row['ts'];\n\t\t$this->token->DbValue = $row['token'];\n\t\t$this->issync->DbValue = $row['issync'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->pegawai_id->DbValue = $row['pegawai_id'];\n\t\t$this->tgl_shift->DbValue = $row['tgl_shift'];\n\t\t$this->khusus_lembur->DbValue = $row['khusus_lembur'];\n\t\t$this->khusus_extra->DbValue = $row['khusus_extra'];\n\t\t$this->temp_id_auto->DbValue = $row['temp_id_auto'];\n\t\t$this->jdw_kerja_m_id->DbValue = $row['jdw_kerja_m_id'];\n\t\t$this->jk_id->DbValue = $row['jk_id'];\n\t\t$this->jns_dok->DbValue = $row['jns_dok'];\n\t\t$this->izin_jenis_id->DbValue = $row['izin_jenis_id'];\n\t\t$this->cuti_n_id->DbValue = $row['cuti_n_id'];\n\t\t$this->libur_umum->DbValue = $row['libur_umum'];\n\t\t$this->libur_rutin->DbValue = $row['libur_rutin'];\n\t\t$this->jk_ot->DbValue = $row['jk_ot'];\n\t\t$this->scan_in->DbValue = $row['scan_in'];\n\t\t$this->att_id_in->DbValue = $row['att_id_in'];\n\t\t$this->late_permission->DbValue = $row['late_permission'];\n\t\t$this->late_minute->DbValue = $row['late_minute'];\n\t\t$this->late->DbValue = $row['late'];\n\t\t$this->break_out->DbValue = $row['break_out'];\n\t\t$this->att_id_break1->DbValue = $row['att_id_break1'];\n\t\t$this->break_in->DbValue = $row['break_in'];\n\t\t$this->att_id_break2->DbValue = $row['att_id_break2'];\n\t\t$this->break_minute->DbValue = $row['break_minute'];\n\t\t$this->break->DbValue = $row['break'];\n\t\t$this->break_ot_minute->DbValue = $row['break_ot_minute'];\n\t\t$this->break_ot->DbValue = $row['break_ot'];\n\t\t$this->early_permission->DbValue = $row['early_permission'];\n\t\t$this->early_minute->DbValue = $row['early_minute'];\n\t\t$this->early->DbValue = $row['early'];\n\t\t$this->scan_out->DbValue = $row['scan_out'];\n\t\t$this->att_id_out->DbValue = $row['att_id_out'];\n\t\t$this->durasi_minute->DbValue = $row['durasi_minute'];\n\t\t$this->durasi->DbValue = $row['durasi'];\n\t\t$this->durasi_eot_minute->DbValue = $row['durasi_eot_minute'];\n\t\t$this->jk_count_as->DbValue = $row['jk_count_as'];\n\t\t$this->status_jk->DbValue = $row['status_jk'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Id_Item->DbValue = $row['Id_Item'];\n\t\t$this->codigo_item->DbValue = $row['codigo_item'];\n\t\t$this->nombre_item->DbValue = $row['nombre_item'];\n\t\t$this->und_item->DbValue = $row['und_item'];\n\t\t$this->precio_item->DbValue = $row['precio_item'];\n\t\t$this->costo_item->DbValue = $row['costo_item'];\n\t\t$this->tipo_item->DbValue = $row['tipo_item'];\n\t\t$this->marca_item->DbValue = $row['marca_item'];\n\t\t$this->cod_marca_item->DbValue = $row['cod_marca_item'];\n\t\t$this->detalle_item->DbValue = $row['detalle_item'];\n\t\t$this->saldo_item->DbValue = $row['saldo_item'];\n\t\t$this->activo_item->DbValue = $row['activo_item'];\n\t\t$this->maneja_serial_item->DbValue = $row['maneja_serial_item'];\n\t\t$this->asignado_item->DbValue = $row['asignado_item'];\n\t\t$this->si_no_item->DbValue = $row['si_no_item'];\n\t\t$this->precio_old_item->DbValue = $row['precio_old_item'];\n\t\t$this->costo_old_item->DbValue = $row['costo_old_item'];\n\t\t$this->registra_item->DbValue = $row['registra_item'];\n\t\t$this->fecha_registro_item->DbValue = $row['fecha_registro_item'];\n\t\t$this->empresa_item->DbValue = $row['empresa_item'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->product_id->DbValue = $row['product_id'];\n\t\t$this->cat_id->DbValue = $row['cat_id'];\n\t\t$this->company_id->DbValue = $row['company_id'];\n\t\t$this->pro_model->DbValue = $row['pro_model'];\n\t\t$this->pro_name->DbValue = $row['pro_name'];\n\t\t$this->pro_description->DbValue = $row['pro_description'];\n\t\t$this->pro_condition->DbValue = $row['pro_condition'];\n\t\t$this->pro_features->DbValue = $row['pro_features'];\n\t\t$this->post_date->DbValue = $row['post_date'];\n\t\t$this->ads_id->DbValue = $row['ads_id'];\n\t\t$this->pro_base_price->DbValue = $row['pro_base_price'];\n\t\t$this->pro_sell_price->DbValue = $row['pro_sell_price'];\n\t\t$this->featured_image->Upload->DbValue = $row['featured_image'];\n\t\t$this->folder_image->DbValue = $row['folder_image'];\n\t\t$this->pro_status->DbValue = $row['pro_status'];\n\t\t$this->branch_id->DbValue = $row['branch_id'];\n\t\t$this->lang->DbValue = $row['lang'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->nombre_contacto->DbValue = $row['nombre_contacto'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->lastname->DbValue = $row['lastname'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->address->DbValue = $row['address'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->cell->DbValue = $row['cell'];\n\t\t$this->is_active->DbValue = $row['is_active'];\n\t\t$this->created_at->DbValue = $row['created_at'];\n\t\t$this->id_sucursal->DbValue = $row['id_sucursal'];\n\t\t$this->documentos->DbValue = $row['documentos'];\n\t\t$this->DateModified->DbValue = $row['DateModified'];\n\t\t$this->DateDeleted->DbValue = $row['DateDeleted'];\n\t\t$this->CreatedBy->DbValue = $row['CreatedBy'];\n\t\t$this->ModifiedBy->DbValue = $row['ModifiedBy'];\n\t\t$this->DeletedBy->DbValue = $row['DeletedBy'];\n\t\t$this->latitud->DbValue = $row['latitud'];\n\t\t$this->longitud->DbValue = $row['longitud'];\n\t\t$this->tipoinmueble->DbValue = $row['tipoinmueble'];\n\t\t$this->id_ciudad_inmueble->DbValue = $row['id_ciudad_inmueble'];\n\t\t$this->id_provincia_inmueble->DbValue = $row['id_provincia_inmueble'];\n\t\t$this->imagen_inmueble01->Upload->DbValue = $row['imagen_inmueble01'];\n\t\t$this->imagen_inmueble02->Upload->DbValue = $row['imagen_inmueble02'];\n\t\t$this->imagen_inmueble03->Upload->DbValue = $row['imagen_inmueble03'];\n\t\t$this->imagen_inmueble04->Upload->DbValue = $row['imagen_inmueble04'];\n\t\t$this->imagen_inmueble05->Upload->DbValue = $row['imagen_inmueble05'];\n\t\t$this->imagen_inmueble06->Upload->DbValue = $row['imagen_inmueble06'];\n\t\t$this->imagen_inmueble07->Upload->DbValue = $row['imagen_inmueble07'];\n\t\t$this->imagen_inmueble08->Upload->DbValue = $row['imagen_inmueble08'];\n\t\t$this->tipovehiculo->DbValue = $row['tipovehiculo'];\n\t\t$this->id_ciudad_vehiculo->DbValue = $row['id_ciudad_vehiculo'];\n\t\t$this->id_provincia_vehiculo->DbValue = $row['id_provincia_vehiculo'];\n\t\t$this->imagen_vehiculo01->Upload->DbValue = $row['imagen_vehiculo01'];\n\t\t$this->imagen_vehiculo02->Upload->DbValue = $row['imagen_vehiculo02'];\n\t\t$this->imagen_vehiculo03->Upload->DbValue = $row['imagen_vehiculo03'];\n\t\t$this->imagen_vehiculo04->Upload->DbValue = $row['imagen_vehiculo04'];\n\t\t$this->imagen_vehiculo05->Upload->DbValue = $row['imagen_vehiculo05'];\n\t\t$this->imagen_vehiculo06->Upload->DbValue = $row['imagen_vehiculo06'];\n\t\t$this->imagen_vehiculo07->Upload->DbValue = $row['imagen_vehiculo07'];\n\t\t$this->imagen_vehiculo08->Upload->DbValue = $row['imagen_vehiculo08'];\n\t\t$this->tipomaquinaria->DbValue = $row['tipomaquinaria'];\n\t\t$this->id_ciudad_maquinaria->DbValue = $row['id_ciudad_maquinaria'];\n\t\t$this->id_provincia_maquinaria->DbValue = $row['id_provincia_maquinaria'];\n\t\t$this->imagen_maquinaria01->Upload->DbValue = $row['imagen_maquinaria01'];\n\t\t$this->imagen_maquinaria02->Upload->DbValue = $row['imagen_maquinaria02'];\n\t\t$this->imagen_maquinaria03->Upload->DbValue = $row['imagen_maquinaria03'];\n\t\t$this->imagen_maquinaria04->Upload->DbValue = $row['imagen_maquinaria04'];\n\t\t$this->imagen_maquinaria05->Upload->DbValue = $row['imagen_maquinaria05'];\n\t\t$this->imagen_maquinaria06->Upload->DbValue = $row['imagen_maquinaria06'];\n\t\t$this->imagen_maquinaria07->Upload->DbValue = $row['imagen_maquinaria07'];\n\t\t$this->imagen_maquinaria08->Upload->DbValue = $row['imagen_maquinaria08'];\n\t\t$this->tipomercaderia->DbValue = $row['tipomercaderia'];\n\t\t$this->imagen_mercaderia01->Upload->DbValue = $row['imagen_mercaderia01'];\n\t\t$this->documento_mercaderia->DbValue = $row['documento_mercaderia'];\n\t\t$this->tipoespecial->DbValue = $row['tipoespecial'];\n\t\t$this->imagen_tipoespecial01->Upload->DbValue = $row['imagen_tipoespecial01'];\n\t\t$this->email_contacto->DbValue = $row['email_contacto'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->unid->DbValue = $row['unid'];\n\t\t$this->u_id->DbValue = $row['u_id'];\n\t\t$this->acl_id->DbValue = $row['acl_id'];\n\t\t$this->Name->DbValue = $row['Name'];\n\t\t$this->Basics->DbValue = $row['Basics'];\n\t\t$this->HP->DbValue = $row['HP'];\n\t\t$this->MP->DbValue = $row['MP'];\n\t\t$this->AD->DbValue = $row['AD'];\n\t\t$this->AP->DbValue = $row['AP'];\n\t\t$this->Defense->DbValue = $row['Defense'];\n\t\t$this->Hit->DbValue = $row['Hit'];\n\t\t$this->Dodge->DbValue = $row['Dodge'];\n\t\t$this->Crit->DbValue = $row['Crit'];\n\t\t$this->AbsorbHP->DbValue = $row['AbsorbHP'];\n\t\t$this->ADPTV->DbValue = $row['ADPTV'];\n\t\t$this->ADPTR->DbValue = $row['ADPTR'];\n\t\t$this->APPTR->DbValue = $row['APPTR'];\n\t\t$this->APPTV->DbValue = $row['APPTV'];\n\t\t$this->ImmuneDamage->DbValue = $row['ImmuneDamage'];\n\t\t$this->Intro->DbValue = $row['Intro'];\n\t\t$this->ExclusiveSkills->DbValue = $row['ExclusiveSkills'];\n\t\t$this->TransferDemand->DbValue = $row['TransferDemand'];\n\t\t$this->TransferLevel->DbValue = $row['TransferLevel'];\n\t\t$this->FormerOccupation->DbValue = $row['FormerOccupation'];\n\t\t$this->Belong->DbValue = $row['Belong'];\n\t\t$this->AttackEffect->DbValue = $row['AttackEffect'];\n\t\t$this->AttackTips->DbValue = $row['AttackTips'];\n\t\t$this->MagicResistance->DbValue = $row['MagicResistance'];\n\t\t$this->IgnoreShield->DbValue = $row['IgnoreShield'];\n\t\t$this->DATETIME->DbValue = $row['DATETIME'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->detail_jenis_spp->DbValue = $row['detail_jenis_spp'];\n\t\t$this->id_jenis_spp->DbValue = $row['id_jenis_spp'];\n\t\t$this->status_spp->DbValue = $row['status_spp'];\n\t\t$this->no_spp->DbValue = $row['no_spp'];\n\t\t$this->tgl_spp->DbValue = $row['tgl_spp'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t\t$this->jumlah_up->DbValue = $row['jumlah_up'];\n\t\t$this->bendahara->DbValue = $row['bendahara'];\n\t\t$this->nama_pptk->DbValue = $row['nama_pptk'];\n\t\t$this->nip_pptk->DbValue = $row['nip_pptk'];\n\t\t$this->kode_program->DbValue = $row['kode_program'];\n\t\t$this->kode_kegiatan->DbValue = $row['kode_kegiatan'];\n\t\t$this->kode_sub_kegiatan->DbValue = $row['kode_sub_kegiatan'];\n\t\t$this->tahun_anggaran->DbValue = $row['tahun_anggaran'];\n\t\t$this->jumlah_spd->DbValue = $row['jumlah_spd'];\n\t\t$this->nomer_dasar_spd->DbValue = $row['nomer_dasar_spd'];\n\t\t$this->tanggal_spd->DbValue = $row['tanggal_spd'];\n\t\t$this->id_spd->DbValue = $row['id_spd'];\n\t\t$this->kode_rekening->DbValue = $row['kode_rekening'];\n\t\t$this->nama_bendahara->DbValue = $row['nama_bendahara'];\n\t\t$this->nip_bendahara->DbValue = $row['nip_bendahara'];\n\t\t$this->no_spm->DbValue = $row['no_spm'];\n\t\t$this->tgl_spm->DbValue = $row['tgl_spm'];\n\t\t$this->status_spm->DbValue = $row['status_spm'];\n\t\t$this->nama_bank->DbValue = $row['nama_bank'];\n\t\t$this->nomer_rekening_bank->DbValue = $row['nomer_rekening_bank'];\n\t\t$this->npwp->DbValue = $row['npwp'];\n\t\t$this->pimpinan_blud->DbValue = $row['pimpinan_blud'];\n\t\t$this->nip_pimpinan->DbValue = $row['nip_pimpinan'];\n\t\t$this->no_sptb->DbValue = $row['no_sptb'];\n\t\t$this->tgl_sptb->DbValue = $row['tgl_sptb'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id_admission->DbValue = $row['id_admission'];\n\t\t$this->nomr->DbValue = $row['nomr'];\n\t\t$this->ket_nama->DbValue = $row['ket_nama'];\n\t\t$this->ket_tgllahir->DbValue = $row['ket_tgllahir'];\n\t\t$this->ket_alamat->DbValue = $row['ket_alamat'];\n\t\t$this->ket_jeniskelamin->DbValue = $row['ket_jeniskelamin'];\n\t\t$this->ket_title->DbValue = $row['ket_title'];\n\t\t$this->dokterpengirim->DbValue = $row['dokterpengirim'];\n\t\t$this->statusbayar->DbValue = $row['statusbayar'];\n\t\t$this->kirimdari->DbValue = $row['kirimdari'];\n\t\t$this->keluargadekat->DbValue = $row['keluargadekat'];\n\t\t$this->panggungjawab->DbValue = $row['panggungjawab'];\n\t\t$this->masukrs->DbValue = $row['masukrs'];\n\t\t$this->noruang->DbValue = $row['noruang'];\n\t\t$this->tempat_tidur_id->DbValue = $row['tempat_tidur_id'];\n\t\t$this->nott->DbValue = $row['nott'];\n\t\t$this->NIP->DbValue = $row['NIP'];\n\t\t$this->dokter_penanggungjawab->DbValue = $row['dokter_penanggungjawab'];\n\t\t$this->KELASPERAWATAN_ID->DbValue = $row['KELASPERAWATAN_ID'];\n\t\t$this->NO_SKP->DbValue = $row['NO_SKP'];\n\t\t$this->sep_tglsep->DbValue = $row['sep_tglsep'];\n\t\t$this->sep_tglrujuk->DbValue = $row['sep_tglrujuk'];\n\t\t$this->sep_kodekelasrawat->DbValue = $row['sep_kodekelasrawat'];\n\t\t$this->sep_norujukan->DbValue = $row['sep_norujukan'];\n\t\t$this->sep_kodeppkasal->DbValue = $row['sep_kodeppkasal'];\n\t\t$this->sep_namappkasal->DbValue = $row['sep_namappkasal'];\n\t\t$this->sep_kodeppkpelayanan->DbValue = $row['sep_kodeppkpelayanan'];\n\t\t$this->sep_jenisperawatan->DbValue = $row['sep_jenisperawatan'];\n\t\t$this->sep_catatan->DbValue = $row['sep_catatan'];\n\t\t$this->sep_kodediagnosaawal->DbValue = $row['sep_kodediagnosaawal'];\n\t\t$this->sep_namadiagnosaawal->DbValue = $row['sep_namadiagnosaawal'];\n\t\t$this->sep_lakalantas->DbValue = $row['sep_lakalantas'];\n\t\t$this->sep_lokasilaka->DbValue = $row['sep_lokasilaka'];\n\t\t$this->sep_user->DbValue = $row['sep_user'];\n\t\t$this->sep_flag_cekpeserta->DbValue = $row['sep_flag_cekpeserta'];\n\t\t$this->sep_flag_generatesep->DbValue = $row['sep_flag_generatesep'];\n\t\t$this->sep_nik->DbValue = $row['sep_nik'];\n\t\t$this->sep_namapeserta->DbValue = $row['sep_namapeserta'];\n\t\t$this->sep_jeniskelamin->DbValue = $row['sep_jeniskelamin'];\n\t\t$this->sep_pisat->DbValue = $row['sep_pisat'];\n\t\t$this->sep_tgllahir->DbValue = $row['sep_tgllahir'];\n\t\t$this->sep_kodejeniskepesertaan->DbValue = $row['sep_kodejeniskepesertaan'];\n\t\t$this->sep_namajeniskepesertaan->DbValue = $row['sep_namajeniskepesertaan'];\n\t\t$this->sep_nokabpjs->DbValue = $row['sep_nokabpjs'];\n\t\t$this->sep_status_peserta->DbValue = $row['sep_status_peserta'];\n\t\t$this->sep_umur_pasien_sekarang->DbValue = $row['sep_umur_pasien_sekarang'];\n\t\t$this->statuskeluarranap_id->DbValue = $row['statuskeluarranap_id'];\n\t\t$this->keluarrs->DbValue = $row['keluarrs'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->tgl->DbValue = $row['tgl'];\n\t\t$this->no_spp->DbValue = $row['no_spp'];\n\t\t$this->jns_spp->DbValue = $row['jns_spp'];\n\t\t$this->kd_mata->DbValue = $row['kd_mata'];\n\t\t$this->urai->DbValue = $row['urai'];\n\t\t$this->jmlh->DbValue = $row['jmlh'];\n\t\t$this->jmlh1->DbValue = $row['jmlh1'];\n\t\t$this->jmlh2->DbValue = $row['jmlh2'];\n\t\t$this->jmlh3->DbValue = $row['jmlh3'];\n\t\t$this->jmlh4->DbValue = $row['jmlh4'];\n\t\t$this->nm_perus->DbValue = $row['nm_perus'];\n\t\t$this->alamat->DbValue = $row['alamat'];\n\t\t$this->npwp->DbValue = $row['npwp'];\n\t\t$this->pimpinan->DbValue = $row['pimpinan'];\n\t\t$this->bank->DbValue = $row['bank'];\n\t\t$this->rek->DbValue = $row['rek'];\n\t\t$this->nospm->DbValue = $row['nospm'];\n\t\t$this->tglspm->DbValue = $row['tglspm'];\n\t\t$this->ppn->DbValue = $row['ppn'];\n\t\t$this->ps21->DbValue = $row['ps21'];\n\t\t$this->ps22->DbValue = $row['ps22'];\n\t\t$this->ps23->DbValue = $row['ps23'];\n\t\t$this->ps4->DbValue = $row['ps4'];\n\t\t$this->kodespm->DbValue = $row['kodespm'];\n\t\t$this->nambud->DbValue = $row['nambud'];\n\t\t$this->nppk->DbValue = $row['nppk'];\n\t\t$this->nipppk->DbValue = $row['nipppk'];\n\t\t$this->prog->DbValue = $row['prog'];\n\t\t$this->prog1->DbValue = $row['prog1'];\n\t\t$this->bayar->DbValue = $row['bayar'];\n\t}", "protected function loadDbValues(&$rs)\n\t{\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->IncomeCode->DbValue = $row['IncomeCode'];\n\t\t$this->IncomeName->DbValue = $row['IncomeName'];\n\t\t$this->IncomeDescription->DbValue = $row['IncomeDescription'];\n\t\t$this->Division->DbValue = $row['Division'];\n\t\t$this->IncomeAmount->DbValue = $row['IncomeAmount'];\n\t\t$this->IncomeBasicRate->DbValue = $row['IncomeBasicRate'];\n\t\t$this->BaseIncomeCode->DbValue = $row['BaseIncomeCode'];\n\t\t$this->Taxable->DbValue = $row['Taxable'];\n\t\t$this->AccountNo->DbValue = $row['AccountNo'];\n\t\t$this->JobIncluded->DbValue = $row['JobIncluded'];\n\t\t$this->Application->DbValue = $row['Application'];\n\t\t$this->JobExcluded->DbValue = $row['JobExcluded'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->IDXDAFTAR->DbValue = $row['IDXDAFTAR'];\n\t\t$this->NOMR->DbValue = $row['NOMR'];\n\t\t$this->KDPOLY->DbValue = $row['KDPOLY'];\n\t\t$this->KDCARABAYAR->DbValue = $row['KDCARABAYAR'];\n\t\t$this->NIP->DbValue = $row['NIP'];\n\t\t$this->TGLREG->DbValue = $row['TGLREG'];\n\t\t$this->JAMREG->DbValue = $row['JAMREG'];\n\t\t$this->NO_SJP->DbValue = $row['NO_SJP'];\n\t\t$this->NOKARTU->DbValue = $row['NOKARTU'];\n\t\t$this->TANGGAL_SEP->DbValue = $row['TANGGAL_SEP'];\n\t\t$this->TANGGALRUJUK_SEP->DbValue = $row['TANGGALRUJUK_SEP'];\n\t\t$this->KELASRAWAT_SEP->DbValue = $row['KELASRAWAT_SEP'];\n\t\t$this->NORUJUKAN_SEP->DbValue = $row['NORUJUKAN_SEP'];\n\t\t$this->PPKPELAYANAN_SEP->DbValue = $row['PPKPELAYANAN_SEP'];\n\t\t$this->JENISPERAWATAN_SEP->DbValue = $row['JENISPERAWATAN_SEP'];\n\t\t$this->CATATAN_SEP->DbValue = $row['CATATAN_SEP'];\n\t\t$this->DIAGNOSAAWAL_SEP->DbValue = $row['DIAGNOSAAWAL_SEP'];\n\t\t$this->NAMADIAGNOSA_SEP->DbValue = $row['NAMADIAGNOSA_SEP'];\n\t\t$this->LAKALANTAS_SEP->DbValue = $row['LAKALANTAS_SEP'];\n\t\t$this->LOKASILAKALANTAS->DbValue = $row['LOKASILAKALANTAS'];\n\t\t$this->USER->DbValue = $row['USER'];\n\t\t$this->generate_sep->DbValue = $row['generate_sep'];\n\t\t$this->PESERTANIK_SEP->DbValue = $row['PESERTANIK_SEP'];\n\t\t$this->PESERTANAMA_SEP->DbValue = $row['PESERTANAMA_SEP'];\n\t\t$this->PESERTAJENISKELAMIN_SEP->DbValue = $row['PESERTAJENISKELAMIN_SEP'];\n\t\t$this->PESERTANAMAKELAS_SEP->DbValue = $row['PESERTANAMAKELAS_SEP'];\n\t\t$this->PESERTAPISAT->DbValue = $row['PESERTAPISAT'];\n\t\t$this->PESERTATGLLAHIR->DbValue = $row['PESERTATGLLAHIR'];\n\t\t$this->PESERTAJENISPESERTA_SEP->DbValue = $row['PESERTAJENISPESERTA_SEP'];\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->DbValue = $row['PESERTANAMAJENISPESERTA_SEP'];\n\t\t$this->POLITUJUAN_SEP->DbValue = $row['POLITUJUAN_SEP'];\n\t\t$this->NAMAPOLITUJUAN_SEP->DbValue = $row['NAMAPOLITUJUAN_SEP'];\n\t\t$this->KDPPKRUJUKAN_SEP->DbValue = $row['KDPPKRUJUKAN_SEP'];\n\t\t$this->NMPPKRUJUKAN_SEP->DbValue = $row['NMPPKRUJUKAN_SEP'];\n\t\t$this->mapingtransaksi->DbValue = $row['mapingtransaksi'];\n\t\t$this->bridging_kepesertaan_by_no_ka->DbValue = $row['bridging_kepesertaan_by_no_ka'];\n\t\t$this->pasien_NOTELP->DbValue = $row['pasien_NOTELP'];\n\t\t$this->penjamin_kkl_id->DbValue = $row['penjamin_kkl_id'];\n\t\t$this->asalfaskesrujukan_id->DbValue = $row['asalfaskesrujukan_id'];\n\t\t$this->peserta_cob->DbValue = $row['peserta_cob'];\n\t\t$this->poli_eksekutif->DbValue = $row['poli_eksekutif'];\n\t\t$this->status_kepesertaan_BPJS->DbValue = $row['status_kepesertaan_BPJS'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->password->DbValue = $row['password'];\n\t\t$this->companyname->DbValue = $row['companyname'];\n\t\t$this->servicetime->DbValue = $row['servicetime'];\n\t\t$this->country->DbValue = $row['country'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->skype->DbValue = $row['skype'];\n\t\t$this->website->DbValue = $row['website'];\n\t\t$this->linkedin->DbValue = $row['linkedin'];\n\t\t$this->facebook->DbValue = $row['facebook'];\n\t\t$this->twitter->DbValue = $row['twitter'];\n\t\t$this->active_code->DbValue = $row['active_code'];\n\t\t$this->identification->DbValue = $row['identification'];\n\t\t$this->link_expired->DbValue = $row['link_expired'];\n\t\t$this->isactive->DbValue = $row['isactive'];\n\t\t$this->pio->DbValue = $row['pio'];\n\t\t$this->google->DbValue = $row['google'];\n\t\t$this->instagram->DbValue = $row['instagram'];\n\t\t$this->account_type->DbValue = $row['account_type'];\n\t\t$this->logo->DbValue = $row['logo'];\n\t\t$this->profilepic->DbValue = $row['profilepic'];\n\t\t$this->mailref->DbValue = $row['mailref'];\n\t\t$this->deleted->DbValue = $row['deleted'];\n\t\t$this->deletefeedback->DbValue = $row['deletefeedback'];\n\t\t$this->account_id->DbValue = $row['account_id'];\n\t\t$this->start_date->DbValue = $row['start_date'];\n\t\t$this->end_date->DbValue = $row['end_date'];\n\t\t$this->year_moth->DbValue = $row['year_moth'];\n\t\t$this->registerdate->DbValue = $row['registerdate'];\n\t\t$this->login_type->DbValue = $row['login_type'];\n\t\t$this->accountstatus->DbValue = $row['accountstatus'];\n\t\t$this->ispay->DbValue = $row['ispay'];\n\t\t$this->profilelink->DbValue = $row['profilelink'];\n\t\t$this->source->DbValue = $row['source'];\n\t\t$this->agree->DbValue = $row['agree'];\n\t\t$this->balance->DbValue = $row['balance'];\n\t\t$this->job_title->DbValue = $row['job_title'];\n\t\t$this->projects->DbValue = $row['projects'];\n\t\t$this->opportunities->DbValue = $row['opportunities'];\n\t\t$this->isconsaltant->DbValue = $row['isconsaltant'];\n\t\t$this->isagent->DbValue = $row['isagent'];\n\t\t$this->isinvestor->DbValue = $row['isinvestor'];\n\t\t$this->isbusinessman->DbValue = $row['isbusinessman'];\n\t\t$this->isprovider->DbValue = $row['isprovider'];\n\t\t$this->isproductowner->DbValue = $row['isproductowner'];\n\t\t$this->states->DbValue = $row['states'];\n\t\t$this->cities->DbValue = $row['cities'];\n\t\t$this->offers->DbValue = $row['offers'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->password->DbValue = $row['password'];\n\t\t$this->companyname->DbValue = $row['companyname'];\n\t\t$this->servicetime->DbValue = $row['servicetime'];\n\t\t$this->country->DbValue = $row['country'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->skype->DbValue = $row['skype'];\n\t\t$this->website->DbValue = $row['website'];\n\t\t$this->linkedin->DbValue = $row['linkedin'];\n\t\t$this->facebook->DbValue = $row['facebook'];\n\t\t$this->twitter->DbValue = $row['twitter'];\n\t\t$this->active_code->DbValue = $row['active_code'];\n\t\t$this->identification->DbValue = $row['identification'];\n\t\t$this->link_expired->DbValue = $row['link_expired'];\n\t\t$this->isactive->DbValue = $row['isactive'];\n\t\t$this->pio->DbValue = $row['pio'];\n\t\t$this->google->DbValue = $row['google'];\n\t\t$this->instagram->DbValue = $row['instagram'];\n\t\t$this->account_type->DbValue = $row['account_type'];\n\t\t$this->logo->DbValue = $row['logo'];\n\t\t$this->profilepic->DbValue = $row['profilepic'];\n\t\t$this->mailref->DbValue = $row['mailref'];\n\t\t$this->deleted->DbValue = $row['deleted'];\n\t\t$this->deletefeedback->DbValue = $row['deletefeedback'];\n\t\t$this->account_id->DbValue = $row['account_id'];\n\t\t$this->start_date->DbValue = $row['start_date'];\n\t\t$this->end_date->DbValue = $row['end_date'];\n\t\t$this->year_moth->DbValue = $row['year_moth'];\n\t\t$this->registerdate->DbValue = $row['registerdate'];\n\t\t$this->login_type->DbValue = $row['login_type'];\n\t\t$this->accountstatus->DbValue = $row['accountstatus'];\n\t\t$this->ispay->DbValue = $row['ispay'];\n\t\t$this->profilelink->DbValue = $row['profilelink'];\n\t\t$this->source->DbValue = $row['source'];\n\t\t$this->agree->DbValue = $row['agree'];\n\t\t$this->balance->DbValue = $row['balance'];\n\t\t$this->job_title->DbValue = $row['job_title'];\n\t\t$this->projects->DbValue = $row['projects'];\n\t\t$this->opportunities->DbValue = $row['opportunities'];\n\t\t$this->isconsaltant->DbValue = $row['isconsaltant'];\n\t\t$this->isagent->DbValue = $row['isagent'];\n\t\t$this->isinvestor->DbValue = $row['isinvestor'];\n\t\t$this->isbusinessman->DbValue = $row['isbusinessman'];\n\t\t$this->isprovider->DbValue = $row['isprovider'];\n\t\t$this->isproductowner->DbValue = $row['isproductowner'];\n\t\t$this->states->DbValue = $row['states'];\n\t\t$this->cities->DbValue = $row['cities'];\n\t\t$this->offers->DbValue = $row['offers'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Dni_Tutor->DbValue = $row['Dni_Tutor'];\r\n\t\t$this->Apellidos_Nombres->DbValue = $row['Apellidos_Nombres'];\r\n\t\t$this->Edad->DbValue = $row['Edad'];\r\n\t\t$this->Domicilio->DbValue = $row['Domicilio'];\r\n\t\t$this->Tel_Contacto->DbValue = $row['Tel_Contacto'];\r\n\t\t$this->Fecha_Nac->DbValue = $row['Fecha_Nac'];\r\n\t\t$this->Cuil->DbValue = $row['Cuil'];\r\n\t\t$this->MasHijos->DbValue = $row['MasHijos'];\r\n\t\t$this->Id_Estado_Civil->DbValue = $row['Id_Estado_Civil'];\r\n\t\t$this->Id_Sexo->DbValue = $row['Id_Sexo'];\r\n\t\t$this->Id_Relacion->DbValue = $row['Id_Relacion'];\r\n\t\t$this->Id_Ocupacion->DbValue = $row['Id_Ocupacion'];\r\n\t\t$this->Lugar_Nacimiento->DbValue = $row['Lugar_Nacimiento'];\r\n\t\t$this->Id_Provincia->DbValue = $row['Id_Provincia'];\r\n\t\t$this->Id_Departamento->DbValue = $row['Id_Departamento'];\r\n\t\t$this->Id_Localidad->DbValue = $row['Id_Localidad'];\r\n\t\t$this->Fecha_Actualizacion->DbValue = $row['Fecha_Actualizacion'];\r\n\t\t$this->Usuario->DbValue = $row['Usuario'];\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $planilla;\n\t\t$planilla->idPlanilla->setDbValue($rs->fields('idPlanilla'));\n\t\t$planilla->Nombre->setDbValue($rs->fields('Nombre'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $financial_year;\n\t\t$financial_year->financial_year_id->setDbValue($rs->fields('financial_year_id'));\n\t\t$financial_year->year_name->setDbValue($rs->fields('year_name'));\n\t\t$financial_year->date_start->setDbValue($rs->fields('date_start'));\n\t\t$financial_year->date_end->setDbValue($rs->fields('date_end'));\n\t}", "function load_db_values($row)\n\t{\n\t\tforeach($row as $prop => $val)\n\t\t\t$this->{$prop} = $val;\n\t}", "function LoadRowValues(&$rs) {\n\tglobal $dpp_proveedores;\n\t$dpp_proveedores->provee_id->setDbValue($rs->fields('provee_id'));\n\t$dpp_proveedores->provee_rut->setDbValue($rs->fields('provee_rut'));\n\t$dpp_proveedores->provee_dig->setDbValue($rs->fields('provee_dig'));\n\t$dpp_proveedores->provee_cat_juri->setDbValue($rs->fields('provee_cat_juri'));\n\t$dpp_proveedores->provee_nombre->setDbValue($rs->fields('provee_nombre'));\n\t$dpp_proveedores->provee_paterno->setDbValue($rs->fields('provee_paterno'));\n\t$dpp_proveedores->provee_materno->setDbValue($rs->fields('provee_materno'));\n\t$dpp_proveedores->provee_dir->setDbValue($rs->fields('provee_dir'));\n\t$dpp_proveedores->provee_fono->setDbValue($rs->fields('provee_fono'));\n}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $selection_grade_point;\n\t\t$selection_grade_point->selection_grade_points_id->setDbValue($rs->fields('selection_grade_points_id'));\n\t\t$selection_grade_point->grade_point->setDbValue($rs->fields('grade_point'));\n\t\t$selection_grade_point->min_grade->setDbValue($rs->fields('min_grade'));\n\t\t$selection_grade_point->max_grade->setDbValue($rs->fields('max_grade'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $responsable;\n\t\t$responsable->idResponsable->setDbValue($rs->fields('idResponsable'));\n\t\t$responsable->idGerente->setDbValue($rs->fields('idGerente'));\n\t\t$responsable->idMer->setDbValue($rs->fields('idMer'));\n\t\t$responsable->fecha->setDbValue($rs->fields('fecha'));\n\t\t$responsable->habilitado->setDbValue($rs->fields('habilitado'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $tbl_slide;\n\t\t$tbl_slide->banner_id->setDbValue($rs->fields('banner_id'));\n\t\t$tbl_slide->title->setDbValue($rs->fields('title'));\n\t\t$tbl_slide->images->Upload->DbValue = $rs->fields('images');\n\t\t$tbl_slide->description->setDbValue($rs->fields('description'));\n\t\t$tbl_slide->order_by->setDbValue($rs->fields('order_by'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $t_tinbai_mainsite;\n\t\t$t_tinbai_mainsite->PK_TINBAI_ID->setDbValue($rs->fields('PK_TINBAI_ID'));\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->setDbValue($rs->fields('FK_CONGTY_ID'));\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->setDbValue($rs->fields('FK_DMGIOITHIEU_ID'));\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->setDbValue($rs->fields('FK_DMTUYENSINH_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->setDbValue($rs->fields('FK_DTSVTUONGLAI_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->setDbValue($rs->fields('FK_DTSVDANGHOC_ID'));\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->setDbValue($rs->fields('FK_DTCUUSV_ID'));\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->setDbValue($rs->fields('FK_DTDOANHNGHIEP_ID'));\n\t\t$t_tinbai_mainsite->C_TITLE->setDbValue($rs->fields('C_TITLE'));\n\t\t$t_tinbai_mainsite->C_SUMARY->setDbValue($rs->fields('C_SUMARY'));\n\t\t$t_tinbai_mainsite->C_CONTENTS->setDbValue($rs->fields('C_CONTENTS'));\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->setDbValue($rs->fields('C_HIT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_PIC_HIT->Upload->DbValue = $rs->fields('C_PIC_HIT');\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->setDbValue($rs->fields('C_NEW_MYSEFLT'));\n\t\t$t_tinbai_mainsite->C_PIC_MYSEFLT->Upload->DbValue = $rs->fields('C_PIC_MYSEFLT');\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->setDbValue($rs->fields('C_COMMENT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->setDbValue($rs->fields('C_ORDER_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->setDbValue($rs->fields('C_STATUS_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->setDbValue($rs->fields('C_VISITOR_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->setDbValue($rs->fields('C_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->setDbValue($rs->fields('C_TIME_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->setDbValue($rs->fields('FK_NGUOIDUNGID_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_NOTE->setDbValue($rs->fields('C_NOTE'));\n\t\t$t_tinbai_mainsite->C_USER_ADD->setDbValue($rs->fields('C_USER_ADD'));\n\t\t$t_tinbai_mainsite->C_ADD_TIME->setDbValue($rs->fields('C_ADD_TIME'));\n\t\t$t_tinbai_mainsite->C_USER_EDIT->setDbValue($rs->fields('C_USER_EDIT'));\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->setDbValue($rs->fields('C_EDIT_TIME'));\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->setDbValue($rs->fields('FK_EDITOR_ID'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $fs_multijoin_v;\r\n\t\t$fs_multijoin_v->id->setDbValue($rs->fields('id'));\r\n\t\t$fs_multijoin_v->mount->setDbValue($rs->fields('mount'));\r\n\t\t$fs_multijoin_v->path->setDbValue($rs->fields('path'));\r\n\t\t$fs_multijoin_v->parent->setDbValue($rs->fields('parent'));\r\n\t\t$fs_multijoin_v->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$fs_multijoin_v->name->setDbValue($rs->fields('name'));\r\n\t\t$fs_multijoin_v->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$fs_multijoin_v->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$fs_multijoin_v->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$fs_multijoin_v->type->setDbValue($rs->fields('type'));\r\n\t\t$fs_multijoin_v->CONTACT->setDbValue($rs->fields('CONTACT'));\r\n\t\t$fs_multijoin_v->CONTACT2->setDbValue($rs->fields('CONTACT2'));\r\n\t\t$fs_multijoin_v->RESCOMP->setDbValue($rs->fields('RESCOMP'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $scholarship_package;\n\t\t$scholarship_package->scholarship_package_id->setDbValue($rs->fields('scholarship_package_id'));\n\t\t$scholarship_package->start_date->setDbValue($rs->fields('start_date'));\n\t\t$scholarship_package->end_date->setDbValue($rs->fields('end_date'));\n\t\t$scholarship_package->status->setDbValue($rs->fields('status'));\n\t\t$scholarship_package->annual_amount->setDbValue($rs->fields('annual_amount'));\n\t\t$scholarship_package->grant_package_grant_package_id->setDbValue($rs->fields('grant_package_grant_package_id'));\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->setDbValue($rs->fields('sponsored_student_sponsored_student_id'));\n\t\t$scholarship_package->scholarship_type->setDbValue($rs->fields('scholarship_type'));\n\t\t$scholarship_package->scholarship_type_scholarship_type->setDbValue($rs->fields('scholarship_type_scholarship_type'));\n\t\t$scholarship_package->group_id->setDbValue($rs->fields('group_id'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $scholarship_package;\n\t\t$scholarship_package->scholarship_package_id->setDbValue($rs->fields('scholarship_package_id'));\n\t\t$scholarship_package->start_date->setDbValue($rs->fields('start_date'));\n\t\t$scholarship_package->end_date->setDbValue($rs->fields('end_date'));\n\t\t$scholarship_package->status->setDbValue($rs->fields('status'));\n\t\t$scholarship_package->annual_amount->setDbValue($rs->fields('annual_amount'));\n\t\t$scholarship_package->grant_package_grant_package_id->setDbValue($rs->fields('grant_package_grant_package_id'));\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->setDbValue($rs->fields('sponsored_student_sponsored_student_id'));\n\t\t$scholarship_package->scholarship_type->setDbValue($rs->fields('scholarship_type'));\n\t\t$scholarship_package->scholarship_type_scholarship_type->setDbValue($rs->fields('scholarship_type_scholarship_type'));\n\t\t$scholarship_package->group_id->setDbValue($rs->fields('group_id'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $patient_detail;\n\t\t$patient_detail->DetailNo->setDbValue($rs->fields('DetailNo'));\n\t\t$patient_detail->StudyID->setDbValue($rs->fields('StudyID'));\n\t\t$patient_detail->PatientID->setDbValue($rs->fields('PatientID'));\n\t\t$patient_detail->StudyDate->setDbValue($rs->fields('StudyDate'));\n\t\t$patient_detail->ContentDate->setDbValue($rs->fields('ContentDate'));\n\t\t$patient_detail->StudyTime->setDbValue($rs->fields('StudyTime'));\n\t\t$patient_detail->ContentTime->setDbValue($rs->fields('ContentTime'));\n\t\t$patient_detail->InstitutionName->setDbValue($rs->fields('InstitutionName'));\n\t\t$patient_detail->InstitutionAddress->setDbValue($rs->fields('InstitutionAddress'));\n\t\t$patient_detail->InstitutionDepartmentName->setDbValue($rs->fields('InstitutionDepartmentName'));\n\t\t$patient_detail->Modality->setDbValue($rs->fields('Modality'));\n\t\t$patient_detail->OperatorName->setDbValue($rs->fields('OperatorName'));\n\t\t$patient_detail->Manufacturer->setDbValue($rs->fields('Manufacturer'));\n\t\t$patient_detail->BodyPartExamined->setDbValue($rs->fields('BodyPartExamined'));\n\t\t$patient_detail->ProtocolName->setDbValue($rs->fields('ProtocolName'));\n\t\t$patient_detail->AccessionNumber->setDbValue($rs->fields('AccessionNumber'));\n\t\t$patient_detail->InstanceNumber->setDbValue($rs->fields('InstanceNumber'));\n\t\t$patient_detail->Status->setDbValue($rs->fields('Status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $patient_detail;\n\t\t$patient_detail->DetailNo->setDbValue($rs->fields('DetailNo'));\n\t\t$patient_detail->StudyID->setDbValue($rs->fields('StudyID'));\n\t\t$patient_detail->PatientID->setDbValue($rs->fields('PatientID'));\n\t\t$patient_detail->StudyDate->setDbValue($rs->fields('StudyDate'));\n\t\t$patient_detail->ContentDate->setDbValue($rs->fields('ContentDate'));\n\t\t$patient_detail->StudyTime->setDbValue($rs->fields('StudyTime'));\n\t\t$patient_detail->ContentTime->setDbValue($rs->fields('ContentTime'));\n\t\t$patient_detail->InstitutionName->setDbValue($rs->fields('InstitutionName'));\n\t\t$patient_detail->InstitutionAddress->setDbValue($rs->fields('InstitutionAddress'));\n\t\t$patient_detail->InstitutionDepartmentName->setDbValue($rs->fields('InstitutionDepartmentName'));\n\t\t$patient_detail->Modality->setDbValue($rs->fields('Modality'));\n\t\t$patient_detail->OperatorName->setDbValue($rs->fields('OperatorName'));\n\t\t$patient_detail->Manufacturer->setDbValue($rs->fields('Manufacturer'));\n\t\t$patient_detail->BodyPartExamined->setDbValue($rs->fields('BodyPartExamined'));\n\t\t$patient_detail->ProtocolName->setDbValue($rs->fields('ProtocolName'));\n\t\t$patient_detail->AccessionNumber->setDbValue($rs->fields('AccessionNumber'));\n\t\t$patient_detail->InstanceNumber->setDbValue($rs->fields('InstanceNumber'));\n\t\t$patient_detail->Status->setDbValue($rs->fields('Status'));\n\t}", "function LoadRowValues(&$rs) {\r\r\tglobal $ratings;\r\r\t$ratings->id->setDbValue($rs->fields('id'));\r\r\t$ratings->rating->setDbValue($rs->fields('rating'));\r\r\t$ratings->domain->setDbValue($rs->fields('domain'));\r\r\t$ratings->id_2->setDbValue($rs->fields('id_2'));\r\r}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->datetime->setDbValue($rs->fields('datetime'));\r\n\t\t$this->script->setDbValue($rs->fields('script'));\r\n\t\t$this->user->setDbValue($rs->fields('user'));\r\n\t\t$this->action->setDbValue($rs->fields('action'));\r\n\t\t$this->_table->setDbValue($rs->fields('table'));\r\n\t\t$this->_field->setDbValue($rs->fields('field'));\r\n\t\t$this->keyvalue->setDbValue($rs->fields('keyvalue'));\r\n\t\t$this->oldvalue->setDbValue($rs->fields('oldvalue'));\r\n\t\t$this->newvalue->setDbValue($rs->fields('newvalue'));\r\n\t}", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $filesystem;\r\n\t\t$filesystem->id->setDbValue($rs->fields('id'));\r\n\t\t$filesystem->mount->setDbValue($rs->fields('mount'));\r\n\t\t$filesystem->path->setDbValue($rs->fields('path'));\r\n\t\t$filesystem->parent->setDbValue($rs->fields('parent'));\r\n\t\t$filesystem->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$filesystem->gid->setDbValue($rs->fields('gid'));\r\n\t\t$filesystem->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$filesystem->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$filesystem->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$filesystem->type->setDbValue($rs->fields('type'));\r\n\t\t$filesystem->contact->setDbValue($rs->fields('contact'));\r\n\t\t$filesystem->contact2->setDbValue($rs->fields('contact2'));\r\n\t\t$filesystem->rescomp->setDbValue($rs->fields('rescomp'));\r\n\t}", "public function load()\n {\n if (count($this->table)) {\n $this->value = array_pop($this->table);\n }\n }", "function _load()\n\t{\n\t\tif($this->primary_key)\n\t\t{\n\t\t\t$row = $this->db->get_where($this->table_name, array(\n\t\t\t\t$this->primary_key => $this->{$this->primary_key},\n\t\t\t))->result();\n\t\t\t\n\t\t\tif(count($row))\n\t\t\t\t$this->load_db_values($row[0]);\n\t\t}\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$mst_vendor->kode->setDbValue($rs->fields('kode'));\n\t\t$mst_vendor->nama->setDbValue($rs->fields('nama'));\n\t\t$mst_vendor->alamat->setDbValue($rs->fields('alamat'));\n\t\t$mst_vendor->alamatpajak->setDbValue($rs->fields('alamatpajak'));\n\t\t$mst_vendor->npwp->setDbValue($rs->fields('npwp'));\n\t\t$mst_vendor->pic->setDbValue($rs->fields('pic'));\n\t\t$mst_vendor->phone->setDbValue($rs->fields('phone'));\n\t\t$mst_vendor->fax->setDbValue($rs->fields('fax'));\n\t\t$mst_vendor->zemail->setDbValue($rs->fields('email'));\n\t\t$mst_vendor->peruntukan->setDbValue($rs->fields('peruntukan'));\n\t}", "abstract public function convertFromDb($value, Entity\\ScalarField $field);", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $archv_finished;\n\t\t$archv_finished->ID->setDbValue($rs->fields('ID'));\n\t\t$archv_finished->strjrfnum->setDbValue($rs->fields('strjrfnum'));\n\t\t$archv_finished->strquarter->setDbValue($rs->fields('strquarter'));\n\t\t$archv_finished->strmon->setDbValue($rs->fields('strmon'));\n\t\t$archv_finished->stryear->setDbValue($rs->fields('stryear'));\n\t\t$archv_finished->strdate->setDbValue($rs->fields('strdate'));\n\t\t$archv_finished->strtime->setDbValue($rs->fields('strtime'));\n\t\t$archv_finished->strusername->setDbValue($rs->fields('strusername'));\n\t\t$archv_finished->strusereadd->setDbValue($rs->fields('strusereadd'));\n\t\t$archv_finished->strcompany->setDbValue($rs->fields('strcompany'));\n\t\t$archv_finished->strdepartment->setDbValue($rs->fields('strdepartment'));\n\t\t$archv_finished->strloc->setDbValue($rs->fields('strloc'));\n\t\t$archv_finished->strposition->setDbValue($rs->fields('strposition'));\n\t\t$archv_finished->strtelephone->setDbValue($rs->fields('strtelephone'));\n\t\t$archv_finished->strcostcent->setDbValue($rs->fields('strcostcent'));\n\t\t$archv_finished->strsubject->setDbValue($rs->fields('strsubject'));\n\t\t$archv_finished->strnature->setDbValue($rs->fields('strnature'));\n\t\t$archv_finished->strdescript->setDbValue($rs->fields('strdescript'));\n\t\t$archv_finished->strarea->setDbValue($rs->fields('strarea'));\n\t\t$archv_finished->strattach->setDbValue($rs->fields('strattach'));\n\t\t$archv_finished->strpriority->setDbValue($rs->fields('strpriority'));\n\t\t$archv_finished->strduedate->setDbValue($rs->fields('strduedate'));\n\t\t$archv_finished->strstatus->setDbValue($rs->fields('strstatus'));\n\t\t$archv_finished->strlastedit->setDbValue($rs->fields('strlastedit'));\n\t\t$archv_finished->strcategory->setDbValue($rs->fields('strcategory'));\n\t\t$archv_finished->strassigned->setDbValue($rs->fields('strassigned'));\n\t\t$archv_finished->strdatecomplete->setDbValue($rs->fields('strdatecomplete'));\n\t\t$archv_finished->strwithpr->setDbValue($rs->fields('strwithpr'));\n\t\t$archv_finished->strremarks->setDbValue($rs->fields('strremarks'));\n\t\t$archv_finished->sap_num->setDbValue($rs->fields('sap_num'));\n\t\t$archv_finished->work_days->setDbValue($rs->fields('work_days'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->identries->setDbValue($rs->fields('identries'));\r\n\t\t$this->domain_id->setDbValue($rs->fields('domain_id'));\r\n\t\t$this->hash_content->setDbValue($rs->fields('hash_content'));\r\n\t\t$this->fuente->setDbValue($rs->fields('fuente'));\r\n\t\t$this->published->setDbValue($rs->fields('published'));\r\n\t\t$this->updated->setDbValue($rs->fields('updated'));\r\n\t\t$this->categorias->setDbValue($rs->fields('categorias'));\r\n\t\t$this->titulo->setDbValue($rs->fields('titulo'));\r\n\t\t$this->contenido->setDbValue($rs->fields('contenido'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->islive->setDbValue($rs->fields('islive'));\r\n\t\t$this->thumbnail->setDbValue($rs->fields('thumbnail'));\r\n\t\t$this->reqdate->setDbValue($rs->fields('reqdate'));\r\n\t\t$this->author->setDbValue($rs->fields('author'));\r\n\t\t$this->trans_en->setDbValue($rs->fields('trans_en'));\r\n\t\t$this->trans_es->setDbValue($rs->fields('trans_es'));\r\n\t\t$this->trans_fr->setDbValue($rs->fields('trans_fr'));\r\n\t\t$this->trans_it->setDbValue($rs->fields('trans_it'));\r\n\t\t$this->fid->setDbValue($rs->fields('fid'));\r\n\t\t$this->fmd5->setDbValue($rs->fields('fmd5'));\r\n\t\t$this->tool_id->setDbValue($rs->fields('tool_id'));\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->identries->setDbValue($rs->fields('identries'));\r\n\t\t$this->domain_id->setDbValue($rs->fields('domain_id'));\r\n\t\t$this->hash_content->setDbValue($rs->fields('hash_content'));\r\n\t\t$this->fuente->setDbValue($rs->fields('fuente'));\r\n\t\t$this->published->setDbValue($rs->fields('published'));\r\n\t\t$this->updated->setDbValue($rs->fields('updated'));\r\n\t\t$this->categorias->setDbValue($rs->fields('categorias'));\r\n\t\t$this->titulo->setDbValue($rs->fields('titulo'));\r\n\t\t$this->contenido->setDbValue($rs->fields('contenido'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->islive->setDbValue($rs->fields('islive'));\r\n\t\t$this->thumbnail->setDbValue($rs->fields('thumbnail'));\r\n\t\t$this->reqdate->setDbValue($rs->fields('reqdate'));\r\n\t\t$this->author->setDbValue($rs->fields('author'));\r\n\t\t$this->trans_en->setDbValue($rs->fields('trans_en'));\r\n\t\t$this->trans_es->setDbValue($rs->fields('trans_es'));\r\n\t\t$this->trans_fr->setDbValue($rs->fields('trans_fr'));\r\n\t\t$this->trans_it->setDbValue($rs->fields('trans_it'));\r\n\t\t$this->fid->setDbValue($rs->fields('fid'));\r\n\t\t$this->fmd5->setDbValue($rs->fields('fmd5'));\r\n\t\t$this->tool_id->setDbValue($rs->fields('tool_id'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->fbid->setDbValue($rs->fields('fbid'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->validated_mobile->setDbValue($rs->fields('validated_mobile'));\n\t\t$this->role_id->setDbValue($rs->fields('role_id'));\n\t\t$this->image->setDbValue($rs->fields('image'));\n\t\t$this->newsletter->setDbValue($rs->fields('newsletter'));\n\t\t$this->points->setDbValue($rs->fields('points'));\n\t\t$this->last_modified->setDbValue($rs->fields('last_modified'));\n\t\t$this->p2->setDbValue($rs->fields('p2'));\n\t}", "public function GetORMFieldValue($bfield,$bvalue){\r\n\r\n if(!isset($this->bname2name[$bfield])) return null;\r\n\r\n $field = $this->bname2name[$bfield];\r\n\r\n $rule = $this->rules[$field];\r\n\r\n $data = new \\stdClass();\r\n\r\n $data->key = $rule->ormName;\r\n $data->value = $rule->toORM($bvalue);\r\n\r\n return $data;\r\n\r\n\r\n }", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->unid->setDbValue($row['unid']);\n\t\t$this->u_id->setDbValue($row['u_id']);\n\t\t$this->acl_id->setDbValue($row['acl_id']);\n\t\t$this->Title->setDbValue($row['Title']);\n\t\t$this->LV->setDbValue($row['LV']);\n\t\t$this->Type->setDbValue($row['Type']);\n\t\t$this->ResetTime->setDbValue($row['ResetTime']);\n\t\t$this->ResetType->setDbValue($row['ResetType']);\n\t\t$this->CompleteTask->setDbValue($row['CompleteTask']);\n\t\t$this->Occupation->setDbValue($row['Occupation']);\n\t\t$this->Target->setDbValue($row['Target']);\n\t\t$this->Data->setDbValue($row['Data']);\n\t\t$this->Reward_Gold->setDbValue($row['Reward_Gold']);\n\t\t$this->Reward_Diamonds->setDbValue($row['Reward_Diamonds']);\n\t\t$this->Reward_EXP->setDbValue($row['Reward_EXP']);\n\t\t$this->Reward_Goods->setDbValue($row['Reward_Goods']);\n\t\t$this->Info->setDbValue($row['Info']);\n\t\t$this->DATETIME->setDbValue($row['DATETIME']);\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->fecha_tamizaje->setDbValue($row['fecha_tamizaje']);\n\t\t$this->id_centro->setDbValue($row['id_centro']);\n\t\t$this->apellidopaterno->setDbValue($row['apellidopaterno']);\n\t\t$this->apellidomaterno->setDbValue($row['apellidomaterno']);\n\t\t$this->nombre->setDbValue($row['nombre']);\n\t\t$this->ci->setDbValue($row['ci']);\n\t\t$this->fecha_nacimiento->setDbValue($row['fecha_nacimiento']);\n\t\t$this->dias->setDbValue($row['dias']);\n\t\t$this->semanas->setDbValue($row['semanas']);\n\t\t$this->meses->setDbValue($row['meses']);\n\t\t$this->sexo->setDbValue($row['sexo']);\n\t\t$this->discapacidad->setDbValue($row['discapacidad']);\n\t\t$this->id_tipodiscapacidad->setDbValue($row['id_tipodiscapacidad']);\n\t\t$this->resultado->setDbValue($row['resultado']);\n\t\t$this->resultadotamizaje->setDbValue($row['resultadotamizaje']);\n\t\t$this->tapon->setDbValue($row['tapon']);\n\t\t$this->tipo->setDbValue($row['tipo']);\n\t\t$this->repetirprueba->setDbValue($row['repetirprueba']);\n\t\t$this->observaciones->setDbValue($row['observaciones']);\n\t\t$this->id_apoderado->setDbValue($row['id_apoderado']);\n\t\tif (array_key_exists('EV__id_apoderado', $rs->fields)) {\n\t\t\t$this->id_apoderado->VirtualValue = $rs->fields('EV__id_apoderado'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->id_apoderado->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->id_referencia->setDbValue($row['id_referencia']);\n\t\tif (array_key_exists('EV__id_referencia', $rs->fields)) {\n\t\t\t$this->id_referencia->VirtualValue = $rs->fields('EV__id_referencia'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->id_referencia->VirtualValue = \"\"; // Clear value\n\t\t}\n\t}", "public function load()\n {\n $pdo = $this->getDbConnection();\n $query = \"SELECT * FROM {$this->dbTable}\";\n $data = $pdo->query($query)->fetchAll(\\PDO::FETCH_ASSOC);\n\n foreach ($data as ['key' => $key, 'value' => $value]) {\n $this->setData($key, $value);\n }\n }", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\t$this->master_id->setDbValue($row['master_id']);\n\t\t$this->lot_number->setDbValue($row['lot_number']);\n\t\t$this->chop->setDbValue($row['chop']);\n\t\t$this->estate->setDbValue($row['estate']);\n\t\t$this->grade->setDbValue($row['grade']);\n\t\t$this->jenis->setDbValue($row['jenis']);\n\t\t$this->sack->setDbValue($row['sack']);\n\t\t$this->netto->setDbValue($row['netto']);\n\t\t$this->gross->setDbValue($row['gross']);\n\t\t$this->open_bid->setDbValue($row['open_bid']);\n\t\t$this->currency->setDbValue($row['currency']);\n\t\t$this->bid_step->setDbValue($row['bid_step']);\n\t\t$this->rate->setDbValue($row['rate']);\n\t\t$this->winner_id->setDbValue($row['winner_id']);\n\t\t$this->sold_bid->setDbValue($row['sold_bid']);\n\t\t$this->proforma_number->setDbValue($row['proforma_number']);\n\t\t$this->proforma_amount->setDbValue($row['proforma_amount']);\n\t\t$this->proforma_status->setDbValue($row['proforma_status']);\n\t\t$this->auction_status->setDbValue($row['auction_status']);\n\t\t$this->enter_bid->setDbValue($row['enter_bid']);\n\t\t$this->last_bid->setDbValue($row['last_bid']);\n\t\t$this->highest_bid->setDbValue($row['highest_bid']);\n\t}", "function Load($id_value, $key_row_name = ''){\r\n\t\tif(!empty($key_row_name)){\r\n\t\t\t$key_row = \", t.\" . $key_row_name . \" \";\r\n\t\t}else{\r\n\t\t\t$key_row = \", '' AS `key`\";\r\n\t\t}\r\n\r\n\t\t$sql = \"SELECT t.\" . $this->data_row . \" \" . $key_row . \"\r\n\t\t\t\tFROM \" . $this->table_name . \" AS t\r\n\t\t\t\tWHERE t.\" . $this->id_row . \" = '\" . $id_value . \"'\";\r\n\r\n\t\t$result = OBE_App::$db->query($sql);\r\n\t\tif($result){\r\n\t\t\tlist($blob, $key) = OBE_App::$db->fetch_row($result);\r\n\t\t\tif(!empty($blob)){\r\n\t\t\t\tif(!empty($key_row_name) && !empty($key)){\r\n\t\t\t\t\t$this->data[$key] = unserialize($blob);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$this->data = unserialize($blob);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->replid->setDbValue($row['replid']);\n\t\t$this->nama->setDbValue($row['nama']);\n\t\t$this->besar->setDbValue($row['besar']);\n\t\t$this->idkategori->setDbValue($row['idkategori']);\n\t\t$this->rekkas->setDbValue($row['rekkas']);\n\t\t$this->rekpendapatan->setDbValue($row['rekpendapatan']);\n\t\t$this->rekpiutang->setDbValue($row['rekpiutang']);\n\t\t$this->aktif->setDbValue($row['aktif']);\n\t\t$this->keterangan->setDbValue($row['keterangan']);\n\t\t$this->departemen->setDbValue($row['departemen']);\n\t\t$this->info1->setDbValue($row['info1']);\n\t\t$this->info2->setDbValue($row['info2']);\n\t\t$this->info3->setDbValue($row['info3']);\n\t\t$this->ts->setDbValue($row['ts']);\n\t\t$this->token->setDbValue($row['token']);\n\t\t$this->issync->setDbValue($row['issync']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->idservicio_medico_prestado->setDbValue($rs->fields('idservicio_medico_prestado'));\n\t\t$this->idcuenta->setDbValue($rs->fields('idcuenta'));\n\t\t$this->fecha_inicio->setDbValue($rs->fields('fecha_inicio'));\n\t\t$this->fecha_final->setDbValue($rs->fields('fecha_final'));\n\t\t$this->estado->setDbValue($rs->fields('estado'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->tanggal->setDbValue($row['tanggal']);\n\t\t$this->auc_number->setDbValue($row['auc_number']);\n\t\t$this->start_bid->setDbValue($row['start_bid']);\n\t\t$this->close_bid->setDbValue($row['close_bid']);\n\t\t$this->lot_number->setDbValue($row['lot_number']);\n\t\t$this->chop->setDbValue($row['chop']);\n\t\t$this->grade->setDbValue($row['grade']);\n\t\t$this->estate->setDbValue($row['estate']);\n\t\t$this->sack->setDbValue($row['sack']);\n\t\t$this->netto->setDbValue($row['netto']);\n\t\t$this->open_bid->setDbValue($row['open_bid']);\n\t\t$this->last_bid->setDbValue($row['last_bid']);\n\t\t$this->highest_bid->setDbValue($row['highest_bid']);\n\t\t$this->enter_bid->setDbValue($row['enter_bid']);\n\t\t$this->auction_status->setDbValue($row['auction_status']);\n\t\t$this->gross->setDbValue($row['gross']);\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\tif (!isset($GLOBALS[\"v_bid_histories_admin_grid\"])) $GLOBALS[\"v_bid_histories_admin_grid\"] = new cv_bid_histories_admin_grid;\n\t\t$sDetailFilter = $GLOBALS[\"v_bid_histories_admin\"]->SqlDetailFilter_v_auction_list_admin();\n\t\t$sDetailFilter = str_replace(\"@master_id@\", ew_AdjustSql($this->row_id->DbValue, \"DB\"), $sDetailFilter);\n\t\t$GLOBALS[\"v_bid_histories_admin\"]->setCurrentMasterTable(\"v_auction_list_admin\");\n\t\t$sDetailFilter = $GLOBALS[\"v_bid_histories_admin\"]->ApplyUserIDFilters($sDetailFilter);\n\t\t$this->v_bid_histories_admin_Count = $GLOBALS[\"v_bid_histories_admin\"]->LoadRecordCount($sDetailFilter);\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->nombre_contacto->setDbValue($row['nombre_contacto']);\n\t\t$this->name->setDbValue($row['name']);\n\t\t$this->lastname->setDbValue($row['lastname']);\n\t\t$this->_email->setDbValue($row['email']);\n\t\t$this->address->setDbValue($row['address']);\n\t\t$this->phone->setDbValue($row['phone']);\n\t\t$this->cell->setDbValue($row['cell']);\n\t\t$this->is_active->setDbValue($row['is_active']);\n\t\t$this->created_at->setDbValue($row['created_at']);\n\t\t$this->id_sucursal->setDbValue($row['id_sucursal']);\n\t\t$this->documentos->setDbValue($row['documentos']);\n\t\t$this->DateModified->setDbValue($row['DateModified']);\n\t\t$this->DateDeleted->setDbValue($row['DateDeleted']);\n\t\t$this->CreatedBy->setDbValue($row['CreatedBy']);\n\t\t$this->ModifiedBy->setDbValue($row['ModifiedBy']);\n\t\t$this->DeletedBy->setDbValue($row['DeletedBy']);\n\t\t$this->latitud->setDbValue($row['latitud']);\n\t\t$this->longitud->setDbValue($row['longitud']);\n\t\t$this->tipoinmueble->setDbValue($row['tipoinmueble']);\n\t\t$this->id_ciudad_inmueble->setDbValue($row['id_ciudad_inmueble']);\n\t\t$this->id_provincia_inmueble->setDbValue($row['id_provincia_inmueble']);\n\t\t$this->imagen_inmueble01->Upload->DbValue = $row['imagen_inmueble01'];\n\t\tif (is_array($this->imagen_inmueble01->Upload->DbValue) || is_object($this->imagen_inmueble01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble01->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble01->Upload->DbValue);\n\t\t$this->imagen_inmueble02->Upload->DbValue = $row['imagen_inmueble02'];\n\t\tif (is_array($this->imagen_inmueble02->Upload->DbValue) || is_object($this->imagen_inmueble02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble02->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble02->Upload->DbValue);\n\t\t$this->imagen_inmueble03->Upload->DbValue = $row['imagen_inmueble03'];\n\t\tif (is_array($this->imagen_inmueble03->Upload->DbValue) || is_object($this->imagen_inmueble03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble03->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble03->Upload->DbValue);\n\t\t$this->imagen_inmueble04->Upload->DbValue = $row['imagen_inmueble04'];\n\t\tif (is_array($this->imagen_inmueble04->Upload->DbValue) || is_object($this->imagen_inmueble04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble04->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble04->Upload->DbValue);\n\t\t$this->imagen_inmueble05->Upload->DbValue = $row['imagen_inmueble05'];\n\t\tif (is_array($this->imagen_inmueble05->Upload->DbValue) || is_object($this->imagen_inmueble05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble05->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble05->Upload->DbValue);\n\t\t$this->imagen_inmueble06->Upload->DbValue = $row['imagen_inmueble06'];\n\t\tif (is_array($this->imagen_inmueble06->Upload->DbValue) || is_object($this->imagen_inmueble06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble06->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble06->Upload->DbValue);\n\t\t$this->imagen_inmueble07->Upload->DbValue = $row['imagen_inmueble07'];\n\t\tif (is_array($this->imagen_inmueble07->Upload->DbValue) || is_object($this->imagen_inmueble07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble07->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble07->Upload->DbValue);\n\t\t$this->imagen_inmueble08->Upload->DbValue = $row['imagen_inmueble08'];\n\t\tif (is_array($this->imagen_inmueble08->Upload->DbValue) || is_object($this->imagen_inmueble08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble08->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble08->Upload->DbValue);\n\t\t$this->tipovehiculo->setDbValue($row['tipovehiculo']);\n\t\t$this->id_ciudad_vehiculo->setDbValue($row['id_ciudad_vehiculo']);\n\t\t$this->id_provincia_vehiculo->setDbValue($row['id_provincia_vehiculo']);\n\t\t$this->imagen_vehiculo01->Upload->DbValue = $row['imagen_vehiculo01'];\n\t\tif (is_array($this->imagen_vehiculo01->Upload->DbValue) || is_object($this->imagen_vehiculo01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo01->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo01->Upload->DbValue);\n\t\t$this->imagen_vehiculo02->Upload->DbValue = $row['imagen_vehiculo02'];\n\t\tif (is_array($this->imagen_vehiculo02->Upload->DbValue) || is_object($this->imagen_vehiculo02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo02->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo02->Upload->DbValue);\n\t\t$this->imagen_vehiculo03->Upload->DbValue = $row['imagen_vehiculo03'];\n\t\tif (is_array($this->imagen_vehiculo03->Upload->DbValue) || is_object($this->imagen_vehiculo03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo03->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo03->Upload->DbValue);\n\t\t$this->imagen_vehiculo04->Upload->DbValue = $row['imagen_vehiculo04'];\n\t\tif (is_array($this->imagen_vehiculo04->Upload->DbValue) || is_object($this->imagen_vehiculo04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo04->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo04->Upload->DbValue);\n\t\t$this->imagen_vehiculo05->Upload->DbValue = $row['imagen_vehiculo05'];\n\t\tif (is_array($this->imagen_vehiculo05->Upload->DbValue) || is_object($this->imagen_vehiculo05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo05->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo05->Upload->DbValue);\n\t\t$this->imagen_vehiculo06->Upload->DbValue = $row['imagen_vehiculo06'];\n\t\tif (is_array($this->imagen_vehiculo06->Upload->DbValue) || is_object($this->imagen_vehiculo06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo06->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo06->Upload->DbValue);\n\t\t$this->imagen_vehiculo07->Upload->DbValue = $row['imagen_vehiculo07'];\n\t\tif (is_array($this->imagen_vehiculo07->Upload->DbValue) || is_object($this->imagen_vehiculo07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo07->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo07->Upload->DbValue);\n\t\t$this->imagen_vehiculo08->Upload->DbValue = $row['imagen_vehiculo08'];\n\t\tif (is_array($this->imagen_vehiculo08->Upload->DbValue) || is_object($this->imagen_vehiculo08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo08->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo08->Upload->DbValue);\n\t\t$this->tipomaquinaria->setDbValue($row['tipomaquinaria']);\n\t\t$this->id_ciudad_maquinaria->setDbValue($row['id_ciudad_maquinaria']);\n\t\t$this->id_provincia_maquinaria->setDbValue($row['id_provincia_maquinaria']);\n\t\t$this->imagen_maquinaria01->Upload->DbValue = $row['imagen_maquinaria01'];\n\t\tif (is_array($this->imagen_maquinaria01->Upload->DbValue) || is_object($this->imagen_maquinaria01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria01->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria01->Upload->DbValue);\n\t\t$this->imagen_maquinaria02->Upload->DbValue = $row['imagen_maquinaria02'];\n\t\tif (is_array($this->imagen_maquinaria02->Upload->DbValue) || is_object($this->imagen_maquinaria02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria02->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria02->Upload->DbValue);\n\t\t$this->imagen_maquinaria03->Upload->DbValue = $row['imagen_maquinaria03'];\n\t\tif (is_array($this->imagen_maquinaria03->Upload->DbValue) || is_object($this->imagen_maquinaria03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria03->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria03->Upload->DbValue);\n\t\t$this->imagen_maquinaria04->Upload->DbValue = $row['imagen_maquinaria04'];\n\t\tif (is_array($this->imagen_maquinaria04->Upload->DbValue) || is_object($this->imagen_maquinaria04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria04->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria04->Upload->DbValue);\n\t\t$this->imagen_maquinaria05->Upload->DbValue = $row['imagen_maquinaria05'];\n\t\tif (is_array($this->imagen_maquinaria05->Upload->DbValue) || is_object($this->imagen_maquinaria05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria05->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria05->Upload->DbValue);\n\t\t$this->imagen_maquinaria06->Upload->DbValue = $row['imagen_maquinaria06'];\n\t\tif (is_array($this->imagen_maquinaria06->Upload->DbValue) || is_object($this->imagen_maquinaria06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria06->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria06->Upload->DbValue);\n\t\t$this->imagen_maquinaria07->Upload->DbValue = $row['imagen_maquinaria07'];\n\t\tif (is_array($this->imagen_maquinaria07->Upload->DbValue) || is_object($this->imagen_maquinaria07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria07->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria07->Upload->DbValue);\n\t\t$this->imagen_maquinaria08->Upload->DbValue = $row['imagen_maquinaria08'];\n\t\tif (is_array($this->imagen_maquinaria08->Upload->DbValue) || is_object($this->imagen_maquinaria08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria08->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria08->Upload->DbValue);\n\t\t$this->tipomercaderia->setDbValue($row['tipomercaderia']);\n\t\t$this->imagen_mercaderia01->Upload->DbValue = $row['imagen_mercaderia01'];\n\t\tif (is_array($this->imagen_mercaderia01->Upload->DbValue) || is_object($this->imagen_mercaderia01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_mercaderia01->Upload->DbValue = ew_BytesToStr($this->imagen_mercaderia01->Upload->DbValue);\n\t\t$this->documento_mercaderia->setDbValue($row['documento_mercaderia']);\n\t\t$this->tipoespecial->setDbValue($row['tipoespecial']);\n\t\t$this->imagen_tipoespecial01->Upload->DbValue = $row['imagen_tipoespecial01'];\n\t\tif (is_array($this->imagen_tipoespecial01->Upload->DbValue) || is_object($this->imagen_tipoespecial01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_tipoespecial01->Upload->DbValue = ew_BytesToStr($this->imagen_tipoespecial01->Upload->DbValue);\n\t\t$this->email_contacto->setDbValue($row['email_contacto']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $st_peserta_kelas_kelompok;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$st_peserta_kelas_kelompok->Row_Selected($row);\r\n\t\t$st_peserta_kelas_kelompok->identitas->setDbValue($rs->fields('identitas'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->setDbValue($rs->fields('kode_otomatis_kelompok'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t}", "abstract protected function fetchRowAssocDb();", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\t$this->auc_date->setDbValue($row['auc_date']);\n\t\t$this->auc_number->setDbValue($row['auc_number']);\n\t\t$this->auc_place->setDbValue($row['auc_place']);\n\t\t$this->start_bid->setDbValue($row['start_bid']);\n\t\t$this->close_bid->setDbValue($row['close_bid']);\n\t\t$this->auc_notes->setDbValue($row['auc_notes']);\n\t\t$this->total_sack->setDbValue($row['total_sack']);\n\t\t$this->total_netto->setDbValue($row['total_netto']);\n\t\t$this->total_gross->setDbValue($row['total_gross']);\n\t\t$this->auc_status->setDbValue($row['auc_status']);\n\t\t$this->rate->setDbValue($row['rate']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Venta_Eq->setDbValue($rs->fields('Id_Venta_Eq'));\r\n\t\t$this->CLIENTE->setDbValue($rs->fields('CLIENTE'));\r\n\t\t$this->Id_Articulo->setDbValue($rs->fields('Id_Articulo'));\r\n\t\t$this->Acabado_eq->setDbValue($rs->fields('Acabado_eq'));\r\n\t\t$this->Num_IMEI->setDbValue($rs->fields('Num_IMEI'));\r\n\t\t$this->Num_ICCID->setDbValue($rs->fields('Num_ICCID'));\r\n\t\t$this->Num_CEL->setDbValue($rs->fields('Num_CEL'));\r\n\t\t$this->Causa->setDbValue($rs->fields('Causa'));\r\n\t\t$this->Con_SIM->setDbValue($rs->fields('Con_SIM'));\r\n\t\t$this->Observaciones->setDbValue($rs->fields('Observaciones'));\r\n\t\t$this->PrecioUnitario->setDbValue($rs->fields('PrecioUnitario'));\r\n\t\t$this->MontoDescuento->setDbValue($rs->fields('MontoDescuento'));\r\n\t\t$this->Precio_SIM->setDbValue($rs->fields('Precio_SIM'));\r\n\t\t$this->Monto->setDbValue($rs->fields('Monto'));\r\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->id_sector->setDbValue($row['id_sector']);\n\t\t$this->id_actividad->setDbValue($row['id_actividad']);\n\t\t$this->id_categoria->setDbValue($row['id_categoria']);\n\t\t$this->apellidopaterno->setDbValue($row['apellidopaterno']);\n\t\t$this->apellidomaterno->setDbValue($row['apellidomaterno']);\n\t\t$this->nombre->setDbValue($row['nombre']);\n\t\t$this->fecha_nacimiento->setDbValue($row['fecha_nacimiento']);\n\t\t$this->sexo->setDbValue($row['sexo']);\n\t\t$this->ci->setDbValue($row['ci']);\n\t\t$this->nrodiscapacidad->setDbValue($row['nrodiscapacidad']);\n\t\t$this->celular->setDbValue($row['celular']);\n\t\t$this->direcciondomicilio->setDbValue($row['direcciondomicilio']);\n\t\t$this->ocupacion->setDbValue($row['ocupacion']);\n\t\t$this->_email->setDbValue($row['email']);\n\t\t$this->cargo->setDbValue($row['cargo']);\n\t\t$this->nivelestudio->setDbValue($row['nivelestudio']);\n\t\t$this->id_institucion->setDbValue($row['id_institucion']);\n\t\t$this->observaciones->setDbValue($row['observaciones']);\n\t\t$this->id_centro->setDbValue($row['id_centro']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->period_id->setDbValue($rs->fields('period_id'));\n\t\t$this->person_id->setDbValue($rs->fields('person_id'));\n\t\t$this->tipejurnal_id->setDbValue($rs->fields('tipejurnal_id'));\n\t\t$this->nomer->setDbValue($rs->fields('nomer'));\n\t\t$this->createon->setDbValue($rs->fields('createon'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t}", "public function loadRowValues($rs = NULL)\n\t{\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->newRow();\n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->document_sequence->setDbValue($row['document_sequence']);\n\t\t$this->firelink_doc_no->setDbValue($row['firelink_doc_no']);\n\t\tif (array_key_exists('EV__firelink_doc_no', $rs->fields)) {\n\t\t\t$this->firelink_doc_no->VirtualValue = $rs->fields('EV__firelink_doc_no'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->firelink_doc_no->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->project_name->setDbValue($row['project_name']);\n\t\t$this->document_tittle->setDbValue($row['document_tittle']);\n\t\t$this->submit_no->setDbValue($row['submit_no']);\n\t\t$this->revision_no->setDbValue($row['revision_no']);\n\t\t$this->transmit_no->setDbValue($row['transmit_no']);\n\t\tif (array_key_exists('EV__transmit_no', $rs->fields)) {\n\t\t\t$this->transmit_no->VirtualValue = $rs->fields('EV__transmit_no'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->transmit_no->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->transmit_date->setDbValue($row['transmit_date']);\n\t\t$this->direction->setDbValue($row['direction']);\n\t\t$this->approval_status->setDbValue($row['approval_status']);\n\t\t$this->document_link->Upload->DbValue = $row['document_link'];\n\t\t$this->document_link->setDbValue($this->document_link->Upload->DbValue);\n\t\t$this->transaction_date->setDbValue($row['transaction_date']);\n\t\t$this->document_native->setDbValue($row['document_native']);\n\t\t$this->username->setDbValue($row['username']);\n\t\t$this->expiry_date->setDbValue($row['expiry_date']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->idfb_posts->setDbValue($rs->fields('idfb_posts'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->created_time->setDbValue($rs->fields('created_time'));\r\n\t\t$this->actions->setDbValue($rs->fields('actions'));\r\n\t\t$this->icon->setDbValue($rs->fields('icon'));\r\n\t\t$this->is_published->setDbValue($rs->fields('is_published'));\r\n\t\t$this->message->setDbValue($rs->fields('message'));\r\n\t\t$this->link->setDbValue($rs->fields('link'));\r\n\t\t$this->object_id->setDbValue($rs->fields('object_id'));\r\n\t\t$this->picture->setDbValue($rs->fields('picture'));\r\n\t\t$this->privacy->setDbValue($rs->fields('privacy'));\r\n\t\t$this->promotion_status->setDbValue($rs->fields('promotion_status'));\r\n\t\t$this->timeline_visibility->setDbValue($rs->fields('timeline_visibility'));\r\n\t\t$this->type->setDbValue($rs->fields('type'));\r\n\t\t$this->updated_time->setDbValue($rs->fields('updated_time'));\r\n\t\t$this->caption->setDbValue($rs->fields('caption'));\r\n\t\t$this->description->setDbValue($rs->fields('description'));\r\n\t\t$this->name->setDbValue($rs->fields('name'));\r\n\t\t$this->source->setDbValue($rs->fields('source'));\r\n\t\t$this->from->setDbValue($rs->fields('from'));\r\n\t\t$this->to->setDbValue($rs->fields('to'));\r\n\t\t$this->comments->setDbValue($rs->fields('comments'));\r\n\t\t$this->id_grupo->setDbValue($rs->fields('id_grupo'));\r\n\t}", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->fecha->setDbValue($rs->fields('fecha'));\n\t\t$this->hora->setDbValue($rs->fields('hora'));\n\t\t$this->audio->setDbValue($rs->fields('audio'));\n\t\t$this->st->setDbValue($rs->fields('st'));\n\t\t$this->fechaHoraIni->setDbValue($rs->fields('fechaHoraIni'));\n\t\t$this->fechaHoraFin->setDbValue($rs->fields('fechaHoraFin'));\n\t\t$this->telefono->setDbValue($rs->fields('telefono'));\n\t\t$this->agente->setDbValue($rs->fields('agente'));\n\t\t$this->fechabo->setDbValue($rs->fields('fechabo'));\n\t\t$this->agentebo->setDbValue($rs->fields('agentebo'));\n\t\t$this->comentariosbo->setDbValue($rs->fields('comentariosbo'));\n\t\t$this->IP->setDbValue($rs->fields('IP'));\n\t\t$this->actual->setDbValue($rs->fields('actual'));\n\t\t$this->completado->setDbValue($rs->fields('completado'));\n\t\t$this->_2_1_R->setDbValue($rs->fields('2_1_R'));\n\t\t$this->_2_2_R->setDbValue($rs->fields('2_2_R'));\n\t\t$this->_2_3_R->setDbValue($rs->fields('2_3_R'));\n\t\t$this->_3_4_R->setDbValue($rs->fields('3_4_R'));\n\t\t$this->_4_5_R->setDbValue($rs->fields('4_5_R'));\n\t\t$this->_4_6_R->setDbValue($rs->fields('4_6_R'));\n\t\t$this->_4_7_R->setDbValue($rs->fields('4_7_R'));\n\t\t$this->_4_8_R->setDbValue($rs->fields('4_8_R'));\n\t\t$this->_5_9_R->setDbValue($rs->fields('5_9_R'));\n\t\t$this->_5_10_R->setDbValue($rs->fields('5_10_R'));\n\t\t$this->_5_11_R->setDbValue($rs->fields('5_11_R'));\n\t\t$this->_5_12_R->setDbValue($rs->fields('5_12_R'));\n\t\t$this->_5_13_R->setDbValue($rs->fields('5_13_R'));\n\t\t$this->_5_14_R->setDbValue($rs->fields('5_14_R'));\n\t\t$this->_5_51_R->setDbValue($rs->fields('5_51_R'));\n\t\t$this->_6_15_R->setDbValue($rs->fields('6_15_R'));\n\t\t$this->_6_16_R->setDbValue($rs->fields('6_16_R'));\n\t\t$this->_6_17_R->setDbValue($rs->fields('6_17_R'));\n\t\t$this->_6_18_R->setDbValue($rs->fields('6_18_R'));\n\t\t$this->_6_19_R->setDbValue($rs->fields('6_19_R'));\n\t\t$this->_6_20_R->setDbValue($rs->fields('6_20_R'));\n\t\t$this->_6_52_R->setDbValue($rs->fields('6_52_R'));\n\t\t$this->_7_21_R->setDbValue($rs->fields('7_21_R'));\n\t\t$this->_8_22_R->setDbValue($rs->fields('8_22_R'));\n\t\t$this->_8_23_R->setDbValue($rs->fields('8_23_R'));\n\t\t$this->_8_24_R->setDbValue($rs->fields('8_24_R'));\n\t\t$this->_8_25_R->setDbValue($rs->fields('8_25_R'));\n\t\t$this->_9_26_R->setDbValue($rs->fields('9_26_R'));\n\t\t$this->_9_27_R->setDbValue($rs->fields('9_27_R'));\n\t\t$this->_9_28_R->setDbValue($rs->fields('9_28_R'));\n\t\t$this->_9_29_R->setDbValue($rs->fields('9_29_R'));\n\t\t$this->_9_30_R->setDbValue($rs->fields('9_30_R'));\n\t\t$this->_9_31_R->setDbValue($rs->fields('9_31_R'));\n\t\t$this->_9_32_R->setDbValue($rs->fields('9_32_R'));\n\t\t$this->_9_33_R->setDbValue($rs->fields('9_33_R'));\n\t\t$this->_9_34_R->setDbValue($rs->fields('9_34_R'));\n\t\t$this->_9_35_R->setDbValue($rs->fields('9_35_R'));\n\t\t$this->_9_36_R->setDbValue($rs->fields('9_36_R'));\n\t\t$this->_9_37_R->setDbValue($rs->fields('9_37_R'));\n\t\t$this->_9_38_R->setDbValue($rs->fields('9_38_R'));\n\t\t$this->_9_39_R->setDbValue($rs->fields('9_39_R'));\n\t\t$this->_10_40_R->setDbValue($rs->fields('10_40_R'));\n\t\t$this->_10_41_R->setDbValue($rs->fields('10_41_R'));\n\t\t$this->_11_42_R->setDbValue($rs->fields('11_42_R'));\n\t\t$this->_11_43_R->setDbValue($rs->fields('11_43_R'));\n\t\t$this->_12_44_R->setDbValue($rs->fields('12_44_R'));\n\t\t$this->_12_45_R->setDbValue($rs->fields('12_45_R'));\n\t\t$this->_12_46_R->setDbValue($rs->fields('12_46_R'));\n\t\t$this->_12_47_R->setDbValue($rs->fields('12_47_R'));\n\t\t$this->_12_48_R->setDbValue($rs->fields('12_48_R'));\n\t\t$this->_12_49_R->setDbValue($rs->fields('12_49_R'));\n\t\t$this->_12_50_R->setDbValue($rs->fields('12_50_R'));\n\t\t$this->_1__R->setDbValue($rs->fields('1__R'));\n\t\t$this->_13_54_R->setDbValue($rs->fields('13_54_R'));\n\t\t$this->_13_54_1_R->setDbValue($rs->fields('13_54_1_R'));\n\t\t$this->_13_54_2_R->setDbValue($rs->fields('13_54_2_R'));\n\t\t$this->_13_55_R->setDbValue($rs->fields('13_55_R'));\n\t\t$this->_13_55_1_R->setDbValue($rs->fields('13_55_1_R'));\n\t\t$this->_13_55_2_R->setDbValue($rs->fields('13_55_2_R'));\n\t\t$this->_13_56_R->setDbValue($rs->fields('13_56_R'));\n\t\t$this->_13_56_1_R->setDbValue($rs->fields('13_56_1_R'));\n\t\t$this->_13_56_2_R->setDbValue($rs->fields('13_56_2_R'));\n\t\t$this->_12_53_R->setDbValue($rs->fields('12_53_R'));\n\t\t$this->_12_53_1_R->setDbValue($rs->fields('12_53_1_R'));\n\t\t$this->_12_53_2_R->setDbValue($rs->fields('12_53_2_R'));\n\t\t$this->_12_53_3_R->setDbValue($rs->fields('12_53_3_R'));\n\t\t$this->_12_53_4_R->setDbValue($rs->fields('12_53_4_R'));\n\t\t$this->_12_53_5_R->setDbValue($rs->fields('12_53_5_R'));\n\t\t$this->_12_53_6_R->setDbValue($rs->fields('12_53_6_R'));\n\t\t$this->_13_57_R->setDbValue($rs->fields('13_57_R'));\n\t\t$this->_13_57_1_R->setDbValue($rs->fields('13_57_1_R'));\n\t\t$this->_13_57_2_R->setDbValue($rs->fields('13_57_2_R'));\n\t\t$this->_13_58_R->setDbValue($rs->fields('13_58_R'));\n\t\t$this->_13_58_1_R->setDbValue($rs->fields('13_58_1_R'));\n\t\t$this->_13_58_2_R->setDbValue($rs->fields('13_58_2_R'));\n\t\t$this->_13_59_R->setDbValue($rs->fields('13_59_R'));\n\t\t$this->_13_59_1_R->setDbValue($rs->fields('13_59_1_R'));\n\t\t$this->_13_59_2_R->setDbValue($rs->fields('13_59_2_R'));\n\t\t$this->_13_60_R->setDbValue($rs->fields('13_60_R'));\n\t\t$this->_12_53_7_R->setDbValue($rs->fields('12_53_7_R'));\n\t\t$this->_12_53_8_R->setDbValue($rs->fields('12_53_8_R'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->spec_id->setDbValue($rs->fields('spec_id'));\n\t\t$this->model_id->setDbValue($rs->fields('model_id'));\n\t\t$this->title->setDbValue($rs->fields('title'));\n\t\t$this->description->setDbValue($rs->fields('description'));\n\t\t$this->s_order->setDbValue($rs->fields('s_order'));\n\t\t$this->status->setDbValue($rs->fields('status'));\n\t}", "public function fetchValue($sql, $params = array());", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->unid->setDbValue($row['unid']);\n\t\t$this->u_id->setDbValue($row['u_id']);\n\t\t$this->acl_id->setDbValue($row['acl_id']);\n\t\t$this->Name->setDbValue($row['Name']);\n\t\t$this->Basics->setDbValue($row['Basics']);\n\t\t$this->HP->setDbValue($row['HP']);\n\t\t$this->MP->setDbValue($row['MP']);\n\t\t$this->AD->setDbValue($row['AD']);\n\t\t$this->AP->setDbValue($row['AP']);\n\t\t$this->Defense->setDbValue($row['Defense']);\n\t\t$this->Hit->setDbValue($row['Hit']);\n\t\t$this->Dodge->setDbValue($row['Dodge']);\n\t\t$this->Crit->setDbValue($row['Crit']);\n\t\t$this->AbsorbHP->setDbValue($row['AbsorbHP']);\n\t\t$this->ADPTV->setDbValue($row['ADPTV']);\n\t\t$this->ADPTR->setDbValue($row['ADPTR']);\n\t\t$this->APPTR->setDbValue($row['APPTR']);\n\t\t$this->APPTV->setDbValue($row['APPTV']);\n\t\t$this->ImmuneDamage->setDbValue($row['ImmuneDamage']);\n\t\t$this->Intro->setDbValue($row['Intro']);\n\t\t$this->ExclusiveSkills->setDbValue($row['ExclusiveSkills']);\n\t\t$this->TransferDemand->setDbValue($row['TransferDemand']);\n\t\t$this->TransferLevel->setDbValue($row['TransferLevel']);\n\t\t$this->FormerOccupation->setDbValue($row['FormerOccupation']);\n\t\t$this->Belong->setDbValue($row['Belong']);\n\t\t$this->AttackEffect->setDbValue($row['AttackEffect']);\n\t\t$this->AttackTips->setDbValue($row['AttackTips']);\n\t\t$this->MagicResistance->setDbValue($row['MagicResistance']);\n\t\t$this->IgnoreShield->setDbValue($row['IgnoreShield']);\n\t\t$this->DATETIME->setDbValue($row['DATETIME']);\n\t}", "public function getValue(BasicRecord $record = null);", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->companyname->setDbValue($rs->fields('companyname'));\n\t\t$this->servicetime->setDbValue($rs->fields('servicetime'));\n\t\t$this->country->setDbValue($rs->fields('country'));\n\t\t$this->phone->setDbValue($rs->fields('phone'));\n\t\t$this->skype->setDbValue($rs->fields('skype'));\n\t\t$this->website->setDbValue($rs->fields('website'));\n\t\t$this->linkedin->setDbValue($rs->fields('linkedin'));\n\t\t$this->facebook->setDbValue($rs->fields('facebook'));\n\t\t$this->twitter->setDbValue($rs->fields('twitter'));\n\t\t$this->active_code->setDbValue($rs->fields('active_code'));\n\t\t$this->identification->setDbValue($rs->fields('identification'));\n\t\t$this->link_expired->setDbValue($rs->fields('link_expired'));\n\t\t$this->isactive->setDbValue($rs->fields('isactive'));\n\t\t$this->pio->setDbValue($rs->fields('pio'));\n\t\t$this->google->setDbValue($rs->fields('google'));\n\t\t$this->instagram->setDbValue($rs->fields('instagram'));\n\t\t$this->account_type->setDbValue($rs->fields('account_type'));\n\t\t$this->logo->setDbValue($rs->fields('logo'));\n\t\t$this->profilepic->setDbValue($rs->fields('profilepic'));\n\t\t$this->mailref->setDbValue($rs->fields('mailref'));\n\t\t$this->deleted->setDbValue($rs->fields('deleted'));\n\t\t$this->deletefeedback->setDbValue($rs->fields('deletefeedback'));\n\t\t$this->account_id->setDbValue($rs->fields('account_id'));\n\t\t$this->start_date->setDbValue($rs->fields('start_date'));\n\t\t$this->end_date->setDbValue($rs->fields('end_date'));\n\t\t$this->year_moth->setDbValue($rs->fields('year_moth'));\n\t\t$this->registerdate->setDbValue($rs->fields('registerdate'));\n\t\t$this->login_type->setDbValue($rs->fields('login_type'));\n\t\t$this->accountstatus->setDbValue($rs->fields('accountstatus'));\n\t\t$this->ispay->setDbValue($rs->fields('ispay'));\n\t\t$this->profilelink->setDbValue($rs->fields('profilelink'));\n\t\t$this->source->setDbValue($rs->fields('source'));\n\t\t$this->agree->setDbValue($rs->fields('agree'));\n\t\t$this->balance->setDbValue($rs->fields('balance'));\n\t\t$this->job_title->setDbValue($rs->fields('job_title'));\n\t\t$this->projects->setDbValue($rs->fields('projects'));\n\t\t$this->opportunities->setDbValue($rs->fields('opportunities'));\n\t\t$this->isconsaltant->setDbValue($rs->fields('isconsaltant'));\n\t\t$this->isagent->setDbValue($rs->fields('isagent'));\n\t\t$this->isinvestor->setDbValue($rs->fields('isinvestor'));\n\t\t$this->isbusinessman->setDbValue($rs->fields('isbusinessman'));\n\t\t$this->isprovider->setDbValue($rs->fields('isprovider'));\n\t\t$this->isproductowner->setDbValue($rs->fields('isproductowner'));\n\t\t$this->states->setDbValue($rs->fields('states'));\n\t\t$this->cities->setDbValue($rs->fields('cities'));\n\t\t$this->offers->setDbValue($rs->fields('offers'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->companyname->setDbValue($rs->fields('companyname'));\n\t\t$this->servicetime->setDbValue($rs->fields('servicetime'));\n\t\t$this->country->setDbValue($rs->fields('country'));\n\t\t$this->phone->setDbValue($rs->fields('phone'));\n\t\t$this->skype->setDbValue($rs->fields('skype'));\n\t\t$this->website->setDbValue($rs->fields('website'));\n\t\t$this->linkedin->setDbValue($rs->fields('linkedin'));\n\t\t$this->facebook->setDbValue($rs->fields('facebook'));\n\t\t$this->twitter->setDbValue($rs->fields('twitter'));\n\t\t$this->active_code->setDbValue($rs->fields('active_code'));\n\t\t$this->identification->setDbValue($rs->fields('identification'));\n\t\t$this->link_expired->setDbValue($rs->fields('link_expired'));\n\t\t$this->isactive->setDbValue($rs->fields('isactive'));\n\t\t$this->pio->setDbValue($rs->fields('pio'));\n\t\t$this->google->setDbValue($rs->fields('google'));\n\t\t$this->instagram->setDbValue($rs->fields('instagram'));\n\t\t$this->account_type->setDbValue($rs->fields('account_type'));\n\t\t$this->logo->setDbValue($rs->fields('logo'));\n\t\t$this->profilepic->setDbValue($rs->fields('profilepic'));\n\t\t$this->mailref->setDbValue($rs->fields('mailref'));\n\t\t$this->deleted->setDbValue($rs->fields('deleted'));\n\t\t$this->deletefeedback->setDbValue($rs->fields('deletefeedback'));\n\t\t$this->account_id->setDbValue($rs->fields('account_id'));\n\t\t$this->start_date->setDbValue($rs->fields('start_date'));\n\t\t$this->end_date->setDbValue($rs->fields('end_date'));\n\t\t$this->year_moth->setDbValue($rs->fields('year_moth'));\n\t\t$this->registerdate->setDbValue($rs->fields('registerdate'));\n\t\t$this->login_type->setDbValue($rs->fields('login_type'));\n\t\t$this->accountstatus->setDbValue($rs->fields('accountstatus'));\n\t\t$this->ispay->setDbValue($rs->fields('ispay'));\n\t\t$this->profilelink->setDbValue($rs->fields('profilelink'));\n\t\t$this->source->setDbValue($rs->fields('source'));\n\t\t$this->agree->setDbValue($rs->fields('agree'));\n\t\t$this->balance->setDbValue($rs->fields('balance'));\n\t\t$this->job_title->setDbValue($rs->fields('job_title'));\n\t\t$this->projects->setDbValue($rs->fields('projects'));\n\t\t$this->opportunities->setDbValue($rs->fields('opportunities'));\n\t\t$this->isconsaltant->setDbValue($rs->fields('isconsaltant'));\n\t\t$this->isagent->setDbValue($rs->fields('isagent'));\n\t\t$this->isinvestor->setDbValue($rs->fields('isinvestor'));\n\t\t$this->isbusinessman->setDbValue($rs->fields('isbusinessman'));\n\t\t$this->isprovider->setDbValue($rs->fields('isprovider'));\n\t\t$this->isproductowner->setDbValue($rs->fields('isproductowner'));\n\t\t$this->states->setDbValue($rs->fields('states'));\n\t\t$this->cities->setDbValue($rs->fields('cities'));\n\t\t$this->offers->setDbValue($rs->fields('offers'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Pase->setDbValue($rs->fields('Id_Pase'));\r\n\t\t$this->Serie_Equipo->setDbValue($rs->fields('Serie_Equipo'));\r\n\t\t$this->Id_Hardware->setDbValue($rs->fields('Id_Hardware'));\r\n\t\t$this->SN->setDbValue($rs->fields('SN'));\r\n\t\t$this->Modelo_Net->setDbValue($rs->fields('Modelo_Net'));\r\n\t\t$this->Marca_Arranque->setDbValue($rs->fields('Marca_Arranque'));\r\n\t\t$this->Nombre_Titular->setDbValue($rs->fields('Nombre_Titular'));\r\n\t\t$this->Dni_Titular->setDbValue($rs->fields('Dni_Titular'));\r\n\t\t$this->Cuil_Titular->setDbValue($rs->fields('Cuil_Titular'));\r\n\t\t$this->Nombre_Tutor->setDbValue($rs->fields('Nombre_Tutor'));\r\n\t\t$this->DniTutor->setDbValue($rs->fields('DniTutor'));\r\n\t\t$this->Domicilio->setDbValue($rs->fields('Domicilio'));\r\n\t\t$this->Tel_Tutor->setDbValue($rs->fields('Tel_Tutor'));\r\n\t\t$this->CelTutor->setDbValue($rs->fields('CelTutor'));\r\n\t\t$this->Cue_Establecimiento_Alta->setDbValue($rs->fields('Cue_Establecimiento_Alta'));\r\n\t\t$this->Escuela_Alta->setDbValue($rs->fields('Escuela_Alta'));\r\n\t\t$this->Directivo_Alta->setDbValue($rs->fields('Directivo_Alta'));\r\n\t\t$this->Cuil_Directivo_Alta->setDbValue($rs->fields('Cuil_Directivo_Alta'));\r\n\t\t$this->Dpto_Esc_alta->setDbValue($rs->fields('Dpto_Esc_alta'));\r\n\t\t$this->Localidad_Esc_Alta->setDbValue($rs->fields('Localidad_Esc_Alta'));\r\n\t\t$this->Domicilio_Esc_Alta->setDbValue($rs->fields('Domicilio_Esc_Alta'));\r\n\t\t$this->Rte_Alta->setDbValue($rs->fields('Rte_Alta'));\r\n\t\t$this->Tel_Rte_Alta->setDbValue($rs->fields('Tel_Rte_Alta'));\r\n\t\t$this->Email_Rte_Alta->setDbValue($rs->fields('Email_Rte_Alta'));\r\n\t\t$this->Serie_Server_Alta->setDbValue($rs->fields('Serie_Server_Alta'));\r\n\t\t$this->Cue_Establecimiento_Baja->setDbValue($rs->fields('Cue_Establecimiento_Baja'));\r\n\t\t$this->Escuela_Baja->setDbValue($rs->fields('Escuela_Baja'));\r\n\t\t$this->Directivo_Baja->setDbValue($rs->fields('Directivo_Baja'));\r\n\t\t$this->Cuil_Directivo_Baja->setDbValue($rs->fields('Cuil_Directivo_Baja'));\r\n\t\t$this->Dpto_Esc_Baja->setDbValue($rs->fields('Dpto_Esc_Baja'));\r\n\t\t$this->Localidad_Esc_Baja->setDbValue($rs->fields('Localidad_Esc_Baja'));\r\n\t\t$this->Domicilio_Esc_Baja->setDbValue($rs->fields('Domicilio_Esc_Baja'));\r\n\t\t$this->Rte_Baja->setDbValue($rs->fields('Rte_Baja'));\r\n\t\t$this->Tel_Rte_Baja->setDbValue($rs->fields('Tel_Rte_Baja'));\r\n\t\t$this->Email_Rte_Baja->setDbValue($rs->fields('Email_Rte_Baja'));\r\n\t\t$this->Serie_Server_Baja->setDbValue($rs->fields('Serie_Server_Baja'));\r\n\t\t$this->Fecha_Pase->setDbValue($rs->fields('Fecha_Pase'));\r\n\t\t$this->Id_Estado_Pase->setDbValue($rs->fields('Id_Estado_Pase'));\r\n\t\t$this->Ruta_Archivo->Upload->DbValue = $rs->fields('Ruta_Archivo');\r\n\t\t$this->Ruta_Archivo->CurrentValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->gjd_id->setDbValue($rs->fields('gjd_id'));\n\t\t$this->gjm_id->setDbValue($rs->fields('gjm_id'));\n\t\t$this->peg_id->setDbValue($rs->fields('peg_id'));\n\t\t$this->b_mn->setDbValue($rs->fields('b_mn'));\n\t\t$this->b_sn->setDbValue($rs->fields('b_sn'));\n\t\t$this->b_sl->setDbValue($rs->fields('b_sl'));\n\t\t$this->b_rb->setDbValue($rs->fields('b_rb'));\n\t\t$this->b_km->setDbValue($rs->fields('b_km'));\n\t\t$this->b_jm->setDbValue($rs->fields('b_jm'));\n\t\t$this->b_sb->setDbValue($rs->fields('b_sb'));\n\t\t$this->l_mn->setDbValue($rs->fields('l_mn'));\n\t\t$this->l_sn->setDbValue($rs->fields('l_sn'));\n\t\t$this->l_sl->setDbValue($rs->fields('l_sl'));\n\t\t$this->l_rb->setDbValue($rs->fields('l_rb'));\n\t\t$this->l_km->setDbValue($rs->fields('l_km'));\n\t\t$this->l_jm->setDbValue($rs->fields('l_jm'));\n\t\t$this->l_sb->setDbValue($rs->fields('l_sb'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Proveedor->setDbValue($rs->fields('Id_Proveedor'));\r\n\t\t$this->RazonSocial->setDbValue($rs->fields('RazonSocial'));\r\n\t\t$this->RFC->setDbValue($rs->fields('RFC'));\r\n\t\t$this->NombreContacto->setDbValue($rs->fields('NombreContacto'));\r\n\t\t$this->CalleYNumero->setDbValue($rs->fields('CalleYNumero'));\r\n\t\t$this->Colonia->setDbValue($rs->fields('Colonia'));\r\n\t\t$this->Poblacion->setDbValue($rs->fields('Poblacion'));\r\n\t\t$this->Municipio_Delegacion->setDbValue($rs->fields('Municipio_Delegacion'));\r\n\t\t$this->Id_Estado->setDbValue($rs->fields('Id_Estado'));\r\n\t\t$this->CP->setDbValue($rs->fields('CP'));\r\n\t\t$this->_EMail->setDbValue($rs->fields('EMail'));\r\n\t\t$this->Telefonos->setDbValue($rs->fields('Telefonos'));\r\n\t\t$this->Celular->setDbValue($rs->fields('Celular'));\r\n\t\t$this->Fax->setDbValue($rs->fields('Fax'));\r\n\t\t$this->Banco->setDbValue($rs->fields('Banco'));\r\n\t\t$this->NumCuenta->setDbValue($rs->fields('NumCuenta'));\r\n\t\t$this->CLABE->setDbValue($rs->fields('CLABE'));\r\n\t\t$this->Maneja_Papeleta->setDbValue($rs->fields('Maneja_Papeleta'));\r\n\t\t$this->Observaciones->setDbValue($rs->fields('Observaciones'));\r\n\t\t$this->Maneja_Activacion_Movi->setDbValue($rs->fields('Maneja_Activacion_Movi'));\r\n\t}", "protected function loadRow() {}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->product_id->setDbValue($row['product_id']);\n\t\t$this->cat_id->setDbValue($row['cat_id']);\n\t\tif (array_key_exists('EV__cat_id', $rs->fields)) {\n\t\t\t$this->cat_id->VirtualValue = $rs->fields('EV__cat_id'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->cat_id->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->company_id->setDbValue($row['company_id']);\n\t\tif (array_key_exists('EV__company_id', $rs->fields)) {\n\t\t\t$this->company_id->VirtualValue = $rs->fields('EV__company_id'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->company_id->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_model->setDbValue($row['pro_model']);\n\t\tif (array_key_exists('EV__pro_model', $rs->fields)) {\n\t\t\t$this->pro_model->VirtualValue = $rs->fields('EV__pro_model'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->pro_model->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_name->setDbValue($row['pro_name']);\n\t\t$this->pro_description->setDbValue($row['pro_description']);\n\t\t$this->pro_condition->setDbValue($row['pro_condition']);\n\t\t$this->pro_features->setDbValue($row['pro_features']);\n\t\t$this->post_date->setDbValue($row['post_date']);\n\t\t$this->ads_id->setDbValue($row['ads_id']);\n\t\t$this->pro_base_price->setDbValue($row['pro_base_price']);\n\t\t$this->pro_sell_price->setDbValue($row['pro_sell_price']);\n\t\t$this->featured_image->Upload->DbValue = $row['featured_image'];\n\t\t$this->featured_image->setDbValue($this->featured_image->Upload->DbValue);\n\t\t$this->folder_image->setDbValue($row['folder_image']);\n\t\tif (array_key_exists('EV__folder_image', $rs->fields)) {\n\t\t\t$this->folder_image->VirtualValue = $rs->fields('EV__folder_image'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->folder_image->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_status->setDbValue($row['pro_status']);\n\t\t$this->branch_id->setDbValue($row['branch_id']);\n\t\t$this->lang->setDbValue($row['lang']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->id_admission->setDbValue($rs->fields('id_admission'));\n\t\t$this->nomr->setDbValue($rs->fields('nomr'));\n\t\t$this->statusbayar->setDbValue($rs->fields('statusbayar'));\n\t\t$this->kelas->setDbValue($rs->fields('kelas'));\n\t\t$this->tanggal->setDbValue($rs->fields('tanggal'));\n\t\t$this->kode_tindakan->setDbValue($rs->fields('kode_tindakan'));\n\t\t$this->qty->setDbValue($rs->fields('qty'));\n\t\t$this->tarif->setDbValue($rs->fields('tarif'));\n\t\t$this->bhp->setDbValue($rs->fields('bhp'));\n\t\t$this->user->setDbValue($rs->fields('user'));\n\t\t$this->nama_tindakan->setDbValue($rs->fields('nama_tindakan'));\n\t\t$this->kelompok_tindakan->setDbValue($rs->fields('kelompok_tindakan'));\n\t\t$this->kelompok1->setDbValue($rs->fields('kelompok1'));\n\t\t$this->kelompok2->setDbValue($rs->fields('kelompok2'));\n\t\t$this->kode_dokter->setDbValue($rs->fields('kode_dokter'));\n\t\t$this->no_ruang->setDbValue($rs->fields('no_ruang'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->detail_jenis_spp->setDbValue($rs->fields('detail_jenis_spp'));\n\t\t$this->id_jenis_spp->setDbValue($rs->fields('id_jenis_spp'));\n\t\t$this->status_spp->setDbValue($rs->fields('status_spp'));\n\t\t$this->no_spp->setDbValue($rs->fields('no_spp'));\n\t\t$this->tgl_spp->setDbValue($rs->fields('tgl_spp'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t\t$this->jumlah_up->setDbValue($rs->fields('jumlah_up'));\n\t\t$this->bendahara->setDbValue($rs->fields('bendahara'));\n\t\t$this->nama_pptk->setDbValue($rs->fields('nama_pptk'));\n\t\t$this->nip_pptk->setDbValue($rs->fields('nip_pptk'));\n\t\t$this->kode_program->setDbValue($rs->fields('kode_program'));\n\t\t$this->kode_kegiatan->setDbValue($rs->fields('kode_kegiatan'));\n\t\t$this->kode_sub_kegiatan->setDbValue($rs->fields('kode_sub_kegiatan'));\n\t\t$this->tahun_anggaran->setDbValue($rs->fields('tahun_anggaran'));\n\t\t$this->jumlah_spd->setDbValue($rs->fields('jumlah_spd'));\n\t\t$this->nomer_dasar_spd->setDbValue($rs->fields('nomer_dasar_spd'));\n\t\t$this->tanggal_spd->setDbValue($rs->fields('tanggal_spd'));\n\t\t$this->id_spd->setDbValue($rs->fields('id_spd'));\n\t\t$this->kode_rekening->setDbValue($rs->fields('kode_rekening'));\n\t\t$this->nama_bendahara->setDbValue($rs->fields('nama_bendahara'));\n\t\t$this->nip_bendahara->setDbValue($rs->fields('nip_bendahara'));\n\t\t$this->no_spm->setDbValue($rs->fields('no_spm'));\n\t\t$this->tgl_spm->setDbValue($rs->fields('tgl_spm'));\n\t\t$this->status_spm->setDbValue($rs->fields('status_spm'));\n\t\t$this->nama_bank->setDbValue($rs->fields('nama_bank'));\n\t\t$this->nomer_rekening_bank->setDbValue($rs->fields('nomer_rekening_bank'));\n\t\t$this->npwp->setDbValue($rs->fields('npwp'));\n\t\t$this->pimpinan_blud->setDbValue($rs->fields('pimpinan_blud'));\n\t\t$this->nip_pimpinan->setDbValue($rs->fields('nip_pimpinan'));\n\t\t$this->no_sptb->setDbValue($rs->fields('no_sptb'));\n\t\t$this->tgl_sptb->setDbValue($rs->fields('tgl_sptb'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->empleado_id->setDbValue($rs->fields('empleado_id'));\n\t\t$this->codigo->setDbValue($rs->fields('codigo'));\n\t\t$this->cui->setDbValue($rs->fields('cui'));\n\t\t$this->nombre->setDbValue($rs->fields('nombre'));\n\t\t$this->apellido->setDbValue($rs->fields('apellido'));\n\t\t$this->direccion->setDbValue($rs->fields('direccion'));\n\t\t$this->departamento_origen_id->setDbValue($rs->fields('departamento_origen_id'));\n\t\t$this->municipio_id->setDbValue($rs->fields('municipio_id'));\n\t\t$this->telefono_residencia->setDbValue($rs->fields('telefono_residencia'));\n\t\t$this->telefono_celular->setDbValue($rs->fields('telefono_celular'));\n\t\t$this->fecha_nacimiento->setDbValue($rs->fields('fecha_nacimiento'));\n\t\t$this->nacionalidad->setDbValue($rs->fields('nacionalidad'));\n\t\t$this->estado_civil->setDbValue($rs->fields('estado_civil'));\n\t\t$this->sexo->setDbValue($rs->fields('sexo'));\n\t\t$this->igss->setDbValue($rs->fields('igss'));\n\t\t$this->nit->setDbValue($rs->fields('nit'));\n\t\t$this->licencia_conducir->setDbValue($rs->fields('licencia_conducir'));\n\t\t$this->area_id->setDbValue($rs->fields('area_id'));\n\t\t$this->departmento_id->setDbValue($rs->fields('departmento_id'));\n\t\t$this->seccion_id->setDbValue($rs->fields('seccion_id'));\n\t\t$this->puesto_id->setDbValue($rs->fields('puesto_id'));\n\t\t$this->observaciones->setDbValue($rs->fields('observaciones'));\n\t\t$this->tipo_sangre_id->setDbValue($rs->fields('tipo_sangre_id'));\n\t\t$this->estado->setDbValue($rs->fields('estado'));\n\t}", "private function getDbData()\n\t{\n\t\t//make sure we have an id....\n\t\tif ($this->id)\n\t\t{\n\t\t\t$result = db()->getRow(\"\n\t\t\t\tSELECT *\n\t\t\t\tFROM $this->tableName\n\t\t\t\tWHERE id = '$this->id'\n\t\t\t\");\n\n\t\t\tif (is_array($result))\n\t\t\t\treturn $result;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function fromDB($value, $type) {\n\t\t//everything is nullable\n\t\tif($value === null) return null;\n\t\t\n\t\tswitch($type) {\n\t\t\tcase 'datetime': // ISO-8601\n\t\t\tcase 'date':\n\t\t\t\treturn new DateTime($value);\n\t\t\tcase 'integer':\n\t\t\t\treturn (int) $value;\n\t\t\tcase 'boolean':\n\t\t\t\treturn (bool) $value;\n\t\t}\n\t\treturn $value;\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->IDXDAFTAR->setDbValue($rs->fields('IDXDAFTAR'));\n\t\t$this->NOMR->setDbValue($rs->fields('NOMR'));\n\t\t$this->KDPOLY->setDbValue($rs->fields('KDPOLY'));\n\t\t$this->KDCARABAYAR->setDbValue($rs->fields('KDCARABAYAR'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->TGLREG->setDbValue($rs->fields('TGLREG'));\n\t\t$this->JAMREG->setDbValue($rs->fields('JAMREG'));\n\t\t$this->NO_SJP->setDbValue($rs->fields('NO_SJP'));\n\t\t$this->NOKARTU->setDbValue($rs->fields('NOKARTU'));\n\t\t$this->TANGGAL_SEP->setDbValue($rs->fields('TANGGAL_SEP'));\n\t\t$this->TANGGALRUJUK_SEP->setDbValue($rs->fields('TANGGALRUJUK_SEP'));\n\t\t$this->KELASRAWAT_SEP->setDbValue($rs->fields('KELASRAWAT_SEP'));\n\t\t$this->NORUJUKAN_SEP->setDbValue($rs->fields('NORUJUKAN_SEP'));\n\t\t$this->PPKPELAYANAN_SEP->setDbValue($rs->fields('PPKPELAYANAN_SEP'));\n\t\t$this->JENISPERAWATAN_SEP->setDbValue($rs->fields('JENISPERAWATAN_SEP'));\n\t\t$this->CATATAN_SEP->setDbValue($rs->fields('CATATAN_SEP'));\n\t\t$this->DIAGNOSAAWAL_SEP->setDbValue($rs->fields('DIAGNOSAAWAL_SEP'));\n\t\t$this->NAMADIAGNOSA_SEP->setDbValue($rs->fields('NAMADIAGNOSA_SEP'));\n\t\t$this->LAKALANTAS_SEP->setDbValue($rs->fields('LAKALANTAS_SEP'));\n\t\t$this->LOKASILAKALANTAS->setDbValue($rs->fields('LOKASILAKALANTAS'));\n\t\t$this->USER->setDbValue($rs->fields('USER'));\n\t\t$this->generate_sep->setDbValue($rs->fields('generate_sep'));\n\t\t$this->PESERTANIK_SEP->setDbValue($rs->fields('PESERTANIK_SEP'));\n\t\t$this->PESERTANAMA_SEP->setDbValue($rs->fields('PESERTANAMA_SEP'));\n\t\t$this->PESERTAJENISKELAMIN_SEP->setDbValue($rs->fields('PESERTAJENISKELAMIN_SEP'));\n\t\t$this->PESERTANAMAKELAS_SEP->setDbValue($rs->fields('PESERTANAMAKELAS_SEP'));\n\t\t$this->PESERTAPISAT->setDbValue($rs->fields('PESERTAPISAT'));\n\t\t$this->PESERTATGLLAHIR->setDbValue($rs->fields('PESERTATGLLAHIR'));\n\t\t$this->PESERTAJENISPESERTA_SEP->setDbValue($rs->fields('PESERTAJENISPESERTA_SEP'));\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->setDbValue($rs->fields('PESERTANAMAJENISPESERTA_SEP'));\n\t\t$this->POLITUJUAN_SEP->setDbValue($rs->fields('POLITUJUAN_SEP'));\n\t\t$this->NAMAPOLITUJUAN_SEP->setDbValue($rs->fields('NAMAPOLITUJUAN_SEP'));\n\t\t$this->KDPPKRUJUKAN_SEP->setDbValue($rs->fields('KDPPKRUJUKAN_SEP'));\n\t\t$this->NMPPKRUJUKAN_SEP->setDbValue($rs->fields('NMPPKRUJUKAN_SEP'));\n\t\t$this->mapingtransaksi->setDbValue($rs->fields('mapingtransaksi'));\n\t\t$this->bridging_kepesertaan_by_no_ka->setDbValue($rs->fields('bridging_kepesertaan_by_no_ka'));\n\t\t$this->pasien_NOTELP->setDbValue($rs->fields('pasien_NOTELP'));\n\t\t$this->penjamin_kkl_id->setDbValue($rs->fields('penjamin_kkl_id'));\n\t\t$this->asalfaskesrujukan_id->setDbValue($rs->fields('asalfaskesrujukan_id'));\n\t\t$this->peserta_cob->setDbValue($rs->fields('peserta_cob'));\n\t\t$this->poli_eksekutif->setDbValue($rs->fields('poli_eksekutif'));\n\t\t$this->status_kepesertaan_BPJS->setDbValue($rs->fields('status_kepesertaan_BPJS'));\n\t}", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "function load_value( $value, $post_id, $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $value;\n\t}", "public function getDBTValue(){ \n $query = \"SELECT * FROM tbl_payment WHERE id ='1'\"; // id = 1 for direct bank\n $result = $this->db->select($query);\n return $result;\n }", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->userlevelid->setDbValue($rs->fields('userlevelid'));\n\t\tif (is_null($this->userlevelid->CurrentValue)) {\n\t\t\t$this->userlevelid->CurrentValue = 0;\n\t\t} else {\n\t\t\t$this->userlevelid->CurrentValue = intval($this->userlevelid->CurrentValue);\n\t\t}\n\t\t$this->userlevelname->setDbValue($rs->fields('userlevelname'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id_admission->setDbValue($rs->fields('id_admission'));\n\t\t$this->nomr->setDbValue($rs->fields('nomr'));\n\t\t$this->ket_nama->setDbValue($rs->fields('ket_nama'));\n\t\t$this->ket_tgllahir->setDbValue($rs->fields('ket_tgllahir'));\n\t\t$this->ket_alamat->setDbValue($rs->fields('ket_alamat'));\n\t\t$this->ket_jeniskelamin->setDbValue($rs->fields('ket_jeniskelamin'));\n\t\t$this->ket_title->setDbValue($rs->fields('ket_title'));\n\t\t$this->dokterpengirim->setDbValue($rs->fields('dokterpengirim'));\n\t\t$this->statusbayar->setDbValue($rs->fields('statusbayar'));\n\t\t$this->kirimdari->setDbValue($rs->fields('kirimdari'));\n\t\t$this->keluargadekat->setDbValue($rs->fields('keluargadekat'));\n\t\t$this->panggungjawab->setDbValue($rs->fields('panggungjawab'));\n\t\t$this->masukrs->setDbValue($rs->fields('masukrs'));\n\t\t$this->noruang->setDbValue($rs->fields('noruang'));\n\t\t$this->tempat_tidur_id->setDbValue($rs->fields('tempat_tidur_id'));\n\t\t$this->nott->setDbValue($rs->fields('nott'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->dokter_penanggungjawab->setDbValue($rs->fields('dokter_penanggungjawab'));\n\t\t$this->KELASPERAWATAN_ID->setDbValue($rs->fields('KELASPERAWATAN_ID'));\n\t\t$this->NO_SKP->setDbValue($rs->fields('NO_SKP'));\n\t\t$this->sep_tglsep->setDbValue($rs->fields('sep_tglsep'));\n\t\t$this->sep_tglrujuk->setDbValue($rs->fields('sep_tglrujuk'));\n\t\t$this->sep_kodekelasrawat->setDbValue($rs->fields('sep_kodekelasrawat'));\n\t\t$this->sep_norujukan->setDbValue($rs->fields('sep_norujukan'));\n\t\t$this->sep_kodeppkasal->setDbValue($rs->fields('sep_kodeppkasal'));\n\t\t$this->sep_namappkasal->setDbValue($rs->fields('sep_namappkasal'));\n\t\t$this->sep_kodeppkpelayanan->setDbValue($rs->fields('sep_kodeppkpelayanan'));\n\t\t$this->sep_jenisperawatan->setDbValue($rs->fields('sep_jenisperawatan'));\n\t\t$this->sep_catatan->setDbValue($rs->fields('sep_catatan'));\n\t\t$this->sep_kodediagnosaawal->setDbValue($rs->fields('sep_kodediagnosaawal'));\n\t\t$this->sep_namadiagnosaawal->setDbValue($rs->fields('sep_namadiagnosaawal'));\n\t\t$this->sep_lakalantas->setDbValue($rs->fields('sep_lakalantas'));\n\t\t$this->sep_lokasilaka->setDbValue($rs->fields('sep_lokasilaka'));\n\t\t$this->sep_user->setDbValue($rs->fields('sep_user'));\n\t\t$this->sep_flag_cekpeserta->setDbValue($rs->fields('sep_flag_cekpeserta'));\n\t\t$this->sep_flag_generatesep->setDbValue($rs->fields('sep_flag_generatesep'));\n\t\t$this->sep_nik->setDbValue($rs->fields('sep_nik'));\n\t\t$this->sep_namapeserta->setDbValue($rs->fields('sep_namapeserta'));\n\t\t$this->sep_jeniskelamin->setDbValue($rs->fields('sep_jeniskelamin'));\n\t\t$this->sep_pisat->setDbValue($rs->fields('sep_pisat'));\n\t\t$this->sep_tgllahir->setDbValue($rs->fields('sep_tgllahir'));\n\t\t$this->sep_kodejeniskepesertaan->setDbValue($rs->fields('sep_kodejeniskepesertaan'));\n\t\t$this->sep_namajeniskepesertaan->setDbValue($rs->fields('sep_namajeniskepesertaan'));\n\t\t$this->sep_nokabpjs->setDbValue($rs->fields('sep_nokabpjs'));\n\t\t$this->sep_status_peserta->setDbValue($rs->fields('sep_status_peserta'));\n\t\t$this->sep_umur_pasien_sekarang->setDbValue($rs->fields('sep_umur_pasien_sekarang'));\n\t\t$this->statuskeluarranap_id->setDbValue($rs->fields('statuskeluarranap_id'));\n\t\t$this->keluarrs->setDbValue($rs->fields('keluarrs'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $rekeningju;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$rekeningju->Row_Selected($row);\r\n\t\t$rekeningju->NoRek->setDbValue($rs->fields('NoRek'));\r\n\t\t$rekeningju->Keterangan->setDbValue($rs->fields('Keterangan'));\r\n\t\t$rekeningju->debet->setDbValue($rs->fields('debet'));\r\n\t\t$rekeningju->kredit->setDbValue($rs->fields('kredit'));\r\n\t\t$rekeningju->kode_bukti->setDbValue($rs->fields('kode_bukti'));\r\n\t\t$rekeningju->tanggal->setDbValue($rs->fields('tanggal'));\r\n\t\t$rekeningju->kode_otomatis_master->setDbValue($rs->fields('kode_otomatis_master'));\r\n\t\t$rekeningju->tanggal_nota->setDbValue($rs->fields('tanggal_nota'));\r\n\t\t$rekeningju->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t\t$rekeningju->kode_otomatis_tingkat->setDbValue($rs->fields('kode_otomatis_tingkat'));\r\n\t\t$rekeningju->id->setDbValue($rs->fields('id'));\r\n\t\t$rekeningju->apakah_original->setDbValue($rs->fields('apakah_original'));\r\n\t}", "protected function load($objRow) {\n $this->_data['intID'] = $objRow->pkID;\n $this->_data['intProductID '] = $objRow->fkProductID;\n $this->_data['intValue'] = $objRow->fldValue;\n }", "protected function load($val, $col = false, $limit = 1, $cacheEngine = false, $ttl = false, $useWriteMaster = false) {\n\t\t$col = empty($col) ? $this->pk : $col;\n\t\t$this->loadArr(array($col => $val), $limit, $cacheEngine ?: $this->defaultCache, $ttl, $useWriteMaster);\n\t}", "protected static function afterGetFromDB(&$row){}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Nro_Serie->setDbValue($rs->fields('Nro_Serie'));\r\n\t\t$this->SN->setDbValue($rs->fields('SN'));\r\n\t\t$this->Cant_Net_Asoc->setDbValue($rs->fields('Cant_Net_Asoc'));\r\n\t\t$this->Id_Marca->setDbValue($rs->fields('Id_Marca'));\r\n\t\t$this->Id_Modelo->setDbValue($rs->fields('Id_Modelo'));\r\n\t\t$this->Id_SO->setDbValue($rs->fields('Id_SO'));\r\n\t\t$this->Id_Estado->setDbValue($rs->fields('Id_Estado'));\r\n\t\t$this->User_Server->setDbValue($rs->fields('User_Server'));\r\n\t\t$this->Pass_Server->setDbValue($rs->fields('Pass_Server'));\r\n\t\t$this->User_TdServer->setDbValue($rs->fields('User_TdServer'));\r\n\t\t$this->Pass_TdServer->setDbValue($rs->fields('Pass_TdServer'));\r\n\t\t$this->Cue->setDbValue($rs->fields('Cue'));\r\n\t\t$this->Fecha_Actualizacion->setDbValue($rs->fields('Fecha_Actualizacion'));\r\n\t\t$this->Usuario->setDbValue($rs->fields('Usuario'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Supplier_ID->setDbValue($rs->fields('Supplier_ID'));\n\t\t$this->Supplier_Number->setDbValue($rs->fields('Supplier_Number'));\n\t\t$this->Supplier_Name->setDbValue($rs->fields('Supplier_Name'));\n\t\t$this->Address->setDbValue($rs->fields('Address'));\n\t\t$this->City->setDbValue($rs->fields('City'));\n\t\t$this->Country->setDbValue($rs->fields('Country'));\n\t\t$this->Contact_Person->setDbValue($rs->fields('Contact_Person'));\n\t\t$this->Phone_Number->setDbValue($rs->fields('Phone_Number'));\n\t\t$this->_Email->setDbValue($rs->fields('Email'));\n\t\t$this->Mobile_Number->setDbValue($rs->fields('Mobile_Number'));\n\t\t$this->Notes->setDbValue($rs->fields('Notes'));\n\t\t$this->Balance->setDbValue($rs->fields('Balance'));\n\t\t$this->Is_Stock_Available->setDbValue($rs->fields('Is_Stock_Available'));\n\t\t$this->Date_Added->setDbValue($rs->fields('Date_Added'));\n\t\t$this->Added_By->setDbValue($rs->fields('Added_By'));\n\t\t$this->Date_Updated->setDbValue($rs->fields('Date_Updated'));\n\t\t$this->Updated_By->setDbValue($rs->fields('Updated_By'));\n\t}" ]
[ "0.71590465", "0.70328754", "0.69798225", "0.6910479", "0.68715304", "0.6864575", "0.6846635", "0.6810034", "0.6807108", "0.67882437", "0.67861503", "0.6774649", "0.67629015", "0.67511344", "0.67482644", "0.6743138", "0.6740151", "0.6721034", "0.6707249", "0.6696341", "0.66845953", "0.66513056", "0.6612008", "0.6602599", "0.6551083", "0.65195477", "0.65195477", "0.64666617", "0.63501596", "0.62888193", "0.619691", "0.6163969", "0.61574304", "0.6149428", "0.6138539", "0.6131416", "0.6120415", "0.606492", "0.606492", "0.60202473", "0.60202473", "0.60063654", "0.5950256", "0.59333307", "0.59157646", "0.58956695", "0.5862202", "0.5856804", "0.5852132", "0.58471286", "0.5770095", "0.5770095", "0.5754261", "0.5749249", "0.57053584", "0.56997555", "0.569845", "0.5692547", "0.56718373", "0.5652346", "0.56505436", "0.56495863", "0.5637159", "0.56269866", "0.56043273", "0.5601533", "0.56009316", "0.55994695", "0.55970615", "0.5590966", "0.558662", "0.55836666", "0.55637735", "0.55636233", "0.55536276", "0.5551984", "0.5541817", "0.5541817", "0.55418074", "0.55314773", "0.5529166", "0.552674", "0.55211437", "0.5515753", "0.55049604", "0.5473397", "0.54671645", "0.546369", "0.5458815", "0.54571754", "0.5453508", "0.54525095", "0.5450114", "0.54491735", "0.54473394", "0.54293895", "0.54281676", "0.54257673", "0.54090184", "0.54071045" ]
0.6726272
17
Render row values based on field settings
function RenderRow() { global $Security, $Language, $gsLanguage; // Initialize URLs // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // Id_tercero // nombre_tercero // direccion_tercero // telefono1_tercero // telefono2_tercero // fax_tercero // nit_tercero // tipo_tercero // e_mail_tercero // Contacto_tercero // gran_contrib_tercero // autoretenedor_tercero // activo_tercero // tercero_ registrado_por // reg_comun_tercero // responsable_materiales_tercero // grupo_nomina_tercero // tercero_ lider_Obra // tercero_nombre_lider // empresa_tercero if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // Id_tercero $this->Id_tercero->ViewValue = $this->Id_tercero->CurrentValue; $this->Id_tercero->ViewCustomAttributes = ""; // nombre_tercero $this->nombre_tercero->ViewValue = $this->nombre_tercero->CurrentValue; $this->nombre_tercero->ViewCustomAttributes = ""; // direccion_tercero $this->direccion_tercero->ViewValue = $this->direccion_tercero->CurrentValue; $this->direccion_tercero->ViewCustomAttributes = ""; // telefono1_tercero $this->telefono1_tercero->ViewValue = $this->telefono1_tercero->CurrentValue; $this->telefono1_tercero->ViewCustomAttributes = ""; // telefono2_tercero $this->telefono2_tercero->ViewValue = $this->telefono2_tercero->CurrentValue; $this->telefono2_tercero->ViewCustomAttributes = ""; // fax_tercero $this->fax_tercero->ViewValue = $this->fax_tercero->CurrentValue; $this->fax_tercero->ViewCustomAttributes = ""; // nit_tercero $this->nit_tercero->ViewValue = $this->nit_tercero->CurrentValue; $this->nit_tercero->ViewCustomAttributes = ""; // tipo_tercero $this->tipo_tercero->ViewValue = $this->tipo_tercero->CurrentValue; $this->tipo_tercero->ViewCustomAttributes = ""; // e_mail_tercero $this->e_mail_tercero->ViewValue = $this->e_mail_tercero->CurrentValue; $this->e_mail_tercero->ViewCustomAttributes = ""; // Contacto_tercero $this->Contacto_tercero->ViewValue = $this->Contacto_tercero->CurrentValue; $this->Contacto_tercero->ViewCustomAttributes = ""; // gran_contrib_tercero $this->gran_contrib_tercero->ViewValue = $this->gran_contrib_tercero->CurrentValue; $this->gran_contrib_tercero->ViewCustomAttributes = ""; // autoretenedor_tercero $this->autoretenedor_tercero->ViewValue = $this->autoretenedor_tercero->CurrentValue; $this->autoretenedor_tercero->ViewCustomAttributes = ""; // activo_tercero $this->activo_tercero->ViewValue = $this->activo_tercero->CurrentValue; $this->activo_tercero->ViewCustomAttributes = ""; // tercero_ registrado_por $this->tercero__registrado_por->ViewValue = $this->tercero__registrado_por->CurrentValue; $this->tercero__registrado_por->ViewCustomAttributes = ""; // reg_comun_tercero $this->reg_comun_tercero->ViewValue = $this->reg_comun_tercero->CurrentValue; $this->reg_comun_tercero->ViewCustomAttributes = ""; // responsable_materiales_tercero $this->responsable_materiales_tercero->ViewValue = $this->responsable_materiales_tercero->CurrentValue; $this->responsable_materiales_tercero->ViewCustomAttributes = ""; // grupo_nomina_tercero $this->grupo_nomina_tercero->ViewValue = $this->grupo_nomina_tercero->CurrentValue; $this->grupo_nomina_tercero->ViewCustomAttributes = ""; // tercero_ lider_Obra $this->tercero__lider_Obra->ViewValue = $this->tercero__lider_Obra->CurrentValue; $this->tercero__lider_Obra->ViewCustomAttributes = ""; // tercero_nombre_lider $this->tercero_nombre_lider->ViewValue = $this->tercero_nombre_lider->CurrentValue; $this->tercero_nombre_lider->ViewCustomAttributes = ""; // empresa_tercero $this->empresa_tercero->ViewValue = $this->empresa_tercero->CurrentValue; $this->empresa_tercero->ViewCustomAttributes = ""; // Id_tercero $this->Id_tercero->LinkCustomAttributes = ""; $this->Id_tercero->HrefValue = ""; $this->Id_tercero->TooltipValue = ""; // nombre_tercero $this->nombre_tercero->LinkCustomAttributes = ""; $this->nombre_tercero->HrefValue = ""; $this->nombre_tercero->TooltipValue = ""; // direccion_tercero $this->direccion_tercero->LinkCustomAttributes = ""; $this->direccion_tercero->HrefValue = ""; $this->direccion_tercero->TooltipValue = ""; // telefono1_tercero $this->telefono1_tercero->LinkCustomAttributes = ""; $this->telefono1_tercero->HrefValue = ""; $this->telefono1_tercero->TooltipValue = ""; // telefono2_tercero $this->telefono2_tercero->LinkCustomAttributes = ""; $this->telefono2_tercero->HrefValue = ""; $this->telefono2_tercero->TooltipValue = ""; // fax_tercero $this->fax_tercero->LinkCustomAttributes = ""; $this->fax_tercero->HrefValue = ""; $this->fax_tercero->TooltipValue = ""; // nit_tercero $this->nit_tercero->LinkCustomAttributes = ""; $this->nit_tercero->HrefValue = ""; $this->nit_tercero->TooltipValue = ""; // tipo_tercero $this->tipo_tercero->LinkCustomAttributes = ""; $this->tipo_tercero->HrefValue = ""; $this->tipo_tercero->TooltipValue = ""; // e_mail_tercero $this->e_mail_tercero->LinkCustomAttributes = ""; $this->e_mail_tercero->HrefValue = ""; $this->e_mail_tercero->TooltipValue = ""; // Contacto_tercero $this->Contacto_tercero->LinkCustomAttributes = ""; $this->Contacto_tercero->HrefValue = ""; $this->Contacto_tercero->TooltipValue = ""; // gran_contrib_tercero $this->gran_contrib_tercero->LinkCustomAttributes = ""; $this->gran_contrib_tercero->HrefValue = ""; $this->gran_contrib_tercero->TooltipValue = ""; // autoretenedor_tercero $this->autoretenedor_tercero->LinkCustomAttributes = ""; $this->autoretenedor_tercero->HrefValue = ""; $this->autoretenedor_tercero->TooltipValue = ""; // activo_tercero $this->activo_tercero->LinkCustomAttributes = ""; $this->activo_tercero->HrefValue = ""; $this->activo_tercero->TooltipValue = ""; // tercero_ registrado_por $this->tercero__registrado_por->LinkCustomAttributes = ""; $this->tercero__registrado_por->HrefValue = ""; $this->tercero__registrado_por->TooltipValue = ""; // reg_comun_tercero $this->reg_comun_tercero->LinkCustomAttributes = ""; $this->reg_comun_tercero->HrefValue = ""; $this->reg_comun_tercero->TooltipValue = ""; // responsable_materiales_tercero $this->responsable_materiales_tercero->LinkCustomAttributes = ""; $this->responsable_materiales_tercero->HrefValue = ""; $this->responsable_materiales_tercero->TooltipValue = ""; // grupo_nomina_tercero $this->grupo_nomina_tercero->LinkCustomAttributes = ""; $this->grupo_nomina_tercero->HrefValue = ""; $this->grupo_nomina_tercero->TooltipValue = ""; // tercero_ lider_Obra $this->tercero__lider_Obra->LinkCustomAttributes = ""; $this->tercero__lider_Obra->HrefValue = ""; $this->tercero__lider_Obra->TooltipValue = ""; // tercero_nombre_lider $this->tercero_nombre_lider->LinkCustomAttributes = ""; $this->tercero_nombre_lider->HrefValue = ""; $this->tercero_nombre_lider->TooltipValue = ""; // empresa_tercero $this->empresa_tercero->LinkCustomAttributes = ""; $this->empresa_tercero->HrefValue = ""; $this->empresa_tercero->TooltipValue = ""; } // Call Row Rendered event if ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT) $this->Row_Rendered(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Convert decimal values if posted back\r\n\r\n\t\tif ($this->PrecioUnitario->FormValue == $this->PrecioUnitario->CurrentValue && is_numeric(ew_StrToFloat($this->PrecioUnitario->CurrentValue)))\r\n\t\t\t$this->PrecioUnitario->CurrentValue = ew_StrToFloat($this->PrecioUnitario->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->MontoDescuento->FormValue == $this->MontoDescuento->CurrentValue && is_numeric(ew_StrToFloat($this->MontoDescuento->CurrentValue)))\r\n\t\t\t$this->MontoDescuento->CurrentValue = ew_StrToFloat($this->MontoDescuento->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Precio_SIM->FormValue == $this->Precio_SIM->CurrentValue && is_numeric(ew_StrToFloat($this->Precio_SIM->CurrentValue)))\r\n\t\t\t$this->Precio_SIM->CurrentValue = ew_StrToFloat($this->Precio_SIM->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Monto->FormValue == $this->Monto->CurrentValue && is_numeric(ew_StrToFloat($this->Monto->CurrentValue)))\r\n\t\t\t$this->Monto->CurrentValue = ew_StrToFloat($this->Monto->CurrentValue);\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Venta_Eq\r\n\t\t// CLIENTE\r\n\t\t// Id_Articulo\r\n\t\t// Acabado_eq\r\n\t\t// Num_IMEI\r\n\t\t// Num_ICCID\r\n\t\t// Num_CEL\r\n\t\t// Causa\r\n\t\t// Con_SIM\r\n\t\t// Observaciones\r\n\t\t// PrecioUnitario\r\n\t\t// MontoDescuento\r\n\t\t// Precio_SIM\r\n\t\t// Monto\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id_Venta_Eq\r\n\t\t\t$this->Id_Venta_Eq->ViewValue = $this->Id_Venta_Eq->CurrentValue;\r\n\t\t\t$this->Id_Venta_Eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->ViewValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->ViewValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->ViewValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->ViewValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->ViewValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\tif (strval($this->Con_SIM->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Con_SIM->CurrentValue) {\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Con_SIM->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Con_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->ViewValue = $this->Observaciones->CurrentValue;\r\n\t\t\t$this->Observaciones->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->ViewValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->ViewValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->ViewValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->ViewValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\t\t\t$this->CLIENTE->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\t\t\t$this->Id_Articulo->TooltipValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\t\t\t$this->Acabado_eq->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\t\t\t$this->Num_IMEI->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\t\t\t$this->Num_ICCID->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\t\t\t$this->Num_CEL->TooltipValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\t\t\t$this->Causa->TooltipValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\t\t\t$this->Con_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\t\t\t$this->Observaciones->TooltipValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\t\t\t$this->PrecioUnitario->TooltipValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\t\t\t$this->MontoDescuento->TooltipValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\t\t\t$this->Precio_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t\t$this->Monto->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->EditCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->EditValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->EditCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->EditValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->EditValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->EditCustomAttributes = \"onchange= 'ValidaICCID(this);' \";\r\n\t\t\t$this->Num_ICCID->EditValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->EditValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(1), $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(2), $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->FldTagValue(2));\r\n\t\t\t$this->Con_SIM->EditValue = $arwrk;\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->EditCustomAttributes = 'class=\"mayusculas\" onchange=\"conMayusculas(this)\" autocomplete=\"off\" ';\r\n\t\t\t$this->Observaciones->EditValue = ew_HtmlEncode($this->Observaciones->CurrentValue);\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->EditCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->EditValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->EditCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->EditValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->EditValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->EditCustomAttributes = \"\";\r\n\t\t\t$this->Monto->EditValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// CLIENTE\r\n\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->late->FormValue == $this->late->CurrentValue && is_numeric(ew_StrToFloat($this->late->CurrentValue)))\n\t\t\t$this->late->CurrentValue = ew_StrToFloat($this->late->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break->FormValue == $this->break->CurrentValue && is_numeric(ew_StrToFloat($this->break->CurrentValue)))\n\t\t\t$this->break->CurrentValue = ew_StrToFloat($this->break->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break_ot->FormValue == $this->break_ot->CurrentValue && is_numeric(ew_StrToFloat($this->break_ot->CurrentValue)))\n\t\t\t$this->break_ot->CurrentValue = ew_StrToFloat($this->break_ot->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->early->FormValue == $this->early->CurrentValue && is_numeric(ew_StrToFloat($this->early->CurrentValue)))\n\t\t\t$this->early->CurrentValue = ew_StrToFloat($this->early->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->durasi->FormValue == $this->durasi->CurrentValue && is_numeric(ew_StrToFloat($this->durasi->CurrentValue)))\n\t\t\t$this->durasi->CurrentValue = ew_StrToFloat($this->durasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jk_count_as->FormValue == $this->jk_count_as->CurrentValue && is_numeric(ew_StrToFloat($this->jk_count_as->CurrentValue)))\n\t\t\t$this->jk_count_as->CurrentValue = ew_StrToFloat($this->jk_count_as->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// pegawai_id\n\t\t// tgl_shift\n\t\t// khusus_lembur\n\t\t// khusus_extra\n\t\t// temp_id_auto\n\t\t// jdw_kerja_m_id\n\t\t// jk_id\n\t\t// jns_dok\n\t\t// izin_jenis_id\n\t\t// cuti_n_id\n\t\t// libur_umum\n\t\t// libur_rutin\n\t\t// jk_ot\n\t\t// scan_in\n\t\t// att_id_in\n\t\t// late_permission\n\t\t// late_minute\n\t\t// late\n\t\t// break_out\n\t\t// att_id_break1\n\t\t// break_in\n\t\t// att_id_break2\n\t\t// break_minute\n\t\t// break\n\t\t// break_ot_minute\n\t\t// break_ot\n\t\t// early_permission\n\t\t// early_minute\n\t\t// early\n\t\t// scan_out\n\t\t// att_id_out\n\t\t// durasi_minute\n\t\t// durasi\n\t\t// durasi_eot_minute\n\t\t// jk_count_as\n\t\t// status_jk\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// pegawai_id\n\t\t$this->pegawai_id->ViewValue = $this->pegawai_id->CurrentValue;\n\t\t$this->pegawai_id->ViewCustomAttributes = \"\";\n\n\t\t// tgl_shift\n\t\t$this->tgl_shift->ViewValue = $this->tgl_shift->CurrentValue;\n\t\t$this->tgl_shift->ViewValue = ew_FormatDateTime($this->tgl_shift->ViewValue, 0);\n\t\t$this->tgl_shift->ViewCustomAttributes = \"\";\n\n\t\t// khusus_lembur\n\t\t$this->khusus_lembur->ViewValue = $this->khusus_lembur->CurrentValue;\n\t\t$this->khusus_lembur->ViewCustomAttributes = \"\";\n\n\t\t// khusus_extra\n\t\t$this->khusus_extra->ViewValue = $this->khusus_extra->CurrentValue;\n\t\t$this->khusus_extra->ViewCustomAttributes = \"\";\n\n\t\t// temp_id_auto\n\t\t$this->temp_id_auto->ViewValue = $this->temp_id_auto->CurrentValue;\n\t\t$this->temp_id_auto->ViewCustomAttributes = \"\";\n\n\t\t// jdw_kerja_m_id\n\t\t$this->jdw_kerja_m_id->ViewValue = $this->jdw_kerja_m_id->CurrentValue;\n\t\t$this->jdw_kerja_m_id->ViewCustomAttributes = \"\";\n\n\t\t// jk_id\n\t\t$this->jk_id->ViewValue = $this->jk_id->CurrentValue;\n\t\t$this->jk_id->ViewCustomAttributes = \"\";\n\n\t\t// jns_dok\n\t\t$this->jns_dok->ViewValue = $this->jns_dok->CurrentValue;\n\t\t$this->jns_dok->ViewCustomAttributes = \"\";\n\n\t\t// izin_jenis_id\n\t\t$this->izin_jenis_id->ViewValue = $this->izin_jenis_id->CurrentValue;\n\t\t$this->izin_jenis_id->ViewCustomAttributes = \"\";\n\n\t\t// cuti_n_id\n\t\t$this->cuti_n_id->ViewValue = $this->cuti_n_id->CurrentValue;\n\t\t$this->cuti_n_id->ViewCustomAttributes = \"\";\n\n\t\t// libur_umum\n\t\t$this->libur_umum->ViewValue = $this->libur_umum->CurrentValue;\n\t\t$this->libur_umum->ViewCustomAttributes = \"\";\n\n\t\t// libur_rutin\n\t\t$this->libur_rutin->ViewValue = $this->libur_rutin->CurrentValue;\n\t\t$this->libur_rutin->ViewCustomAttributes = \"\";\n\n\t\t// jk_ot\n\t\t$this->jk_ot->ViewValue = $this->jk_ot->CurrentValue;\n\t\t$this->jk_ot->ViewCustomAttributes = \"\";\n\n\t\t// scan_in\n\t\t$this->scan_in->ViewValue = $this->scan_in->CurrentValue;\n\t\t$this->scan_in->ViewValue = ew_FormatDateTime($this->scan_in->ViewValue, 0);\n\t\t$this->scan_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_in\n\t\t$this->att_id_in->ViewValue = $this->att_id_in->CurrentValue;\n\t\t$this->att_id_in->ViewCustomAttributes = \"\";\n\n\t\t// late_permission\n\t\t$this->late_permission->ViewValue = $this->late_permission->CurrentValue;\n\t\t$this->late_permission->ViewCustomAttributes = \"\";\n\n\t\t// late_minute\n\t\t$this->late_minute->ViewValue = $this->late_minute->CurrentValue;\n\t\t$this->late_minute->ViewCustomAttributes = \"\";\n\n\t\t// late\n\t\t$this->late->ViewValue = $this->late->CurrentValue;\n\t\t$this->late->ViewCustomAttributes = \"\";\n\n\t\t// break_out\n\t\t$this->break_out->ViewValue = $this->break_out->CurrentValue;\n\t\t$this->break_out->ViewValue = ew_FormatDateTime($this->break_out->ViewValue, 0);\n\t\t$this->break_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break1\n\t\t$this->att_id_break1->ViewValue = $this->att_id_break1->CurrentValue;\n\t\t$this->att_id_break1->ViewCustomAttributes = \"\";\n\n\t\t// break_in\n\t\t$this->break_in->ViewValue = $this->break_in->CurrentValue;\n\t\t$this->break_in->ViewValue = ew_FormatDateTime($this->break_in->ViewValue, 0);\n\t\t$this->break_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break2\n\t\t$this->att_id_break2->ViewValue = $this->att_id_break2->CurrentValue;\n\t\t$this->att_id_break2->ViewCustomAttributes = \"\";\n\n\t\t// break_minute\n\t\t$this->break_minute->ViewValue = $this->break_minute->CurrentValue;\n\t\t$this->break_minute->ViewCustomAttributes = \"\";\n\n\t\t// break\n\t\t$this->break->ViewValue = $this->break->CurrentValue;\n\t\t$this->break->ViewCustomAttributes = \"\";\n\n\t\t// break_ot_minute\n\t\t$this->break_ot_minute->ViewValue = $this->break_ot_minute->CurrentValue;\n\t\t$this->break_ot_minute->ViewCustomAttributes = \"\";\n\n\t\t// break_ot\n\t\t$this->break_ot->ViewValue = $this->break_ot->CurrentValue;\n\t\t$this->break_ot->ViewCustomAttributes = \"\";\n\n\t\t// early_permission\n\t\t$this->early_permission->ViewValue = $this->early_permission->CurrentValue;\n\t\t$this->early_permission->ViewCustomAttributes = \"\";\n\n\t\t// early_minute\n\t\t$this->early_minute->ViewValue = $this->early_minute->CurrentValue;\n\t\t$this->early_minute->ViewCustomAttributes = \"\";\n\n\t\t// early\n\t\t$this->early->ViewValue = $this->early->CurrentValue;\n\t\t$this->early->ViewCustomAttributes = \"\";\n\n\t\t// scan_out\n\t\t$this->scan_out->ViewValue = $this->scan_out->CurrentValue;\n\t\t$this->scan_out->ViewValue = ew_FormatDateTime($this->scan_out->ViewValue, 0);\n\t\t$this->scan_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_out\n\t\t$this->att_id_out->ViewValue = $this->att_id_out->CurrentValue;\n\t\t$this->att_id_out->ViewCustomAttributes = \"\";\n\n\t\t// durasi_minute\n\t\t$this->durasi_minute->ViewValue = $this->durasi_minute->CurrentValue;\n\t\t$this->durasi_minute->ViewCustomAttributes = \"\";\n\n\t\t// durasi\n\t\t$this->durasi->ViewValue = $this->durasi->CurrentValue;\n\t\t$this->durasi->ViewCustomAttributes = \"\";\n\n\t\t// durasi_eot_minute\n\t\t$this->durasi_eot_minute->ViewValue = $this->durasi_eot_minute->CurrentValue;\n\t\t$this->durasi_eot_minute->ViewCustomAttributes = \"\";\n\n\t\t// jk_count_as\n\t\t$this->jk_count_as->ViewValue = $this->jk_count_as->CurrentValue;\n\t\t$this->jk_count_as->ViewCustomAttributes = \"\";\n\n\t\t// status_jk\n\t\t$this->status_jk->ViewValue = $this->status_jk->CurrentValue;\n\t\t$this->status_jk->ViewCustomAttributes = \"\";\n\n\t\t\t// pegawai_id\n\t\t\t$this->pegawai_id->LinkCustomAttributes = \"\";\n\t\t\t$this->pegawai_id->HrefValue = \"\";\n\t\t\t$this->pegawai_id->TooltipValue = \"\";\n\n\t\t\t// tgl_shift\n\t\t\t$this->tgl_shift->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_shift->HrefValue = \"\";\n\t\t\t$this->tgl_shift->TooltipValue = \"\";\n\n\t\t\t// khusus_lembur\n\t\t\t$this->khusus_lembur->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_lembur->HrefValue = \"\";\n\t\t\t$this->khusus_lembur->TooltipValue = \"\";\n\n\t\t\t// khusus_extra\n\t\t\t$this->khusus_extra->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_extra->HrefValue = \"\";\n\t\t\t$this->khusus_extra->TooltipValue = \"\";\n\n\t\t\t// temp_id_auto\n\t\t\t$this->temp_id_auto->LinkCustomAttributes = \"\";\n\t\t\t$this->temp_id_auto->HrefValue = \"\";\n\t\t\t$this->temp_id_auto->TooltipValue = \"\";\n\n\t\t\t// jdw_kerja_m_id\n\t\t\t$this->jdw_kerja_m_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jdw_kerja_m_id->HrefValue = \"\";\n\t\t\t$this->jdw_kerja_m_id->TooltipValue = \"\";\n\n\t\t\t// jk_id\n\t\t\t$this->jk_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_id->HrefValue = \"\";\n\t\t\t$this->jk_id->TooltipValue = \"\";\n\n\t\t\t// jns_dok\n\t\t\t$this->jns_dok->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_dok->HrefValue = \"\";\n\t\t\t$this->jns_dok->TooltipValue = \"\";\n\n\t\t\t// izin_jenis_id\n\t\t\t$this->izin_jenis_id->LinkCustomAttributes = \"\";\n\t\t\t$this->izin_jenis_id->HrefValue = \"\";\n\t\t\t$this->izin_jenis_id->TooltipValue = \"\";\n\n\t\t\t// cuti_n_id\n\t\t\t$this->cuti_n_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cuti_n_id->HrefValue = \"\";\n\t\t\t$this->cuti_n_id->TooltipValue = \"\";\n\n\t\t\t// libur_umum\n\t\t\t$this->libur_umum->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_umum->HrefValue = \"\";\n\t\t\t$this->libur_umum->TooltipValue = \"\";\n\n\t\t\t// libur_rutin\n\t\t\t$this->libur_rutin->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_rutin->HrefValue = \"\";\n\t\t\t$this->libur_rutin->TooltipValue = \"\";\n\n\t\t\t// jk_ot\n\t\t\t$this->jk_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_ot->HrefValue = \"\";\n\t\t\t$this->jk_ot->TooltipValue = \"\";\n\n\t\t\t// scan_in\n\t\t\t$this->scan_in->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_in->HrefValue = \"\";\n\t\t\t$this->scan_in->TooltipValue = \"\";\n\n\t\t\t// att_id_in\n\t\t\t$this->att_id_in->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_in->HrefValue = \"\";\n\t\t\t$this->att_id_in->TooltipValue = \"\";\n\n\t\t\t// late_permission\n\t\t\t$this->late_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->late_permission->HrefValue = \"\";\n\t\t\t$this->late_permission->TooltipValue = \"\";\n\n\t\t\t// late_minute\n\t\t\t$this->late_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->late_minute->HrefValue = \"\";\n\t\t\t$this->late_minute->TooltipValue = \"\";\n\n\t\t\t// late\n\t\t\t$this->late->LinkCustomAttributes = \"\";\n\t\t\t$this->late->HrefValue = \"\";\n\t\t\t$this->late->TooltipValue = \"\";\n\n\t\t\t// break_out\n\t\t\t$this->break_out->LinkCustomAttributes = \"\";\n\t\t\t$this->break_out->HrefValue = \"\";\n\t\t\t$this->break_out->TooltipValue = \"\";\n\n\t\t\t// att_id_break1\n\t\t\t$this->att_id_break1->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break1->HrefValue = \"\";\n\t\t\t$this->att_id_break1->TooltipValue = \"\";\n\n\t\t\t// break_in\n\t\t\t$this->break_in->LinkCustomAttributes = \"\";\n\t\t\t$this->break_in->HrefValue = \"\";\n\t\t\t$this->break_in->TooltipValue = \"\";\n\n\t\t\t// att_id_break2\n\t\t\t$this->att_id_break2->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break2->HrefValue = \"\";\n\t\t\t$this->att_id_break2->TooltipValue = \"\";\n\n\t\t\t// break_minute\n\t\t\t$this->break_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_minute->HrefValue = \"\";\n\t\t\t$this->break_minute->TooltipValue = \"\";\n\n\t\t\t// break\n\t\t\t$this->break->LinkCustomAttributes = \"\";\n\t\t\t$this->break->HrefValue = \"\";\n\t\t\t$this->break->TooltipValue = \"\";\n\n\t\t\t// break_ot_minute\n\t\t\t$this->break_ot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot_minute->HrefValue = \"\";\n\t\t\t$this->break_ot_minute->TooltipValue = \"\";\n\n\t\t\t// break_ot\n\t\t\t$this->break_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot->HrefValue = \"\";\n\t\t\t$this->break_ot->TooltipValue = \"\";\n\n\t\t\t// early_permission\n\t\t\t$this->early_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->early_permission->HrefValue = \"\";\n\t\t\t$this->early_permission->TooltipValue = \"\";\n\n\t\t\t// early_minute\n\t\t\t$this->early_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->early_minute->HrefValue = \"\";\n\t\t\t$this->early_minute->TooltipValue = \"\";\n\n\t\t\t// early\n\t\t\t$this->early->LinkCustomAttributes = \"\";\n\t\t\t$this->early->HrefValue = \"\";\n\t\t\t$this->early->TooltipValue = \"\";\n\n\t\t\t// scan_out\n\t\t\t$this->scan_out->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_out->HrefValue = \"\";\n\t\t\t$this->scan_out->TooltipValue = \"\";\n\n\t\t\t// att_id_out\n\t\t\t$this->att_id_out->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_out->HrefValue = \"\";\n\t\t\t$this->att_id_out->TooltipValue = \"\";\n\n\t\t\t// durasi_minute\n\t\t\t$this->durasi_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_minute->HrefValue = \"\";\n\t\t\t$this->durasi_minute->TooltipValue = \"\";\n\n\t\t\t// durasi\n\t\t\t$this->durasi->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi->HrefValue = \"\";\n\t\t\t$this->durasi->TooltipValue = \"\";\n\n\t\t\t// durasi_eot_minute\n\t\t\t$this->durasi_eot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_eot_minute->HrefValue = \"\";\n\t\t\t$this->durasi_eot_minute->TooltipValue = \"\";\n\n\t\t\t// jk_count_as\n\t\t\t$this->jk_count_as->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_count_as->HrefValue = \"\";\n\t\t\t$this->jk_count_as->TooltipValue = \"\";\n\n\t\t\t// status_jk\n\t\t\t$this->status_jk->LinkCustomAttributes = \"\";\n\t\t\t$this->status_jk->HrefValue = \"\";\n\t\t\t$this->status_jk->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->gross->FormValue == $this->gross->CurrentValue && is_numeric(ew_StrToFloat($this->gross->CurrentValue)))\n\t\t\t$this->gross->CurrentValue = ew_StrToFloat($this->gross->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bid_step->FormValue == $this->bid_step->CurrentValue && is_numeric(ew_StrToFloat($this->bid_step->CurrentValue)))\n\t\t\t$this->bid_step->CurrentValue = ew_StrToFloat($this->bid_step->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->rate->FormValue == $this->rate->CurrentValue && is_numeric(ew_StrToFloat($this->rate->CurrentValue)))\n\t\t\t$this->rate->CurrentValue = ew_StrToFloat($this->rate->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->proforma_amount->FormValue == $this->proforma_amount->CurrentValue && is_numeric(ew_StrToFloat($this->proforma_amount->CurrentValue)))\n\t\t\t$this->proforma_amount->CurrentValue = ew_StrToFloat($this->proforma_amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\t\t// master_id\n\t\t// lot_number\n\t\t// chop\n\t\t// estate\n\t\t// grade\n\t\t// jenis\n\t\t// sack\n\t\t// netto\n\t\t// gross\n\t\t// open_bid\n\t\t// currency\n\t\t// bid_step\n\t\t// rate\n\t\t// winner_id\n\t\t// sold_bid\n\t\t// proforma_number\n\t\t// proforma_amount\n\t\t// proforma_status\n\t\t// auction_status\n\t\t// enter_bid\n\t\t// last_bid\n\t\t// highest_bid\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// jenis\n\t\t$this->jenis->ViewValue = $this->jenis->CurrentValue;\n\t\t$this->jenis->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewValue = ew_FormatNumber($this->gross->ViewValue, 2, -2, -2, -2);\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// currency\n\t\tif (strval($this->currency->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_currency`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->currency->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $this->currency->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->currency->ViewValue = NULL;\n\t\t}\n\t\t$this->currency->ViewCustomAttributes = \"\";\n\n\t\t// bid_step\n\t\t$this->bid_step->ViewValue = $this->bid_step->CurrentValue;\n\t\t$this->bid_step->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t// winner_id\n\t\t$this->winner_id->ViewValue = $this->winner_id->CurrentValue;\n\t\t$this->winner_id->ViewCustomAttributes = \"\";\n\n\t\t// sold_bid\n\t\t$this->sold_bid->ViewValue = $this->sold_bid->CurrentValue;\n\t\t$this->sold_bid->ViewCustomAttributes = \"\";\n\n\t\t// proforma_number\n\t\t$this->proforma_number->ViewValue = $this->proforma_number->CurrentValue;\n\t\t$this->proforma_number->ViewCustomAttributes = \"\";\n\n\t\t// proforma_amount\n\t\t$this->proforma_amount->ViewValue = $this->proforma_amount->CurrentValue;\n\t\t$this->proforma_amount->ViewCustomAttributes = \"\";\n\n\t\t// proforma_status\n\t\tif (strval($this->proforma_status->CurrentValue) <> \"\") {\n\t\t\t$this->proforma_status->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->proforma_status->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->proforma_status->ViewValue .= $this->proforma_status->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->proforma_status->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->proforma_status->ViewValue = NULL;\n\t\t}\n\t\t$this->proforma_status->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\t\t\t$this->jenis->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\t\t\t$this->gross->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\t\t\t$this->currency->TooltipValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\t\t\t$this->bid_step->TooltipValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\t\t\t$this->rate->TooltipValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\t\t\t$this->proforma_number->TooltipValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\t\t\t$this->proforma_amount->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->CurrentValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->CurrentValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->CurrentValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->CurrentValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// jenis\n\t\t\t$this->jenis->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->jenis->EditCustomAttributes = \"\";\n\t\t\t$this->jenis->EditValue = ew_HtmlEncode($this->jenis->CurrentValue);\n\t\t\t$this->jenis->PlaceHolder = ew_RemoveHtml($this->jenis->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->CurrentValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->CurrentValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\t\t\tif (strval($this->netto->EditValue) <> \"\" && is_numeric($this->netto->EditValue)) $this->netto->EditValue = ew_FormatNumber($this->netto->EditValue, -2, -2, -2, -2);\n\n\t\t\t// gross\n\t\t\t$this->gross->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->gross->EditCustomAttributes = \"\";\n\t\t\t$this->gross->EditValue = ew_HtmlEncode($this->gross->CurrentValue);\n\t\t\t$this->gross->PlaceHolder = ew_RemoveHtml($this->gross->FldCaption());\n\t\t\tif (strval($this->gross->EditValue) <> \"\" && is_numeric($this->gross->EditValue)) $this->gross->EditValue = ew_FormatNumber($this->gross->EditValue, -2, -2, -2, -2);\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->CurrentValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\t\t\tif (strval($this->open_bid->EditValue) <> \"\" && is_numeric($this->open_bid->EditValue)) $this->open_bid->EditValue = ew_FormatNumber($this->open_bid->EditValue, -2, -2, -2, -2);\n\n\t\t\t// currency\n\t\t\t$this->currency->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->currency->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tbl_currency`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->currency->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->currency->EditValue = $arwrk;\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bid_step->EditCustomAttributes = \"\";\n\t\t\t$this->bid_step->EditValue = ew_HtmlEncode($this->bid_step->CurrentValue);\n\t\t\t$this->bid_step->PlaceHolder = ew_RemoveHtml($this->bid_step->FldCaption());\n\t\t\tif (strval($this->bid_step->EditValue) <> \"\" && is_numeric($this->bid_step->EditValue)) $this->bid_step->EditValue = ew_FormatNumber($this->bid_step->EditValue, -2, -1, -2, 0);\n\n\t\t\t// rate\n\t\t\t$this->rate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rate->EditCustomAttributes = \"\";\n\t\t\t$this->rate->EditValue = ew_HtmlEncode($this->rate->CurrentValue);\n\t\t\t$this->rate->PlaceHolder = ew_RemoveHtml($this->rate->FldCaption());\n\t\t\tif (strval($this->rate->EditValue) <> \"\" && is_numeric($this->rate->EditValue)) $this->rate->EditValue = ew_FormatNumber($this->rate->EditValue, -2, -1, -2, 0);\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_number->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_number->EditValue = ew_HtmlEncode($this->proforma_number->CurrentValue);\n\t\t\t$this->proforma_number->PlaceHolder = ew_RemoveHtml($this->proforma_number->FldCaption());\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_amount->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->EditValue = ew_HtmlEncode($this->proforma_amount->CurrentValue);\n\t\t\t$this->proforma_amount->PlaceHolder = ew_RemoveHtml($this->proforma_amount->FldCaption());\n\t\t\tif (strval($this->proforma_amount->EditValue) <> \"\" && is_numeric($this->proforma_amount->EditValue)) $this->proforma_amount->EditValue = ew_FormatNumber($this->proforma_amount->EditValue, -2, -1, -2, 0);\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(TRUE);\n\n\t\t\t// Add refer script\n\t\t\t// lot_number\n\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->tarif->FormValue == $this->tarif->CurrentValue && is_numeric(ew_StrToFloat($this->tarif->CurrentValue)))\n\t\t\t$this->tarif->CurrentValue = ew_StrToFloat($this->tarif->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bhp->FormValue == $this->bhp->CurrentValue && is_numeric(ew_StrToFloat($this->bhp->CurrentValue)))\n\t\t\t$this->bhp->CurrentValue = ew_StrToFloat($this->bhp->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_admission\n\t\t// nomr\n\t\t// statusbayar\n\t\t// kelas\n\t\t// tanggal\n\t\t// kode_tindakan\n\t\t// qty\n\t\t// tarif\n\t\t// bhp\n\t\t// user\n\t\t// nama_tindakan\n\t\t// kelompok_tindakan\n\t\t// kelompok1\n\t\t// kelompok2\n\t\t// kode_dokter\n\t\t// no_ruang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kelas\n\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t$this->kelas->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// kode_tindakan\n\t\tif (strval($this->kode_tindakan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kode_tindakan->ViewValue = NULL;\n\t\t}\n\t\t$this->kode_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// qty\n\t\t$this->qty->ViewValue = $this->qty->CurrentValue;\n\t\t$this->qty->ViewCustomAttributes = \"\";\n\n\t\t// tarif\n\t\t$this->tarif->ViewValue = $this->tarif->CurrentValue;\n\t\t$this->tarif->ViewCustomAttributes = \"\";\n\n\t\t// bhp\n\t\t$this->bhp->ViewValue = $this->bhp->CurrentValue;\n\t\t$this->bhp->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// nama_tindakan\n\t\t$this->nama_tindakan->ViewValue = $this->nama_tindakan->CurrentValue;\n\t\t$this->nama_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok_tindakan\n\t\t$this->kelompok_tindakan->ViewValue = $this->kelompok_tindakan->CurrentValue;\n\t\t$this->kelompok_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok1\n\t\t$this->kelompok1->ViewValue = $this->kelompok1->CurrentValue;\n\t\t$this->kelompok1->ViewCustomAttributes = \"\";\n\n\t\t// kelompok2\n\t\t$this->kelompok2->ViewValue = $this->kelompok2->CurrentValue;\n\t\t$this->kelompok2->ViewCustomAttributes = \"\";\n\n\t\t// kode_dokter\n\t\t$this->kode_dokter->ViewValue = $this->kode_dokter->CurrentValue;\n\t\t$this->kode_dokter->ViewCustomAttributes = \"\";\n\n\t\t// no_ruang\n\t\t$this->no_ruang->ViewValue = $this->no_ruang->CurrentValue;\n\t\t$this->no_ruang->ViewCustomAttributes = \"\";\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\t\t\t$this->id_admission->TooltipValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\t\t\t$this->kelas->TooltipValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\t\t\t$this->kode_tindakan->TooltipValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\t\t\t$this->qty->TooltipValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\t\t\t$this->tarif->TooltipValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\t\t\t$this->bhp->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\t\t\t$this->nama_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\t\t\t$this->kelompok_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\t\t\t$this->kelompok1->TooltipValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\t\t\t$this->kelompok2->TooltipValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\t\t\t$this->kode_dokter->TooltipValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t\t$this->no_ruang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t\tif ($this->id_admission->getSessionValue() <> \"\") {\n\t\t\t\t$this->id_admission->CurrentValue = $this->id_admission->getSessionValue();\n\t\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->id_admission->EditValue = ew_HtmlEncode($this->id_admission->CurrentValue);\n\t\t\t$this->id_admission->PlaceHolder = ew_RemoveHtml($this->id_admission->FldCaption());\n\t\t\t}\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\tif ($this->nomr->getSessionValue() <> \"\") {\n\t\t\t\t$this->nomr->CurrentValue = $this->nomr->getSessionValue();\n\t\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t\t$this->nomr->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\t\t\t}\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\tif ($this->statusbayar->getSessionValue() <> \"\") {\n\t\t\t\t$this->statusbayar->CurrentValue = $this->statusbayar->getSessionValue();\n\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\t\t\t}\n\n\t\t\t// kelas\n\t\t\t$this->kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelas->EditCustomAttributes = \"\";\n\t\t\tif ($this->kelas->getSessionValue() <> \"\") {\n\t\t\t\t$this->kelas->CurrentValue = $this->kelas->getSessionValue();\n\t\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t\t$this->kelas->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->kelas->EditValue = ew_HtmlEncode($this->kelas->CurrentValue);\n\t\t\t$this->kelas->PlaceHolder = ew_RemoveHtml($this->kelas->FldCaption());\n\t\t\t}\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tanggal->CurrentValue, 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_tindakan->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->kode_tindakan->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->kode_tindakan->EditValue = $arwrk;\n\n\t\t\t// qty\n\t\t\t$this->qty->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->qty->EditCustomAttributes = \"\";\n\t\t\t$this->qty->EditValue = ew_HtmlEncode($this->qty->CurrentValue);\n\t\t\t$this->qty->PlaceHolder = ew_RemoveHtml($this->qty->FldCaption());\n\n\t\t\t// tarif\n\t\t\t$this->tarif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tarif->EditCustomAttributes = \"\";\n\t\t\t$this->tarif->EditValue = ew_HtmlEncode($this->tarif->CurrentValue);\n\t\t\t$this->tarif->PlaceHolder = ew_RemoveHtml($this->tarif->FldCaption());\n\t\t\tif (strval($this->tarif->EditValue) <> \"\" && is_numeric($this->tarif->EditValue)) $this->tarif->EditValue = ew_FormatNumber($this->tarif->EditValue, -2, -1, -2, 0);\n\n\t\t\t// bhp\n\t\t\t$this->bhp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bhp->EditCustomAttributes = \"\";\n\t\t\t$this->bhp->EditValue = ew_HtmlEncode($this->bhp->CurrentValue);\n\t\t\t$this->bhp->PlaceHolder = ew_RemoveHtml($this->bhp->FldCaption());\n\t\t\tif (strval($this->bhp->EditValue) <> \"\" && is_numeric($this->bhp->EditValue)) $this->bhp->EditValue = ew_FormatNumber($this->bhp->EditValue, -2, -1, -2, 0);\n\n\t\t\t// user\n\t\t\t$this->user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->user->EditCustomAttributes = \"\";\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\n\t\t\t$this->user->PlaceHolder = ew_RemoveHtml($this->user->FldCaption());\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->EditValue = ew_HtmlEncode($this->nama_tindakan->CurrentValue);\n\t\t\t$this->nama_tindakan->PlaceHolder = ew_RemoveHtml($this->nama_tindakan->FldCaption());\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->EditValue = ew_HtmlEncode($this->kelompok_tindakan->CurrentValue);\n\t\t\t$this->kelompok_tindakan->PlaceHolder = ew_RemoveHtml($this->kelompok_tindakan->FldCaption());\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok1->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok1->EditValue = ew_HtmlEncode($this->kelompok1->CurrentValue);\n\t\t\t$this->kelompok1->PlaceHolder = ew_RemoveHtml($this->kelompok1->FldCaption());\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok2->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok2->EditValue = ew_HtmlEncode($this->kelompok2->CurrentValue);\n\t\t\t$this->kelompok2->PlaceHolder = ew_RemoveHtml($this->kelompok2->FldCaption());\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_dokter->EditCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->EditValue = ew_HtmlEncode($this->kode_dokter->CurrentValue);\n\t\t\t$this->kode_dokter->PlaceHolder = ew_RemoveHtml($this->kode_dokter->FldCaption());\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->no_ruang->EditCustomAttributes = \"\";\n\t\t\t$this->no_ruang->EditValue = ew_HtmlEncode($this->no_ruang->CurrentValue);\n\t\t\t$this->no_ruang->PlaceHolder = ew_RemoveHtml($this->no_ruang->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// id_admission\n\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->besar->FormValue == $this->besar->CurrentValue && is_numeric(ew_StrToFloat($this->besar->CurrentValue)))\n\t\t\t$this->besar->CurrentValue = ew_StrToFloat($this->besar->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// replid\n\t\t// nama\n\t\t// besar\n\t\t// idkategori\n\t\t// rekkas\n\t\t// rekpendapatan\n\t\t// rekpiutang\n\t\t// aktif\n\t\t// keterangan\n\t\t// departemen\n\t\t// info1\n\t\t// info2\n\t\t// info3\n\t\t// ts\n\t\t// token\n\t\t// issync\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// replid\n\t\t$this->replid->ViewValue = $this->replid->CurrentValue;\n\t\t$this->replid->ViewCustomAttributes = \"\";\n\n\t\t// nama\n\t\t$this->nama->ViewValue = $this->nama->CurrentValue;\n\t\t$this->nama->ViewCustomAttributes = \"\";\n\n\t\t// besar\n\t\t$this->besar->ViewValue = $this->besar->CurrentValue;\n\t\t$this->besar->ViewCustomAttributes = \"\";\n\n\t\t// idkategori\n\t\t$this->idkategori->ViewValue = $this->idkategori->CurrentValue;\n\t\t$this->idkategori->ViewCustomAttributes = \"\";\n\n\t\t// rekkas\n\t\t$this->rekkas->ViewValue = $this->rekkas->CurrentValue;\n\t\t$this->rekkas->ViewCustomAttributes = \"\";\n\n\t\t// rekpendapatan\n\t\t$this->rekpendapatan->ViewValue = $this->rekpendapatan->CurrentValue;\n\t\t$this->rekpendapatan->ViewCustomAttributes = \"\";\n\n\t\t// rekpiutang\n\t\t$this->rekpiutang->ViewValue = $this->rekpiutang->CurrentValue;\n\t\t$this->rekpiutang->ViewCustomAttributes = \"\";\n\n\t\t// aktif\n\t\t$this->aktif->ViewValue = $this->aktif->CurrentValue;\n\t\t$this->aktif->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// departemen\n\t\t$this->departemen->ViewValue = $this->departemen->CurrentValue;\n\t\t$this->departemen->ViewCustomAttributes = \"\";\n\n\t\t// info1\n\t\t$this->info1->ViewValue = $this->info1->CurrentValue;\n\t\t$this->info1->ViewCustomAttributes = \"\";\n\n\t\t// info2\n\t\t$this->info2->ViewValue = $this->info2->CurrentValue;\n\t\t$this->info2->ViewCustomAttributes = \"\";\n\n\t\t// info3\n\t\t$this->info3->ViewValue = $this->info3->CurrentValue;\n\t\t$this->info3->ViewCustomAttributes = \"\";\n\n\t\t// ts\n\t\t$this->ts->ViewValue = $this->ts->CurrentValue;\n\t\t$this->ts->ViewValue = ew_FormatDateTime($this->ts->ViewValue, 0);\n\t\t$this->ts->ViewCustomAttributes = \"\";\n\n\t\t// token\n\t\t$this->token->ViewValue = $this->token->CurrentValue;\n\t\t$this->token->ViewCustomAttributes = \"\";\n\n\t\t// issync\n\t\t$this->issync->ViewValue = $this->issync->CurrentValue;\n\t\t$this->issync->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\t\t\t$this->nama->TooltipValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\t\t\t$this->besar->TooltipValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\t\t\t$this->idkategori->TooltipValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\t\t\t$this->rekkas->TooltipValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\t\t\t$this->rekpendapatan->TooltipValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\t\t\t$this->rekpiutang->TooltipValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\t\t\t$this->aktif->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\t\t\t$this->departemen->TooltipValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\t\t\t$this->info1->TooltipValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\t\t\t$this->info2->TooltipValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\t\t\t$this->info3->TooltipValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\t\t\t$this->ts->TooltipValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\t\t\t$this->token->TooltipValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t\t$this->issync->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// nama\n\t\t\t$this->nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama->EditCustomAttributes = \"\";\n\t\t\t$this->nama->EditValue = ew_HtmlEncode($this->nama->CurrentValue);\n\t\t\t$this->nama->PlaceHolder = ew_RemoveHtml($this->nama->FldCaption());\n\n\t\t\t// besar\n\t\t\t$this->besar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->besar->EditCustomAttributes = \"\";\n\t\t\t$this->besar->EditValue = ew_HtmlEncode($this->besar->CurrentValue);\n\t\t\t$this->besar->PlaceHolder = ew_RemoveHtml($this->besar->FldCaption());\n\t\t\tif (strval($this->besar->EditValue) <> \"\" && is_numeric($this->besar->EditValue)) $this->besar->EditValue = ew_FormatNumber($this->besar->EditValue, -2, -1, -2, 0);\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->idkategori->EditCustomAttributes = \"\";\n\t\t\t$this->idkategori->EditValue = ew_HtmlEncode($this->idkategori->CurrentValue);\n\t\t\t$this->idkategori->PlaceHolder = ew_RemoveHtml($this->idkategori->FldCaption());\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekkas->EditCustomAttributes = \"\";\n\t\t\t$this->rekkas->EditValue = ew_HtmlEncode($this->rekkas->CurrentValue);\n\t\t\t$this->rekkas->PlaceHolder = ew_RemoveHtml($this->rekkas->FldCaption());\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpendapatan->EditCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->EditValue = ew_HtmlEncode($this->rekpendapatan->CurrentValue);\n\t\t\t$this->rekpendapatan->PlaceHolder = ew_RemoveHtml($this->rekpendapatan->FldCaption());\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpiutang->EditCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->EditValue = ew_HtmlEncode($this->rekpiutang->CurrentValue);\n\t\t\t$this->rekpiutang->PlaceHolder = ew_RemoveHtml($this->rekpiutang->FldCaption());\n\n\t\t\t// aktif\n\t\t\t$this->aktif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->aktif->EditCustomAttributes = \"\";\n\t\t\t$this->aktif->EditValue = ew_HtmlEncode($this->aktif->CurrentValue);\n\t\t\t$this->aktif->PlaceHolder = ew_RemoveHtml($this->aktif->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// departemen\n\t\t\t$this->departemen->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->departemen->EditCustomAttributes = \"\";\n\t\t\t$this->departemen->EditValue = ew_HtmlEncode($this->departemen->CurrentValue);\n\t\t\t$this->departemen->PlaceHolder = ew_RemoveHtml($this->departemen->FldCaption());\n\n\t\t\t// info1\n\t\t\t$this->info1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info1->EditCustomAttributes = \"\";\n\t\t\t$this->info1->EditValue = ew_HtmlEncode($this->info1->CurrentValue);\n\t\t\t$this->info1->PlaceHolder = ew_RemoveHtml($this->info1->FldCaption());\n\n\t\t\t// info2\n\t\t\t$this->info2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info2->EditCustomAttributes = \"\";\n\t\t\t$this->info2->EditValue = ew_HtmlEncode($this->info2->CurrentValue);\n\t\t\t$this->info2->PlaceHolder = ew_RemoveHtml($this->info2->FldCaption());\n\n\t\t\t// info3\n\t\t\t$this->info3->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info3->EditCustomAttributes = \"\";\n\t\t\t$this->info3->EditValue = ew_HtmlEncode($this->info3->CurrentValue);\n\t\t\t$this->info3->PlaceHolder = ew_RemoveHtml($this->info3->FldCaption());\n\n\t\t\t// ts\n\t\t\t$this->ts->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ts->EditCustomAttributes = \"\";\n\t\t\t$this->ts->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ts->CurrentValue, 8));\n\t\t\t$this->ts->PlaceHolder = ew_RemoveHtml($this->ts->FldCaption());\n\n\t\t\t// token\n\t\t\t$this->token->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->token->EditCustomAttributes = \"\";\n\t\t\t$this->token->EditValue = ew_HtmlEncode($this->token->CurrentValue);\n\t\t\t$this->token->PlaceHolder = ew_RemoveHtml($this->token->FldCaption());\n\n\t\t\t// issync\n\t\t\t$this->issync->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->issync->EditCustomAttributes = \"\";\n\t\t\t$this->issync->EditValue = ew_HtmlEncode($this->issync->CurrentValue);\n\t\t\t$this->issync->PlaceHolder = ew_RemoveHtml($this->issync->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// nama\n\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->precio_item->FormValue == $this->precio_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_item->CurrentValue)))\n\t\t\t$this->precio_item->CurrentValue = ew_StrToFloat($this->precio_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_item->FormValue == $this->costo_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_item->CurrentValue)))\n\t\t\t$this->costo_item->CurrentValue = ew_StrToFloat($this->costo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldo_item->FormValue == $this->saldo_item->CurrentValue && is_numeric(ew_StrToFloat($this->saldo_item->CurrentValue)))\n\t\t\t$this->saldo_item->CurrentValue = ew_StrToFloat($this->saldo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->precio_old_item->FormValue == $this->precio_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_old_item->CurrentValue)))\n\t\t\t$this->precio_old_item->CurrentValue = ew_StrToFloat($this->precio_old_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_old_item->FormValue == $this->costo_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_old_item->CurrentValue)))\n\t\t\t$this->costo_old_item->CurrentValue = ew_StrToFloat($this->costo_old_item->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_Item\n\t\t// codigo_item\n\t\t// nombre_item\n\t\t// und_item\n\t\t// precio_item\n\t\t// costo_item\n\t\t// tipo_item\n\t\t// marca_item\n\t\t// cod_marca_item\n\t\t// detalle_item\n\t\t// saldo_item\n\t\t// activo_item\n\t\t// maneja_serial_item\n\t\t// asignado_item\n\t\t// si_no_item\n\t\t// precio_old_item\n\t\t// costo_old_item\n\t\t// registra_item\n\t\t// fecha_registro_item\n\t\t// empresa_item\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_Item\n\t\t$this->Id_Item->ViewValue = $this->Id_Item->CurrentValue;\n\t\t$this->Id_Item->ViewCustomAttributes = \"\";\n\n\t\t// codigo_item\n\t\t$this->codigo_item->ViewValue = $this->codigo_item->CurrentValue;\n\t\t$this->codigo_item->ViewCustomAttributes = \"\";\n\n\t\t// nombre_item\n\t\t$this->nombre_item->ViewValue = $this->nombre_item->CurrentValue;\n\t\t$this->nombre_item->ViewCustomAttributes = \"\";\n\n\t\t// und_item\n\t\t$this->und_item->ViewValue = $this->und_item->CurrentValue;\n\t\t$this->und_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_item\n\t\t$this->precio_item->ViewValue = $this->precio_item->CurrentValue;\n\t\t$this->precio_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_item\n\t\t$this->costo_item->ViewValue = $this->costo_item->CurrentValue;\n\t\t$this->costo_item->ViewCustomAttributes = \"\";\n\n\t\t// tipo_item\n\t\t$this->tipo_item->ViewValue = $this->tipo_item->CurrentValue;\n\t\t$this->tipo_item->ViewCustomAttributes = \"\";\n\n\t\t// marca_item\n\t\t$this->marca_item->ViewValue = $this->marca_item->CurrentValue;\n\t\t$this->marca_item->ViewCustomAttributes = \"\";\n\n\t\t// cod_marca_item\n\t\t$this->cod_marca_item->ViewValue = $this->cod_marca_item->CurrentValue;\n\t\t$this->cod_marca_item->ViewCustomAttributes = \"\";\n\n\t\t// detalle_item\n\t\t$this->detalle_item->ViewValue = $this->detalle_item->CurrentValue;\n\t\t$this->detalle_item->ViewCustomAttributes = \"\";\n\n\t\t// saldo_item\n\t\t$this->saldo_item->ViewValue = $this->saldo_item->CurrentValue;\n\t\t$this->saldo_item->ViewCustomAttributes = \"\";\n\n\t\t// activo_item\n\t\t$this->activo_item->ViewValue = $this->activo_item->CurrentValue;\n\t\t$this->activo_item->ViewCustomAttributes = \"\";\n\n\t\t// maneja_serial_item\n\t\t$this->maneja_serial_item->ViewValue = $this->maneja_serial_item->CurrentValue;\n\t\t$this->maneja_serial_item->ViewCustomAttributes = \"\";\n\n\t\t// asignado_item\n\t\t$this->asignado_item->ViewValue = $this->asignado_item->CurrentValue;\n\t\t$this->asignado_item->ViewCustomAttributes = \"\";\n\n\t\t// si_no_item\n\t\t$this->si_no_item->ViewValue = $this->si_no_item->CurrentValue;\n\t\t$this->si_no_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_old_item\n\t\t$this->precio_old_item->ViewValue = $this->precio_old_item->CurrentValue;\n\t\t$this->precio_old_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_old_item\n\t\t$this->costo_old_item->ViewValue = $this->costo_old_item->CurrentValue;\n\t\t$this->costo_old_item->ViewCustomAttributes = \"\";\n\n\t\t// registra_item\n\t\t$this->registra_item->ViewValue = $this->registra_item->CurrentValue;\n\t\t$this->registra_item->ViewCustomAttributes = \"\";\n\n\t\t// fecha_registro_item\n\t\t$this->fecha_registro_item->ViewValue = $this->fecha_registro_item->CurrentValue;\n\t\t$this->fecha_registro_item->ViewValue = ew_FormatDateTime($this->fecha_registro_item->ViewValue, 0);\n\t\t$this->fecha_registro_item->ViewCustomAttributes = \"\";\n\n\t\t// empresa_item\n\t\t$this->empresa_item->ViewValue = $this->empresa_item->CurrentValue;\n\t\t$this->empresa_item->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_Item\n\t\t\t$this->Id_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_Item->HrefValue = \"\";\n\t\t\t$this->Id_Item->TooltipValue = \"\";\n\n\t\t\t// codigo_item\n\t\t\t$this->codigo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo_item->HrefValue = \"\";\n\t\t\t$this->codigo_item->TooltipValue = \"\";\n\n\t\t\t// nombre_item\n\t\t\t$this->nombre_item->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_item->HrefValue = \"\";\n\t\t\t$this->nombre_item->TooltipValue = \"\";\n\n\t\t\t// und_item\n\t\t\t$this->und_item->LinkCustomAttributes = \"\";\n\t\t\t$this->und_item->HrefValue = \"\";\n\t\t\t$this->und_item->TooltipValue = \"\";\n\n\t\t\t// precio_item\n\t\t\t$this->precio_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_item->HrefValue = \"\";\n\t\t\t$this->precio_item->TooltipValue = \"\";\n\n\t\t\t// costo_item\n\t\t\t$this->costo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_item->HrefValue = \"\";\n\t\t\t$this->costo_item->TooltipValue = \"\";\n\n\t\t\t// tipo_item\n\t\t\t$this->tipo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_item->HrefValue = \"\";\n\t\t\t$this->tipo_item->TooltipValue = \"\";\n\n\t\t\t// marca_item\n\t\t\t$this->marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->marca_item->HrefValue = \"\";\n\t\t\t$this->marca_item->TooltipValue = \"\";\n\n\t\t\t// cod_marca_item\n\t\t\t$this->cod_marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->cod_marca_item->HrefValue = \"\";\n\t\t\t$this->cod_marca_item->TooltipValue = \"\";\n\n\t\t\t// detalle_item\n\t\t\t$this->detalle_item->LinkCustomAttributes = \"\";\n\t\t\t$this->detalle_item->HrefValue = \"\";\n\t\t\t$this->detalle_item->TooltipValue = \"\";\n\n\t\t\t// saldo_item\n\t\t\t$this->saldo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->saldo_item->HrefValue = \"\";\n\t\t\t$this->saldo_item->TooltipValue = \"\";\n\n\t\t\t// activo_item\n\t\t\t$this->activo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_item->HrefValue = \"\";\n\t\t\t$this->activo_item->TooltipValue = \"\";\n\n\t\t\t// maneja_serial_item\n\t\t\t$this->maneja_serial_item->LinkCustomAttributes = \"\";\n\t\t\t$this->maneja_serial_item->HrefValue = \"\";\n\t\t\t$this->maneja_serial_item->TooltipValue = \"\";\n\n\t\t\t// asignado_item\n\t\t\t$this->asignado_item->LinkCustomAttributes = \"\";\n\t\t\t$this->asignado_item->HrefValue = \"\";\n\t\t\t$this->asignado_item->TooltipValue = \"\";\n\n\t\t\t// si_no_item\n\t\t\t$this->si_no_item->LinkCustomAttributes = \"\";\n\t\t\t$this->si_no_item->HrefValue = \"\";\n\t\t\t$this->si_no_item->TooltipValue = \"\";\n\n\t\t\t// precio_old_item\n\t\t\t$this->precio_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_old_item->HrefValue = \"\";\n\t\t\t$this->precio_old_item->TooltipValue = \"\";\n\n\t\t\t// costo_old_item\n\t\t\t$this->costo_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_old_item->HrefValue = \"\";\n\t\t\t$this->costo_old_item->TooltipValue = \"\";\n\n\t\t\t// registra_item\n\t\t\t$this->registra_item->LinkCustomAttributes = \"\";\n\t\t\t$this->registra_item->HrefValue = \"\";\n\t\t\t$this->registra_item->TooltipValue = \"\";\n\n\t\t\t// fecha_registro_item\n\t\t\t$this->fecha_registro_item->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_registro_item->HrefValue = \"\";\n\t\t\t$this->fecha_registro_item->TooltipValue = \"\";\n\n\t\t\t// empresa_item\n\t\t\t$this->empresa_item->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_item->HrefValue = \"\";\n\t\t\t$this->empresa_item->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idservicio_medico_prestado\n\t\t// idcuenta\n\t\t// fecha_inicio\n\t\t// fecha_final\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;\n\t\t\t$this->idservicio_medico_prestado->ViewCustomAttributes = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->ViewValue = $this->idcuenta->CurrentValue;\n\t\t\t$this->idcuenta->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue;\n\t\t\t$this->fecha_inicio->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->ViewValue = $this->fecha_final->CurrentValue;\n\t\t\t$this->fecha_final->ViewCustomAttributes = \"\";\n\n\t\t\t// estado\n\t\t\tif (strval($this->estado->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->estado->CurrentValue) {\n\t\t\t\t\tcase $this->estado->FldTagValue(1):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(1) <> \"\" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(2):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(2) <> \"\" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(3):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(3) <> \"\" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->estado->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->LinkCustomAttributes = \"\";\n\t\t\t$this->idservicio_medico_prestado->HrefValue = \"\";\n\t\t\t$this->idservicio_medico_prestado->TooltipValue = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->LinkCustomAttributes = \"\";\n\t\t\t$this->idcuenta->HrefValue = \"\";\n\t\t\t$this->idcuenta->TooltipValue = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_inicio->HrefValue = \"\";\n\t\t\t$this->fecha_inicio->TooltipValue = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_final->HrefValue = \"\";\n\t\t\t$this->fecha_final->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\t\t// datetime\r\n\t\t// script\r\n\t\t// user\r\n\t\t// action\r\n\t\t// table\r\n\t\t// field\r\n\t\t// keyvalue\r\n\t\t// oldvalue\r\n\t\t// newvalue\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->ViewValue = $this->datetime->CurrentValue;\r\n\t\t\t$this->datetime->ViewValue = ew_FormatDateTime($this->datetime->ViewValue, 5);\r\n\t\t\t$this->datetime->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->ViewValue = $this->script->CurrentValue;\r\n\t\t\t$this->script->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->ViewValue = $this->user->CurrentValue;\r\n\t\t\t$this->user->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->ViewValue = $this->action->CurrentValue;\r\n\t\t\t$this->action->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->ViewValue = $this->_table->CurrentValue;\r\n\t\t\t$this->_table->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->ViewValue = $this->_field->CurrentValue;\r\n\t\t\t$this->_field->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->ViewValue = $this->keyvalue->CurrentValue;\r\n\t\t\t$this->keyvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->ViewValue = $this->oldvalue->CurrentValue;\r\n\t\t\t$this->oldvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->ViewValue = $this->newvalue->CurrentValue;\r\n\t\t\t$this->newvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->LinkCustomAttributes = \"\";\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\t\t\t$this->datetime->TooltipValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->LinkCustomAttributes = \"\";\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\t\t\t$this->script->TooltipValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->LinkCustomAttributes = \"\";\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\t\t\t$this->user->TooltipValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->LinkCustomAttributes = \"\";\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\t\t\t$this->action->TooltipValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\t\t\t$this->_table->TooltipValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\t\t\t$this->_field->TooltipValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\t\t\t$this->keyvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\t\t\t$this->oldvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t\t$this->newvalue->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->EditCustomAttributes = \"\";\r\n\t\t\t$this->datetime->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->datetime->CurrentValue, 5));\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->EditCustomAttributes = \"\";\r\n\t\t\t$this->script->EditValue = ew_HtmlEncode($this->script->CurrentValue);\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->EditCustomAttributes = \"\";\r\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->EditCustomAttributes = \"\";\r\n\t\t\t$this->action->EditValue = ew_HtmlEncode($this->action->CurrentValue);\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->EditCustomAttributes = \"\";\r\n\t\t\t$this->_table->EditValue = ew_HtmlEncode($this->_table->CurrentValue);\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->EditCustomAttributes = \"\";\r\n\t\t\t$this->_field->EditValue = ew_HtmlEncode($this->_field->CurrentValue);\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->EditValue = ew_HtmlEncode($this->keyvalue->CurrentValue);\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->EditValue = ew_HtmlEncode($this->oldvalue->CurrentValue);\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->EditValue = ew_HtmlEncode($this->newvalue->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// datetime\r\n\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function formatRow(){\n $this->hook('formatRow');\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Balance->FormValue == $this->Balance->CurrentValue && is_numeric(ew_StrToFloat($this->Balance->CurrentValue)))\n\t\t\t$this->Balance->CurrentValue = ew_StrToFloat($this->Balance->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Supplier_ID\n\t\t// Supplier_Number\n\t\t// Supplier_Name\n\t\t// Address\n\t\t// City\n\t\t// Country\n\t\t// Contact_Person\n\t\t// Phone_Number\n\t\t// Email\n\t\t// Mobile_Number\n\t\t// Notes\n\t\t// Balance\n\t\t// Is_Stock_Available\n\t\t// Date_Added\n\t\t// Added_By\n\t\t// Date_Updated\n\t\t// Updated_By\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Supplier_ID\n\t\t$this->Supplier_ID->ViewValue = $this->Supplier_ID->CurrentValue;\n\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Number\n\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Name\n\t\t$this->Supplier_Name->ViewValue = $this->Supplier_Name->CurrentValue;\n\t\t$this->Supplier_Name->ViewCustomAttributes = \"\";\n\n\t\t// Address\n\t\t$this->Address->ViewValue = $this->Address->CurrentValue;\n\t\t$this->Address->ViewCustomAttributes = \"\";\n\n\t\t// City\n\t\t$this->City->ViewValue = $this->City->CurrentValue;\n\t\t$this->City->ViewCustomAttributes = \"\";\n\n\t\t// Country\n\t\t$this->Country->ViewValue = $this->Country->CurrentValue;\n\t\t$this->Country->ViewCustomAttributes = \"\";\n\n\t\t// Contact_Person\n\t\t$this->Contact_Person->ViewValue = $this->Contact_Person->CurrentValue;\n\t\t$this->Contact_Person->ViewCustomAttributes = \"\";\n\n\t\t// Phone_Number\n\t\t$this->Phone_Number->ViewValue = $this->Phone_Number->CurrentValue;\n\t\t$this->Phone_Number->ViewCustomAttributes = \"\";\n\n\t\t// Email\n\t\t$this->_Email->ViewValue = $this->_Email->CurrentValue;\n\t\t$this->_Email->ViewCustomAttributes = \"\";\n\n\t\t// Mobile_Number\n\t\t$this->Mobile_Number->ViewValue = $this->Mobile_Number->CurrentValue;\n\t\t$this->Mobile_Number->ViewCustomAttributes = \"\";\n\n\t\t// Notes\n\t\t$this->Notes->ViewValue = $this->Notes->CurrentValue;\n\t\t$this->Notes->ViewCustomAttributes = \"\";\n\n\t\t// Balance\n\t\t$this->Balance->ViewValue = $this->Balance->CurrentValue;\n\t\t$this->Balance->ViewValue = ew_FormatCurrency($this->Balance->ViewValue, 2, -2, -2, -2);\n\t\t$this->Balance->CellCssStyle .= \"text-align: right;\";\n\t\t$this->Balance->ViewCustomAttributes = \"\";\n\n\t\t// Is_Stock_Available\n\t\tif (ew_ConvertToBool($this->Is_Stock_Available->CurrentValue)) {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(2) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(2) : \"Y\";\n\t\t} else {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(1) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(1) : \"N\";\n\t\t}\n\t\t$this->Is_Stock_Available->ViewCustomAttributes = \"\";\n\n\t\t// Date_Added\n\t\t$this->Date_Added->ViewValue = $this->Date_Added->CurrentValue;\n\t\t$this->Date_Added->ViewCustomAttributes = \"\";\n\n\t\t// Added_By\n\t\t$this->Added_By->ViewValue = $this->Added_By->CurrentValue;\n\t\t$this->Added_By->ViewCustomAttributes = \"\";\n\n\t\t// Date_Updated\n\t\t$this->Date_Updated->ViewValue = $this->Date_Updated->CurrentValue;\n\t\t$this->Date_Updated->ViewCustomAttributes = \"\";\n\n\t\t// Updated_By\n\t\t$this->Updated_By->ViewValue = $this->Updated_By->CurrentValue;\n\t\t$this->Updated_By->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\t\t\t$this->Supplier_ID->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\t\t\t$this->Supplier_Name->TooltipValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\t\t\t$this->Address->TooltipValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\t\t\t$this->City->TooltipValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\t\t\t$this->Country->TooltipValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\t\t\t$this->Contact_Person->TooltipValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\t\t\t$this->Phone_Number->TooltipValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\t\t\t$this->_Email->TooltipValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\t\t\t$this->Mobile_Number->TooltipValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\t\t\t$this->Notes->TooltipValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\t\t\t$this->Balance->TooltipValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\t\t\t$this->Is_Stock_Available->TooltipValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\t\t\t$this->Date_Added->TooltipValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\t\t\t$this->Added_By->TooltipValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\t\t\t$this->Date_Updated->TooltipValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t\t$this->Updated_By->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->EditValue = $this->Supplier_ID->CurrentValue;\n\t\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->EditValue = ew_HtmlEncode($this->Supplier_Number->CurrentValue);\n\t\t\t$this->Supplier_Number->PlaceHolder = ew_RemoveHtml($this->Supplier_Number->FldCaption());\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Name->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->EditValue = ew_HtmlEncode($this->Supplier_Name->CurrentValue);\n\t\t\t$this->Supplier_Name->PlaceHolder = ew_RemoveHtml($this->Supplier_Name->FldCaption());\n\n\t\t\t// Address\n\t\t\t$this->Address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Address->EditCustomAttributes = \"\";\n\t\t\t$this->Address->EditValue = ew_HtmlEncode($this->Address->CurrentValue);\n\t\t\t$this->Address->PlaceHolder = ew_RemoveHtml($this->Address->FldCaption());\n\n\t\t\t// City\n\t\t\t$this->City->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->City->EditCustomAttributes = \"\";\n\t\t\t$this->City->EditValue = ew_HtmlEncode($this->City->CurrentValue);\n\t\t\t$this->City->PlaceHolder = ew_RemoveHtml($this->City->FldCaption());\n\n\t\t\t// Country\n\t\t\t$this->Country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Country->EditCustomAttributes = \"\";\n\t\t\t$this->Country->EditValue = ew_HtmlEncode($this->Country->CurrentValue);\n\t\t\t$this->Country->PlaceHolder = ew_RemoveHtml($this->Country->FldCaption());\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Contact_Person->EditCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->EditValue = ew_HtmlEncode($this->Contact_Person->CurrentValue);\n\t\t\t$this->Contact_Person->PlaceHolder = ew_RemoveHtml($this->Contact_Person->FldCaption());\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Phone_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->EditValue = ew_HtmlEncode($this->Phone_Number->CurrentValue);\n\t\t\t$this->Phone_Number->PlaceHolder = ew_RemoveHtml($this->Phone_Number->FldCaption());\n\n\t\t\t// Email\n\t\t\t$this->_Email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_Email->EditCustomAttributes = \"\";\n\t\t\t$this->_Email->EditValue = ew_HtmlEncode($this->_Email->CurrentValue);\n\t\t\t$this->_Email->PlaceHolder = ew_RemoveHtml($this->_Email->FldCaption());\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Mobile_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->EditValue = ew_HtmlEncode($this->Mobile_Number->CurrentValue);\n\t\t\t$this->Mobile_Number->PlaceHolder = ew_RemoveHtml($this->Mobile_Number->FldCaption());\n\n\t\t\t// Notes\n\t\t\t$this->Notes->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Notes->EditCustomAttributes = \"\";\n\t\t\t$this->Notes->EditValue = ew_HtmlEncode($this->Notes->CurrentValue);\n\t\t\t$this->Notes->PlaceHolder = ew_RemoveHtml($this->Notes->FldCaption());\n\n\t\t\t// Balance\n\t\t\t$this->Balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Balance->EditCustomAttributes = \"\";\n\t\t\t$this->Balance->EditValue = ew_HtmlEncode($this->Balance->CurrentValue);\n\t\t\t$this->Balance->PlaceHolder = ew_RemoveHtml($this->Balance->FldCaption());\n\t\t\tif (strval($this->Balance->EditValue) <> \"\" && is_numeric($this->Balance->EditValue)) $this->Balance->EditValue = ew_FormatNumber($this->Balance->EditValue, -2, -2, -2, -2);\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Is_Stock_Available->EditCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->EditValue = $this->Is_Stock_Available->Options(TRUE);\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Date_Added->EditCustomAttributes = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Added_By->EditCustomAttributes = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t// Updated_By\n\t\t\t// Edit refer script\n\t\t\t// Supplier_ID\n\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Purchasing_Quantity->FormValue == $this->Purchasing_Quantity->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Quantity->CurrentValue)))\n\t\t\t$this->Purchasing_Quantity->CurrentValue = ew_StrToFloat($this->Purchasing_Quantity->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Purchasing_Price->FormValue == $this->Purchasing_Price->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Price->CurrentValue)))\n\t\t\t$this->Purchasing_Price->CurrentValue = ew_StrToFloat($this->Purchasing_Price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Selling_Price->FormValue == $this->Selling_Price->CurrentValue && is_numeric(ew_StrToFloat($this->Selling_Price->CurrentValue)))\n\t\t\t$this->Selling_Price->CurrentValue = ew_StrToFloat($this->Selling_Price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Purchasing_Total_Amount->FormValue == $this->Purchasing_Total_Amount->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Total_Amount->CurrentValue)))\n\t\t\t$this->Purchasing_Total_Amount->CurrentValue = ew_StrToFloat($this->Purchasing_Total_Amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Purchase_ID\n\t\t// Purchase_Number\n\t\t// Supplier_Number\n\t\t// Stock_Item\n\t\t// Purchasing_Quantity\n\t\t// Purchasing_Price\n\t\t// Selling_Price\n\t\t// Purchasing_Total_Amount\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->ViewValue = $this->Purchase_ID->CurrentValue;\n\t\t\t$this->Purchase_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->ViewValue = $this->Purchase_Number->CurrentValue;\n\t\t\t$this->Purchase_Number->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\tif (strval($this->Supplier_Number->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Supplier_Number`\" . ew_SearchString(\"=\", $this->Supplier_Number->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Supplier_Number->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Supplier_Number->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t\t// Stock_Item\n\t\t\tif (strval($this->Stock_Item->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Stock_Number`\" . ew_SearchString(\"=\", $this->Stock_Item->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Stock_Item->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Stock_Item->ViewValue = $this->Stock_Item->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Stock_Item->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Stock_Item->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->ViewValue = $this->Purchasing_Quantity->CurrentValue;\n\t\t\t$this->Purchasing_Quantity->ViewValue = ew_FormatNumber($this->Purchasing_Quantity->ViewValue, 0, -1, -1, -1);\n\t\t\t$this->Purchasing_Quantity->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Quantity->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->ViewValue = $this->Purchasing_Price->CurrentValue;\n\t\t\t$this->Purchasing_Price->ViewValue = ew_FormatCurrency($this->Purchasing_Price->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Purchasing_Price->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Price->ViewCustomAttributes = \"\";\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->ViewValue = $this->Selling_Price->CurrentValue;\n\t\t\t$this->Selling_Price->ViewValue = ew_FormatCurrency($this->Selling_Price->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Selling_Price->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Selling_Price->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->ViewValue = $this->Purchasing_Total_Amount->CurrentValue;\n\t\t\t$this->Purchasing_Total_Amount->ViewValue = ew_FormatCurrency($this->Purchasing_Total_Amount->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Purchasing_Total_Amount->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Total_Amount->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->HrefValue = \"\";\n\t\t\t$this->Purchase_ID->TooltipValue = \"\";\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->HrefValue = \"\";\n\t\t\t$this->Purchase_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Stock_Item\n\t\t\t$this->Stock_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Stock_Item->HrefValue = \"\";\n\t\t\t$this->Stock_Item->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->HrefValue = \"\";\n\t\t\t$this->Purchasing_Quantity->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->HrefValue = \"\";\n\t\t\t$this->Purchasing_Price->TooltipValue = \"\";\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->LinkCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->HrefValue = \"\";\n\t\t\t$this->Selling_Price->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->HrefValue = \"\";\n\t\t\t$this->Purchasing_Total_Amount->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->EditValue = ew_HtmlEncode($this->Purchase_ID->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchase_ID->PlaceHolder = ew_RemoveHtml($this->Purchase_ID->FldCaption());\n\t\t\t$this->Purchase_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->EditValue2 = ew_HtmlEncode($this->Purchase_ID->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchase_ID->PlaceHolder = ew_RemoveHtml($this->Purchase_ID->FldCaption());\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->EditValue = ew_HtmlEncode($this->Purchase_Number->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchase_Number->PlaceHolder = ew_RemoveHtml($this->Purchase_Number->FldCaption());\n\t\t\t$this->Purchase_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->EditValue2 = ew_HtmlEncode($this->Purchase_Number->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchase_Number->PlaceHolder = ew_RemoveHtml($this->Purchase_Number->FldCaption());\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Supplier_Number->EditValue = $arwrk;\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Supplier_Number->EditValue2 = $arwrk;\n\n\t\t\t// Stock_Item\n\t\t\t$this->Stock_Item->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Stock_Item->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Stock_Item->EditValue = $arwrk;\n\t\t\t$this->Stock_Item->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Stock_Item->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Stock_Item->EditValue2 = $arwrk;\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Quantity->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->EditValue = ew_HtmlEncode($this->Purchasing_Quantity->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Quantity->PlaceHolder = ew_RemoveHtml($this->Purchasing_Quantity->FldCaption());\n\t\t\t$this->Purchasing_Quantity->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Quantity->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->EditValue2 = ew_HtmlEncode($this->Purchasing_Quantity->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Quantity->PlaceHolder = ew_RemoveHtml($this->Purchasing_Quantity->FldCaption());\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->EditValue = ew_HtmlEncode($this->Purchasing_Price->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Price->PlaceHolder = ew_RemoveHtml($this->Purchasing_Price->FldCaption());\n\t\t\t$this->Purchasing_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->EditValue2 = ew_HtmlEncode($this->Purchasing_Price->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Price->PlaceHolder = ew_RemoveHtml($this->Purchasing_Price->FldCaption());\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Selling_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->EditValue = ew_HtmlEncode($this->Selling_Price->AdvancedSearch->SearchValue);\n\t\t\t$this->Selling_Price->PlaceHolder = ew_RemoveHtml($this->Selling_Price->FldCaption());\n\t\t\t$this->Selling_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Selling_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->EditValue2 = ew_HtmlEncode($this->Selling_Price->AdvancedSearch->SearchValue2);\n\t\t\t$this->Selling_Price->PlaceHolder = ew_RemoveHtml($this->Selling_Price->FldCaption());\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Total_Amount->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->EditValue = ew_HtmlEncode($this->Purchasing_Total_Amount->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Total_Amount->PlaceHolder = ew_RemoveHtml($this->Purchasing_Total_Amount->FldCaption());\n\t\t\t$this->Purchasing_Total_Amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Total_Amount->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->EditValue2 = ew_HtmlEncode($this->Purchasing_Total_Amount->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Total_Amount->PlaceHolder = ew_RemoveHtml($this->Purchasing_Total_Amount->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->total_gross->FormValue == $this->total_gross->CurrentValue && is_numeric(ew_StrToFloat($this->total_gross->CurrentValue)))\n\t\t\t$this->total_gross->CurrentValue = ew_StrToFloat($this->total_gross->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\n\t\t$this->row_id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_date\n\t\t$this->auc_date->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_number\n\t\t$this->auc_number->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_place\n\t\t$this->auc_place->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// start_bid\n\t\t$this->start_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// close_bid\n\t\t$this->close_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_notes\n\t\t// total_sack\n\n\t\t$this->total_sack->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_netto\n\t\t$this->total_netto->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_gross\n\t\t$this->total_gross->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_status\n\t\t$this->auc_status->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// rate\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// auc_date\n\t\t$this->auc_date->ViewValue = $this->auc_date->CurrentValue;\n\t\t$this->auc_date->ViewValue = ew_FormatDateTime($this->auc_date->ViewValue, 7);\n\t\t$this->auc_date->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_date->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// auc_place\n\t\t$this->auc_place->ViewValue = $this->auc_place->CurrentValue;\n\t\t$this->auc_place->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// auc_notes\n\t\t$this->auc_notes->ViewValue = $this->auc_notes->CurrentValue;\n\t\t$this->auc_notes->ViewCustomAttributes = \"\";\n\n\t\t// total_sack\n\t\t$this->total_sack->ViewValue = $this->total_sack->CurrentValue;\n\t\t$this->total_sack->ViewValue = ew_FormatNumber($this->total_sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_sack->ViewCustomAttributes = \"\";\n\n\t\t// total_netto\n\t\t$this->total_netto->ViewValue = $this->total_netto->CurrentValue;\n\t\t$this->total_netto->ViewValue = ew_FormatNumber($this->total_netto->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_netto->ViewCustomAttributes = \"\";\n\n\t\t// total_gross\n\t\t$this->total_gross->ViewValue = $this->total_gross->CurrentValue;\n\t\t$this->total_gross->ViewValue = ew_FormatNumber($this->total_gross->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_gross->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_gross->ViewCustomAttributes = \"\";\n\n\t\t// auc_status\n\t\tif (strval($this->auc_status->CurrentValue) <> \"\") {\n\t\t\t$this->auc_status->ViewValue = $this->auc_status->OptionCaption($this->auc_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auc_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auc_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_status->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// auc_place\n\t\t\t$this->auc_place->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_place->HrefValue = \"\";\n\t\t\t$this->auc_place->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// auc_notes\n\t\t\t$this->auc_notes->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_notes->HrefValue = \"\";\n\t\t\t$this->auc_notes->TooltipValue = \"\";\n\n\t\t\t// total_sack\n\t\t\t$this->total_sack->LinkCustomAttributes = \"\";\n\t\t\t$this->total_sack->HrefValue = \"\";\n\t\t\t$this->total_sack->TooltipValue = \"\";\n\n\t\t\t// total_gross\n\t\t\t$this->total_gross->LinkCustomAttributes = \"\";\n\t\t\t$this->total_gross->HrefValue = \"\";\n\t\t\t$this->total_gross->TooltipValue = \"\";\n\n\t\t\t// auc_status\n\t\t\t$this->auc_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_status->HrefValue = \"\";\n\t\t\t$this->auc_status->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $financial_year;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$financial_year->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// financial_year_id\n\n\t\t$financial_year->financial_year_id->CellCssStyle = \"\"; $financial_year->financial_year_id->CellCssClass = \"\";\n\t\t$financial_year->financial_year_id->CellAttrs = array(); $financial_year->financial_year_id->ViewAttrs = array(); $financial_year->financial_year_id->EditAttrs = array();\n\n\t\t// year_name\n\t\t$financial_year->year_name->CellCssStyle = \"\"; $financial_year->year_name->CellCssClass = \"\";\n\t\t$financial_year->year_name->CellAttrs = array(); $financial_year->year_name->ViewAttrs = array(); $financial_year->year_name->EditAttrs = array();\n\n\t\t// date_start\n\t\t$financial_year->date_start->CellCssStyle = \"\"; $financial_year->date_start->CellCssClass = \"\";\n\t\t$financial_year->date_start->CellAttrs = array(); $financial_year->date_start->ViewAttrs = array(); $financial_year->date_start->EditAttrs = array();\n\n\t\t// date_end\n\t\t$financial_year->date_end->CellCssStyle = \"\"; $financial_year->date_end->CellCssClass = \"\";\n\t\t$financial_year->date_end->CellAttrs = array(); $financial_year->date_end->ViewAttrs = array(); $financial_year->date_end->EditAttrs = array();\n\t\tif ($financial_year->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->ViewValue = $financial_year->financial_year_id->CurrentValue;\n\t\t\t$financial_year->financial_year_id->CssStyle = \"\";\n\t\t\t$financial_year->financial_year_id->CssClass = \"\";\n\t\t\t$financial_year->financial_year_id->ViewCustomAttributes = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->ViewValue = $financial_year->year_name->CurrentValue;\n\t\t\t$financial_year->year_name->CssStyle = \"\";\n\t\t\t$financial_year->year_name->CssClass = \"\";\n\t\t\t$financial_year->year_name->ViewCustomAttributes = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->ViewValue = $financial_year->date_start->CurrentValue;\n\t\t\t$financial_year->date_start->ViewValue = ew_FormatDateTime($financial_year->date_start->ViewValue, 7);\n\t\t\t$financial_year->date_start->CssStyle = \"\";\n\t\t\t$financial_year->date_start->CssClass = \"\";\n\t\t\t$financial_year->date_start->ViewCustomAttributes = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->ViewValue = $financial_year->date_end->CurrentValue;\n\t\t\t$financial_year->date_end->ViewValue = ew_FormatDateTime($financial_year->date_end->ViewValue, 7);\n\t\t\t$financial_year->date_end->CssStyle = \"\";\n\t\t\t$financial_year->date_end->CssClass = \"\";\n\t\t\t$financial_year->date_end->ViewCustomAttributes = \"\";\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->HrefValue = \"\";\n\t\t\t$financial_year->financial_year_id->TooltipValue = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->HrefValue = \"\";\n\t\t\t$financial_year->year_name->TooltipValue = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->HrefValue = \"\";\n\t\t\t$financial_year->date_start->TooltipValue = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->HrefValue = \"\";\n\t\t\t$financial_year->date_end->TooltipValue = \"\";\n\t\t} elseif ($financial_year->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->EditCustomAttributes = \"\";\n\t\t\t$financial_year->financial_year_id->EditValue = $financial_year->financial_year_id->CurrentValue;\n\t\t\t$financial_year->financial_year_id->CssStyle = \"\";\n\t\t\t$financial_year->financial_year_id->CssClass = \"\";\n\t\t\t$financial_year->financial_year_id->ViewCustomAttributes = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->EditCustomAttributes = \"\";\n\t\t\t$financial_year->year_name->EditValue = ew_HtmlEncode($financial_year->year_name->CurrentValue);\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->EditCustomAttributes = \"\";\n\t\t\t$financial_year->date_start->EditValue = ew_HtmlEncode(ew_FormatDateTime($financial_year->date_start->CurrentValue, 7));\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->EditCustomAttributes = \"\";\n\t\t\t$financial_year->date_end->EditValue = ew_HtmlEncode(ew_FormatDateTime($financial_year->date_end->CurrentValue, 7));\n\n\t\t\t// Edit refer script\n\t\t\t// financial_year_id\n\n\t\t\t$financial_year->financial_year_id->HrefValue = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->HrefValue = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->HrefValue = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($financial_year->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$financial_year->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $planilla;\n\n\t\t// Call Row_Rendering event\n\t\t$planilla->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idPlanilla\n\n\t\t$planilla->idPlanilla->CellCssStyle = \"\";\n\t\t$planilla->idPlanilla->CellCssClass = \"\";\n\n\t\t// Nombre\n\t\t$planilla->Nombre->CellCssStyle = \"\";\n\t\t$planilla->Nombre->CellCssClass = \"\";\n\t\tif ($planilla->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->ViewValue = $planilla->idPlanilla->CurrentValue;\n\t\t\t$planilla->idPlanilla->CssStyle = \"\";\n\t\t\t$planilla->idPlanilla->CssClass = \"\";\n\t\t\t$planilla->idPlanilla->ViewCustomAttributes = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->ViewValue = $planilla->Nombre->CurrentValue;\n\t\t\t$planilla->Nombre->CssStyle = \"\";\n\t\t\t$planilla->Nombre->CssClass = \"\";\n\t\t\t$planilla->Nombre->ViewCustomAttributes = \"\";\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->HrefValue = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$planilla->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// ContentDate\n\t\t$patient_detail->ContentDate->CellCssStyle = \"\";\n\t\t$patient_detail->ContentDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// ContentTime\n\t\t$patient_detail->ContentTime->CellCssStyle = \"\";\n\t\t$patient_detail->ContentTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function ods_render_row($row, $data = array()) {\n $cells = $row->getElementsByTagName('table-cell');\n\n foreach ($cells as $cell) {\n $value_type = $cell\n ->getAttribute('office:value-type');\n\n //get text data\n $p1 = $cell\n ->getElementsByTagName('p'); \n\n foreach ($p1 as $p) {\n\n $orig_cell_text = $p->nodeValue;\n\n $data_val = false;\n\n if (!empty($orig_cell_text)) {\n if ($this->string_has_params($orig_cell_text)) {\n\n if ($this->parse_string_is_once_param($orig_cell_text)) {\n $param_key = $this->parse_string_extract_param($orig_cell_text);\n\n if ($this->parse_param_exists($param_key, $data)) {\n\n $data_val = $this->parse_param_value(\n $param_key, $data\n );\n $this->ods_cell_set_val($cell, $p, $data_val, array());\n }\n } else {\n $p->nodeValue = $this->parse_string($orig_cell_text, $data);\n }\n }\n }\n }\n \n $this->ods_render_cell_images($cell, $data); \n \n }\n return $row;\n }", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "protected function RenderArray()\n {\n if ($this->m_QueryONRender && !$this->m_ActiveRecord && $this->m_DataObjName) {\n if (!$this->_run_search($resultRecords, $this->m_ClearSearchRule))\n return $this->ProcessDataObjError($ok);\n $this->UpdateActiveRecord($resultRecords[0]);\n }\n\n $columns = $this->m_RecordRow->RenderColumn();\n foreach($columns as $key=>$val) {\n $fields[$key][\"label\"] = $val;\n $fields[$key][\"required\"] = $this->GetControl($key)->m_Required;\n $fields[$key][\"description\"] = $this->GetControl($key)->m_Description;\n $fields[$key][\"value\"] = $this->GetControl($key)->m_Value;\t \n }\n\n $controls = $this->m_RecordRow->Render();\n if ($this->CanShowData()) {\n foreach($controls as $key=>$val) {\n $fields[$key][\"control\"] = $val;\n }\n }\n return $fields;\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $frm_fp_units_accomplishment;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$frm_fp_units_accomplishment->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// units_id\n\t\t// focal_person_id\n\t\t// unit_id\n\t\t// cu_sequence\n\t\t// cu_short_name\n\t\t// cu_unit_name\n\t\t// unit_name\n\t\t// unit_name_short\n\t\t// personnel_count\n\t\t// mfo_1\n\t\t// mfo_2\n\t\t// mfo_3\n\t\t// mfo_4\n\t\t// mfo_5\n\t\t// sto\n\t\t// gass\n\t\t// users_name\n\t\t// users_nameLast\n\t\t// users_nameFirst\n\t\t// users_nameMiddle\n\t\t// users_userLoginName\n\t\t// users_password\n\t\t// users_email\n\t\t// users_contactNo\n\t\t// tbl_cutOffDate_id\n\t\t// t_cutOffDate\n\t\t// t_cutOffDate_remarks\n\n\t\tif ($frm_fp_units_accomplishment->RowType == UP_ROWTYPE_VIEW) { // View row\n\n\t\t\t// units_id\n\t\t\t$frm_fp_units_accomplishment->units_id->ViewValue = $frm_fp_units_accomplishment->units_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->units_id->ViewCustomAttributes = \"\";\n\n\t\t\t// focal_person_id\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->ViewValue = $frm_fp_units_accomplishment->focal_person_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_id\n\t\t\t$frm_fp_units_accomplishment->unit_id->ViewValue = $frm_fp_units_accomplishment->unit_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_id->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_sequence\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->ViewValue = $frm_fp_units_accomplishment->cu_sequence->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_short_name\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->ViewValue = $frm_fp_units_accomplishment->cu_short_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_unit_name\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->ViewValue = $frm_fp_units_accomplishment->cu_unit_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_name\n\t\t\t$frm_fp_units_accomplishment->unit_name->ViewValue = $frm_fp_units_accomplishment->unit_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_name->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_name_short\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->ViewValue = $frm_fp_units_accomplishment->unit_name_short->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->ViewCustomAttributes = \"\";\n\n\t\t\t// personnel_count\n\t\t\t$frm_fp_units_accomplishment->personnel_count->ViewValue = $frm_fp_units_accomplishment->personnel_count->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->personnel_count->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_1\n\t\t\t$frm_fp_units_accomplishment->mfo_1->ViewValue = $frm_fp_units_accomplishment->mfo_1->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_1->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_2\n\t\t\t$frm_fp_units_accomplishment->mfo_2->ViewValue = $frm_fp_units_accomplishment->mfo_2->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_2->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_3\n\t\t\t$frm_fp_units_accomplishment->mfo_3->ViewValue = $frm_fp_units_accomplishment->mfo_3->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_3->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_4\n\t\t\t$frm_fp_units_accomplishment->mfo_4->ViewValue = $frm_fp_units_accomplishment->mfo_4->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_4->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_5\n\t\t\t$frm_fp_units_accomplishment->mfo_5->ViewValue = $frm_fp_units_accomplishment->mfo_5->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_5->ViewCustomAttributes = \"\";\n\n\t\t\t// sto\n\t\t\t$frm_fp_units_accomplishment->sto->ViewValue = $frm_fp_units_accomplishment->sto->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->sto->ViewCustomAttributes = \"\";\n\n\t\t\t// gass\n\t\t\t$frm_fp_units_accomplishment->gass->ViewValue = $frm_fp_units_accomplishment->gass->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->gass->ViewCustomAttributes = \"\";\n\n\t\t\t// users_name\n\t\t\t$frm_fp_units_accomplishment->users_name->ViewValue = $frm_fp_units_accomplishment->users_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_name->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameLast\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->ViewValue = $frm_fp_units_accomplishment->users_nameLast->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameFirst\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->ViewValue = $frm_fp_units_accomplishment->users_nameFirst->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameMiddle\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->ViewValue = $frm_fp_units_accomplishment->users_nameMiddle->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->ViewCustomAttributes = \"\";\n\n\t\t\t// users_userLoginName\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->ViewValue = $frm_fp_units_accomplishment->users_userLoginName->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->ViewCustomAttributes = \"\";\n\n\t\t\t// users_password\n\t\t\t$frm_fp_units_accomplishment->users_password->ViewValue = $frm_fp_units_accomplishment->users_password->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_password->ViewCustomAttributes = \"\";\n\n\t\t\t// users_email\n\t\t\t$frm_fp_units_accomplishment->users_email->ViewValue = $frm_fp_units_accomplishment->users_email->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_email->ViewCustomAttributes = \"\";\n\n\t\t\t// users_contactNo\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->ViewValue = $frm_fp_units_accomplishment->users_contactNo->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->ViewCustomAttributes = \"\";\n\n\t\t\t// tbl_cutOffDate_id\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->ViewValue = $frm_fp_units_accomplishment->tbl_cutOffDate_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->ViewCustomAttributes = \"\";\n\n\t\t\t// t_cutOffDate\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewValue = $frm_fp_units_accomplishment->t_cutOffDate->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewValue = up_FormatDateTime($frm_fp_units_accomplishment->t_cutOffDate->ViewValue, 6);\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewCustomAttributes = \"\";\n\n\t\t\t// t_cutOffDate_remarks\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->ViewValue = $frm_fp_units_accomplishment->t_cutOffDate_remarks->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->ViewCustomAttributes = \"\";\n\n\t\t\t// units_id\n\t\t\t$frm_fp_units_accomplishment->units_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->units_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->units_id->TooltipValue = \"\";\n\n\t\t\t// focal_person_id\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->TooltipValue = \"\";\n\n\t\t\t// unit_id\n\t\t\t$frm_fp_units_accomplishment->unit_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_id->TooltipValue = \"\";\n\n\t\t\t// cu_sequence\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->TooltipValue = \"\";\n\n\t\t\t// cu_short_name\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->TooltipValue = \"\";\n\n\t\t\t// cu_unit_name\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->TooltipValue = \"\";\n\n\t\t\t// unit_name\n\t\t\t$frm_fp_units_accomplishment->unit_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name->TooltipValue = \"\";\n\n\t\t\t// unit_name_short\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->TooltipValue = \"\";\n\n\t\t\t// personnel_count\n\t\t\t$frm_fp_units_accomplishment->personnel_count->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->personnel_count->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->personnel_count->TooltipValue = \"\";\n\n\t\t\t// mfo_1\n\t\t\t$frm_fp_units_accomplishment->mfo_1->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_1->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_1->TooltipValue = \"\";\n\n\t\t\t// mfo_2\n\t\t\t$frm_fp_units_accomplishment->mfo_2->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_2->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_2->TooltipValue = \"\";\n\n\t\t\t// mfo_3\n\t\t\t$frm_fp_units_accomplishment->mfo_3->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_3->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_3->TooltipValue = \"\";\n\n\t\t\t// mfo_4\n\t\t\t$frm_fp_units_accomplishment->mfo_4->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_4->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_4->TooltipValue = \"\";\n\n\t\t\t// mfo_5\n\t\t\t$frm_fp_units_accomplishment->mfo_5->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_5->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_5->TooltipValue = \"\";\n\n\t\t\t// sto\n\t\t\t$frm_fp_units_accomplishment->sto->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->sto->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->sto->TooltipValue = \"\";\n\n\t\t\t// gass\n\t\t\t$frm_fp_units_accomplishment->gass->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->gass->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->gass->TooltipValue = \"\";\n\n\t\t\t// users_name\n\t\t\t$frm_fp_units_accomplishment->users_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_name->TooltipValue = \"\";\n\n\t\t\t// users_nameLast\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->TooltipValue = \"\";\n\n\t\t\t// users_nameFirst\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->TooltipValue = \"\";\n\n\t\t\t// users_nameMiddle\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->TooltipValue = \"\";\n\n\t\t\t// users_userLoginName\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->TooltipValue = \"\";\n\n\t\t\t// users_password\n\t\t\t$frm_fp_units_accomplishment->users_password->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_password->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_password->TooltipValue = \"\";\n\n\t\t\t// users_email\n\t\t\t$frm_fp_units_accomplishment->users_email->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_email->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_email->TooltipValue = \"\";\n\n\t\t\t// users_contactNo\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->TooltipValue = \"\";\n\n\t\t\t// tbl_cutOffDate_id\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->TooltipValue = \"\";\n\n\t\t\t// t_cutOffDate\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->TooltipValue = \"\";\n\n\t\t\t// t_cutOffDate_remarks\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($frm_fp_units_accomplishment->RowType <> UP_ROWTYPE_AGGREGATEINIT)\n\t\t\t$frm_fp_units_accomplishment->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fecha_tamizaje\n\t\t// id_centro\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// ci\n\t\t// fecha_nacimiento\n\t\t// dias\n\t\t// semanas\n\t\t// meses\n\t\t// sexo\n\t\t// discapacidad\n\t\t// id_tipodiscapacidad\n\t\t// resultado\n\t\t// resultadotamizaje\n\t\t// tapon\n\t\t// tipo\n\t\t// repetirprueba\n\t\t// observaciones\n\t\t// id_apoderado\n\t\t// id_referencia\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha_tamizaje\n\t\t$this->fecha_tamizaje->ViewValue = $this->fecha_tamizaje->CurrentValue;\n\t\t$this->fecha_tamizaje->ViewValue = ew_FormatDateTime($this->fecha_tamizaje->ViewValue, 0);\n\t\t$this->fecha_tamizaje->ViewCustomAttributes = \"\";\n\n\t\t// id_centro\n\t\tif (strval($this->id_centro->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_centro->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `institucionesdesalud`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_centro->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_centro, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_centro->ViewValue = NULL;\n\t\t}\n\t\t$this->id_centro->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 0);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// dias\n\t\t$this->dias->ViewValue = $this->dias->CurrentValue;\n\t\t$this->dias->ViewCustomAttributes = \"\";\n\n\t\t// semanas\n\t\t$this->semanas->ViewValue = $this->semanas->CurrentValue;\n\t\t$this->semanas->ViewCustomAttributes = \"\";\n\n\t\t// meses\n\t\t$this->meses->ViewValue = $this->meses->CurrentValue;\n\t\t$this->meses->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// discapacidad\n\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\tif (strval($this->discapacidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->discapacidad->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->discapacidad->ViewValue = NULL;\n\t\t}\n\t\t$this->discapacidad->ViewCustomAttributes = \"\";\n\n\t\t// id_tipodiscapacidad\n\t\t$this->id_tipodiscapacidad->ViewValue = $this->id_tipodiscapacidad->CurrentValue;\n\t\t$this->id_tipodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// resultado\n\t\t$this->resultado->ViewValue = $this->resultado->CurrentValue;\n\t\t$this->resultado->ViewCustomAttributes = \"\";\n\n\t\t// resultadotamizaje\n\t\t$this->resultadotamizaje->ViewValue = $this->resultadotamizaje->CurrentValue;\n\t\t$this->resultadotamizaje->ViewCustomAttributes = \"\";\n\n\t\t// tapon\n\t\tif (strval($this->tapon->CurrentValue) <> \"\") {\n\t\t\t$this->tapon->ViewValue = $this->tapon->OptionCaption($this->tapon->CurrentValue);\n\t\t} else {\n\t\t\t$this->tapon->ViewValue = NULL;\n\t\t}\n\t\t$this->tapon->ViewCustomAttributes = \"\";\n\n\t\t// tipo\n\t\tif (strval($this->tipo->CurrentValue) <> \"\") {\n\t\t\t$this->tipo->ViewValue = $this->tipo->OptionCaption($this->tipo->CurrentValue);\n\t\t} else {\n\t\t\t$this->tipo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo->ViewCustomAttributes = \"\";\n\n\t\t// repetirprueba\n\t\tif (strval($this->repetirprueba->CurrentValue) <> \"\") {\n\t\t\t$this->repetirprueba->ViewValue = $this->repetirprueba->OptionCaption($this->repetirprueba->CurrentValue);\n\t\t} else {\n\t\t\t$this->repetirprueba->ViewValue = NULL;\n\t\t}\n\t\t$this->repetirprueba->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// id_apoderado\n\t\tif ($this->id_apoderado->VirtualValue <> \"\") {\n\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_apoderado->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_apoderado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombres` AS `DispFld`, `apellidopaterno` AS `Disp2Fld`, `apellidopaterno` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `apoderado`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_apoderado->LookupFilters = array(\"dx1\" => '`nombres`', \"dx2\" => '`apellidopaterno`', \"dx3\" => '`apellidopaterno`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_apoderado, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_apoderado->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_apoderado->ViewCustomAttributes = \"\";\n\n\t\t// id_referencia\n\t\tif ($this->id_referencia->VirtualValue <> \"\") {\n\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_referencia->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_referencia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombrescentromedico` AS `DispFld`, `nombrescompleto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `referencia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_referencia->LookupFilters = array(\"dx1\" => '`nombrescentromedico`', \"dx2\" => '`nombrescompleto`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_referencia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_referencia->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_referencia->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->HrefValue = \"\";\n\t\t\t$this->fecha_tamizaje->TooltipValue = \"\";\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->LinkCustomAttributes = \"\";\n\t\t\t$this->id_centro->HrefValue = \"\";\n\t\t\t$this->id_centro->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// dias\n\t\t\t$this->dias->LinkCustomAttributes = \"\";\n\t\t\t$this->dias->HrefValue = \"\";\n\t\t\t$this->dias->TooltipValue = \"\";\n\n\t\t\t// semanas\n\t\t\t$this->semanas->LinkCustomAttributes = \"\";\n\t\t\t$this->semanas->HrefValue = \"\";\n\t\t\t$this->semanas->TooltipValue = \"\";\n\n\t\t\t// meses\n\t\t\t$this->meses->LinkCustomAttributes = \"\";\n\t\t\t$this->meses->HrefValue = \"\";\n\t\t\t$this->meses->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->discapacidad->HrefValue = \"\";\n\t\t\t$this->discapacidad->TooltipValue = \"\";\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->HrefValue = \"\";\n\t\t\t$this->id_tipodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// resultado\n\t\t\t$this->resultado->LinkCustomAttributes = \"\";\n\t\t\t$this->resultado->HrefValue = \"\";\n\t\t\t$this->resultado->TooltipValue = \"\";\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->HrefValue = \"\";\n\t\t\t$this->resultadotamizaje->TooltipValue = \"\";\n\n\t\t\t// tapon\n\t\t\t$this->tapon->LinkCustomAttributes = \"\";\n\t\t\t$this->tapon->HrefValue = \"\";\n\t\t\t$this->tapon->TooltipValue = \"\";\n\n\t\t\t// tipo\n\t\t\t$this->tipo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo->HrefValue = \"\";\n\t\t\t$this->tipo->TooltipValue = \"\";\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->LinkCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->HrefValue = \"\";\n\t\t\t$this->repetirprueba->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->LinkCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->HrefValue = \"\";\n\t\t\t$this->id_apoderado->TooltipValue = \"\";\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->LinkCustomAttributes = \"\";\n\t\t\t$this->id_referencia->HrefValue = \"\";\n\t\t\t$this->id_referencia->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_tamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_tamizaje->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_tamizaje->PlaceHolder = ew_RemoveHtml($this->fecha_tamizaje->FldCaption());\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_centro->EditCustomAttributes = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidopaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->EditValue = ew_HtmlEncode($this->apellidopaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidopaterno->PlaceHolder = ew_RemoveHtml($this->apellidopaterno->FldCaption());\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidomaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->EditValue = ew_HtmlEncode($this->apellidomaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidomaterno->PlaceHolder = ew_RemoveHtml($this->apellidomaterno->FldCaption());\n\n\t\t\t// nombre\n\t\t\t$this->nombre->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre->EditCustomAttributes = \"\";\n\t\t\t$this->nombre->EditValue = ew_HtmlEncode($this->nombre->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre->PlaceHolder = ew_RemoveHtml($this->nombre->FldCaption());\n\n\t\t\t// ci\n\t\t\t$this->ci->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ci->EditCustomAttributes = \"\";\n\t\t\t$this->ci->EditValue = ew_HtmlEncode($this->ci->AdvancedSearch->SearchValue);\n\t\t\t$this->ci->PlaceHolder = ew_RemoveHtml($this->ci->FldCaption());\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_nacimiento->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_nacimiento->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_nacimiento->PlaceHolder = ew_RemoveHtml($this->fecha_nacimiento->FldCaption());\n\n\t\t\t// dias\n\t\t\t$this->dias->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dias->EditCustomAttributes = \"\";\n\t\t\t$this->dias->EditValue = ew_HtmlEncode($this->dias->AdvancedSearch->SearchValue);\n\t\t\t$this->dias->PlaceHolder = ew_RemoveHtml($this->dias->FldCaption());\n\n\t\t\t// semanas\n\t\t\t$this->semanas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->semanas->EditCustomAttributes = \"\";\n\t\t\t$this->semanas->EditValue = ew_HtmlEncode($this->semanas->AdvancedSearch->SearchValue);\n\t\t\t$this->semanas->PlaceHolder = ew_RemoveHtml($this->semanas->FldCaption());\n\n\t\t\t// meses\n\t\t\t$this->meses->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->meses->EditCustomAttributes = \"\";\n\t\t\t$this->meses->EditValue = ew_HtmlEncode($this->meses->AdvancedSearch->SearchValue);\n\t\t\t$this->meses->PlaceHolder = ew_RemoveHtml($this->meses->FldCaption());\n\n\t\t\t// sexo\n\t\t\t$this->sexo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sexo->EditCustomAttributes = \"\";\n\t\t\t$this->sexo->EditValue = $this->sexo->Options(TRUE);\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->discapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\tif (strval($this->discapacidad->AdvancedSearch->SearchValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->discapacidad->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->discapacidad->EditValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->discapacidad->PlaceHolder = ew_RemoveHtml($this->discapacidad->FldCaption());\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_tipodiscapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->EditValue = ew_HtmlEncode($this->id_tipodiscapacidad->AdvancedSearch->SearchValue);\n\t\t\t$this->id_tipodiscapacidad->PlaceHolder = ew_RemoveHtml($this->id_tipodiscapacidad->FldCaption());\n\n\t\t\t// resultado\n\t\t\t$this->resultado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultado->EditCustomAttributes = \"\";\n\t\t\t$this->resultado->EditValue = ew_HtmlEncode($this->resultado->AdvancedSearch->SearchValue);\n\t\t\t$this->resultado->PlaceHolder = ew_RemoveHtml($this->resultado->FldCaption());\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultadotamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->EditValue = ew_HtmlEncode($this->resultadotamizaje->AdvancedSearch->SearchValue);\n\t\t\t$this->resultadotamizaje->PlaceHolder = ew_RemoveHtml($this->resultadotamizaje->FldCaption());\n\n\t\t\t// tapon\n\t\t\t$this->tapon->EditCustomAttributes = \"\";\n\t\t\t$this->tapon->EditValue = $this->tapon->Options(FALSE);\n\n\t\t\t// tipo\n\t\t\t$this->tipo->EditCustomAttributes = \"\";\n\t\t\t$this->tipo->EditValue = $this->tipo->Options(FALSE);\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->EditCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->EditValue = $this->repetirprueba->Options(FALSE);\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->observaciones->EditCustomAttributes = \"\";\n\t\t\t$this->observaciones->EditValue = ew_HtmlEncode($this->observaciones->AdvancedSearch->SearchValue);\n\t\t\t$this->observaciones->PlaceHolder = ew_RemoveHtml($this->observaciones->FldCaption());\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_apoderado->EditCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->EditValue = ew_HtmlEncode($this->id_apoderado->AdvancedSearch->SearchValue);\n\t\t\t$this->id_apoderado->PlaceHolder = ew_RemoveHtml($this->id_apoderado->FldCaption());\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_referencia->EditCustomAttributes = \"\";\n\t\t\t$this->id_referencia->EditValue = ew_HtmlEncode($this->id_referencia->AdvancedSearch->SearchValue);\n\t\t\t$this->id_referencia->PlaceHolder = ew_RemoveHtml($this->id_referencia->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $mst_vendor;\n\n\t\t// Call Row_Rendering event\n\t\t$mst_vendor->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// kode\n\n\t\t$mst_vendor->kode->CellCssStyle = \"\";\n\t\t$mst_vendor->kode->CellCssClass = \"\";\n\n\t\t// nama\n\t\t$mst_vendor->nama->CellCssStyle = \"\";\n\t\t$mst_vendor->nama->CellCssClass = \"\";\n\n\t\t// alamat\n\t\t$mst_vendor->alamat->CellCssStyle = \"\";\n\t\t$mst_vendor->alamat->CellCssClass = \"\";\n\n\t\t// alamatpajak\n\t\t$mst_vendor->alamatpajak->CellCssStyle = \"\";\n\t\t$mst_vendor->alamatpajak->CellCssClass = \"\";\n\n\t\t// npwp\n\t\t$mst_vendor->npwp->CellCssStyle = \"\";\n\t\t$mst_vendor->npwp->CellCssClass = \"\";\n\n\t\t// pic\n\t\t$mst_vendor->pic->CellCssStyle = \"\";\n\t\t$mst_vendor->pic->CellCssClass = \"\";\n\n\t\t// phone\n\t\t$mst_vendor->phone->CellCssStyle = \"\";\n\t\t$mst_vendor->phone->CellCssClass = \"\";\n\n\t\t// fax\n\t\t$mst_vendor->fax->CellCssStyle = \"\";\n\t\t$mst_vendor->fax->CellCssClass = \"\";\n\n\t\t// email\n\t\t$mst_vendor->zemail->CellCssStyle = \"\";\n\t\t$mst_vendor->zemail->CellCssClass = \"\";\n\n\t\t// peruntukan\n\t\t$mst_vendor->peruntukan->CellCssStyle = \"\";\n\t\t$mst_vendor->peruntukan->CellCssClass = \"\";\n\t\tif ($mst_vendor->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->ViewValue = $mst_vendor->kode->CurrentValue;\n\t\t\t$mst_vendor->kode->CssStyle = \"\";\n\t\t\t$mst_vendor->kode->CssClass = \"\";\n\t\t\t$mst_vendor->kode->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->ViewValue = $mst_vendor->nama->CurrentValue;\n\t\t\t$mst_vendor->nama->CssStyle = \"\";\n\t\t\t$mst_vendor->nama->CssClass = \"\";\n\t\t\t$mst_vendor->nama->ViewCustomAttributes = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->ViewValue = $mst_vendor->alamat->CurrentValue;\n\t\t\t$mst_vendor->alamat->CssStyle = \"\";\n\t\t\t$mst_vendor->alamat->CssClass = \"\";\n\t\t\t$mst_vendor->alamat->ViewCustomAttributes = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->ViewValue = $mst_vendor->alamatpajak->CurrentValue;\n\t\t\t$mst_vendor->alamatpajak->CssStyle = \"\";\n\t\t\t$mst_vendor->alamatpajak->CssClass = \"\";\n\t\t\t$mst_vendor->alamatpajak->ViewCustomAttributes = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->ViewValue = $mst_vendor->npwp->CurrentValue;\n\t\t\t$mst_vendor->npwp->CssStyle = \"\";\n\t\t\t$mst_vendor->npwp->CssClass = \"\";\n\t\t\t$mst_vendor->npwp->ViewCustomAttributes = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->ViewValue = $mst_vendor->pic->CurrentValue;\n\t\t\t$mst_vendor->pic->CssStyle = \"\";\n\t\t\t$mst_vendor->pic->CssClass = \"\";\n\t\t\t$mst_vendor->pic->ViewCustomAttributes = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->ViewValue = $mst_vendor->phone->CurrentValue;\n\t\t\t$mst_vendor->phone->CssStyle = \"\";\n\t\t\t$mst_vendor->phone->CssClass = \"\";\n\t\t\t$mst_vendor->phone->ViewCustomAttributes = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->ViewValue = $mst_vendor->fax->CurrentValue;\n\t\t\t$mst_vendor->fax->CssStyle = \"\";\n\t\t\t$mst_vendor->fax->CssClass = \"\";\n\t\t\t$mst_vendor->fax->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->ViewValue = $mst_vendor->zemail->CurrentValue;\n\t\t\t$mst_vendor->zemail->CssStyle = \"\";\n\t\t\t$mst_vendor->zemail->CssClass = \"\";\n\t\t\t$mst_vendor->zemail->ViewCustomAttributes = \"\";\n\n\t\t\t// peruntukan\n\t\t\tif (strval($mst_vendor->peruntukan->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($mst_vendor->peruntukan->CurrentValue) {\n\t\t\t\t\tcase \"unit\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Unit\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"part\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Part\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"material\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Material\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = $mst_vendor->peruntukan->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$mst_vendor->peruntukan->ViewValue = NULL;\n\t\t\t}\n\t\t\t$mst_vendor->peruntukan->CssStyle = \"\";\n\t\t\t$mst_vendor->peruntukan->CssClass = \"\";\n\t\t\t$mst_vendor->peruntukan->ViewCustomAttributes = \"\";\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->HrefValue = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->HrefValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->HrefValue = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->HrefValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->HrefValue = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->HrefValue = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->HrefValue = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->HrefValue = \"\";\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->HrefValue = \"\";\n\t\t} elseif ($mst_vendor->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->kode->EditValue = ew_HtmlEncode($mst_vendor->kode->CurrentValue);\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->nama->EditValue = ew_HtmlEncode($mst_vendor->nama->CurrentValue);\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamat->EditValue = ew_HtmlEncode($mst_vendor->alamat->CurrentValue);\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamatpajak->EditValue = ew_HtmlEncode($mst_vendor->alamatpajak->CurrentValue);\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->npwp->EditValue = ew_HtmlEncode($mst_vendor->npwp->CurrentValue);\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->pic->EditValue = ew_HtmlEncode($mst_vendor->pic->CurrentValue);\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->phone->EditValue = ew_HtmlEncode($mst_vendor->phone->CurrentValue);\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->fax->EditValue = ew_HtmlEncode($mst_vendor->fax->CurrentValue);\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->zemail->EditValue = ew_HtmlEncode($mst_vendor->zemail->CurrentValue);\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"unit\", \"Unit\");\n\t\t\t$arwrk[] = array(\"part\", \"Part\");\n\t\t\t$arwrk[] = array(\"material\", \"Material\");\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\"));\n\t\t\t$mst_vendor->peruntukan->EditValue = $arwrk;\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$mst_vendor->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id\r\n\t\t// Nama\r\n\t\t// Alamat\r\n\t\t// Jumlah\r\n\t\t// Provinsi\r\n\t\t// Area\r\n\t\t// CP\r\n\t\t// NoContact\r\n\t\t// Tanggal\r\n\t\t// Jam\r\n\t\t// Vechicle\r\n\t\t// Type\r\n\t\t// Site\r\n\t\t// Status\r\n\t\t// UserID\r\n\t\t// TglInput\r\n\t\t// visit\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id\r\n\t\t\t$this->Id->ViewValue = $this->Id->CurrentValue;\r\n\t\t\t$this->Id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->ViewValue = $this->Nama->CurrentValue;\r\n\t\t\t$this->Nama->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jumlah\r\n\t\t\t$this->Jumlah->ViewValue = $this->Jumlah->CurrentValue;\r\n\t\t\t$this->Jumlah->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\tif (strval($this->Provinsi->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Provinsi->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $this->Provinsi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Provinsi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Provinsi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\tif (strval($this->Area->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Area->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Area->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Area->ViewValue = $this->Area->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Area->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Area->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->ViewValue = $this->CP->CurrentValue;\r\n\t\t\t$this->CP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoContact\r\n\t\t\t$this->NoContact->ViewValue = $this->NoContact->CurrentValue;\r\n\t\t\t$this->NoContact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->ViewValue = $this->Tanggal->CurrentValue;\r\n\t\t\t$this->Tanggal->ViewValue = ew_FormatDateTime($this->Tanggal->ViewValue, 7);\r\n\t\t\t$this->Tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jam\r\n\t\t\t$this->Jam->ViewValue = $this->Jam->CurrentValue;\r\n\t\t\t$this->Jam->ViewValue = ew_FormatDateTime($this->Jam->ViewValue, 4);\r\n\t\t\t$this->Jam->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\tif (strval($this->Vechicle->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Vechicle->CurrentValue) {\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Vechicle->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Vechicle->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\tif (strval($this->Type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id`\" . ew_SearchString(\"=\", $this->Type->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Type->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\tif (strval($this->Site->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Site->CurrentValue) {\r\n\t\t\t\t\tcase $this->Site->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Site->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Site->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Site->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\tif (strval($this->Status->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Status->CurrentValue) {\r\n\t\t\t\t\tcase $this->Status->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Status->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Status->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// UserID\r\n\t\t\t$this->_UserID->ViewValue = $this->_UserID->CurrentValue;\r\n\t\t\t$this->_UserID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// TglInput\r\n\t\t\t$this->TglInput->ViewValue = $this->TglInput->CurrentValue;\r\n\t\t\t$this->TglInput->ViewValue = ew_FormatDateTime($this->TglInput->ViewValue, 7);\r\n\t\t\t$this->TglInput->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\tif (strval($this->visit->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->visit->CurrentValue) {\r\n\t\t\t\t\tcase $this->visit->FldTagValue(1):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->visit->FldTagValue(2):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->visit->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->visit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nama->HrefValue = \"\";\r\n\t\t\t$this->Nama->TooltipValue = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Provinsi->HrefValue = \"\";\r\n\t\t\t$this->Provinsi->TooltipValue = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Area->HrefValue = \"\";\r\n\t\t\t$this->Area->TooltipValue = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CP->HrefValue = \"\";\r\n\t\t\t$this->CP->TooltipValue = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->HrefValue = \"\";\r\n\t\t\t$this->Tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Vechicle->HrefValue = \"\";\r\n\t\t\t$this->Vechicle->TooltipValue = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Type->HrefValue = \"\";\r\n\t\t\t$this->Type->TooltipValue = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Site->HrefValue = \"\";\r\n\t\t\t$this->Site->TooltipValue = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Status->HrefValue = \"\";\r\n\t\t\t$this->Status->TooltipValue = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->visit->HrefValue = \"\";\r\n\t\t\t$this->visit->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nama->EditValue = ew_HtmlEncode($this->Nama->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Nama->PlaceHolder = ew_RemoveHtml($this->Nama->FldCaption());\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Provinsi->EditValue = $arwrk;\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Prov` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Area->EditValue = $arwrk;\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->EditCustomAttributes = \"\";\r\n\t\t\t$this->CP->EditValue = ew_HtmlEncode($this->CP->AdvancedSearch->SearchValue);\r\n\t\t\t$this->CP->PlaceHolder = ew_RemoveHtml($this->CP->FldCaption());\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue2, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(1), $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(2), $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Vechicle->EditValue = $arwrk;\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Type->EditValue = $arwrk;\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->EditCustomAttributes = \"\";\r\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn() && !$this->UserIDAllow(\"search\")) { // Non system admin\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sFilterWrk = $GLOBALS[\"user\"]->AddUserIDFilter(\"\");\r\n\t\t\t$sSqlWrk = \"SELECT `site`, `site` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `user`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Site, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t} else {\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(1), $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(2), $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(1), $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(2), $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->FldTagValue(2));\r\n\t\t\t$this->Status->EditValue = $arwrk;\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(1), $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(2), $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->FldTagValue(2));\r\n\t\t\t$this->visit->EditValue = $arwrk;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\tglobal $conn, $Security, $dpp_proveedores;\n\n\t// Call Row Rendering event\n\t$dpp_proveedores->Row_Rendering();\n\n\t// Common render codes for all row types\n\t// provee_id\n\n\t$dpp_proveedores->provee_id->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_id->CellCssClass = \"\";\n\n\t// provee_rut\n\t$dpp_proveedores->provee_rut->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_rut->CellCssClass = \"\";\n\n\t// provee_dig\n\t$dpp_proveedores->provee_dig->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dig->CellCssClass = \"\";\n\n\t// provee_cat_juri\n\t$dpp_proveedores->provee_cat_juri->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_cat_juri->CellCssClass = \"\";\n\n\t// provee_nombre\n\t$dpp_proveedores->provee_nombre->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_nombre->CellCssClass = \"\";\n\n\t// provee_paterno\n\t$dpp_proveedores->provee_paterno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_paterno->CellCssClass = \"\";\n\n\t// provee_materno\n\t$dpp_proveedores->provee_materno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_materno->CellCssClass = \"\";\n\n\t// provee_dir\n\t$dpp_proveedores->provee_dir->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dir->CellCssClass = \"\";\n\n\t// provee_fono\n\t$dpp_proveedores->provee_fono->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_fono->CellCssClass = \"\";\n\tif ($dpp_proveedores->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->ViewValue = $dpp_proveedores->provee_id->CurrentValue;\n\t\t$dpp_proveedores->provee_id->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_id->CssClass = \"\";\n\t\t$dpp_proveedores->provee_id->ViewCustomAttributes = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->ViewValue = $dpp_proveedores->provee_rut->CurrentValue;\n\t\t$dpp_proveedores->provee_rut->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_rut->CssClass = \"\";\n\t\t$dpp_proveedores->provee_rut->ViewCustomAttributes = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->ViewValue = $dpp_proveedores->provee_dig->CurrentValue;\n\t\t$dpp_proveedores->provee_dig->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dig->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dig->ViewCustomAttributes = \"\";\n\n\t\t// provee_cat_juri\n\t\tif (!is_null($dpp_proveedores->provee_cat_juri->CurrentValue)) {\n\t\t\tswitch ($dpp_proveedores->provee_cat_juri->CurrentValue) {\n\t\t\t\tcase \"Natural\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Natural\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Juridica\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Juridica\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = $dpp_proveedores->provee_cat_juri->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = NULL;\n\t\t}\n\t\t$dpp_proveedores->provee_cat_juri->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->CssClass = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->ViewCustomAttributes = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->ViewValue = $dpp_proveedores->provee_nombre->CurrentValue;\n\t\t$dpp_proveedores->provee_nombre->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_nombre->CssClass = \"\";\n\t\t$dpp_proveedores->provee_nombre->ViewCustomAttributes = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->ViewValue = $dpp_proveedores->provee_paterno->CurrentValue;\n\t\t$dpp_proveedores->provee_paterno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_paterno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_paterno->ViewCustomAttributes = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->ViewValue = $dpp_proveedores->provee_materno->CurrentValue;\n\t\t$dpp_proveedores->provee_materno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_materno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_materno->ViewCustomAttributes = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->ViewValue = $dpp_proveedores->provee_dir->CurrentValue;\n\t\t$dpp_proveedores->provee_dir->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dir->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dir->ViewCustomAttributes = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->ViewValue = $dpp_proveedores->provee_fono->CurrentValue;\n\t\t$dpp_proveedores->provee_fono->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_fono->CssClass = \"\";\n\t\t$dpp_proveedores->provee_fono->ViewCustomAttributes = \"\";\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->HrefValue = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->HrefValue = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->HrefValue = \"\";\n\n\t\t// provee_cat_juri\n\t\t$dpp_proveedores->provee_cat_juri->HrefValue = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->HrefValue = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->HrefValue = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->HrefValue = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->HrefValue = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->HrefValue = \"\";\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_ADD) { // Add row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\t}\n\n\t// Call Row Rendered event\n\t$dpp_proveedores->Row_Rendered();\n}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tgl\n\t\t// no_spp\n\t\t// jns_spp\n\t\t// kd_mata\n\t\t// urai\n\t\t// jmlh\n\t\t// jmlh1\n\t\t// jmlh2\n\t\t// jmlh3\n\t\t// jmlh4\n\t\t// nm_perus\n\t\t// alamat\n\t\t// npwp\n\t\t// pimpinan\n\t\t// bank\n\t\t// rek\n\t\t// nospm\n\t\t// tglspm\n\t\t// ppn\n\t\t// ps21\n\t\t// ps22\n\t\t// ps23\n\t\t// ps4\n\t\t// kodespm\n\t\t// nambud\n\t\t// nppk\n\t\t// nipppk\n\t\t// prog\n\t\t// prog1\n\t\t// bayar\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tgl\n\t\t$this->tgl->ViewValue = $this->tgl->CurrentValue;\n\t\t$this->tgl->ViewValue = ew_FormatDateTime($this->tgl->ViewValue, 0);\n\t\t$this->tgl->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// jns_spp\n\t\t$this->jns_spp->ViewValue = $this->jns_spp->CurrentValue;\n\t\t$this->jns_spp->ViewCustomAttributes = \"\";\n\n\t\t// kd_mata\n\t\t$this->kd_mata->ViewValue = $this->kd_mata->CurrentValue;\n\t\t$this->kd_mata->ViewCustomAttributes = \"\";\n\n\t\t// urai\n\t\t$this->urai->ViewValue = $this->urai->CurrentValue;\n\t\t$this->urai->ViewCustomAttributes = \"\";\n\n\t\t// jmlh\n\t\t$this->jmlh->ViewValue = $this->jmlh->CurrentValue;\n\t\t$this->jmlh->ViewCustomAttributes = \"\";\n\n\t\t// jmlh1\n\t\t$this->jmlh1->ViewValue = $this->jmlh1->CurrentValue;\n\t\t$this->jmlh1->ViewCustomAttributes = \"\";\n\n\t\t// jmlh2\n\t\t$this->jmlh2->ViewValue = $this->jmlh2->CurrentValue;\n\t\t$this->jmlh2->ViewCustomAttributes = \"\";\n\n\t\t// jmlh3\n\t\t$this->jmlh3->ViewValue = $this->jmlh3->CurrentValue;\n\t\t$this->jmlh3->ViewCustomAttributes = \"\";\n\n\t\t// jmlh4\n\t\t$this->jmlh4->ViewValue = $this->jmlh4->CurrentValue;\n\t\t$this->jmlh4->ViewCustomAttributes = \"\";\n\n\t\t// nm_perus\n\t\t$this->nm_perus->ViewValue = $this->nm_perus->CurrentValue;\n\t\t$this->nm_perus->ViewCustomAttributes = \"\";\n\n\t\t// alamat\n\t\t$this->alamat->ViewValue = $this->alamat->CurrentValue;\n\t\t$this->alamat->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan\n\t\t$this->pimpinan->ViewValue = $this->pimpinan->CurrentValue;\n\t\t$this->pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// bank\n\t\t$this->bank->ViewValue = $this->bank->CurrentValue;\n\t\t$this->bank->ViewCustomAttributes = \"\";\n\n\t\t// rek\n\t\t$this->rek->ViewValue = $this->rek->CurrentValue;\n\t\t$this->rek->ViewCustomAttributes = \"\";\n\n\t\t// nospm\n\t\t$this->nospm->ViewValue = $this->nospm->CurrentValue;\n\t\t$this->nospm->ViewCustomAttributes = \"\";\n\n\t\t// tglspm\n\t\t$this->tglspm->ViewValue = $this->tglspm->CurrentValue;\n\t\t$this->tglspm->ViewValue = ew_FormatDateTime($this->tglspm->ViewValue, 0);\n\t\t$this->tglspm->ViewCustomAttributes = \"\";\n\n\t\t// ppn\n\t\t$this->ppn->ViewValue = $this->ppn->CurrentValue;\n\t\t$this->ppn->ViewCustomAttributes = \"\";\n\n\t\t// ps21\n\t\t$this->ps21->ViewValue = $this->ps21->CurrentValue;\n\t\t$this->ps21->ViewCustomAttributes = \"\";\n\n\t\t// ps22\n\t\t$this->ps22->ViewValue = $this->ps22->CurrentValue;\n\t\t$this->ps22->ViewCustomAttributes = \"\";\n\n\t\t// ps23\n\t\t$this->ps23->ViewValue = $this->ps23->CurrentValue;\n\t\t$this->ps23->ViewCustomAttributes = \"\";\n\n\t\t// ps4\n\t\t$this->ps4->ViewValue = $this->ps4->CurrentValue;\n\t\t$this->ps4->ViewCustomAttributes = \"\";\n\n\t\t// kodespm\n\t\t$this->kodespm->ViewValue = $this->kodespm->CurrentValue;\n\t\t$this->kodespm->ViewCustomAttributes = \"\";\n\n\t\t// nambud\n\t\t$this->nambud->ViewValue = $this->nambud->CurrentValue;\n\t\t$this->nambud->ViewCustomAttributes = \"\";\n\n\t\t// nppk\n\t\t$this->nppk->ViewValue = $this->nppk->CurrentValue;\n\t\t$this->nppk->ViewCustomAttributes = \"\";\n\n\t\t// nipppk\n\t\t$this->nipppk->ViewValue = $this->nipppk->CurrentValue;\n\t\t$this->nipppk->ViewCustomAttributes = \"\";\n\n\t\t// prog\n\t\t$this->prog->ViewValue = $this->prog->CurrentValue;\n\t\t$this->prog->ViewCustomAttributes = \"\";\n\n\t\t// prog1\n\t\t$this->prog1->ViewValue = $this->prog1->CurrentValue;\n\t\t$this->prog1->ViewCustomAttributes = \"\";\n\n\t\t// bayar\n\t\t$this->bayar->ViewValue = $this->bayar->CurrentValue;\n\t\t$this->bayar->ViewCustomAttributes = \"\";\n\n\t\t\t// tgl\n\t\t\t$this->tgl->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl->HrefValue = \"\";\n\t\t\t$this->tgl->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// jns_spp\n\t\t\t$this->jns_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_spp->HrefValue = \"\";\n\t\t\t$this->jns_spp->TooltipValue = \"\";\n\n\t\t\t// kd_mata\n\t\t\t$this->kd_mata->LinkCustomAttributes = \"\";\n\t\t\t$this->kd_mata->HrefValue = \"\";\n\t\t\t$this->kd_mata->TooltipValue = \"\";\n\n\t\t\t// urai\n\t\t\t$this->urai->LinkCustomAttributes = \"\";\n\t\t\t$this->urai->HrefValue = \"\";\n\t\t\t$this->urai->TooltipValue = \"\";\n\n\t\t\t// jmlh\n\t\t\t$this->jmlh->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh->HrefValue = \"\";\n\t\t\t$this->jmlh->TooltipValue = \"\";\n\n\t\t\t// jmlh1\n\t\t\t$this->jmlh1->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh1->HrefValue = \"\";\n\t\t\t$this->jmlh1->TooltipValue = \"\";\n\n\t\t\t// jmlh2\n\t\t\t$this->jmlh2->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh2->HrefValue = \"\";\n\t\t\t$this->jmlh2->TooltipValue = \"\";\n\n\t\t\t// jmlh3\n\t\t\t$this->jmlh3->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh3->HrefValue = \"\";\n\t\t\t$this->jmlh3->TooltipValue = \"\";\n\n\t\t\t// jmlh4\n\t\t\t$this->jmlh4->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh4->HrefValue = \"\";\n\t\t\t$this->jmlh4->TooltipValue = \"\";\n\n\t\t\t// nm_perus\n\t\t\t$this->nm_perus->LinkCustomAttributes = \"\";\n\t\t\t$this->nm_perus->HrefValue = \"\";\n\t\t\t$this->nm_perus->TooltipValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$this->alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->alamat->HrefValue = \"\";\n\t\t\t$this->alamat->TooltipValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$this->npwp->LinkCustomAttributes = \"\";\n\t\t\t$this->npwp->HrefValue = \"\";\n\t\t\t$this->npwp->TooltipValue = \"\";\n\n\t\t\t// pimpinan\n\t\t\t$this->pimpinan->LinkCustomAttributes = \"\";\n\t\t\t$this->pimpinan->HrefValue = \"\";\n\t\t\t$this->pimpinan->TooltipValue = \"\";\n\n\t\t\t// bank\n\t\t\t$this->bank->LinkCustomAttributes = \"\";\n\t\t\t$this->bank->HrefValue = \"\";\n\t\t\t$this->bank->TooltipValue = \"\";\n\n\t\t\t// rek\n\t\t\t$this->rek->LinkCustomAttributes = \"\";\n\t\t\t$this->rek->HrefValue = \"\";\n\t\t\t$this->rek->TooltipValue = \"\";\n\n\t\t\t// nospm\n\t\t\t$this->nospm->LinkCustomAttributes = \"\";\n\t\t\t$this->nospm->HrefValue = \"\";\n\t\t\t$this->nospm->TooltipValue = \"\";\n\n\t\t\t// tglspm\n\t\t\t$this->tglspm->LinkCustomAttributes = \"\";\n\t\t\t$this->tglspm->HrefValue = \"\";\n\t\t\t$this->tglspm->TooltipValue = \"\";\n\n\t\t\t// ppn\n\t\t\t$this->ppn->LinkCustomAttributes = \"\";\n\t\t\t$this->ppn->HrefValue = \"\";\n\t\t\t$this->ppn->TooltipValue = \"\";\n\n\t\t\t// ps21\n\t\t\t$this->ps21->LinkCustomAttributes = \"\";\n\t\t\t$this->ps21->HrefValue = \"\";\n\t\t\t$this->ps21->TooltipValue = \"\";\n\n\t\t\t// ps22\n\t\t\t$this->ps22->LinkCustomAttributes = \"\";\n\t\t\t$this->ps22->HrefValue = \"\";\n\t\t\t$this->ps22->TooltipValue = \"\";\n\n\t\t\t// ps23\n\t\t\t$this->ps23->LinkCustomAttributes = \"\";\n\t\t\t$this->ps23->HrefValue = \"\";\n\t\t\t$this->ps23->TooltipValue = \"\";\n\n\t\t\t// ps4\n\t\t\t$this->ps4->LinkCustomAttributes = \"\";\n\t\t\t$this->ps4->HrefValue = \"\";\n\t\t\t$this->ps4->TooltipValue = \"\";\n\n\t\t\t// kodespm\n\t\t\t$this->kodespm->LinkCustomAttributes = \"\";\n\t\t\t$this->kodespm->HrefValue = \"\";\n\t\t\t$this->kodespm->TooltipValue = \"\";\n\n\t\t\t// nambud\n\t\t\t$this->nambud->LinkCustomAttributes = \"\";\n\t\t\t$this->nambud->HrefValue = \"\";\n\t\t\t$this->nambud->TooltipValue = \"\";\n\n\t\t\t// nppk\n\t\t\t$this->nppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nppk->HrefValue = \"\";\n\t\t\t$this->nppk->TooltipValue = \"\";\n\n\t\t\t// nipppk\n\t\t\t$this->nipppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nipppk->HrefValue = \"\";\n\t\t\t$this->nipppk->TooltipValue = \"\";\n\n\t\t\t// prog\n\t\t\t$this->prog->LinkCustomAttributes = \"\";\n\t\t\t$this->prog->HrefValue = \"\";\n\t\t\t$this->prog->TooltipValue = \"\";\n\n\t\t\t// prog1\n\t\t\t$this->prog1->LinkCustomAttributes = \"\";\n\t\t\t$this->prog1->HrefValue = \"\";\n\t\t\t$this->prog1->TooltipValue = \"\";\n\n\t\t\t// bayar\n\t\t\t$this->bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->bayar->HrefValue = \"\";\n\t\t\t$this->bayar->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $selection_grade_point;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$selection_grade_point->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// selection_grade_points_id\n\n\t\t$selection_grade_point->selection_grade_points_id->CellCssStyle = \"\"; $selection_grade_point->selection_grade_points_id->CellCssClass = \"\";\n\t\t$selection_grade_point->selection_grade_points_id->CellAttrs = array(); $selection_grade_point->selection_grade_points_id->ViewAttrs = array(); $selection_grade_point->selection_grade_points_id->EditAttrs = array();\n\n\t\t// grade_point\n\t\t$selection_grade_point->grade_point->CellCssStyle = \"\"; $selection_grade_point->grade_point->CellCssClass = \"\";\n\t\t$selection_grade_point->grade_point->CellAttrs = array(); $selection_grade_point->grade_point->ViewAttrs = array(); $selection_grade_point->grade_point->EditAttrs = array();\n\n\t\t// min_grade\n\t\t$selection_grade_point->min_grade->CellCssStyle = \"\"; $selection_grade_point->min_grade->CellCssClass = \"\";\n\t\t$selection_grade_point->min_grade->CellAttrs = array(); $selection_grade_point->min_grade->ViewAttrs = array(); $selection_grade_point->min_grade->EditAttrs = array();\n\n\t\t// max_grade\n\t\t$selection_grade_point->max_grade->CellCssStyle = \"\"; $selection_grade_point->max_grade->CellCssClass = \"\";\n\t\t$selection_grade_point->max_grade->CellAttrs = array(); $selection_grade_point->max_grade->ViewAttrs = array(); $selection_grade_point->max_grade->EditAttrs = array();\n\t\tif ($selection_grade_point->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewValue = $selection_grade_point->selection_grade_points_id->CurrentValue;\n\t\t\t$selection_grade_point->selection_grade_points_id->CssStyle = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->CssClass = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewCustomAttributes = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->ViewValue = $selection_grade_point->grade_point->CurrentValue;\n\t\t\t$selection_grade_point->grade_point->CssStyle = \"\";\n\t\t\t$selection_grade_point->grade_point->CssClass = \"\";\n\t\t\t$selection_grade_point->grade_point->ViewCustomAttributes = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->ViewValue = $selection_grade_point->min_grade->CurrentValue;\n\t\t\t$selection_grade_point->min_grade->CssStyle = \"\";\n\t\t\t$selection_grade_point->min_grade->CssClass = \"\";\n\t\t\t$selection_grade_point->min_grade->ViewCustomAttributes = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->ViewValue = $selection_grade_point->max_grade->CurrentValue;\n\t\t\t$selection_grade_point->max_grade->CssStyle = \"\";\n\t\t\t$selection_grade_point->max_grade->CssClass = \"\";\n\t\t\t$selection_grade_point->max_grade->ViewCustomAttributes = \"\";\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->HrefValue = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->TooltipValue = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->HrefValue = \"\";\n\t\t\t$selection_grade_point->grade_point->TooltipValue = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->HrefValue = \"\";\n\t\t\t$selection_grade_point->min_grade->TooltipValue = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->HrefValue = \"\";\n\t\t\t$selection_grade_point->max_grade->TooltipValue = \"\";\n\t\t} elseif ($selection_grade_point->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->EditValue = $selection_grade_point->selection_grade_points_id->CurrentValue;\n\t\t\t$selection_grade_point->selection_grade_points_id->CssStyle = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->CssClass = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewCustomAttributes = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->grade_point->EditValue = ew_HtmlEncode($selection_grade_point->grade_point->CurrentValue);\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->min_grade->EditValue = ew_HtmlEncode($selection_grade_point->min_grade->CurrentValue);\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->max_grade->EditValue = ew_HtmlEncode($selection_grade_point->max_grade->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// selection_grade_points_id\n\n\t\t\t$selection_grade_point->selection_grade_points_id->HrefValue = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->HrefValue = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->HrefValue = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($selection_grade_point->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$selection_grade_point->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fbid\n\t\t// name\n\t\t// email\n\t\t// password\n\t\t// validated_mobile\n\t\t// role_id\n\t\t// image\n\t\t// newsletter\n\t\t// points\n\t\t// last_modified\n\t\t// p2\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// id\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->ViewValue = $this->fbid->CurrentValue;\n\t\t\t$this->fbid->ViewCustomAttributes = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->ViewValue = $this->password->CurrentValue;\n\t\t\t$this->password->ViewCustomAttributes = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->ViewValue = $this->validated_mobile->CurrentValue;\n\t\t\t$this->validated_mobile->ViewCustomAttributes = \"\";\n\n\t\t\t// role_id\n\t\t\tif (strval($this->role_id->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->role_id->CurrentValue) {\n\t\t\t\t\tcase $this->role_id->FldTagValue(1):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->role_id->FldTagValue(2):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->role_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->role_id->ViewCustomAttributes = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->ViewValue = $this->image->CurrentValue;\n\t\t\t$this->image->ViewCustomAttributes = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->ViewValue = $this->newsletter->CurrentValue;\n\t\t\t$this->newsletter->ViewCustomAttributes = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->ViewValue = $this->points->CurrentValue;\n\t\t\t$this->points->ViewCustomAttributes = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->ViewValue = $this->last_modified->CurrentValue;\n\t\t\t$this->last_modified->ViewValue = ew_FormatDateTime($this->last_modified->ViewValue, 7);\n\t\t\t$this->last_modified->ViewCustomAttributes = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->ViewValue = $this->p2->CurrentValue;\n\t\t\t$this->p2->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->LinkCustomAttributes = \"\";\n\t\t\t$this->fbid->HrefValue = \"\";\n\t\t\t$this->fbid->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->LinkCustomAttributes = \"\";\n\t\t\t$this->password->HrefValue = \"\";\n\t\t\t$this->password->TooltipValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->LinkCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\t\t\t$this->validated_mobile->TooltipValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->LinkCustomAttributes = \"\";\n\t\t\t$this->role_id->HrefValue = \"\";\n\t\t\t$this->role_id->TooltipValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->LinkCustomAttributes = \"\";\n\t\t\t$this->image->HrefValue = \"\";\n\t\t\t$this->image->TooltipValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->LinkCustomAttributes = \"\";\n\t\t\t$this->newsletter->HrefValue = \"\";\n\t\t\t$this->newsletter->TooltipValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->LinkCustomAttributes = \"\";\n\t\t\t$this->points->HrefValue = \"\";\n\t\t\t$this->points->TooltipValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->LinkCustomAttributes = \"\";\n\t\t\t$this->last_modified->HrefValue = \"\";\n\t\t\t$this->last_modified->TooltipValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->LinkCustomAttributes = \"\";\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t\t$this->p2->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// id\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->EditCustomAttributes = \"\";\n\t\t\t$this->fbid->EditValue = ew_HtmlEncode($this->fbid->CurrentValue);\n\n\t\t\t// name\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->CurrentValue);\n\n\t\t\t// email\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->CurrentValue);\n\n\t\t\t// password\n\t\t\t$this->password->EditCustomAttributes = \"\";\n\t\t\t$this->password->EditValue = ew_HtmlEncode($this->password->CurrentValue);\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->EditCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->EditValue = ew_HtmlEncode($this->validated_mobile->CurrentValue);\n\n\t\t\t// role_id\n\t\t\t$this->role_id->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(1), $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(2), $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->role_id->EditValue = $arwrk;\n\n\t\t\t// image\n\t\t\t$this->image->EditCustomAttributes = \"\";\n\t\t\t$this->image->EditValue = ew_HtmlEncode($this->image->CurrentValue);\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->EditCustomAttributes = \"\";\n\t\t\t$this->newsletter->EditValue = ew_HtmlEncode($this->newsletter->CurrentValue);\n\n\t\t\t// points\n\t\t\t$this->points->EditCustomAttributes = \"\";\n\t\t\t$this->points->EditValue = ew_HtmlEncode($this->points->CurrentValue);\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->EditCustomAttributes = \"\";\n\t\t\t$this->last_modified->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->last_modified->CurrentValue, 7));\n\n\t\t\t// p2\n\t\t\t$this->p2->EditCustomAttributes = \"\";\n\t\t\t$this->p2->EditValue = ew_HtmlEncode($this->p2->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// id\n\n\t\t\t$this->id->HrefValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->HrefValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->HrefValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->HrefValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->HrefValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->HrefValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->HrefValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->HrefValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->HrefValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $tbl_profile;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$tbl_profile->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// facultyprofile_ID\n\n\t\t$tbl_profile->facultyprofile_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// faculty_ID\n\t\t$tbl_profile->faculty_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// faculty_name\n\t\t$tbl_profile->faculty_name->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_ID\n\t\t$tbl_profile->collectionPeriod_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// cu\n\t\t$tbl_profile->cu->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_ay\n\t\t$tbl_profile->collectionPeriod_ay->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_sem\n\t\t$tbl_profile->collectionPeriod_sem->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_cutOffDate\n\t\t$tbl_profile->collectionPeriod_cutOffDate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// unitID\n\t\t$tbl_profile->unitID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_homeUnit_ID\n\t\t$tbl_profile->facultyprofile_homeUnit_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_isHomeUnit\n\t\t$tbl_profile->facultyprofile_isHomeUnit->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyGroup_CHEDCode\n\t\t$tbl_profile->facultyGroup_CHEDCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyRank_ID\n\t\t$tbl_profile->facultyRank_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_sg\n\t\t$tbl_profile->facultyprofile_sg->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_annualSalary\n\t\t$tbl_profile->facultyprofile_annualSalary->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_fte\n\t\t$tbl_profile->facultyprofile_fte->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_tenureCode\n\t\t$tbl_profile->facultyprofile_tenureCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_leaveCode\n\t\t$tbl_profile->facultyprofile_leaveCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_disCHED_disciplineMajorCode_gen\n\t\t$tbl_profile->facultyprofile_disCHED_disciplineMajorCode_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// disCHED_disciplineCode_gen\n\t\t$tbl_profile->disCHED_disciplineCode_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_specificDiscipline_2_primaryTeachingLoad\n\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_basic\n\t\t$tbl_profile->facultyprofile_labHrs_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_basic\n\t\t$tbl_profile->facultyprofile_lecHrs_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_basic\n\t\t// facultyprofile_labSCH_basic\n\n\t\t$tbl_profile->facultyprofile_labSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_basic\n\t\t$tbl_profile->facultyprofile_lecSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_basic\n\t\t$tbl_profile->facultyprofile_totalSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labCr_ugrad\n\t\t$tbl_profile->facultyprofile_labCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecCr_ugrad\n\t\t$tbl_profile->facultyprofile_lecCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecCr_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalCr_ugrad\n\t\t$tbl_profile->facultyprofile_totalCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_ugrad\n\t\t$tbl_profile->facultyprofile_labHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_ugrad\n\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecHrs_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_ugrad\n\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labSCH_ugrad\n\t\t$tbl_profile->facultyprofile_labSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_ugrad\n\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecSCH_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_ugrad\n\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labCr_graduate\n\t\t$tbl_profile->facultyprofile_labCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecCr_graduate\n\t\t$tbl_profile->facultyprofile_lecCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecCr_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalCr_graduate\n\t\t$tbl_profile->facultyprofile_totalCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_graduate\n\t\t$tbl_profile->facultyprofile_labHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_graduate\n\t\t$tbl_profile->facultyprofile_lecHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecHrs_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_graduate\n\t\t$tbl_profile->facultyprofile_totalHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labSCH_graduate\n\t\t$tbl_profile->facultyprofile_labSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_graduate\n\t\t$tbl_profile->facultyprofile_lecSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecSCH_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_graduate\n\t\t$tbl_profile->facultyprofile_totalSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_researchLoad\n\t\t$tbl_profile->facultyprofile_researchLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_extensionServicesLoad\n\t\t$tbl_profile->facultyprofile_extensionServicesLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_studyLoad\n\t\t$tbl_profile->facultyprofile_studyLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_forProductionLoad\n\t\t$tbl_profile->facultyprofile_forProductionLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_administrativeLoad\n\t\t$tbl_profile->facultyprofile_administrativeLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_otherLoadCredits\n\t\t$tbl_profile->facultyprofile_otherLoadCredits->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_total_nonTeachingLoad\n\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_remarks\n\t\t$tbl_profile->facultyprofile_remarks->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_status\n\t\t$tbl_profile->collectionPeriod_status->CellCssStyle = \"white-space: nowrap;\";\n\t\tif ($tbl_profile->RowType == UP_ROWTYPE_VIEW) { // View row\n\n\t\t\t// faculty_name\n\t\t\t$tbl_profile->faculty_name->ViewValue = $tbl_profile->faculty_name->CurrentValue;\n\t\t\t$tbl_profile->faculty_name->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyGroup_CHEDCode\n\t\t\tif (strval($tbl_profile->facultyGroup_CHEDCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`facultyGroup_CHEDCode` = '\" . up_AdjustSql($tbl_profile->facultyGroup_CHEDCode->CurrentValue) . \"'\";\n\t\t\t$sSqlWrk = \"SELECT `facultyGroup_description` FROM `ref_facultygroup`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `facultyGroup_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = $rswrk->fields('facultyGroup_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = $tbl_profile->facultyGroup_CHEDCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyRank_ID\n\t\t\tif (strval($tbl_profile->facultyRank_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`facultyRank_ID` = \" . up_AdjustSql($tbl_profile->facultyRank_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `facultyRank_UPRank` FROM `ref_facultyrank`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `facultyRank_UPRank` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = $rswrk->fields('facultyRank_UPRank');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = $tbl_profile->facultyRank_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyRank_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_sg\n\t\t\t$tbl_profile->facultyprofile_sg->ViewValue = $tbl_profile->facultyprofile_sg->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_sg->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_annualSalary\n\t\t\t$tbl_profile->facultyprofile_annualSalary->ViewValue = $tbl_profile->facultyprofile_annualSalary->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_annualSalary->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_tenureCode\n\t\t\tif (strval($tbl_profile->facultyprofile_tenureCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`tenureCode_ID` = \" . up_AdjustSql($tbl_profile->facultyprofile_tenureCode->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `tenureCode_description` FROM `ref_tenurecode`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `tenureCode_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = $rswrk->fields('tenureCode_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = $tbl_profile->facultyprofile_tenureCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_leaveCode\n\t\t\tif (strval($tbl_profile->facultyprofile_leaveCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`leaveCode_ID` = \" . up_AdjustSql($tbl_profile->facultyprofile_leaveCode->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `leaveCode_description` FROM `ref_leavecode`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `leaveCode_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = $rswrk->fields('leaveCode_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = $tbl_profile->facultyprofile_leaveCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t\tif (strval($tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`disCHED_disciplineSpecific_code` = \" . up_AdjustSql($tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `disCHED_disciplineSpecific_nameList` FROM `ref_disciplinechedcodes_minor`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `disCHED_disciplineSpecific_nameList` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = $rswrk->fields('disCHED_disciplineSpecific_nameList');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = $tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_2_primaryTeachingLoad\n\t\t\tif (strval($tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`disCHED_disciplineSpecific_code` = \" . up_AdjustSql($tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `disCHED_disciplineSpecific_nameList` FROM `ref_disciplinechedcodes_minor`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `disCHED_disciplineSpecific_nameList` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = $rswrk->fields('disCHED_disciplineSpecific_nameList');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = $tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_basic\n\t\t\t$tbl_profile->facultyprofile_labHrs_basic->ViewValue = $tbl_profile->facultyprofile_labHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_basic\n\t\t\t$tbl_profile->facultyprofile_lecHrs_basic->ViewValue = $tbl_profile->facultyprofile_lecHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_basic\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->ViewValue = $tbl_profile->facultyprofile_totalHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_basic\n\t\t\t$tbl_profile->facultyprofile_labSCH_basic->ViewValue = $tbl_profile->facultyprofile_labSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_basic\n\t\t\t$tbl_profile->facultyprofile_lecSCH_basic->ViewValue = $tbl_profile->facultyprofile_lecSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_basic\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->ViewValue = $tbl_profile->facultyprofile_totalSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_labCr_ugrad->ViewValue = $tbl_profile->facultyprofile_labCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecCr_ugrad->ViewValue = $tbl_profile->facultyprofile_lecCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->ViewValue = $tbl_profile->facultyprofile_totalCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_labHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_labHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_lecHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_totalHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_labSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_labSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_lecSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_totalSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labCr_graduate\n\t\t\t$tbl_profile->facultyprofile_labCr_graduate->ViewValue = $tbl_profile->facultyprofile_labCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecCr_graduate\n\t\t\t$tbl_profile->facultyprofile_lecCr_graduate->ViewValue = $tbl_profile->facultyprofile_lecCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecCr_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalCr_graduate\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->ViewValue = $tbl_profile->facultyprofile_totalCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_labHrs_graduate->ViewValue = $tbl_profile->facultyprofile_labHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_lecHrs_graduate->ViewValue = $tbl_profile->facultyprofile_lecHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->ViewValue = $tbl_profile->facultyprofile_totalHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_labSCH_graduate->ViewValue = $tbl_profile->facultyprofile_labSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_lecSCH_graduate->ViewValue = $tbl_profile->facultyprofile_lecSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->ViewValue = $tbl_profile->facultyprofile_totalSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_researchLoad\n\t\t\t$tbl_profile->facultyprofile_researchLoad->ViewValue = $tbl_profile->facultyprofile_researchLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_researchLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_extensionServicesLoad\n\t\t\t$tbl_profile->facultyprofile_extensionServicesLoad->ViewValue = $tbl_profile->facultyprofile_extensionServicesLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_extensionServicesLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_studyLoad\n\t\t\t$tbl_profile->facultyprofile_studyLoad->ViewValue = $tbl_profile->facultyprofile_studyLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_studyLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_forProductionLoad\n\t\t\t$tbl_profile->facultyprofile_forProductionLoad->ViewValue = $tbl_profile->facultyprofile_forProductionLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_forProductionLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_administrativeLoad\n\t\t\t$tbl_profile->facultyprofile_administrativeLoad->ViewValue = $tbl_profile->facultyprofile_administrativeLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_administrativeLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_otherLoadCredits\n\t\t\t$tbl_profile->facultyprofile_otherLoadCredits->ViewValue = $tbl_profile->facultyprofile_otherLoadCredits->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_otherLoadCredits->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_total_nonTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->ViewValue = $tbl_profile->facultyprofile_total_nonTeachingLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->ViewValue = $tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_remarks\n\t\t\t$tbl_profile->facultyprofile_remarks->ViewValue = $tbl_profile->facultyprofile_remarks->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_remarks->ViewCustomAttributes = \"\";\n\n\t\t\t// faculty_name\n\t\t\t$tbl_profile->faculty_name->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->faculty_name->HrefValue = \"\";\n\t\t\t$tbl_profile->faculty_name->TooltipValue = \"\";\n\n\t\t\t// facultyGroup_CHEDCode\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->TooltipValue = \"\";\n\n\t\t\t// facultyRank_ID\n\t\t\t$tbl_profile->facultyRank_ID->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyRank_ID->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyRank_ID->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_tenureCode\n\t\t\t$tbl_profile->facultyprofile_tenureCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_tenureCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_tenureCode->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_leaveCode\n\t\t\t$tbl_profile->facultyprofile_leaveCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_leaveCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_leaveCode->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_basic\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_basic\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalCr_graduate\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_total_nonTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($tbl_profile->RowType <> UP_ROWTYPE_AGGREGATEINIT)\n\t\t\t$tbl_profile->Row_Rendered();\n\t}", "public function renderListRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes\n\t\t// IncomeCode\n\t\t// IncomeName\n\t\t// IncomeDescription\n\t\t// Division\n\t\t// IncomeAmount\n\t\t// IncomeBasicRate\n\t\t// BaseIncomeCode\n\t\t// Taxable\n\t\t// AccountNo\n\t\t// JobIncluded\n\t\t// Application\n\t\t// JobExcluded\n\t\t// IncomeCode\n\n\t\t$this->IncomeCode->ViewValue = $this->IncomeCode->CurrentValue;\n\t\t$this->IncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->ViewValue = $this->IncomeName->CurrentValue;\n\t\t$this->IncomeName->ViewCustomAttributes = \"\";\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->ViewValue = $this->IncomeDescription->CurrentValue;\n\t\t$this->IncomeDescription->ViewCustomAttributes = \"\";\n\n\t\t// Division\n\t\t$curVal = strval($this->Division->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Division->ViewValue = $this->Division->lookupCacheOption($curVal);\n\t\t\tif ($this->Division->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`Division`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->Division->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Division->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->Division->ViewValue->add($this->Division->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Division->ViewValue = $this->Division->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Division->ViewValue = NULL;\n\t\t}\n\t\t$this->Division->ViewCustomAttributes = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->ViewValue = $this->IncomeAmount->CurrentValue;\n\t\t$this->IncomeAmount->ViewValue = FormatNumber($this->IncomeAmount->ViewValue, 2, -2, -2, -2);\n\t\t$this->IncomeAmount->ViewCustomAttributes = \"\";\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->ViewValue = $this->IncomeBasicRate->CurrentValue;\n\t\t$this->IncomeBasicRate->ViewValue = FormatNumber($this->IncomeBasicRate->ViewValue, 2, -2, -2, -2);\n\t\t$this->IncomeBasicRate->ViewCustomAttributes = \"\";\n\n\t\t// BaseIncomeCode\n\t\t$curVal = strval($this->BaseIncomeCode->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->lookupCacheOption($curVal);\n\t\t\tif ($this->BaseIncomeCode->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`IncomeCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->BaseIncomeCode->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$arwrk[2] = $rswrk->fields('df2');\n\t\t\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->BaseIncomeCode->ViewValue = NULL;\n\t\t}\n\t\t$this->BaseIncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// Taxable\n\t\t$curVal = strval($this->Taxable->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Taxable->ViewValue = $this->Taxable->lookupCacheOption($curVal);\n\t\t\tif ($this->Taxable->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`ChoiceCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->Taxable->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$this->Taxable->ViewValue = $this->Taxable->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Taxable->ViewValue = $this->Taxable->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Taxable->ViewValue = NULL;\n\t\t}\n\t\t$this->Taxable->ViewCustomAttributes = \"\";\n\n\t\t// AccountNo\n\t\t$curVal = strval($this->AccountNo->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->lookupCacheOption($curVal);\n\t\t\tif ($this->AccountNo->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`AccountCode`\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t$sqlWrk = $this->AccountNo->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$arwrk[2] = $rswrk->fields('df2');\n\t\t\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->AccountNo->ViewValue = NULL;\n\t\t}\n\t\t$this->AccountNo->ViewCustomAttributes = \"\";\n\n\t\t// JobIncluded\n\t\t$curVal = strval($this->JobIncluded->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->JobIncluded->ViewValue = $this->JobIncluded->lookupCacheOption($curVal);\n\t\t\tif ($this->JobIncluded->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`JobCode`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->JobIncluded->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->JobIncluded->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->JobIncluded->ViewValue->add($this->JobIncluded->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->JobIncluded->ViewValue = $this->JobIncluded->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JobIncluded->ViewValue = NULL;\n\t\t}\n\t\t$this->JobIncluded->ViewCustomAttributes = \"\";\n\n\t\t// Application\n\t\t$curVal = strval($this->Application->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Application->ViewValue = $this->Application->lookupCacheOption($curVal);\n\t\t\tif ($this->Application->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`ChoiceCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->Application->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$this->Application->ViewValue = $this->Application->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Application->ViewValue = $this->Application->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Application->ViewValue = NULL;\n\t\t}\n\t\t$this->Application->ViewCustomAttributes = \"\";\n\n\t\t// JobExcluded\n\t\t$curVal = strval($this->JobExcluded->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->JobExcluded->ViewValue = $this->JobExcluded->lookupCacheOption($curVal);\n\t\t\tif ($this->JobExcluded->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`JobCode`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->JobExcluded->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->JobExcluded->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->JobExcluded->ViewValue->add($this->JobExcluded->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->JobExcluded->ViewValue = $this->JobExcluded->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JobExcluded->ViewValue = NULL;\n\t\t}\n\t\t$this->JobExcluded->ViewCustomAttributes = \"\";\n\n\t\t// IncomeCode\n\t\t$this->IncomeCode->LinkCustomAttributes = \"\";\n\t\t$this->IncomeCode->HrefValue = \"\";\n\t\t$this->IncomeCode->TooltipValue = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->LinkCustomAttributes = \"\";\n\t\t$this->IncomeName->HrefValue = \"\";\n\t\t$this->IncomeName->TooltipValue = \"\";\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->LinkCustomAttributes = \"\";\n\t\t$this->IncomeDescription->HrefValue = \"\";\n\t\t$this->IncomeDescription->TooltipValue = \"\";\n\n\t\t// Division\n\t\t$this->Division->LinkCustomAttributes = \"\";\n\t\t$this->Division->HrefValue = \"\";\n\t\t$this->Division->TooltipValue = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->LinkCustomAttributes = \"\";\n\t\t$this->IncomeAmount->HrefValue = \"\";\n\t\t$this->IncomeAmount->TooltipValue = \"\";\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->LinkCustomAttributes = \"\";\n\t\t$this->IncomeBasicRate->HrefValue = \"\";\n\t\t$this->IncomeBasicRate->TooltipValue = \"\";\n\n\t\t// BaseIncomeCode\n\t\t$this->BaseIncomeCode->LinkCustomAttributes = \"\";\n\t\t$this->BaseIncomeCode->HrefValue = \"\";\n\t\t$this->BaseIncomeCode->TooltipValue = \"\";\n\n\t\t// Taxable\n\t\t$this->Taxable->LinkCustomAttributes = \"\";\n\t\t$this->Taxable->HrefValue = \"\";\n\t\t$this->Taxable->TooltipValue = \"\";\n\n\t\t// AccountNo\n\t\t$this->AccountNo->LinkCustomAttributes = \"\";\n\t\t$this->AccountNo->HrefValue = \"\";\n\t\t$this->AccountNo->TooltipValue = \"\";\n\n\t\t// JobIncluded\n\t\t$this->JobIncluded->LinkCustomAttributes = \"\";\n\t\t$this->JobIncluded->HrefValue = \"\";\n\t\t$this->JobIncluded->TooltipValue = \"\";\n\n\t\t// Application\n\t\t$this->Application->LinkCustomAttributes = \"\";\n\t\t$this->Application->HrefValue = \"\";\n\t\t$this->Application->TooltipValue = \"\";\n\n\t\t// JobExcluded\n\t\t$this->JobExcluded->LinkCustomAttributes = \"\";\n\t\t$this->JobExcluded->HrefValue = \"\";\n\t\t$this->JobExcluded->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->customTemplateFieldValues();\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IDXDAFTAR->EditCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->EditValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TGLREG->EditCustomAttributes = \"\";\n\t\t$this->TGLREG->EditValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->EditValue = ew_FormatDateTime($this->TGLREG->EditValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->EditValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->EditValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETERANGAN->EditCustomAttributes = \"\";\n\t\t$this->KETERANGAN->EditValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKARTU_BPJS->EditCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->EditValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKTP->EditCustomAttributes = \"\";\n\t\t$this->NOKTP->EditValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDDOKTER->EditCustomAttributes = \"\";\n\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->EditValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDPOLY->EditCustomAttributes = \"\";\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->EditValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->EditValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->EditValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDRUJUK->EditCustomAttributes = \"\";\n\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->EditValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->EditValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOJAMINAN->EditCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->EditValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SHIFT->EditCustomAttributes = \"\";\n\t\t$this->SHIFT->EditValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STATUS->EditCustomAttributes = \"\";\n\t\t$this->STATUS->EditValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETERANGAN_STATUS->EditCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->EditValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PASIENBARU->EditCustomAttributes = \"\";\n\t\t$this->PASIENBARU->EditValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t$this->NIP->EditValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASUKPOLY->EditCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->EditValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->EditValue = ew_FormatDateTime($this->MASUKPOLY->EditValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELUARPOLY->EditCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->EditValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->EditValue = ew_FormatDateTime($this->KELUARPOLY->EditValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETRUJUK->EditCustomAttributes = \"\";\n\t\t$this->KETRUJUK->EditValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETBAYAR->EditCustomAttributes = \"\";\n\t\t$this->KETBAYAR->EditValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JAMREG->EditCustomAttributes = \"\";\n\t\t$this->JAMREG->EditValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->EditValue = ew_FormatDateTime($this->JAMREG->EditValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BATAL->EditCustomAttributes = \"\";\n\t\t$this->BATAL->EditValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_SJP->EditCustomAttributes = \"\";\n\t\t$this->NO_SJP->EditValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_PESERTA->EditCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->EditValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKARTU->EditCustomAttributes = \"\";\n\t\t$this->NOKARTU->EditValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TANGGAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->EditValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->EditValue = ew_FormatDateTime($this->TANGGAL_SEP->EditValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TANGGALRUJUK_SEP->EditCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->EditValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->EditValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->EditValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELASRAWAT_SEP->EditCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->EditValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MINTA_RUJUKAN->EditCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->EditValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NORUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->EditValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PPKRUJUKANASAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->EditValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PPKPELAYANAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->EditValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JENISPERAWATAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->EditValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CATATAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->EditValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DIAGNOSAAWAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->EditValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMADIAGNOSA_SEP->EditCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->EditValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LAKALANTAS_SEP->EditCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->EditValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LOKASILAKALANTAS->EditCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->EditValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->USER->EditCustomAttributes = \"\";\n\t\t$this->USER->EditValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t$this->tanggal->EditValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->bulan->EditCustomAttributes = \"\";\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->EditValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->EditValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->EditValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tahun->EditCustomAttributes = \"\";\n\t\t$this->tahun->EditValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\n\t\t$this->id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// nombre_contacto\n\t\t// name\n\t\t// lastname\n\t\t// email\n\t\t// address\n\t\t// phone\n\t\t// cell\n\t\t// is_active\n\n\t\t$this->is_active->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// created_at\n\t\t// id_sucursal\n\t\t// documentos\n\n\t\t$this->documentos->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateModified\n\t\t$this->DateModified->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateDeleted\n\t\t$this->DateDeleted->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// CreatedBy\n\t\t$this->CreatedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// ModifiedBy\n\t\t$this->ModifiedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DeletedBy\n\t\t$this->DeletedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// latitud\n\t\t$this->latitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// longitud\n\t\t$this->longitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipoinmueble\n\t\t// id_ciudad_inmueble\n\t\t// id_provincia_inmueble\n\t\t// imagen_inmueble01\n\n\t\t$this->imagen_inmueble01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble02\n\t\t// imagen_inmueble03\n\t\t// imagen_inmueble04\n\t\t// imagen_inmueble05\n\t\t// imagen_inmueble06\n\n\t\t$this->imagen_inmueble06->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble07\n\t\t$this->imagen_inmueble07->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble08\n\t\t$this->imagen_inmueble08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipovehiculo\n\t\t// id_ciudad_vehiculo\n\t\t// id_provincia_vehiculo\n\t\t// imagen_vehiculo01\n\n\t\t$this->imagen_vehiculo01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo02\n\t\t// imagen_vehiculo03\n\n\t\t$this->imagen_vehiculo03->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo04\n\t\t$this->imagen_vehiculo04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo05\n\t\t// imagen_vehiculo06\n\t\t// imagen_vehiculo07\n\t\t// imagen_vehiculo08\n\n\t\t$this->imagen_vehiculo08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomaquinaria\n\t\t// id_ciudad_maquinaria\n\t\t// id_provincia_maquinaria\n\t\t// imagen_maquinaria01\n\n\t\t$this->imagen_maquinaria01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria02\n\t\t// imagen_maquinaria03\n\t\t// imagen_maquinaria04\n\n\t\t$this->imagen_maquinaria04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria05\n\t\t// imagen_maquinaria06\n\t\t// imagen_maquinaria07\n\t\t// imagen_maquinaria08\n\n\t\t$this->imagen_maquinaria08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomercaderia\n\t\t// imagen_mercaderia01\n\t\t// documento_mercaderia\n\t\t// tipoespecial\n\t\t// imagen_tipoespecial01\n\t\t// email_contacto\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// nombre_contacto\n\t\t$this->nombre_contacto->ViewValue = $this->nombre_contacto->CurrentValue;\n\t\t$this->nombre_contacto->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// lastname\n\t\t$this->lastname->ViewValue = $this->lastname->CurrentValue;\n\t\t$this->lastname->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// address\n\t\t$this->address->ViewValue = $this->address->CurrentValue;\n\t\t$this->address->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// cell\n\t\t$this->cell->ViewValue = $this->cell->CurrentValue;\n\t\t$this->cell->ViewCustomAttributes = \"\";\n\n\t\t// created_at\n\t\t$this->created_at->ViewValue = $this->created_at->CurrentValue;\n\t\t$this->created_at->ViewValue = ew_FormatDateTime($this->created_at->ViewValue, 17);\n\t\t$this->created_at->ViewCustomAttributes = \"\";\n\n\t\t// id_sucursal\n\t\tif (strval($this->id_sucursal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sucursal->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sucursal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sucursal->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`id`='\".$_SESSION[\"sucursal\"].\"'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sucursal, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sucursal->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sucursal->ViewCustomAttributes = \"\";\n\n\t\t// tipoinmueble\n\t\tif (strval($this->tipoinmueble->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoinmueble->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoinmueble->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='INMUEBLE'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoinmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoinmueble->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoinmueble->ViewValue .= $this->tipoinmueble->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoinmueble->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoinmueble->ViewValue = $this->tipoinmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoinmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoinmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_inmueble\n\t\tif (strval($this->id_ciudad_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_inmueble\n\t\tif (strval($this->id_provincia_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// tipovehiculo\n\t\tif (strval($this->tipovehiculo->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipovehiculo->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipovehiculo->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='VEHICULO'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipovehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipovehiculo->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipovehiculo->ViewValue .= $this->tipovehiculo->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipovehiculo->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipovehiculo->ViewValue = $this->tipovehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipovehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipovehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_vehiculo\n\t\tif (strval($this->id_ciudad_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_vehiculo\n\t\tif (strval($this->id_provincia_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// tipomaquinaria\n\t\tif (strval($this->tipomaquinaria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomaquinaria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomaquinaria->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='MAQUINARIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomaquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomaquinaria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomaquinaria->ViewValue .= $this->tipomaquinaria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomaquinaria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomaquinaria->ViewValue = $this->tipomaquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomaquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomaquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_maquinaria\n\t\tif (strval($this->id_ciudad_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_maquinaria\n\t\tif (strval($this->id_provincia_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// tipomercaderia\n\t\tif (strval($this->tipomercaderia->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomercaderia->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomercaderia->LookupFilters = array();\n\t\t$lookuptblfilter = \"`tipo`='MERCADERIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomercaderia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomercaderia->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomercaderia->ViewValue .= $this->tipomercaderia->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomercaderia->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomercaderia->ViewValue = $this->tipomercaderia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomercaderia->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomercaderia->ViewCustomAttributes = \"\";\n\n\t\t// documento_mercaderia\n\t\t$this->documento_mercaderia->ViewValue = $this->documento_mercaderia->CurrentValue;\n\t\t$this->documento_mercaderia->ViewCustomAttributes = \"\";\n\n\t\t// tipoespecial\n\t\tif (strval($this->tipoespecial->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoespecial->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoespecial->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='ESPECIAL'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoespecial, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoespecial->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoespecial->ViewValue .= $this->tipoespecial->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoespecial->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoespecial->ViewValue = $this->tipoespecial->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoespecial->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoespecial->ViewCustomAttributes = \"\";\n\n\t\t// email_contacto\n\t\tif (strval($this->email_contacto->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`login`\" . ew_SearchString(\"=\", $this->email_contacto->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `login`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `oficialcredito`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->email_contacto->LookupFilters = array(\"dx1\" => '`nombre`', \"dx2\" => '`apellido`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->email_contacto, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->email_contacto->ViewValue = NULL;\n\t\t}\n\t\t$this->email_contacto->ViewCustomAttributes = \"\";\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->HrefValue = \"\";\n\t\t\t$this->nombre_contacto->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// lastname\n\t\t\t$this->lastname->LinkCustomAttributes = \"\";\n\t\t\t$this->lastname->HrefValue = \"\";\n\t\t\t$this->lastname->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// address\n\t\t\t$this->address->LinkCustomAttributes = \"\";\n\t\t\t$this->address->HrefValue = \"\";\n\t\t\t$this->address->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// cell\n\t\t\t$this->cell->LinkCustomAttributes = \"\";\n\t\t\t$this->cell->HrefValue = \"\";\n\t\t\t$this->cell->TooltipValue = \"\";\n\n\t\t\t// created_at\n\t\t\t$this->created_at->LinkCustomAttributes = \"\";\n\t\t\t$this->created_at->HrefValue = \"\";\n\t\t\t$this->created_at->TooltipValue = \"\";\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sucursal->HrefValue = \"\";\n\t\t\t$this->id_sucursal->TooltipValue = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoinmueble->HrefValue = \"\";\n\t\t\t$this->tipoinmueble->TooltipValue = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipovehiculo->HrefValue = \"\";\n\t\t\t$this->tipovehiculo->TooltipValue = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomaquinaria->HrefValue = \"\";\n\t\t\t$this->tipomaquinaria->TooltipValue = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomercaderia->HrefValue = \"\";\n\t\t\t$this->tipomercaderia->TooltipValue = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoespecial->HrefValue = \"\";\n\t\t\t$this->tipoespecial->TooltipValue = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->email_contacto->HrefValue = \"\";\n\t\t\t$this->email_contacto->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre_contacto->EditCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->EditValue = ew_HtmlEncode($this->nombre_contacto->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre_contacto->PlaceHolder = ew_RemoveHtml($this->nombre_contacto->FldTitle());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldTitle());\n\n\t\t\t// lastname\n\t\t\t$this->lastname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lastname->EditCustomAttributes = \"\";\n\t\t\t$this->lastname->EditValue = ew_HtmlEncode($this->lastname->AdvancedSearch->SearchValue);\n\t\t\t$this->lastname->PlaceHolder = ew_RemoveHtml($this->lastname->FldTitle());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldTitle());\n\n\t\t\t// address\n\t\t\t$this->address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->address->EditCustomAttributes = \"\";\n\t\t\t$this->address->EditValue = ew_HtmlEncode($this->address->AdvancedSearch->SearchValue);\n\t\t\t$this->address->PlaceHolder = ew_RemoveHtml($this->address->FldTitle());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldTitle());\n\n\t\t\t// cell\n\t\t\t$this->cell->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cell->EditCustomAttributes = \"\";\n\t\t\t$this->cell->EditValue = ew_HtmlEncode($this->cell->AdvancedSearch->SearchValue);\n\t\t\t$this->cell->PlaceHolder = ew_RemoveHtml($this->cell->FldTitle());\n\n\t\t\t// created_at\n\t\t\t$this->created_at->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->created_at->EditCustomAttributes = \"\";\n\t\t\t$this->created_at->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->created_at->AdvancedSearch->SearchValue, 17), 17));\n\t\t\t$this->created_at->PlaceHolder = ew_RemoveHtml($this->created_at->FldTitle());\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_sucursal->EditCustomAttributes = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoinmueble->EditCustomAttributes = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipovehiculo->EditCustomAttributes = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomaquinaria->EditCustomAttributes = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomercaderia->EditCustomAttributes = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoespecial->EditCustomAttributes = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->email_contacto->EditCustomAttributes = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->AddUrl = $this->GetAddUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\t\t$this->ListUrl = $this->GetListUrl();\r\n\t\t$this->SetupOtherOptions();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Dni_Tutor\r\n\t\t// Apellidos_Nombres\r\n\t\t// Edad\r\n\t\t// Domicilio\r\n\t\t// Tel_Contacto\r\n\t\t// Fecha_Nac\r\n\t\t// Cuil\r\n\t\t// MasHijos\r\n\t\t// Id_Estado_Civil\r\n\t\t// Id_Sexo\r\n\t\t// Id_Relacion\r\n\t\t// Id_Ocupacion\r\n\t\t// Lugar_Nacimiento\r\n\t\t// Id_Provincia\r\n\t\t// Id_Departamento\r\n\t\t// Id_Localidad\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Dni_Tutor\r\n\t\t$this->Dni_Tutor->ViewValue = $this->Dni_Tutor->CurrentValue;\r\n\t\t$this->Dni_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Apellidos_Nombres\r\n\t\t$this->Apellidos_Nombres->ViewValue = $this->Apellidos_Nombres->CurrentValue;\r\n\t\t$this->Apellidos_Nombres->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Edad\r\n\t\t$this->Edad->ViewValue = $this->Edad->CurrentValue;\r\n\t\t$this->Edad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Contacto\r\n\t\t$this->Tel_Contacto->ViewValue = $this->Tel_Contacto->CurrentValue;\r\n\t\t$this->Tel_Contacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Nac\r\n\t\t$this->Fecha_Nac->ViewValue = $this->Fecha_Nac->CurrentValue;\r\n\t\t$this->Fecha_Nac->ViewValue = ew_FormatDateTime($this->Fecha_Nac->ViewValue, 7);\r\n\t\t$this->Fecha_Nac->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil\r\n\t\t$this->Cuil->ViewValue = $this->Cuil->CurrentValue;\r\n\t\t$this->Cuil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// MasHijos\r\n\t\tif (strval($this->MasHijos->CurrentValue) <> \"\") {\r\n\t\t\t$this->MasHijos->ViewValue = $this->MasHijos->OptionCaption($this->MasHijos->CurrentValue);\r\n\t\t} else {\r\n\t\t\t$this->MasHijos->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->MasHijos->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Civil\r\n\t\tif (strval($this->Id_Estado_Civil->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Civil`\" . ew_SearchString(\"=\", $this->Id_Estado_Civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Civil`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Civil->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Civil, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Civil->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Civil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Sexo\r\n\t\tif (strval($this->Id_Sexo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Sexo`\" . ew_SearchString(\"=\", $this->Id_Sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Sexo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo_personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Sexo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Sexo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Sexo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Sexo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Relacion\r\n\t\tif (strval($this->Id_Relacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Relacion`\" . ew_SearchString(\"=\", $this->Id_Relacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Relacion`, `Desripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_relacion_alumno_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Relacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Relacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Desripcion` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Relacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Relacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Ocupacion\r\n\t\tif (strval($this->Id_Ocupacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Ocupacion`\" . ew_SearchString(\"=\", $this->Id_Ocupacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Ocupacion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ocupacion_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Ocupacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Ocupacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Ocupacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Ocupacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Lugar_Nacimiento\r\n\t\t$this->Lugar_Nacimiento->ViewValue = $this->Lugar_Nacimiento->CurrentValue;\r\n\t\t$this->Lugar_Nacimiento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Provincia\r\n\t\tif (strval($this->Id_Provincia->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Provincia`\" . ew_SearchString(\"=\", $this->Id_Provincia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Provincia`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincias`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Provincia->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Provincia, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Provincia->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Provincia->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Departamento\r\n\t\tif (strval($this->Id_Departamento->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Departamento`\" . ew_SearchString(\"=\", $this->Id_Departamento->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Departamento`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Departamento->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Departamento, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Departamento->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Departamento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Localidad\r\n\t\tif (strval($this->Id_Localidad->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Localidad`\" . ew_SearchString(\"=\", $this->Id_Localidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Localidad`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Localidad->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Localidad, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Localidad->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Localidad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Dni_Tutor\r\n\t\t\t$this->Dni_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Dni_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Apellidos_Nombres\r\n\t\t\t$this->Apellidos_Nombres->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Apellidos_Nombres->HrefValue = \"\";\r\n\t\t\t$this->Apellidos_Nombres->TooltipValue = \"\";\r\n\r\n\t\t\t// Edad\r\n\t\t\t$this->Edad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Edad->HrefValue = \"\";\r\n\t\t\t$this->Edad->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Contacto\r\n\t\t\t$this->Tel_Contacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Contacto->HrefValue = \"\";\r\n\t\t\t$this->Tel_Contacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Nac\r\n\t\t\t$this->Fecha_Nac->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Nac->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Nac->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil\r\n\t\t\t$this->Cuil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil->HrefValue = \"\";\r\n\t\t\t$this->Cuil->TooltipValue = \"\";\r\n\r\n\t\t\t// MasHijos\r\n\t\t\t$this->MasHijos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MasHijos->HrefValue = \"\";\r\n\t\t\t$this->MasHijos->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Civil\r\n\t\t\t$this->Id_Estado_Civil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Civil->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Civil->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Sexo\r\n\t\t\t$this->Id_Sexo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Sexo->HrefValue = \"\";\r\n\t\t\t$this->Id_Sexo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Relacion\r\n\t\t\t$this->Id_Relacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Relacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Relacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Ocupacion\r\n\t\t\t$this->Id_Ocupacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Ocupacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Ocupacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Lugar_Nacimiento\r\n\t\t\t$this->Lugar_Nacimiento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->HrefValue = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Provincia\r\n\t\t\t$this->Id_Provincia->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Provincia->HrefValue = \"\";\r\n\t\t\t$this->Id_Provincia->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Departamento\r\n\t\t\t$this->Id_Departamento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Departamento->HrefValue = \"\";\r\n\t\t\t$this->Id_Departamento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Localidad\r\n\t\t\t$this->Id_Localidad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Localidad->HrefValue = \"\";\r\n\t\t\t$this->Id_Localidad->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->pro_base_price->FormValue == $this->pro_base_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_base_price->CurrentValue)))\n\t\t\t$this->pro_base_price->CurrentValue = ew_StrToFloat($this->pro_base_price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pro_sell_price->FormValue == $this->pro_sell_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_sell_price->CurrentValue)))\n\t\t\t$this->pro_sell_price->CurrentValue = ew_StrToFloat($this->pro_sell_price->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// product_id\n\t\t// cat_id\n\t\t// company_id\n\t\t// pro_model\n\t\t// pro_name\n\t\t// pro_description\n\t\t// pro_condition\n\t\t// pro_features\n\t\t// post_date\n\t\t// ads_id\n\t\t// pro_base_price\n\t\t// pro_sell_price\n\t\t// featured_image\n\t\t// folder_image\n\t\t// pro_status\n\t\t// branch_id\n\t\t// lang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// product_id\n\t\t$this->product_id->ViewValue = $this->product_id->CurrentValue;\n\t\t$this->product_id->ViewCustomAttributes = \"\";\n\n\t\t// cat_id\n\t\tif ($this->cat_id->VirtualValue <> \"\") {\n\t\t\t$this->cat_id->ViewValue = $this->cat_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->cat_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categories`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->cat_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->cat_id->ViewCustomAttributes = \"\";\n\n\t\t// company_id\n\t\tif ($this->company_id->VirtualValue <> \"\") {\n\t\t\t$this->company_id->ViewValue = $this->company_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->company_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `company`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->company_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->company_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_model\n\t\tif ($this->pro_model->VirtualValue <> \"\") {\n\t\t\t$this->pro_model->ViewValue = $this->pro_model->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->pro_model->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->pro_model->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->pro_model->ViewCustomAttributes = \"\";\n\n\t\t// pro_name\n\t\t$this->pro_name->ViewValue = $this->pro_name->CurrentValue;\n\t\t$this->pro_name->ViewCustomAttributes = \"\";\n\n\t\t// pro_description\n\t\t$this->pro_description->ViewValue = $this->pro_description->CurrentValue;\n\t\t$this->pro_description->ViewCustomAttributes = \"\";\n\n\t\t// pro_condition\n\t\tif (strval($this->pro_condition->CurrentValue) <> \"\") {\n\t\t\t$this->pro_condition->ViewValue = $this->pro_condition->OptionCaption($this->pro_condition->CurrentValue);\n\t\t} else {\n\t\t\t$this->pro_condition->ViewValue = NULL;\n\t\t}\n\t\t$this->pro_condition->ViewCustomAttributes = \"\";\n\n\t\t// pro_features\n\t\t$this->pro_features->ViewValue = $this->pro_features->CurrentValue;\n\t\t$this->pro_features->ViewCustomAttributes = \"\";\n\n\t\t// post_date\n\t\t$this->post_date->ViewValue = $this->post_date->CurrentValue;\n\t\t$this->post_date->ViewValue = ew_FormatDateTime($this->post_date->ViewValue, 1);\n\t\t$this->post_date->ViewCustomAttributes = \"\";\n\n\t\t// ads_id\n\t\t$this->ads_id->ViewValue = $this->ads_id->CurrentValue;\n\t\t$this->ads_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_base_price\n\t\t$this->pro_base_price->ViewValue = $this->pro_base_price->CurrentValue;\n\t\t$this->pro_base_price->ViewCustomAttributes = \"\";\n\n\t\t// pro_sell_price\n\t\t$this->pro_sell_price->ViewValue = $this->pro_sell_price->CurrentValue;\n\t\t$this->pro_sell_price->ViewCustomAttributes = \"\";\n\n\t\t// featured_image\n\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t$this->featured_image->ViewValue = $this->featured_image->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->featured_image->ViewValue = \"\";\n\t\t}\n\t\t$this->featured_image->ViewCustomAttributes = \"\";\n\n\t\t// folder_image\n\t\tif ($this->folder_image->VirtualValue <> \"\") {\n\t\t\t$this->folder_image->ViewValue = $this->folder_image->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->folder_image->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `product_gallery`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $this->folder_image->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->folder_image->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->folder_image->ViewCustomAttributes = \"\";\n\n\t\t// pro_status\n\t\tif (ew_ConvertToBool($this->pro_status->CurrentValue)) {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(1) <> \"\" ? $this->pro_status->FldTagCaption(1) : \"Yes\";\n\t\t} else {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(2) <> \"\" ? $this->pro_status->FldTagCaption(2) : \"No\";\n\t\t}\n\t\t$this->pro_status->ViewCustomAttributes = \"\";\n\n\t\t// branch_id\n\t\tif (strval($this->branch_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `branch`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->branch_id->ViewValue = NULL;\n\t\t}\n\t\t$this->branch_id->ViewCustomAttributes = \"\";\n\n\t\t// lang\n\t\tif (strval($this->lang->CurrentValue) <> \"\") {\n\t\t\t$this->lang->ViewValue = $this->lang->OptionCaption($this->lang->CurrentValue);\n\t\t} else {\n\t\t\t$this->lang->ViewValue = NULL;\n\t\t}\n\t\t$this->lang->ViewCustomAttributes = \"\";\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\t\t\t$this->cat_id->TooltipValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\t\t\t$this->company_id->TooltipValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\t\t\t$this->pro_model->TooltipValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\t\t\t$this->pro_name->TooltipValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\t\t\t$this->pro_description->TooltipValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\t\t\t$this->pro_condition->TooltipValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\t\t\t$this->pro_features->TooltipValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\t\t\t$this->post_date->TooltipValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\t\t\t$this->ads_id->TooltipValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\t\t\t$this->pro_base_price->TooltipValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\t\t\t$this->pro_sell_price->TooltipValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\t\t\t$this->featured_image->TooltipValue = \"\";\n\t\t\tif ($this->featured_image->UseColorbox) {\n\t\t\t\tif (ew_Empty($this->featured_image->TooltipValue))\n\t\t\t\t\t$this->featured_image->LinkAttrs[\"title\"] = $Language->Phrase(\"ViewImageGallery\");\n\t\t\t\t$this->featured_image->LinkAttrs[\"data-rel\"] = \"products_x_featured_image\";\n\t\t\t\tew_AppendClass($this->featured_image->LinkAttrs[\"class\"], \"ewLightbox\");\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\t\t\t$this->folder_image->TooltipValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\t\t\t$this->pro_status->TooltipValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\t\t\t$this->branch_id->TooltipValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t\t$this->lang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->cat_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `categories`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->cat_id->EditValue = $arwrk;\n\n\t\t\t// company_id\n\t\t\t$this->company_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->company_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `company`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->company_id->EditValue = $arwrk;\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->pro_model->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->pro_model->EditValue = $arwrk;\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_name->EditCustomAttributes = \"\";\n\t\t\t$this->pro_name->EditValue = ew_HtmlEncode($this->pro_name->CurrentValue);\n\t\t\t$this->pro_name->PlaceHolder = ew_RemoveHtml($this->pro_name->FldCaption());\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_description->EditCustomAttributes = \"\";\n\t\t\t$this->pro_description->EditValue = ew_HtmlEncode($this->pro_description->CurrentValue);\n\t\t\t$this->pro_description->PlaceHolder = ew_RemoveHtml($this->pro_description->FldCaption());\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_condition->EditCustomAttributes = \"\";\n\t\t\t$this->pro_condition->EditValue = $this->pro_condition->Options(TRUE);\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_features->EditCustomAttributes = \"\";\n\t\t\t$this->pro_features->EditValue = ew_HtmlEncode($this->pro_features->CurrentValue);\n\t\t\t$this->pro_features->PlaceHolder = ew_RemoveHtml($this->pro_features->FldCaption());\n\n\t\t\t// post_date\n\t\t\t// ads_id\n\n\t\t\t$this->ads_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ads_id->EditCustomAttributes = \"\";\n\t\t\t$this->ads_id->EditValue = ew_HtmlEncode($this->ads_id->CurrentValue);\n\t\t\t$this->ads_id->PlaceHolder = ew_RemoveHtml($this->ads_id->FldCaption());\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_base_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->EditValue = ew_HtmlEncode($this->pro_base_price->CurrentValue);\n\t\t\t$this->pro_base_price->PlaceHolder = ew_RemoveHtml($this->pro_base_price->FldCaption());\n\t\t\tif (strval($this->pro_base_price->EditValue) <> \"\" && is_numeric($this->pro_base_price->EditValue)) $this->pro_base_price->EditValue = ew_FormatNumber($this->pro_base_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_sell_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->EditValue = ew_HtmlEncode($this->pro_sell_price->CurrentValue);\n\t\t\t$this->pro_sell_price->PlaceHolder = ew_RemoveHtml($this->pro_sell_price->FldCaption());\n\t\t\tif (strval($this->pro_sell_price->EditValue) <> \"\" && is_numeric($this->pro_sell_price->EditValue)) $this->pro_sell_price->EditValue = ew_FormatNumber($this->pro_sell_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->featured_image->EditCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t\t$this->featured_image->EditValue = $this->featured_image->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->featured_image->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!ew_Empty($this->featured_image->CurrentValue))\n\t\t\t\t\t$this->featured_image->Upload->FileName = $this->featured_image->CurrentValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->folder_image->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `product_gallery`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->MoveFirst();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->folder_image->EditValue = $arwrk;\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->EditCustomAttributes = \"\";\n\t\t\t$this->pro_status->EditValue = $this->pro_status->Options(FALSE);\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->branch_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `branch`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->branch_id->EditValue = $arwrk;\n\n\t\t\t// lang\n\t\t\t$this->lang->EditCustomAttributes = \"\";\n\t\t\t$this->lang->EditValue = $this->lang->Options(TRUE);\n\n\t\t\t// Edit refer script\n\t\t\t// cat_id\n\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Proveedor\r\n\t\t// RazonSocial\r\n\t\t// RFC\r\n\t\t// NombreContacto\r\n\t\t// CalleYNumero\r\n\t\t// Colonia\r\n\t\t// Poblacion\r\n\t\t// Municipio_Delegacion\r\n\t\t// Id_Estado\r\n\t\t// CP\r\n\t\t// EMail\r\n\t\t// Telefonos\r\n\t\t// Celular\r\n\t\t// Fax\r\n\t\t// Banco\r\n\t\t// NumCuenta\r\n\t\t// CLABE\r\n\t\t// Maneja_Papeleta\r\n\t\t// Observaciones\r\n\t\t// Maneja_Activacion_Movi\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// RazonSocial\r\n\t\t\t$this->RazonSocial->ViewValue = $this->RazonSocial->CurrentValue;\r\n\t\t\t$this->RazonSocial->ViewValue = strtoupper($this->RazonSocial->ViewValue);\r\n\t\t\t$this->RazonSocial->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NombreContacto\r\n\t\t\t$this->NombreContacto->ViewValue = $this->NombreContacto->CurrentValue;\r\n\t\t\t$this->NombreContacto->ViewValue = strtoupper($this->NombreContacto->ViewValue);\r\n\t\t\t$this->NombreContacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Poblacion\r\n\t\t\t$this->Poblacion->ViewValue = $this->Poblacion->CurrentValue;\r\n\t\t\t$this->Poblacion->ViewValue = strtoupper($this->Poblacion->ViewValue);\r\n\t\t\t$this->Poblacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\tif (strval($this->Id_Estado->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_estado`, `Estado` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `li_estados`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Estado` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Estado->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Estado->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Telefonos\r\n\t\t\t$this->Telefonos->ViewValue = $this->Telefonos->CurrentValue;\r\n\t\t\t$this->Telefonos->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Celular\r\n\t\t\t$this->Celular->ViewValue = $this->Celular->CurrentValue;\r\n\t\t\t$this->Celular->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Maneja_Papeleta\r\n\t\t\tif (strval($this->Maneja_Papeleta->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Maneja_Papeleta->CurrentValue) {\r\n\t\t\t\t\tcase $this->Maneja_Papeleta->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->FldTagCaption(1) <> \"\" ? $this->Maneja_Papeleta->FldTagCaption(1) : $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Maneja_Papeleta->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->FldTagCaption(2) <> \"\" ? $this->Maneja_Papeleta->FldTagCaption(2) : $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Maneja_Papeleta->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Maneja_Papeleta->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Maneja_Activacion_Movi\r\n\t\t\tif (strval($this->Maneja_Activacion_Movi->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Maneja_Activacion_Movi->CurrentValue) {\r\n\t\t\t\t\tcase $this->Maneja_Activacion_Movi->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->FldTagCaption(1) <> \"\" ? $this->Maneja_Activacion_Movi->FldTagCaption(1) : $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Maneja_Activacion_Movi->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->FldTagCaption(2) <> \"\" ? $this->Maneja_Activacion_Movi->FldTagCaption(2) : $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Maneja_Activacion_Movi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RazonSocial\r\n\t\t\t$this->RazonSocial->LinkCustomAttributes = \"\";\r\n\t\t\t$this->RazonSocial->HrefValue = \"\";\r\n\t\t\t$this->RazonSocial->TooltipValue = \"\";\r\n\r\n\t\t\t// NombreContacto\r\n\t\t\t$this->NombreContacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->NombreContacto->HrefValue = \"\";\r\n\t\t\t$this->NombreContacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Poblacion\r\n\t\t\t$this->Poblacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Poblacion->HrefValue = \"\";\r\n\t\t\t$this->Poblacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado->TooltipValue = \"\";\r\n\r\n\t\t\t// Telefonos\r\n\t\t\t$this->Telefonos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Telefonos->HrefValue = \"\";\r\n\t\t\t$this->Telefonos->TooltipValue = \"\";\r\n\r\n\t\t\t// Celular\r\n\t\t\t$this->Celular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Celular->HrefValue = \"\";\r\n\t\t\t$this->Celular->TooltipValue = \"\";\r\n\r\n\t\t\t// Maneja_Papeleta\r\n\t\t\t$this->Maneja_Papeleta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Maneja_Papeleta->HrefValue = \"\";\r\n\t\t\t$this->Maneja_Papeleta->TooltipValue = \"\";\r\n\r\n\t\t\t// Maneja_Activacion_Movi\r\n\t\t\t$this->Maneja_Activacion_Movi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Maneja_Activacion_Movi->HrefValue = \"\";\r\n\t\t\t$this->Maneja_Activacion_Movi->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->highest_bid->FormValue == $this->highest_bid->CurrentValue && is_numeric(ew_StrToFloat($this->highest_bid->CurrentValue)))\n\t\t\t$this->highest_bid->CurrentValue = ew_StrToFloat($this->highest_bid->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tanggal\n\t\t// auc_number\n\t\t// start_bid\n\t\t// close_bid\n\t\t// lot_number\n\t\t// chop\n\t\t// grade\n\t\t// estate\n\t\t// sack\n\t\t// netto\n\t\t// open_bid\n\t\t// last_bid\n\t\t// highest_bid\n\t\t// enter_bid\n\t\t// auction_status\n\t\t// gross\n\t\t// row_id\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->CellCssStyle .= \"text-align: center;\";\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewValue = ew_FormatNumber($this->last_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->last_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewValue = ew_FormatNumber($this->highest_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->highest_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewValue = ew_FormatNumber($this->enter_bid->ViewValue, 0, -2, -2, -2);\n\t\t$this->enter_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// row_id\n\t\t$this->row_id->ViewValue = $this->row_id->CurrentValue;\n\t\t$this->row_id->ViewCustomAttributes = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->highest_bid->HrefValue = \"\";\n\t\t\t$this->highest_bid->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->tanggal->AdvancedSearch->SearchValue, 7), 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->auc_number->EditCustomAttributes = \"\";\n\t\t\t$this->auc_number->EditValue = ew_HtmlEncode($this->auc_number->AdvancedSearch->SearchValue);\n\t\t\t$this->auc_number->PlaceHolder = ew_RemoveHtml($this->auc_number->FldCaption());\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_bid->EditCustomAttributes = \"\";\n\t\t\t$this->start_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->start_bid->PlaceHolder = ew_RemoveHtml($this->start_bid->FldCaption());\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->close_bid->EditCustomAttributes = \"\";\n\t\t\t$this->close_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->close_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->close_bid->PlaceHolder = ew_RemoveHtml($this->close_bid->FldCaption());\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->AdvancedSearch->SearchValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->AdvancedSearch->SearchValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->AdvancedSearch->SearchValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->AdvancedSearch->SearchValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->AdvancedSearch->SearchValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->AdvancedSearch->SearchValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->highest_bid->EditCustomAttributes = \"\";\n\t\t\t$this->highest_bid->EditValue = ew_HtmlEncode($this->highest_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->highest_bid->PlaceHolder = ew_RemoveHtml($this->highest_bid->FldCaption());\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(FALSE);\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function RenderField($fkey, $fvalue)\r\n\t\t{\r\n\t\t\t$field = $this->fieldsArray[$fkey];\r\n\r\n\t\t\tif($fkey != 'ROW_PROPERTIES' || get_class($field) == 'Field')\r\n\t\t\t{\r\n\t\t\t\tif(!$field->hidden && !$fvalue->hidden /*Column*/ )\r\n\t\t\t\t{\r\n\t\t\t\t\tswitch($fvalue->type)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase 'text':\r\n\r\n\t\t\t\t\t\t\t$result .= \"<div \".$this->SetFieldsCss($fvalue, $fkey).\" style='\".$this->SetFieldsWidth($fvalue->width, $fkey, false).\"'>\".$fvalue->value.\"</div>\"; // $this->SetStyleAttribute(\"display\", \"inline\", 2)\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 'object':\r\n\r\n\t\t\t\t\t\t\t$obj = $fvalue->value;\r\n\t\t\t\t\t\t\t$result .= \"<div \".$this->SetFieldsCss($fvalue, $fkey).\" style='\".$this->SetFieldsWidth($fvalue->width, $fkey, false).\"'>\".$obj->OpenTag().$obj->CloseTag().\"</div>\"; //$this->SetStyleAttribute(\"display\", \"inline\", 2)\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $result;\r\n\t\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// empleado_id\n\t\t// codigo\n\t\t// cui\n\t\t// nombre\n\t\t// apellido\n\t\t// direccion\n\t\t// departamento_origen_id\n\t\t// municipio_id\n\t\t// telefono_residencia\n\t\t// telefono_celular\n\t\t// fecha_nacimiento\n\t\t// nacionalidad\n\t\t// estado_civil\n\t\t// sexo\n\t\t// igss\n\t\t// nit\n\t\t// licencia_conducir\n\t\t// area_id\n\t\t// departmento_id\n\t\t// seccion_id\n\t\t// puesto_id\n\t\t// observaciones\n\t\t// tipo_sangre_id\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// codigo\n\t\t$this->codigo->ViewValue = $this->codigo->CurrentValue;\n\t\t$this->codigo->ViewCustomAttributes = \"\";\n\n\t\t// cui\n\t\t$this->cui->ViewValue = $this->cui->CurrentValue;\n\t\t$this->cui->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// apellido\n\t\t$this->apellido->ViewValue = $this->apellido->CurrentValue;\n\t\t$this->apellido->ViewCustomAttributes = \"\";\n\n\t\t// direccion\n\t\t$this->direccion->ViewValue = $this->direccion->CurrentValue;\n\t\t$this->direccion->ViewCustomAttributes = \"\";\n\n\t\t// departamento_origen_id\n\t\tif (strval($this->departamento_origen_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_origen_id`\" . ew_SearchString(\"=\", $this->departamento_origen_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_origen_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento_origen`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departamento_origen_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departamento_origen_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departamento_origen_id->ViewCustomAttributes = \"\";\n\n\t\t// municipio_id\n\t\tif (strval($this->municipio_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`municipio_id`\" . ew_SearchString(\"=\", $this->municipio_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `municipio_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `municipio`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->municipio_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->municipio_id->ViewValue = NULL;\n\t\t}\n\t\t$this->municipio_id->ViewCustomAttributes = \"\";\n\n\t\t// telefono_residencia\n\t\t$this->telefono_residencia->ViewValue = $this->telefono_residencia->CurrentValue;\n\t\t$this->telefono_residencia->ViewCustomAttributes = \"\";\n\n\t\t// telefono_celular\n\t\t$this->telefono_celular->ViewValue = $this->telefono_celular->CurrentValue;\n\t\t$this->telefono_celular->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// nacionalidad\n\t\tif (strval($this->nacionalidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`nacionalidad_id`\" . ew_SearchString(\"=\", $this->nacionalidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `nacionalidad_id`, `nacionalidad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `nacionalidad`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nacionalidad, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nacionalidad->ViewValue = NULL;\n\t\t}\n\t\t$this->nacionalidad->ViewCustomAttributes = \"\";\n\n\t\t// estado_civil\n\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\tif (strval($this->estado_civil->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`estado_civil_id`\" . ew_SearchString(\"=\", $this->estado_civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `estado_civil_id`, `estado_civil` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->estado_civil, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->estado_civil->ViewValue = NULL;\n\t\t}\n\t\t$this->estado_civil->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`sexo_id`\" . ew_SearchString(\"=\", $this->sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `sexo_id`, `sexo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sexo, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// igss\n\t\t$this->igss->ViewValue = $this->igss->CurrentValue;\n\t\t$this->igss->ViewCustomAttributes = \"\";\n\n\t\t// nit\n\t\t$this->nit->ViewValue = $this->nit->CurrentValue;\n\t\t$this->nit->ViewCustomAttributes = \"\";\n\n\t\t// licencia_conducir\n\t\t$this->licencia_conducir->ViewValue = $this->licencia_conducir->CurrentValue;\n\t\t$this->licencia_conducir->ViewCustomAttributes = \"\";\n\n\t\t// area_id\n\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\tif (strval($this->area_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`area_id`\" . ew_SearchString(\"=\", $this->area_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `area_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `area`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->area_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->area_id->ViewValue = NULL;\n\t\t}\n\t\t$this->area_id->ViewCustomAttributes = \"\";\n\n\t\t// departmento_id\n\t\tif (strval($this->departmento_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_id`\" . ew_SearchString(\"=\", $this->departmento_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departmento_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departmento_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departmento_id->ViewCustomAttributes = \"\";\n\n\t\t// seccion_id\n\t\tif (strval($this->seccion_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`seccion_id`\" . ew_SearchString(\"=\", $this->seccion_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `seccion_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `seccion`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->seccion_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->seccion_id->ViewValue = NULL;\n\t\t}\n\t\t$this->seccion_id->ViewCustomAttributes = \"\";\n\n\t\t// puesto_id\n\t\tif (strval($this->puesto_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`puesto_id`\" . ew_SearchString(\"=\", $this->puesto_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `puesto_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `puesto`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->puesto_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->puesto_id->ViewValue = NULL;\n\t\t}\n\t\t$this->puesto_id->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// tipo_sangre_id\n\t\tif (strval($this->tipo_sangre_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`tipo_sangre_id`\" . ew_SearchString(\"=\", $this->tipo_sangre_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `tipo_sangre_id`, `tipo_sangre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_sangre`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipo_sangre_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipo_sangre_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo_sangre_id->ViewCustomAttributes = \"\";\n\n\t\t// estado\n\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// codigo\n\t\t\t$this->codigo->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo->HrefValue = \"\";\n\t\t\t$this->codigo->TooltipValue = \"\";\n\n\t\t\t// cui\n\t\t\t$this->cui->LinkCustomAttributes = \"\";\n\t\t\t$this->cui->HrefValue = \"\";\n\t\t\t$this->cui->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// apellido\n\t\t\t$this->apellido->LinkCustomAttributes = \"\";\n\t\t\t$this->apellido->HrefValue = \"\";\n\t\t\t$this->apellido->TooltipValue = \"\";\n\n\t\t\t// direccion\n\t\t\t$this->direccion->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion->HrefValue = \"\";\n\t\t\t$this->direccion->TooltipValue = \"\";\n\n\t\t\t// departamento_origen_id\n\t\t\t$this->departamento_origen_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departamento_origen_id->HrefValue = \"\";\n\t\t\t$this->departamento_origen_id->TooltipValue = \"\";\n\n\t\t\t// municipio_id\n\t\t\t$this->municipio_id->LinkCustomAttributes = \"\";\n\t\t\t$this->municipio_id->HrefValue = \"\";\n\t\t\t$this->municipio_id->TooltipValue = \"\";\n\n\t\t\t// telefono_residencia\n\t\t\t$this->telefono_residencia->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_residencia->HrefValue = \"\";\n\t\t\t$this->telefono_residencia->TooltipValue = \"\";\n\n\t\t\t// telefono_celular\n\t\t\t$this->telefono_celular->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_celular->HrefValue = \"\";\n\t\t\t$this->telefono_celular->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// nacionalidad\n\t\t\t$this->nacionalidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nacionalidad->HrefValue = \"\";\n\t\t\t$this->nacionalidad->TooltipValue = \"\";\n\n\t\t\t// estado_civil\n\t\t\t$this->estado_civil->LinkCustomAttributes = \"\";\n\t\t\t$this->estado_civil->HrefValue = \"\";\n\t\t\t$this->estado_civil->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// igss\n\t\t\t$this->igss->LinkCustomAttributes = \"\";\n\t\t\t$this->igss->HrefValue = \"\";\n\t\t\t$this->igss->TooltipValue = \"\";\n\n\t\t\t// nit\n\t\t\t$this->nit->LinkCustomAttributes = \"\";\n\t\t\t$this->nit->HrefValue = \"\";\n\t\t\t$this->nit->TooltipValue = \"\";\n\n\t\t\t// licencia_conducir\n\t\t\t$this->licencia_conducir->LinkCustomAttributes = \"\";\n\t\t\t$this->licencia_conducir->HrefValue = \"\";\n\t\t\t$this->licencia_conducir->TooltipValue = \"\";\n\n\t\t\t// area_id\n\t\t\t$this->area_id->LinkCustomAttributes = \"\";\n\t\t\t$this->area_id->HrefValue = \"\";\n\t\t\t$this->area_id->TooltipValue = \"\";\n\n\t\t\t// departmento_id\n\t\t\t$this->departmento_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departmento_id->HrefValue = \"\";\n\t\t\t$this->departmento_id->TooltipValue = \"\";\n\n\t\t\t// seccion_id\n\t\t\t$this->seccion_id->LinkCustomAttributes = \"\";\n\t\t\t$this->seccion_id->HrefValue = \"\";\n\t\t\t$this->seccion_id->TooltipValue = \"\";\n\n\t\t\t// puesto_id\n\t\t\t$this->puesto_id->LinkCustomAttributes = \"\";\n\t\t\t$this->puesto_id->HrefValue = \"\";\n\t\t\t$this->puesto_id->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// tipo_sangre_id\n\t\t\t$this->tipo_sangre_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_sangre_id->HrefValue = \"\";\n\t\t\t$this->tipo_sangre_id->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t// Common render codes\n\t\t// rid\n\t\t// usn\n\t\t// name\n\t\t// sc1\n\t\t// s1\n\t\t// sc2\n\t\t// s2\n\t\t// sc3\n\t\t// s3\n\t\t// sc4\n\t\t// s4\n\t\t// sc5\n\t\t// s5\n\t\t// sc6\n\t\t// s6\n\t\t// sc7\n\t\t// s7\n\t\t// sc8\n\t\t// s8\n\t\t// total\n\t\t// rid\n\n\t\t$this->rid->ViewValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->ViewValue = $this->usn->CurrentValue;\n\t\t$this->usn->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->ViewValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->ViewCustomAttributes = \"\";\n\n\t\t// s1\n\t\t$this->s1->ViewValue = $this->s1->CurrentValue;\n\t\t$this->s1->ViewCustomAttributes = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->ViewValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->ViewCustomAttributes = \"\";\n\n\t\t// s2\n\t\t$this->s2->ViewValue = $this->s2->CurrentValue;\n\t\t$this->s2->ViewCustomAttributes = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->ViewValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->ViewCustomAttributes = \"\";\n\n\t\t// s3\n\t\t$this->s3->ViewValue = $this->s3->CurrentValue;\n\t\t$this->s3->ViewCustomAttributes = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->ViewValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->ViewCustomAttributes = \"\";\n\n\t\t// s4\n\t\t$this->s4->ViewValue = $this->s4->CurrentValue;\n\t\t$this->s4->ViewCustomAttributes = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->ViewValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->ViewCustomAttributes = \"\";\n\n\t\t// s5\n\t\t$this->s5->ViewValue = $this->s5->CurrentValue;\n\t\t$this->s5->ViewCustomAttributes = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->ViewValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->ViewCustomAttributes = \"\";\n\n\t\t// s6\n\t\t$this->s6->ViewValue = $this->s6->CurrentValue;\n\t\t$this->s6->ViewCustomAttributes = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->ViewValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->ViewCustomAttributes = \"\";\n\n\t\t// s7\n\t\t$this->s7->ViewValue = $this->s7->CurrentValue;\n\t\t$this->s7->ViewCustomAttributes = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->ViewValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->ViewCustomAttributes = \"\";\n\n\t\t// s8\n\t\t$this->s8->ViewValue = $this->s8->CurrentValue;\n\t\t$this->s8->ViewCustomAttributes = \"\";\n\n\t\t// total\n\t\t$this->total->ViewValue = $this->total->CurrentValue;\n\t\t$this->total->ViewCustomAttributes = \"\";\n\n\t\t// rid\n\t\t$this->rid->LinkCustomAttributes = \"\";\n\t\t$this->rid->HrefValue = \"\";\n\t\t$this->rid->TooltipValue = \"\";\n\n\t\t// usn\n\t\t$this->usn->LinkCustomAttributes = \"\";\n\t\t$this->usn->HrefValue = \"\";\n\t\t$this->usn->TooltipValue = \"\";\n\n\t\t// name\n\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t$this->name->HrefValue = \"\";\n\t\t$this->name->TooltipValue = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->LinkCustomAttributes = \"\";\n\t\t$this->sc1->HrefValue = \"\";\n\t\t$this->sc1->TooltipValue = \"\";\n\n\t\t// s1\n\t\t$this->s1->LinkCustomAttributes = \"\";\n\t\t$this->s1->HrefValue = \"\";\n\t\t$this->s1->TooltipValue = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->LinkCustomAttributes = \"\";\n\t\t$this->sc2->HrefValue = \"\";\n\t\t$this->sc2->TooltipValue = \"\";\n\n\t\t// s2\n\t\t$this->s2->LinkCustomAttributes = \"\";\n\t\t$this->s2->HrefValue = \"\";\n\t\t$this->s2->TooltipValue = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->LinkCustomAttributes = \"\";\n\t\t$this->sc3->HrefValue = \"\";\n\t\t$this->sc3->TooltipValue = \"\";\n\n\t\t// s3\n\t\t$this->s3->LinkCustomAttributes = \"\";\n\t\t$this->s3->HrefValue = \"\";\n\t\t$this->s3->TooltipValue = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->LinkCustomAttributes = \"\";\n\t\t$this->sc4->HrefValue = \"\";\n\t\t$this->sc4->TooltipValue = \"\";\n\n\t\t// s4\n\t\t$this->s4->LinkCustomAttributes = \"\";\n\t\t$this->s4->HrefValue = \"\";\n\t\t$this->s4->TooltipValue = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->LinkCustomAttributes = \"\";\n\t\t$this->sc5->HrefValue = \"\";\n\t\t$this->sc5->TooltipValue = \"\";\n\n\t\t// s5\n\t\t$this->s5->LinkCustomAttributes = \"\";\n\t\t$this->s5->HrefValue = \"\";\n\t\t$this->s5->TooltipValue = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->LinkCustomAttributes = \"\";\n\t\t$this->sc6->HrefValue = \"\";\n\t\t$this->sc6->TooltipValue = \"\";\n\n\t\t// s6\n\t\t$this->s6->LinkCustomAttributes = \"\";\n\t\t$this->s6->HrefValue = \"\";\n\t\t$this->s6->TooltipValue = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->LinkCustomAttributes = \"\";\n\t\t$this->sc7->HrefValue = \"\";\n\t\t$this->sc7->TooltipValue = \"\";\n\n\t\t// s7\n\t\t$this->s7->LinkCustomAttributes = \"\";\n\t\t$this->s7->HrefValue = \"\";\n\t\t$this->s7->TooltipValue = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->LinkCustomAttributes = \"\";\n\t\t$this->sc8->HrefValue = \"\";\n\t\t$this->sc8->TooltipValue = \"\";\n\n\t\t// s8\n\t\t$this->s8->LinkCustomAttributes = \"\";\n\t\t$this->s8->HrefValue = \"\";\n\t\t$this->s8->TooltipValue = \"\";\n\n\t\t// total\n\t\t$this->total->LinkCustomAttributes = \"\";\n\t\t$this->total->HrefValue = \"\";\n\t\t$this->total->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->CustomTemplateFieldValues();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// idfb_posts\r\n\t\t// id\r\n\t\t// created_time\r\n\t\t// actions\r\n\t\t// icon\r\n\t\t// is_published\r\n\t\t// message\r\n\t\t// link\r\n\t\t// object_id\r\n\t\t// picture\r\n\t\t// privacy\r\n\t\t// promotion_status\r\n\t\t// timeline_visibility\r\n\t\t// type\r\n\t\t// updated_time\r\n\t\t// caption\r\n\t\t// description\r\n\t\t// name\r\n\t\t// source\r\n\t\t// from\r\n\t\t// to\r\n\t\t// comments\r\n\t\t// id_grupo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// idfb_posts\r\n\t\t\t$this->idfb_posts->ViewValue = $this->idfb_posts->CurrentValue;\r\n\t\t\t$this->idfb_posts->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->ViewValue = $this->created_time->CurrentValue;\r\n\t\t\t$this->created_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// actions\r\n\t\t\t$this->actions->ViewValue = $this->actions->CurrentValue;\r\n\t\t\t$this->actions->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// icon\r\n\t\t\t$this->icon->ViewValue = $this->icon->CurrentValue;\r\n\t\t\t$this->icon->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// is_published\r\n\t\t\t$this->is_published->ViewValue = $this->is_published->CurrentValue;\r\n\t\t\t$this->is_published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->ViewValue = $this->message->CurrentValue;\r\n\t\t\t$this->message->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->ViewValue = $this->link->CurrentValue;\r\n\t\t\t$this->link->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// object_id\r\n\t\t\t$this->object_id->ViewValue = $this->object_id->CurrentValue;\r\n\t\t\t$this->object_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// picture\r\n\t\t\t$this->picture->ViewValue = $this->picture->CurrentValue;\r\n\t\t\t$this->picture->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// privacy\r\n\t\t\t$this->privacy->ViewValue = $this->privacy->CurrentValue;\r\n\t\t\t$this->privacy->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// promotion_status\r\n\t\t\t$this->promotion_status->ViewValue = $this->promotion_status->CurrentValue;\r\n\t\t\t$this->promotion_status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// timeline_visibility\r\n\t\t\t$this->timeline_visibility->ViewValue = $this->timeline_visibility->CurrentValue;\r\n\t\t\t$this->timeline_visibility->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->ViewValue = $this->type->CurrentValue;\r\n\t\t\t$this->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated_time\r\n\t\t\t$this->updated_time->ViewValue = $this->updated_time->CurrentValue;\r\n\t\t\t$this->updated_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->ViewValue = $this->caption->CurrentValue;\r\n\t\t\t$this->caption->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\r\n\t\t\t$this->description->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\r\n\t\t\t$this->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->ViewValue = $this->source->CurrentValue;\r\n\t\t\t$this->source->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->ViewValue = $this->from->CurrentValue;\r\n\t\t\t$this->from->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// to\r\n\t\t\t$this->to->ViewValue = $this->to->CurrentValue;\r\n\t\t\t$this->to->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id_grupo\r\n\t\t\t$this->id_grupo->ViewValue = $this->id_grupo->CurrentValue;\r\n\t\t\t$this->id_grupo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->LinkCustomAttributes = \"\";\r\n\t\t\t$this->created_time->HrefValue = \"\";\r\n\t\t\t$this->created_time->TooltipValue = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->LinkCustomAttributes = \"\";\r\n\t\t\t$this->message->HrefValue = \"\";\r\n\t\t\t$this->message->TooltipValue = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->LinkCustomAttributes = \"\";\r\n\t\t\t$this->link->HrefValue = \"\";\r\n\t\t\t$this->link->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->type->HrefValue = \"\";\r\n\t\t\t$this->type->TooltipValue = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->LinkCustomAttributes = \"\";\r\n\t\t\t$this->caption->HrefValue = \"\";\r\n\t\t\t$this->caption->TooltipValue = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->LinkCustomAttributes = \"\";\r\n\t\t\t$this->description->HrefValue = \"\";\r\n\t\t\t$this->description->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->LinkCustomAttributes = \"\";\r\n\t\t\t$this->name->HrefValue = \"\";\r\n\t\t\t$this->name->TooltipValue = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->LinkCustomAttributes = \"\";\r\n\t\t\t$this->source->HrefValue = \"\";\r\n\t\t\t$this->source->TooltipValue = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->LinkCustomAttributes = \"\";\r\n\t\t\t$this->from->HrefValue = \"\";\r\n\t\t\t$this->from->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "protected abstract function retrieveFormDisplayFields(Row $row);", "function render_field( $field ) {\n\t\t\n\t\t// vars\n\t\t$sub_fields = $field['sub_fields'];\n\t\t$show_order = true;\n\t\t$show_add = true;\n\t\t$show_remove = true;\n\t\t\n\t\t\n\t\t// bail early if no sub fields\n\t\tif( empty($sub_fields) ) return;\n\t\t\n\t\t\n\t\t// value\n\t\t$value = is_array($field['value']) ? $field['value'] : array();\n\t\t\n\t\t\n\t\t// div\n\t\t$div = array(\n\t\t\t'class' \t\t=> 'acf-repeater',\n\t\t\t'data-min' \t\t=> $field['min'],\n\t\t\t'data-max'\t\t=> $field['max']\n\t\t);\n\t\t\n\t\t\n\t\t// empty\n\t\tif( empty($value) ) {\n\t\t\t\n\t\t\t$div['class'] .= ' -empty';\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// If there are less values than min, populate the extra values\n\t\tif( $field['min'] ) {\n\t\t\t\n\t\t\t$value = array_pad($value, $field['min'], array());\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// If there are more values than man, remove some values\n\t\tif( $field['max'] ) {\n\t\t\t\n\t\t\t$value = array_slice($value, 0, $field['max']);\n\t\t\t\n\t\t\t\n\t\t\t// if max 1 row, don't show order\n\t\t\tif( $field['max'] == 1 ) {\n\t\t\t\n\t\t\t\t$show_order = false;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// if max == min, don't show add or remove buttons\n\t\t\tif( $field['max'] <= $field['min'] ) {\n\t\t\t\n\t\t\t\t$show_remove = false;\n\t\t\t\t$show_add = false;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// setup values for row clone\n\t\t$value['acfcloneindex'] = array();\n\t\t\n\t\t\n\t\t// button label\n\t\tif( $field['button_label'] === '' ) $field['button_label'] = __('Add Row', 'acf');\n\t\t\n\t\t\n\t\t// field wrap\n\t\t$el = 'td';\n\t\t$before_fields = '';\n\t\t$after_fields = '';\n\t\t\n\t\tif( $field['layout'] == 'row' ) {\n\t\t\n\t\t\t$el = 'div';\n\t\t\t$before_fields = '<td class=\"acf-fields -left\">';\n\t\t\t$after_fields = '</td>';\n\t\t\t\n\t\t} elseif( $field['layout'] == 'block' ) {\n\t\t\n\t\t\t$el = 'div';\n\t\t\t\n\t\t\t$before_fields = '<td class=\"acf-fields\">';\n\t\t\t$after_fields = '</td>';\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// layout\n\t\t$div['class'] .= ' -' . $field['layout'];\n\t\t\n\t\t\n\t\t// hidden input\n\t\tacf_hidden_input(array(\n\t\t\t'type'\t=> 'hidden',\n\t\t\t'name'\t=> $field['name'],\n\t\t));\n\t\t\n\t\t\n\t\t// collapsed\n\t\tif( $field['collapsed'] ) {\n\t\t\t\n\t\t\t// add target class\n\t\t\tforeach( $sub_fields as $i => $sub_field ) {\n\t\t\t\t\n\t\t\t\t// bail early if no match\n\t\t\t\tif( $sub_field['key'] !== $field['collapsed'] ) continue;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// class\n\t\t\t\t$sub_field['wrapper']['class'] .= ' -collapsed-target';\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// update\n\t\t\t\t$sub_fields[ $i ] = $sub_field;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n?>\n<div <?php acf_esc_attr_e($div); ?>>\n<table class=\"acf-table\">\n\t\n\t<?php if( $field['layout'] == 'table' ): ?>\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<?php if( $show_order ): ?>\n\t\t\t\t\t<th class=\"acf-row-handle\"></th>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t\n\t\t\t\t<?php foreach( $sub_fields as $sub_field ): \n\t\t\t\t\t\n\t\t\t\t\t// prepare field (allow sub fields to be removed)\n\t\t\t\t\t$sub_field = acf_prepare_field($sub_field);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// bail ealry if no field\n\t\t\t\t\tif( !$sub_field ) continue;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// vars\n\t\t\t\t\t$atts = array();\n\t\t\t\t\t$atts['class'] = 'acf-th';\n\t\t\t\t\t$atts['data-name'] = $sub_field['_name'];\n\t\t\t\t\t$atts['data-type'] = $sub_field['type'];\n\t\t\t\t\t$atts['data-key'] = $sub_field['key'];\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Add custom width\n\t\t\t\t\tif( $sub_field['wrapper']['width'] ) {\n\t\t\t\t\t\n\t\t\t\t\t\t$atts['data-width'] = $sub_field['wrapper']['width'];\n\t\t\t\t\t\t$atts['style'] = 'width: ' . $sub_field['wrapper']['width'] . '%;';\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t\t<th <?php echo acf_esc_attr( $atts ); ?>>\n\t\t\t\t\t\t<?php echo acf_get_field_label( $sub_field ); ?>\n\t\t\t\t\t\t<?php if( $sub_field['instructions'] ): ?>\n\t\t\t\t\t\t\t<p class=\"description\"><?php echo $sub_field['instructions']; ?></p>\n\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t</th>\n\t\t\t\t<?php endforeach; ?>\n\n\t\t\t\t<?php if( $show_remove ): ?>\n\t\t\t\t\t<th class=\"acf-row-handle\"></th>\n\t\t\t\t<?php endif; ?>\n\t\t\t</tr>\n\t\t</thead>\n\t<?php endif; ?>\n\t\n\t<tbody>\n\t\t<?php foreach( $value as $i => $row ): \n\t\t\t\n\t\t\t$row_class = 'acf-row';\n\t\t\t\n\t\t\tif( $i === 'acfcloneindex' ) {\n\t\t\t\t\n\t\t\t\t$row_class .= ' acf-clone';\n\t\t\t\t\n\t\t\t} elseif( $field['collapsed'] && acf_is_row_collapsed($field['key'], $i) ) {\n\t\t\t\t\n\t\t\t\t$row_class .= ' -collapsed';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t?>\n\t\t\t<tr class=\"<?php echo $row_class; ?>\" data-id=\"<?php echo $i; ?>\">\n\t\t\t\t\n\t\t\t\t<?php if( $show_order ): ?>\n\t\t\t\t\t<td class=\"acf-row-handle order\" title=\"<?php _e('Drag to reorder','acf'); ?>\">\n\t\t\t\t\t\t<?php if( $field['collapsed'] ): ?>\n\t\t\t\t\t\t<a class=\"acf-icon -collapse small\" href=\"#\" data-event=\"collapse-row\" title=\"<?php _e('Click to toggle','acf'); ?>\"></a>\n\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t<span><?php echo intval($i) + 1; ?></span>\n\t\t\t\t\t</td>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t\n\t\t\t\t<?php echo $before_fields; ?>\n\t\t\t\t\n\t\t\t\t<?php foreach( $sub_fields as $sub_field ): \n\t\t\t\t\t\n\t\t\t\t\t// prevent repeater field from creating multiple conditional logic items for each row\n\t\t\t\t\tif( $i !== 'acfcloneindex' ) {\n\t\t\t\t\t\n\t\t\t\t\t\t$sub_field['conditional_logic'] = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// add value\n\t\t\t\t\tif( isset($row[ $sub_field['key'] ]) ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// this is a normal value\n\t\t\t\t\t\t$sub_field['value'] = $row[ $sub_field['key'] ];\n\t\t\t\t\t\t\n\t\t\t\t\t} elseif( isset($sub_field['default_value']) ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// no value, but this sub field has a default value\n\t\t\t\t\t\t$sub_field['value'] = $sub_field['default_value'];\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// update prefix to allow for nested values\n\t\t\t\t\t$sub_field['prefix'] = $field['name'] . '[' . $i . ']';\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// render input\n\t\t\t\t\tacf_render_field_wrap( $sub_field, $el ); ?>\n\t\t\t\t\t\n\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\n\t\t\t\t<?php echo $after_fields; ?>\n\t\t\t\t\n\t\t\t\t<?php if( $show_remove ): ?>\n\t\t\t\t\t<td class=\"acf-row-handle remove\">\n\t\t\t\t\t\t<a class=\"acf-icon -plus small acf-js-tooltip\" href=\"#\" data-event=\"add-row\" title=\"<?php _e('Add row','acf'); ?>\"></a>\n\t\t\t\t\t\t<a class=\"acf-icon -minus small acf-js-tooltip\" href=\"#\" data-event=\"remove-row\" title=\"<?php _e('Remove row','acf'); ?>\"></a>\n\t\t\t\t\t</td>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t\n\t\t\t</tr>\n\t\t<?php endforeach; ?>\n\t</tbody>\n</table>\n<?php if( $show_add ): ?>\n\t\n\t<ul class=\"acf-actions acf-hl\">\n\t\t<li>\n\t\t\t<a class=\"acf-button button button-primary\" href=\"#\" data-event=\"add-row\"><?php echo $field['button_label']; ?></a>\n\t\t</li>\n\t</ul>\n\t\t\t\n<?php endif; ?>\n</div>\n<?php\n\t\t\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $responsable;\n\n\t\t// Call Row_Rendering event\n\t\t$responsable->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idGerente\n\n\t\t$responsable->idGerente->CellCssStyle = \"\";\n\t\t$responsable->idGerente->CellCssClass = \"\";\n\n\t\t// idMer\n\t\t$responsable->idMer->CellCssStyle = \"\";\n\t\t$responsable->idMer->CellCssClass = \"\";\n\n\t\t// fecha\n\t\t$responsable->fecha->CellCssStyle = \"\";\n\t\t$responsable->fecha->CellCssClass = \"\";\n\n\t\t// habilitado\n\t\t$responsable->habilitado->CellCssStyle = \"\";\n\t\t$responsable->habilitado->CellCssClass = \"\";\n\t\tif ($responsable->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idResponsable\n\t\t\t$responsable->idResponsable->ViewValue = $responsable->idResponsable->CurrentValue;\n\t\t\t$responsable->idResponsable->CssStyle = \"\";\n\t\t\t$responsable->idResponsable->CssClass = \"\";\n\t\t\t$responsable->idResponsable->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\tif (strval($responsable->idGerente->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `nombre`, `paterno` FROM `usuario` WHERE `idUsuario` = \" . ew_AdjustSql($responsable->idGerente->CurrentValue) . \"\";\n\t\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idGerente->ViewValue = $rswrk->fields('nombre');\n\t\t\t\t\t$responsable->idGerente->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('paterno');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idGerente->ViewValue = $responsable->idGerente->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idGerente->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idGerente->CssStyle = \"\";\n\t\t\t$responsable->idGerente->CssClass = \"\";\n\t\t\t$responsable->idGerente->ViewCustomAttributes = \"\";\n\n\t\t\t// idMer\n\t\t\tif (strval($responsable->idMer->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `mer` FROM `mer` WHERE `idMer` = \" . ew_AdjustSql($responsable->idMer->CurrentValue) . \"\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idMer->ViewValue = $rswrk->fields('mer');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idMer->ViewValue = $responsable->idMer->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idMer->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idMer->CssStyle = \"\";\n\t\t\t$responsable->idMer->CssClass = \"\";\n\t\t\t$responsable->idMer->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->ViewValue = $responsable->fecha->CurrentValue;\n\t\t\t$responsable->fecha->ViewValue = ew_FormatDateTime($responsable->fecha->ViewValue, 7);\n\t\t\t$responsable->fecha->CssStyle = \"\";\n\t\t\t$responsable->fecha->CssClass = \"\";\n\t\t\t$responsable->fecha->ViewCustomAttributes = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->ViewValue = $responsable->habilitado->CurrentValue;\n\t\t\t$responsable->habilitado->CssStyle = \"\";\n\t\t\t$responsable->habilitado->CssClass = \"\";\n\t\t\t$responsable->habilitado->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->HrefValue = \"\";\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->HrefValue = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->HrefValue = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->HrefValue = \"\";\n\t\t} elseif ($responsable->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idUsuario`, `paterno`, `nombre`, '' AS SelectFilterFld FROM `usuario`\";\n\t\t\t$sWhereWrk = \"idRol='2'\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\", \"\"));\n\t\t\t$responsable->idGerente->EditValue = $arwrk;\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idMer`, `mer`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `mer`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `mer` Asc\";\n $rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\"));\n\t\t\t$responsable->idMer->EditValue = $arwrk;\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->EditCustomAttributes = \"\";\n\t\t\t$responsable->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($responsable->fecha->CurrentValue, 7));\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->EditCustomAttributes = \"\";\n\t\t\t$responsable->habilitado->EditValue = ew_HtmlEncode($responsable->habilitado->CurrentValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$responsable->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $sponsored_student;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$sponsored_student->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// sponsored_student_id\n\n\t\t$sponsored_student->sponsored_student_id->CellCssStyle = \"\"; $sponsored_student->sponsored_student_id->CellCssClass = \"\";\n\t\t$sponsored_student->sponsored_student_id->CellAttrs = array(); $sponsored_student->sponsored_student_id->ViewAttrs = array(); $sponsored_student->sponsored_student_id->EditAttrs = array();\n\n\t\t// student_firstname\n\t\t$sponsored_student->student_firstname->CellCssStyle = \"\"; $sponsored_student->student_firstname->CellCssClass = \"\";\n\t\t$sponsored_student->student_firstname->CellAttrs = array(); $sponsored_student->student_firstname->ViewAttrs = array(); $sponsored_student->student_firstname->EditAttrs = array();\n\n\t\t// student_middlename\n\t\t$sponsored_student->student_middlename->CellCssStyle = \"\"; $sponsored_student->student_middlename->CellCssClass = \"\";\n\t\t$sponsored_student->student_middlename->CellAttrs = array(); $sponsored_student->student_middlename->ViewAttrs = array(); $sponsored_student->student_middlename->EditAttrs = array();\n\n\t\t// student_lastname\n\t\t$sponsored_student->student_lastname->CellCssStyle = \"\"; $sponsored_student->student_lastname->CellCssClass = \"\";\n\t\t$sponsored_student->student_lastname->CellAttrs = array(); $sponsored_student->student_lastname->ViewAttrs = array(); $sponsored_student->student_lastname->EditAttrs = array();\n\n\t\t// student_grades\n\t\t$sponsored_student->student_grades->CellCssStyle = \"\"; $sponsored_student->student_grades->CellCssClass = \"\";\n\t\t$sponsored_student->student_grades->CellAttrs = array(); $sponsored_student->student_grades->ViewAttrs = array(); $sponsored_student->student_grades->EditAttrs = array();\n\n\t\t// student_resident_programarea_id\n\t\t$sponsored_student->student_resident_programarea_id->CellCssStyle = \"\"; $sponsored_student->student_resident_programarea_id->CellCssClass = \"\";\n\t\t$sponsored_student->student_resident_programarea_id->CellAttrs = array(); $sponsored_student->student_resident_programarea_id->ViewAttrs = array(); $sponsored_student->student_resident_programarea_id->EditAttrs = array();\n\n\t\t// group_id\n\t\t$sponsored_student->group_id->CellCssStyle = \"\"; $sponsored_student->group_id->CellCssClass = \"\";\n\t\t$sponsored_student->group_id->CellAttrs = array(); $sponsored_student->group_id->ViewAttrs = array(); $sponsored_student->group_id->EditAttrs = array();\n\n\t\t// community_community_id\n\t\t$sponsored_student->community_community_id->CellCssStyle = \"\"; $sponsored_student->community_community_id->CellCssClass = \"\";\n\t\t$sponsored_student->community_community_id->CellAttrs = array(); $sponsored_student->community_community_id->ViewAttrs = array(); $sponsored_student->community_community_id->EditAttrs = array();\n\t\tif ($sponsored_student->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->ViewValue = $sponsored_student->sponsored_student_id->CurrentValue;\n\t\t\t$sponsored_student->sponsored_student_id->CssStyle = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->CssClass = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->ViewValue = $sponsored_student->student_firstname->CurrentValue;\n\t\t\t$sponsored_student->student_firstname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_firstname->CssClass = \"\";\n\t\t\t$sponsored_student->student_firstname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->ViewValue = $sponsored_student->student_middlename->CurrentValue;\n\t\t\t$sponsored_student->student_middlename->CssStyle = \"\";\n\t\t\t$sponsored_student->student_middlename->CssClass = \"\";\n\t\t\t$sponsored_student->student_middlename->ViewCustomAttributes = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->ViewValue = $sponsored_student->student_lastname->CurrentValue;\n\t\t\t$sponsored_student->student_lastname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_lastname->CssClass = \"\";\n\t\t\t$sponsored_student->student_lastname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->ViewValue = $sponsored_student->student_grades->CurrentValue;\n\t\t\t$sponsored_student->student_grades->CssStyle = \"\";\n\t\t\t$sponsored_student->student_grades->CssClass = \"\";\n\t\t\t$sponsored_student->student_grades->ViewCustomAttributes = \"\";\n\n\t\t\t// student_applicant_student_applicant_id\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\tif (strval($sponsored_student->student_applicant_student_applicant_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`student_applicant_id` = \" . ew_AdjustSql($sponsored_student->student_applicant_student_applicant_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `student_lastname`, `student_firstname` FROM `student_applicant`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $rswrk->fields('student_lastname');\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('student_firstname');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\tif (strval($sponsored_student->student_resident_programarea_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`programarea_id` = \" . ew_AdjustSql($sponsored_student->student_resident_programarea_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_name` FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $rswrk->fields('programarea_name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $sponsored_student->student_resident_programarea_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_resident_programarea_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->ViewCustomAttributes = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->ViewValue = $sponsored_student->group_id->CurrentValue;\n\t\t\t$sponsored_student->group_id->CssStyle = \"\";\n\t\t\t$sponsored_student->group_id->CssClass = \"\";\n\t\t\t$sponsored_student->group_id->ViewCustomAttributes = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->ViewValue = $sponsored_student->community_community_id->CurrentValue;\n\t\t\t$sponsored_student->community_community_id->CssStyle = \"\";\n\t\t\t$sponsored_student->community_community_id->CssClass = \"\";\n\t\t\t$sponsored_student->community_community_id->ViewCustomAttributes = \"\";\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->HrefValue = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->TooltipValue = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_firstname->TooltipValue = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->HrefValue = \"\";\n\t\t\t$sponsored_student->student_middlename->TooltipValue = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_lastname->TooltipValue = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->HrefValue = \"\";\n\t\t\t$sponsored_student->student_grades->TooltipValue = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->HrefValue = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->TooltipValue = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->HrefValue = \"\";\n\t\t\t$sponsored_student->group_id->TooltipValue = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->HrefValue = \"\";\n\t\t\t$sponsored_student->community_community_id->TooltipValue = \"\";\n\t\t} elseif ($sponsored_student->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->EditValue = ew_HtmlEncode($sponsored_student->sponsored_student_id->AdvancedSearch->SearchValue);\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue2 = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue2 = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue2 = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_grades->EditValue = ew_HtmlEncode($sponsored_student->student_grades->AdvancedSearch->SearchValue);\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_id`, `programarea_name`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$sponsored_student->student_resident_programarea_id->EditValue = $arwrk;\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->EditCustomAttributes = \"\";\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn()) { // Non system admin\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sFilterWrk = $GLOBALS[\"users\"]->AddUserIDFilter(\"\");\n\t\t\t$sSqlWrk = \"SELECT `userlevelid`, `userlevelid` FROM `users`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$sponsored_student->group_id->EditValue = $arwrk;\n\t\t\t} else {\n\t\t\t$sponsored_student->group_id->EditValue = ew_HtmlEncode($sponsored_student->group_id->AdvancedSearch->SearchValue);\n\t\t\t}\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->community_community_id->EditValue = ew_HtmlEncode($sponsored_student->community_community_id->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($sponsored_student->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$sponsored_student->Row_Rendered();\n\t}", "function postasevent_render_row_cb( $field_args, $field ) {\n\t$classes = $field->row_classes();\n\t$id = $field->args( 'id' );\n\t$label = $field->args( 'name' );\n\t$name = $field->args( '_name' );\n\t$value = $field->escaped_value();\n\t$description = $field->args( 'description' );\n\t?>\n\t<div class=\"custom-field-row <?php echo $classes; ?>\">\n\t\t<p><label for=\"<?php echo $id; ?>\"><?php echo $label; ?></label></p>\n\t\t<p><input id=\"<?php echo $id; ?>\" type=\"text\" name=\"<?php echo $name; ?>\" value=\"<?php echo $value; ?>\"/></p>\n\t\t<p class=\"description\"><?php echo $description; ?></p>\n\t</div>\n\t<?php\n}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Reasignacion\r\n\t\t// Titular_Original\r\n\t\t// Dni\r\n\t\t// NroSerie\r\n\t\t// Nuevo_Titular\r\n\t\t// Dni_Nuevo_Tit\r\n\t\t// Id_Motivo_Reasig\r\n\t\t// Observacion\r\n\t\t// Fecha_Reasignacion\r\n\t\t// Usuario\r\n\t\t// Fecha_Actualizacion\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Id_Reasignacion\r\n\t\t$this->Id_Reasignacion->ViewValue = $this->Id_Reasignacion->CurrentValue;\r\n\t\t$this->Id_Reasignacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Titular_Original\r\n\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->CurrentValue;\r\n\t\tif (strval($this->Titular_Original->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Titular_Original->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Titular_Original->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Titular_Original->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni\r\n\t\t$this->Dni->ViewValue = $this->Dni->CurrentValue;\r\n\t\t$this->Dni->ViewCustomAttributes = \"\";\r\n\r\n\t\t// NroSerie\r\n\t\t$this->NroSerie->ViewValue = $this->NroSerie->CurrentValue;\r\n\t\tif (strval($this->NroSerie->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->NroSerie->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->NroSerie->ViewValue = $this->NroSerie->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->NroSerie->ViewValue = $this->NroSerie->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->NroSerie->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->NroSerie->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nuevo_Titular\r\n\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->CurrentValue;\r\n\t\tif (strval($this->Nuevo_Titular->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nuevo_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nuevo_Titular->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nuevo_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni_Nuevo_Tit\r\n\t\t$this->Dni_Nuevo_Tit->ViewValue = $this->Dni_Nuevo_Tit->CurrentValue;\r\n\t\t$this->Dni_Nuevo_Tit->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Motivo_Reasig\r\n\t\tif (strval($this->Id_Motivo_Reasig->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Motivo_Reasig`\" . ew_SearchString(\"=\", $this->Id_Motivo_Reasig->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `motivo_reasignacion`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Motivo_Reasig->ViewValue = $this->Id_Motivo_Reasig->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Motivo_Reasig->ViewValue = $this->Id_Motivo_Reasig->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Motivo_Reasig->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Motivo_Reasig->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Observacion\r\n\t\t$this->Observacion->ViewValue = $this->Observacion->CurrentValue;\r\n\t\t$this->Observacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Reasignacion\r\n\t\t$this->Fecha_Reasignacion->ViewValue = $this->Fecha_Reasignacion->CurrentValue;\r\n\t\t$this->Fecha_Reasignacion->ViewValue = ew_FormatDateTime($this->Fecha_Reasignacion->ViewValue, 7);\r\n\t\t$this->Fecha_Reasignacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 0);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Reasignacion\r\n\t\t\t$this->Id_Reasignacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Reasignacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Reasignacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Titular_Original\r\n\t\t\t$this->Titular_Original->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Titular_Original->HrefValue = \"\";\r\n\t\t\t$this->Titular_Original->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni\r\n\t\t\t$this->Dni->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni->HrefValue = \"\";\r\n\t\t\t$this->Dni->TooltipValue = \"\";\r\n\r\n\t\t\t// NroSerie\r\n\t\t\t$this->NroSerie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->NroSerie->HrefValue = \"\";\r\n\t\t\t$this->NroSerie->TooltipValue = \"\";\r\n\r\n\t\t\t// Nuevo_Titular\r\n\t\t\t$this->Nuevo_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nuevo_Titular->HrefValue = \"\";\r\n\t\t\t$this->Nuevo_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni_Nuevo_Tit\r\n\t\t\t$this->Dni_Nuevo_Tit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->HrefValue = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Motivo_Reasig\r\n\t\t\t$this->Id_Motivo_Reasig->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->HrefValue = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->TooltipValue = \"\";\r\n\r\n\t\t\t// Observacion\r\n\t\t\t$this->Observacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observacion->HrefValue = \"\";\r\n\t\t\t$this->Observacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Reasignacion\r\n\t\t\t$this->Fecha_Reasignacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Id_Reasignacion\r\n\t\t\t$this->Id_Reasignacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Reasignacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Id_Reasignacion->EditValue = ew_HtmlEncode($this->Id_Reasignacion->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Id_Reasignacion->PlaceHolder = ew_RemoveHtml($this->Id_Reasignacion->FldCaption());\r\n\r\n\t\t\t// Titular_Original\r\n\t\t\t$this->Titular_Original->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Titular_Original->EditCustomAttributes = \"\";\r\n\t\t\t$this->Titular_Original->EditValue = ew_HtmlEncode($this->Titular_Original->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->Titular_Original->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Titular_Original->AdvancedSearch->SearchValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Titular_Original->EditValue = $this->Titular_Original->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Titular_Original->EditValue = ew_HtmlEncode($this->Titular_Original->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Titular_Original->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Titular_Original->PlaceHolder = ew_RemoveHtml($this->Titular_Original->FldCaption());\r\n\r\n\t\t\t// Dni\r\n\t\t\t$this->Dni->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni->EditValue = ew_HtmlEncode($this->Dni->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Dni->PlaceHolder = ew_RemoveHtml($this->Dni->FldCaption());\r\n\r\n\t\t\t// NroSerie\r\n\t\t\t$this->NroSerie->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->NroSerie->EditCustomAttributes = \"\";\r\n\t\t\t$this->NroSerie->EditValue = ew_HtmlEncode($this->NroSerie->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->NroSerie->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->NroSerie->AdvancedSearch->SearchValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->NroSerie->EditValue = $this->NroSerie->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->NroSerie->EditValue = ew_HtmlEncode($this->NroSerie->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->NroSerie->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->NroSerie->PlaceHolder = ew_RemoveHtml($this->NroSerie->FldCaption());\r\n\r\n\t\t\t// Nuevo_Titular\r\n\t\t\t$this->Nuevo_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nuevo_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nuevo_Titular->EditValue = ew_HtmlEncode($this->Nuevo_Titular->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->Nuevo_Titular->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nuevo_Titular->AdvancedSearch->SearchValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nuevo_Titular->EditValue = $this->Nuevo_Titular->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nuevo_Titular->EditValue = ew_HtmlEncode($this->Nuevo_Titular->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nuevo_Titular->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nuevo_Titular->PlaceHolder = ew_RemoveHtml($this->Nuevo_Titular->FldCaption());\r\n\r\n\t\t\t// Dni_Nuevo_Tit\r\n\t\t\t$this->Dni_Nuevo_Tit->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni_Nuevo_Tit->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->EditValue = ew_HtmlEncode($this->Dni_Nuevo_Tit->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Dni_Nuevo_Tit->PlaceHolder = ew_RemoveHtml($this->Dni_Nuevo_Tit->FldCaption());\r\n\r\n\t\t\t// Id_Motivo_Reasig\r\n\t\t\t$this->Id_Motivo_Reasig->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Motivo_Reasig->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Motivo_Reasig->AdvancedSearch->SearchValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Motivo_Reasig`\" . ew_SearchString(\"=\", $this->Id_Motivo_Reasig->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `motivo_reasignacion`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Motivo_Reasig->EditValue = $arwrk;\r\n\r\n\t\t\t// Observacion\r\n\t\t\t$this->Observacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Observacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Observacion->EditValue = ew_HtmlEncode($this->Observacion->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Observacion->PlaceHolder = ew_RemoveHtml($this->Observacion->FldCaption());\r\n\r\n\t\t\t// Fecha_Reasignacion\r\n\t\t\t$this->Fecha_Reasignacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Reasignacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Fecha_Reasignacion->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Fecha_Reasignacion->PlaceHolder = ew_RemoveHtml($this->Fecha_Reasignacion->FldCaption());\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Usuario->EditCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->EditValue = ew_HtmlEncode($this->Usuario->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Usuario->PlaceHolder = ew_RemoveHtml($this->Usuario->FldCaption());\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Actualizacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Fecha_Actualizacion->AdvancedSearch->SearchValue, 0), 8));\r\n\t\t\t$this->Fecha_Actualizacion->PlaceHolder = ew_RemoveHtml($this->Fecha_Actualizacion->FldCaption());\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "public function renderRow()\n\t{\n\t\tglobal $Security, $Language, $CurrentLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// document_sequence\n\t\t// firelink_doc_no\n\t\t// project_name\n\t\t// document_tittle\n\t\t// submit_no\n\t\t// revision_no\n\t\t// transmit_no\n\t\t// transmit_date\n\t\t// direction\n\t\t// approval_status\n\t\t// document_link\n\t\t// transaction_date\n\t\t// document_native\n\t\t// username\n\t\t// expiry_date\n\n\t\tif ($this->RowType == ROWTYPE_VIEW) { // View row\n\n\t\t\t// document_sequence\n\t\t\t$this->document_sequence->ViewValue = $this->document_sequence->CurrentValue;\n\t\t\t$this->document_sequence->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->document_sequence->ViewCustomAttributes = \"\";\n\n\t\t\t// firelink_doc_no\n\t\t\tif ($this->firelink_doc_no->VirtualValue <> \"\") {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->CurrentValue;\n\t\t\t$curVal = strval($this->firelink_doc_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->firelink_doc_no->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"firelink_doc_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->firelink_doc_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$arwrk[2] = strtoupper($rswrk->fields('df2'));\n\t\t\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->ViewValue = NULL;\n\t\t\t}\n\t\t\t}\n\t\t\t$this->firelink_doc_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->firelink_doc_no->ViewCustomAttributes = \"\";\n\n\t\t\t// project_name\n\t\t\t$this->project_name->ViewValue = $this->project_name->CurrentValue;\n\t\t\t$this->project_name->ViewCustomAttributes = \"\";\n\n\t\t\t// document_tittle\n\t\t\t$this->document_tittle->ViewValue = $this->document_tittle->CurrentValue;\n\t\t\t$this->document_tittle->ViewValue = strtoupper($this->document_tittle->ViewValue);\n\t\t\t$this->document_tittle->ViewCustomAttributes = \"\";\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->ViewValue = $this->submit_no->CurrentValue;\n\t\t\t$this->submit_no->ViewValue = FormatNumber($this->submit_no->ViewValue, 0, -1, -2, -2);\n\t\t\t$this->submit_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->submit_no->ViewCustomAttributes = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->ViewValue = $this->revision_no->CurrentValue;\n\t\t\t$this->revision_no->ViewValue = strtoupper($this->revision_no->ViewValue);\n\t\t\t$this->revision_no->ViewCustomAttributes = \"\";\n\n\t\t\t// transmit_no\n\t\t\tif ($this->transmit_no->VirtualValue <> \"\") {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->CurrentValue;\n\t\t\t$curVal = strval($this->transmit_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->transmit_no->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"transmittal_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->transmit_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->ViewValue = NULL;\n\t\t\t}\n\t\t\t}\n\t\t\t$this->transmit_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->transmit_no->ViewCustomAttributes = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->ViewValue = $this->transmit_date->CurrentValue;\n\t\t\t$this->transmit_date->ViewValue = FormatDateTime($this->transmit_date->ViewValue, 0);\n\t\t\t$this->transmit_date->ViewCustomAttributes = \"\";\n\n\t\t\t// direction\n\t\t\tif (strval($this->direction->CurrentValue) <> \"\") {\n\t\t\t\t$this->direction->ViewValue = $this->direction->optionCaption($this->direction->CurrentValue);\n\t\t\t} else {\n\t\t\t\t$this->direction->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->direction->ViewCustomAttributes = \"\";\n\n\t\t\t// approval_status\n\t\t\t$curVal = strval($this->approval_status->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->lookupCacheOption($curVal);\n\t\t\t\tif ($this->approval_status->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"short_code\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->approval_status->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$arwrk[2] = strtoupper($rswrk->fields('df2'));\n\t\t\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->approval_status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->approval_status->ViewCustomAttributes = \"\";\n\n\t\t\t// document_link\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->ViewValue = $this->document_link->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->document_link->ViewValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ViewCustomAttributes = \"\";\n\n\t\t\t// transaction_date\n\t\t\t$this->transaction_date->ViewValue = $this->transaction_date->CurrentValue;\n\t\t\t$this->transaction_date->ViewValue = FormatDateTime($this->transaction_date->ViewValue, 0);\n\t\t\t$this->transaction_date->ViewCustomAttributes = \"\";\n\n\t\t\t// document_native\n\t\t\t$this->document_native->ViewValue = $this->document_native->CurrentValue;\n\t\t\t$this->document_native->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->document_native->ViewCustomAttributes = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->ViewValue = $this->expiry_date->CurrentValue;\n\t\t\t$this->expiry_date->ViewValue = FormatDateTime($this->expiry_date->ViewValue, 0);\n\t\t\t$this->expiry_date->ViewCustomAttributes = \"\";\n\n\t\t\t// firelink_doc_no\n\t\t\t$this->firelink_doc_no->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->firelink_doc_no->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->firelink_doc_no->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->firelink_doc_no->HrefValue = FullUrl($this->firelink_doc_no->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->firelink_doc_no->TooltipValue = \"\";\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->submit_no->HrefValue = \"\";\n\t\t\t$this->submit_no->TooltipValue = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->LinkCustomAttributes = \"\";\n\t\t\t$this->revision_no->HrefValue = \"\";\n\t\t\t$this->revision_no->TooltipValue = \"\";\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_no->HrefValue = \"\";\n\t\t\t$this->transmit_no->TooltipValue = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_date->HrefValue = \"\";\n\t\t\t$this->transmit_date->TooltipValue = \"\";\n\n\t\t\t// direction\n\t\t\t$this->direction->LinkCustomAttributes = \"\";\n\t\t\t$this->direction->HrefValue = \"\";\n\t\t\t$this->direction->TooltipValue = \"\";\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->LinkCustomAttributes = \"\";\n\t\t\t$this->approval_status->HrefValue = \"\";\n\t\t\t$this->approval_status->TooltipValue = \"\";\n\n\t\t\t// document_link\n\t\t\t$this->document_link->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->document_link->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->document_link->HrefValue = FullUrl($this->document_link->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->document_link->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ExportHrefValue = $this->document_link->UploadPath . $this->document_link->Upload->DbValue;\n\t\t\t$this->document_link->TooltipValue = \"\";\n\n\t\t\t// document_native\n\t\t\t$this->document_native->LinkCustomAttributes = \"\";\n\t\t\t$this->document_native->HrefValue = \"\";\n\t\t\t$this->document_native->TooltipValue = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->LinkCustomAttributes = \"\";\n\t\t\t$this->expiry_date->HrefValue = \"\";\n\t\t\t$this->expiry_date->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == ROWTYPE_ADD) { // Add row\n\n\t\t\t// firelink_doc_no\n\t\t\t$this->firelink_doc_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->firelink_doc_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->firelink_doc_no->CurrentValue = HtmlDecode($this->firelink_doc_no->CurrentValue);\n\t\t\t$this->firelink_doc_no->EditValue = HtmlEncode($this->firelink_doc_no->CurrentValue);\n\t\t\t$curVal = strval($this->firelink_doc_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->firelink_doc_no->EditValue = $this->firelink_doc_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->firelink_doc_no->EditValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"firelink_doc_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->firelink_doc_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = HtmlEncode(strtoupper($rswrk->fields('df')));\n\t\t\t\t\t\t$arwrk[2] = HtmlEncode(strtoupper($rswrk->fields('df2')));\n\t\t\t\t\t\t$this->firelink_doc_no->EditValue = $this->firelink_doc_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->firelink_doc_no->EditValue = HtmlEncode($this->firelink_doc_no->CurrentValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->firelink_doc_no->PlaceHolder = RemoveHtml($this->firelink_doc_no->caption());\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->submit_no->EditCustomAttributes = \"\";\n\t\t\t$this->submit_no->EditValue = HtmlEncode($this->submit_no->CurrentValue);\n\t\t\t$this->submit_no->PlaceHolder = RemoveHtml($this->submit_no->caption());\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->revision_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->revision_no->CurrentValue = HtmlDecode($this->revision_no->CurrentValue);\n\t\t\t$this->revision_no->EditValue = HtmlEncode($this->revision_no->CurrentValue);\n\t\t\t$this->revision_no->PlaceHolder = RemoveHtml($this->revision_no->caption());\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->transmit_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->transmit_no->CurrentValue = HtmlDecode($this->transmit_no->CurrentValue);\n\t\t\t$this->transmit_no->EditValue = HtmlEncode($this->transmit_no->CurrentValue);\n\t\t\t$curVal = strval($this->transmit_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->transmit_no->EditValue = $this->transmit_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->transmit_no->EditValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"transmittal_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->transmit_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = HtmlEncode(strtoupper($rswrk->fields('df')));\n\t\t\t\t\t\t$this->transmit_no->EditValue = $this->transmit_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->transmit_no->EditValue = HtmlEncode($this->transmit_no->CurrentValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->transmit_no->PlaceHolder = RemoveHtml($this->transmit_no->caption());\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->transmit_date->EditCustomAttributes = \"\";\n\t\t\t$this->transmit_date->EditValue = HtmlEncode(FormatDateTime($this->transmit_date->CurrentValue, 8));\n\t\t\t$this->transmit_date->PlaceHolder = RemoveHtml($this->transmit_date->caption());\n\n\t\t\t// direction\n\t\t\t$this->direction->EditCustomAttributes = \"\";\n\t\t\t$this->direction->EditValue = $this->direction->options(FALSE);\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->approval_status->EditCustomAttributes = \"\";\n\t\t\t$curVal = trim(strval($this->approval_status->CurrentValue));\n\t\t\tif ($curVal <> \"\")\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->lookupCacheOption($curVal);\n\t\t\telse\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->Lookup !== NULL && is_array($this->approval_status->Lookup->Options) ? $curVal : NULL;\n\t\t\tif ($this->approval_status->ViewValue !== NULL) { // Load from cache\n\t\t\t\t$this->approval_status->EditValue = array_values($this->approval_status->Lookup->Options);\n\t\t\t} else { // Lookup from database\n\t\t\t\tif ($curVal == \"\") {\n\t\t\t\t\t$filterWrk = \"0=1\";\n\t\t\t\t} else {\n\t\t\t\t\t$filterWrk = \"\\\"short_code\\\"\" . SearchString(\"=\", $this->approval_status->CurrentValue, DATATYPE_STRING, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->approval_status->Lookup->getSql(TRUE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t\t$rowcnt = count($arwrk);\n\t\t\t\tfor ($i = 0; $i < $rowcnt; $i++) {\n\t\t\t\t\t$arwrk[$i][1] = strtoupper($arwrk[$i][1]);\n\t\t\t\t\t$arwrk[$i][2] = strtoupper($arwrk[$i][2]);\n\t\t\t\t}\n\t\t\t\t$this->approval_status->EditValue = $arwrk;\n\t\t\t}\n\n\t\t\t// document_link\n\t\t\t$this->document_link->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->document_link->EditCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->EditValue = $this->document_link->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->document_link->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!EmptyValue($this->document_link->CurrentValue))\n\t\t\t\t\t$this->document_link->Upload->FileName = $this->document_link->CurrentValue;\n\t\t\tif (($this->isShow() || $this->isCopy()) && !$this->EventCancelled)\n\t\t\t\tRenderUploadField($this->document_link);\n\n\t\t\t// document_native\n\t\t\t$this->document_native->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->document_native->EditCustomAttributes = \"\";\n\t\t\t$this->document_native->EditValue = HtmlEncode($this->document_native->CurrentValue);\n\t\t\t$this->document_native->PlaceHolder = RemoveHtml($this->document_native->caption());\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->expiry_date->EditCustomAttributes = \"\";\n\t\t\t$this->expiry_date->EditValue = HtmlEncode(FormatDateTime($this->expiry_date->CurrentValue, 8));\n\t\t\t$this->expiry_date->PlaceHolder = RemoveHtml($this->expiry_date->caption());\n\n\t\t\t// Add refer script\n\t\t\t// firelink_doc_no\n\n\t\t\t$this->firelink_doc_no->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->firelink_doc_no->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->firelink_doc_no->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->firelink_doc_no->HrefValue = FullUrl($this->firelink_doc_no->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->HrefValue = \"\";\n\t\t\t}\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->submit_no->HrefValue = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->LinkCustomAttributes = \"\";\n\t\t\t$this->revision_no->HrefValue = \"\";\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_no->HrefValue = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_date->HrefValue = \"\";\n\n\t\t\t// direction\n\t\t\t$this->direction->LinkCustomAttributes = \"\";\n\t\t\t$this->direction->HrefValue = \"\";\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->LinkCustomAttributes = \"\";\n\t\t\t$this->approval_status->HrefValue = \"\";\n\n\t\t\t// document_link\n\t\t\t$this->document_link->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->document_link->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->document_link->HrefValue = FullUrl($this->document_link->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->document_link->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ExportHrefValue = $this->document_link->UploadPath . $this->document_link->Upload->DbValue;\n\n\t\t\t// document_native\n\t\t\t$this->document_native->LinkCustomAttributes = \"\";\n\t\t\t$this->document_native->HrefValue = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->LinkCustomAttributes = \"\";\n\t\t\t$this->expiry_date->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == ROWTYPE_ADD || $this->RowType == ROWTYPE_EDIT || $this->RowType == ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->setupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$filesystem->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$filesystem->id->CellCssStyle = \"\";\r\n\t\t$filesystem->id->CellCssClass = \"\";\r\n\r\n\t\t// mount\r\n\t\t$filesystem->mount->CellCssStyle = \"\";\r\n\t\t$filesystem->mount->CellCssClass = \"\";\r\n\r\n\t\t// path\r\n\t\t$filesystem->path->CellCssStyle = \"\";\r\n\t\t$filesystem->path->CellCssClass = \"\";\r\n\r\n\t\t// parent\r\n\t\t$filesystem->parent->CellCssStyle = \"\";\r\n\t\t$filesystem->parent->CellCssClass = \"\";\r\n\r\n\t\t// deprecated\r\n\t\t$filesystem->deprecated->CellCssStyle = \"\";\r\n\t\t$filesystem->deprecated->CellCssClass = \"\";\r\n\r\n\t\t// gid\r\n\t\t$filesystem->gid->CellCssStyle = \"\";\r\n\t\t$filesystem->gid->CellCssClass = \"\";\r\n\r\n\t\t// snapshot\r\n\t\t$filesystem->snapshot->CellCssStyle = \"\";\r\n\t\t$filesystem->snapshot->CellCssClass = \"\";\r\n\r\n\t\t// tapebackup\r\n\t\t$filesystem->tapebackup->CellCssStyle = \"\";\r\n\t\t$filesystem->tapebackup->CellCssClass = \"\";\r\n\r\n\t\t// diskbackup\r\n\t\t$filesystem->diskbackup->CellCssStyle = \"\";\r\n\t\t$filesystem->diskbackup->CellCssClass = \"\";\r\n\r\n\t\t// type\r\n\t\t$filesystem->type->CellCssStyle = \"\";\r\n\t\t$filesystem->type->CellCssClass = \"\";\r\n\r\n\t\t// contact\r\n\t\t$filesystem->contact->CellCssStyle = \"\";\r\n\t\t$filesystem->contact->CellCssClass = \"\";\r\n\r\n\t\t// contact2\r\n\t\t$filesystem->contact2->CellCssStyle = \"\";\r\n\t\t$filesystem->contact2->CellCssClass = \"\";\r\n\r\n\t\t// rescomp\r\n\t\t$filesystem->rescomp->CellCssStyle = \"\";\r\n\t\t$filesystem->rescomp->CellCssClass = \"\";\r\n\t\tif ($filesystem->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->ViewValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->ViewValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->ViewValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->ViewValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->ViewValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->ViewValue = $filesystem->snapshot->CurrentValue;\r\n\t\t\t$filesystem->snapshot->CssStyle = \"\";\r\n\t\t\t$filesystem->snapshot->CssClass = \"\";\r\n\t\t\t$filesystem->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->ViewValue = $filesystem->tapebackup->CurrentValue;\r\n\t\t\t$filesystem->tapebackup->CssStyle = \"\";\r\n\t\t\t$filesystem->tapebackup->CssClass = \"\";\r\n\t\t\t$filesystem->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->ViewValue = $filesystem->diskbackup->CurrentValue;\r\n\t\t\t$filesystem->diskbackup->CssStyle = \"\";\r\n\t\t\t$filesystem->diskbackup->CssClass = \"\";\r\n\t\t\t$filesystem->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->ViewValue = $filesystem->contact2->CurrentValue;\r\n\t\t\t$filesystem->contact2->CssStyle = \"\";\r\n\t\t\t$filesystem->contact2->CssClass = \"\";\r\n\t\t\t$filesystem->contact2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->ViewValue = $filesystem->rescomp->CurrentValue;\r\n\t\t\t$filesystem->rescomp->CssStyle = \"\";\r\n\t\t\t$filesystem->rescomp->CssClass = \"\";\r\n\t\t\t$filesystem->rescomp->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t} elseif ($filesystem->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->id->EditValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->mount->EditValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->path->EditValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->parent->EditValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->deprecated->EditValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->gid->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->gid->CurrentValue = $filesystem->gid->getSessionValue();\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `grp`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->gid->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->snapshot->EditValue = ew_HtmlEncode($filesystem->snapshot->CurrentValue);\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->tapebackup->EditValue = ew_HtmlEncode($filesystem->tapebackup->CurrentValue);\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->diskbackup->EditValue = ew_HtmlEncode($filesystem->diskbackup->CurrentValue);\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->type->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->type->CurrentValue = $filesystem->type->getSessionValue();\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `server_type`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->type->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->contact->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->contact->CurrentValue = $filesystem->contact->getSessionValue();\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$filesystem->contact->EditValue = ew_HtmlEncode($filesystem->contact->CurrentValue);\r\n\t\t\t}\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->contact2->EditValue = ew_HtmlEncode($filesystem->contact2->CurrentValue);\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->rescomp->EditValue = ew_HtmlEncode($filesystem->rescomp->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// id\r\n\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$filesystem->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// period_id\n\t\t// person_id\n\t\t// tipejurnal_id\n\t\t// nomer\n\t\t// createon\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// period_id\n\t\tif (strval($this->period_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->period_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `start` AS `DispFld`, `end` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `periode`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->period_id->LookupFilters = array(\"df1\" => \"7\", \"df2\" => \"7\");\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->period_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_FormatDateTime($rswrk->fields('DispFld'), 7);\n\t\t\t\t$arwrk[2] = ew_FormatDateTime($rswrk->fields('Disp2Fld'), 7);\n\t\t\t\t$this->period_id->ViewValue = $this->period_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->period_id->ViewValue = $this->period_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->period_id->ViewValue = NULL;\n\t\t}\n\t\t$this->period_id->ViewCustomAttributes = \"\";\n\n\t\t// person_id\n\t\t$this->person_id->ViewValue = $this->person_id->CurrentValue;\n\t\t$this->person_id->ViewCustomAttributes = \"\";\n\n\t\t// tipejurnal_id\n\t\tif (strval($this->tipejurnal_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tipejurnal_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipejurnal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipejurnal_id->ViewValue = $this->tipejurnal_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipejurnal_id->ViewValue = $this->tipejurnal_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipejurnal_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipejurnal_id->ViewCustomAttributes = \"\";\n\n\t\t// nomer\n\t\t$this->nomer->ViewValue = $this->nomer->CurrentValue;\n\t\t$this->nomer->ViewCustomAttributes = \"\";\n\n\t\t// createon\n\t\t$this->createon->ViewValue = $this->createon->CurrentValue;\n\t\t$this->createon->ViewValue = ew_FormatDateTime($this->createon->ViewValue, 7);\n\t\t$this->createon->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t\t// tipejurnal_id\n\t\t\t$this->tipejurnal_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipejurnal_id->HrefValue = \"\";\n\t\t\t$this->tipejurnal_id->TooltipValue = \"\";\n\n\t\t\t// nomer\n\t\t\t$this->nomer->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer->HrefValue = \"\";\n\t\t\t$this->nomer->TooltipValue = \"\";\n\n\t\t\t// createon\n\t\t\t$this->createon->LinkCustomAttributes = \"\";\n\t\t\t$this->createon->HrefValue = \"\";\n\t\t\t$this->createon->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// tipejurnal_id\n\t\t\t$this->tipejurnal_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipejurnal_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->tipejurnal_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tipejurnal_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tipejurnal`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->tipejurnal_id->EditValue = $arwrk;\n\n\t\t\t// nomer\n\t\t\t$this->nomer->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomer->EditCustomAttributes = \"\";\n\t\t\t$this->nomer->EditValue = ew_HtmlEncode($this->nomer->CurrentValue);\n\t\t\t$this->nomer->PlaceHolder = ew_RemoveHtml($this->nomer->FldCaption());\n\n\t\t\t// createon\n\t\t\t$this->createon->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->createon->EditCustomAttributes = \"style='width: 115px;'\";\n\t\t\t$this->createon->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->createon->CurrentValue, 7));\n\t\t\t$this->createon->PlaceHolder = ew_RemoveHtml($this->createon->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// tipejurnal_id\n\n\t\t\t$this->tipejurnal_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipejurnal_id->HrefValue = \"\";\n\n\t\t\t// nomer\n\t\t\t$this->nomer->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer->HrefValue = \"\";\n\n\t\t\t// createon\n\t\t\t$this->createon->LinkCustomAttributes = \"\";\n\t\t\t$this->createon->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Nro_Serie\r\n\t\t// SN\r\n\t\t// Cant_Net_Asoc\r\n\t\t// Id_Marca\r\n\t\t// Id_Modelo\r\n\t\t// Id_SO\r\n\t\t// Id_Estado\r\n\t\t// User_Server\r\n\t\t// Pass_Server\r\n\t\t// User_TdServer\r\n\t\t// Pass_TdServer\r\n\t\t// Cue\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Nro_Serie\r\n\t\t$this->Nro_Serie->ViewValue = $this->Nro_Serie->CurrentValue;\r\n\t\t$this->Nro_Serie->ViewCustomAttributes = \"\";\r\n\r\n\t\t// SN\r\n\t\t$this->SN->ViewValue = $this->SN->CurrentValue;\r\n\t\t$this->SN->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cant_Net_Asoc\r\n\t\t$this->Cant_Net_Asoc->ViewValue = $this->Cant_Net_Asoc->CurrentValue;\r\n\t\t$this->Cant_Net_Asoc->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Marca\r\n\t\tif (strval($this->Id_Marca->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Marca`\" . ew_SearchString(\"=\", $this->Id_Marca->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Marca`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `marca_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Marca->ViewValue = $this->Id_Marca->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Marca->ViewValue = $this->Id_Marca->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Marca->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Marca->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Modelo\r\n\t\tif (strval($this->Id_Modelo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Modelo`\" . ew_SearchString(\"=\", $this->Id_Modelo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Modelo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Modelo->ViewValue = $this->Id_Modelo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Modelo->ViewValue = $this->Id_Modelo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Modelo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Modelo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_SO\r\n\t\tif (strval($this->Id_SO->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_SO`\" . ew_SearchString(\"=\", $this->Id_SO->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_SO`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `so_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_SO->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_SO->ViewValue = $this->Id_SO->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_SO->ViewValue = $this->Id_SO->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_SO->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_SO->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado\r\n\t\tif (strval($this->Id_Estado->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado->ViewCustomAttributes = \"\";\r\n\r\n\t\t// User_Server\r\n\t\t$this->User_Server->ViewValue = $this->User_Server->CurrentValue;\r\n\t\t$this->User_Server->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Pass_Server\r\n\t\t$this->Pass_Server->ViewValue = $this->Pass_Server->CurrentValue;\r\n\t\t$this->Pass_Server->ViewCustomAttributes = \"\";\r\n\r\n\t\t// User_TdServer\r\n\t\t$this->User_TdServer->ViewValue = $this->User_TdServer->CurrentValue;\r\n\t\t$this->User_TdServer->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Pass_TdServer\r\n\t\t$this->Pass_TdServer->ViewValue = $this->Pass_TdServer->CurrentValue;\r\n\t\t$this->Pass_TdServer->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue\r\n\t\t$this->Cue->ViewValue = $this->Cue->CurrentValue;\r\n\t\t$this->Cue->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->HrefValue = \"\";\r\n\t\t\t$this->Nro_Serie->TooltipValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\t\t\t$this->SN->TooltipValue = \"\";\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->HrefValue = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Marca->HrefValue = \"\";\r\n\t\t\t$this->Id_Marca->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Modelo->HrefValue = \"\";\r\n\t\t\t$this->Id_Modelo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_SO->HrefValue = \"\";\r\n\t\t\t$this->Id_SO->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado->TooltipValue = \"\";\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->HrefValue = \"\";\r\n\t\t\t$this->User_Server->TooltipValue = \"\";\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->HrefValue = \"\";\r\n\t\t\t$this->Pass_Server->TooltipValue = \"\";\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->HrefValue = \"\";\r\n\t\t\t$this->User_TdServer->TooltipValue = \"\";\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->HrefValue = \"\";\r\n\t\t\t$this->Pass_TdServer->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue->HrefValue = \"\";\r\n\t\t\t$this->Cue->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nro_Serie->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->EditValue = ew_HtmlEncode($this->Nro_Serie->CurrentValue);\r\n\t\t\t$this->Nro_Serie->PlaceHolder = ew_RemoveHtml($this->Nro_Serie->FldCaption());\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->SN->EditCustomAttributes = \"\";\r\n\t\t\t$this->SN->EditValue = ew_HtmlEncode($this->SN->CurrentValue);\r\n\t\t\t$this->SN->PlaceHolder = ew_RemoveHtml($this->SN->FldCaption());\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cant_Net_Asoc->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->EditValue = ew_HtmlEncode($this->Cant_Net_Asoc->CurrentValue);\r\n\t\t\t$this->Cant_Net_Asoc->PlaceHolder = ew_RemoveHtml($this->Cant_Net_Asoc->FldCaption());\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Marca->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Marca->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Marca`\" . ew_SearchString(\"=\", $this->Id_Marca->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Marca`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `marca_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Marca->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Modelo->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Modelo->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Modelo`\" . ew_SearchString(\"=\", $this->Id_Modelo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Modelo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `modelo_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Modelo->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_SO->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_SO->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_SO`\" . ew_SearchString(\"=\", $this->Id_SO->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_SO`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `so_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_SO->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_SO->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Estado->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Estado->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estado_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Estado->EditValue = $arwrk;\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->User_Server->EditCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->EditValue = ew_HtmlEncode($this->User_Server->CurrentValue);\r\n\t\t\t$this->User_Server->PlaceHolder = ew_RemoveHtml($this->User_Server->FldCaption());\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Pass_Server->EditCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->EditValue = ew_HtmlEncode($this->Pass_Server->CurrentValue);\r\n\t\t\t$this->Pass_Server->PlaceHolder = ew_RemoveHtml($this->Pass_Server->FldCaption());\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->User_TdServer->EditCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->EditValue = ew_HtmlEncode($this->User_TdServer->CurrentValue);\r\n\t\t\t$this->User_TdServer->PlaceHolder = ew_RemoveHtml($this->User_TdServer->FldCaption());\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Pass_TdServer->EditCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->EditValue = ew_HtmlEncode($this->Pass_TdServer->CurrentValue);\r\n\t\t\t$this->Pass_TdServer->PlaceHolder = ew_RemoveHtml($this->Pass_TdServer->FldCaption());\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue->EditCustomAttributes = \"\";\r\n\t\t\tif ($this->Cue->getSessionValue() <> \"\") {\r\n\t\t\t\t$this->Cue->CurrentValue = $this->Cue->getSessionValue();\r\n\t\t\t$this->Cue->ViewValue = $this->Cue->CurrentValue;\r\n\t\t\t$this->Cue->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t}\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t// Usuario\r\n\t\t\t// Edit refer script\r\n\t\t\t// Nro_Serie\r\n\r\n\t\t\t$this->Nro_Serie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->HrefValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Marca->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Modelo->HrefValue = \"\";\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_SO->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->HrefValue = \"\";\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->HrefValue = \"\";\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->HrefValue = \"\";\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->HrefValue = \"\";\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue->HrefValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identries\r\n\t\t// domain_id\r\n\t\t// hash_content\r\n\t\t// fuente\r\n\t\t// published\r\n\t\t// updated\r\n\t\t// categorias\r\n\t\t// titulo\r\n\t\t// contenido\r\n\t\t// id\r\n\t\t// islive\r\n\t\t// thumbnail\r\n\t\t// reqdate\r\n\t\t// author\r\n\t\t// trans_en\r\n\t\t// trans_es\r\n\t\t// trans_fr\r\n\t\t// trans_it\r\n\t\t// fid\r\n\t\t// fmd5\r\n\t\t// tool_id\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->ViewValue = $this->identries->CurrentValue;\r\n\t\t\t$this->identries->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// domain_id\r\n\t\t\tif (strval($this->domain_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id_domains`\" . ew_SearchString(\"=\", $this->domain_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id_domains`, `dominio` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `domains`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->domain_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->domain_id->ViewValue = $this->domain_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->domain_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->domain_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// hash_content\r\n\t\t\t$this->hash_content->ViewValue = $this->hash_content->CurrentValue;\r\n\t\t\t$this->hash_content->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fuente\r\n\t\t\t$this->fuente->ViewValue = $this->fuente->CurrentValue;\r\n\t\t\t$this->fuente->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// published\r\n\t\t\t$this->published->ViewValue = $this->published->CurrentValue;\r\n\t\t\t$this->published->ViewValue = ew_FormatDateTime($this->published->ViewValue, 5);\r\n\t\t\t$this->published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated\r\n\t\t\t$this->updated->ViewValue = $this->updated->CurrentValue;\r\n\t\t\t$this->updated->ViewValue = ew_FormatDateTime($this->updated->ViewValue, 5);\r\n\t\t\t$this->updated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// categorias\r\n\t\t\t$this->categorias->ViewValue = $this->categorias->CurrentValue;\r\n\t\t\t$this->categorias->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->ViewValue = $this->titulo->CurrentValue;\r\n\t\t\t$this->titulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->ViewValue = $this->islive->CurrentValue;\r\n\t\t\t$this->islive->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// thumbnail\r\n\t\t\t$this->thumbnail->ViewValue = $this->thumbnail->CurrentValue;\r\n\t\t\t$this->thumbnail->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// reqdate\r\n\t\t\t$this->reqdate->ViewValue = $this->reqdate->CurrentValue;\r\n\t\t\t$this->reqdate->ViewValue = ew_FormatDateTime($this->reqdate->ViewValue, 5);\r\n\t\t\t$this->reqdate->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// author\r\n\t\t\t$this->author->ViewValue = $this->author->CurrentValue;\r\n\t\t\t$this->author->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_en\r\n\t\t\t$this->trans_en->ViewValue = $this->trans_en->CurrentValue;\r\n\t\t\t$this->trans_en->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_es\r\n\t\t\t$this->trans_es->ViewValue = $this->trans_es->CurrentValue;\r\n\t\t\t$this->trans_es->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_fr\r\n\t\t\t$this->trans_fr->ViewValue = $this->trans_fr->CurrentValue;\r\n\t\t\t$this->trans_fr->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_it\r\n\t\t\t$this->trans_it->ViewValue = $this->trans_it->CurrentValue;\r\n\t\t\t$this->trans_it->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fid\r\n\t\t\t$this->fid->ViewValue = $this->fid->CurrentValue;\r\n\t\t\t$this->fid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fmd5\r\n\t\t\t$this->fmd5->ViewValue = $this->fmd5->CurrentValue;\r\n\t\t\t$this->fmd5->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->ViewValue = $this->tool_id->CurrentValue;\r\n\t\t\t$this->tool_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->LinkCustomAttributes = \"\";\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\t\t\t$this->identries->TooltipValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\t\t\t$this->titulo->TooltipValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\t\t\t$this->id->TooltipValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->LinkCustomAttributes = \"\";\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\t\t\t$this->islive->TooltipValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t\t$this->tool_id->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// id\n\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id->EditCustomAttributes = \"\";\n\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fecha->EditCustomAttributes = \"\";\n\t\t$this->fecha->EditValue = FormatDateTime($this->fecha->CurrentValue, 8);\n\t\t$this->fecha->PlaceHolder = RemoveHtml($this->fecha->caption());\n\n\t\t// hora\n\t\t$this->hora->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->hora->EditCustomAttributes = \"\";\n\t\t$this->hora->EditValue = $this->hora->CurrentValue;\n\t\t$this->hora->PlaceHolder = RemoveHtml($this->hora->caption());\n\n\t\t// audio\n\t\t$this->audio->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->audio->EditCustomAttributes = \"\";\n\t\tif (!$this->audio->Raw)\n\t\t\t$this->audio->CurrentValue = HtmlDecode($this->audio->CurrentValue);\n\t\t$this->audio->EditValue = $this->audio->CurrentValue;\n\t\t$this->audio->PlaceHolder = RemoveHtml($this->audio->caption());\n\n\t\t// st\n\t\t$this->st->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->st->EditCustomAttributes = \"\";\n\t\tif (!$this->st->Raw)\n\t\t\t$this->st->CurrentValue = HtmlDecode($this->st->CurrentValue);\n\t\t$this->st->EditValue = $this->st->CurrentValue;\n\t\t$this->st->PlaceHolder = RemoveHtml($this->st->caption());\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechaHoraIni->EditCustomAttributes = \"\";\n\t\t$this->fechaHoraIni->EditValue = FormatDateTime($this->fechaHoraIni->CurrentValue, 8);\n\t\t$this->fechaHoraIni->PlaceHolder = RemoveHtml($this->fechaHoraIni->caption());\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechaHoraFin->EditCustomAttributes = \"\";\n\t\t$this->fechaHoraFin->EditValue = FormatDateTime($this->fechaHoraFin->CurrentValue, 8);\n\t\t$this->fechaHoraFin->PlaceHolder = RemoveHtml($this->fechaHoraFin->caption());\n\n\t\t// telefono\n\t\t$this->telefono->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->telefono->EditCustomAttributes = \"\";\n\t\tif (!$this->telefono->Raw)\n\t\t\t$this->telefono->CurrentValue = HtmlDecode($this->telefono->CurrentValue);\n\t\t$this->telefono->EditValue = $this->telefono->CurrentValue;\n\t\t$this->telefono->PlaceHolder = RemoveHtml($this->telefono->caption());\n\n\t\t// agente\n\t\t$this->agente->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->agente->EditCustomAttributes = \"\";\n\t\t$this->agente->EditValue = $this->agente->CurrentValue;\n\t\t$this->agente->PlaceHolder = RemoveHtml($this->agente->caption());\n\n\t\t// fechabo\n\t\t$this->fechabo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechabo->EditCustomAttributes = \"\";\n\t\t$this->fechabo->EditValue = FormatDateTime($this->fechabo->CurrentValue, 8);\n\t\t$this->fechabo->PlaceHolder = RemoveHtml($this->fechabo->caption());\n\n\t\t// agentebo\n\t\t$this->agentebo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->agentebo->EditCustomAttributes = \"\";\n\t\t$this->agentebo->EditValue = $this->agentebo->CurrentValue;\n\t\t$this->agentebo->PlaceHolder = RemoveHtml($this->agentebo->caption());\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->comentariosbo->EditCustomAttributes = \"\";\n\t\t$this->comentariosbo->EditValue = $this->comentariosbo->CurrentValue;\n\t\t$this->comentariosbo->PlaceHolder = RemoveHtml($this->comentariosbo->caption());\n\n\t\t// IP\n\t\t$this->IP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IP->EditCustomAttributes = \"\";\n\t\tif (!$this->IP->Raw)\n\t\t\t$this->IP->CurrentValue = HtmlDecode($this->IP->CurrentValue);\n\t\t$this->IP->EditValue = $this->IP->CurrentValue;\n\t\t$this->IP->PlaceHolder = RemoveHtml($this->IP->caption());\n\n\t\t// actual\n\t\t$this->actual->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->actual->EditCustomAttributes = \"\";\n\t\tif (!$this->actual->Raw)\n\t\t\t$this->actual->CurrentValue = HtmlDecode($this->actual->CurrentValue);\n\t\t$this->actual->EditValue = $this->actual->CurrentValue;\n\t\t$this->actual->PlaceHolder = RemoveHtml($this->actual->caption());\n\n\t\t// completado\n\t\t$this->completado->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->completado->EditCustomAttributes = \"\";\n\t\tif (!$this->completado->Raw)\n\t\t\t$this->completado->CurrentValue = HtmlDecode($this->completado->CurrentValue);\n\t\t$this->completado->EditValue = $this->completado->CurrentValue;\n\t\t$this->completado->PlaceHolder = RemoveHtml($this->completado->caption());\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_1_R->EditCustomAttributes = \"\";\n\t\t$this->_2_1_R->EditValue = $this->_2_1_R->CurrentValue;\n\t\t$this->_2_1_R->PlaceHolder = RemoveHtml($this->_2_1_R->caption());\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_2_R->EditCustomAttributes = \"\";\n\t\t$this->_2_2_R->EditValue = $this->_2_2_R->CurrentValue;\n\t\t$this->_2_2_R->PlaceHolder = RemoveHtml($this->_2_2_R->caption());\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_3_R->EditCustomAttributes = \"\";\n\t\t$this->_2_3_R->EditValue = $this->_2_3_R->CurrentValue;\n\t\t$this->_2_3_R->PlaceHolder = RemoveHtml($this->_2_3_R->caption());\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_3_4_R->EditCustomAttributes = \"\";\n\t\t$this->_3_4_R->EditValue = $this->_3_4_R->CurrentValue;\n\t\t$this->_3_4_R->PlaceHolder = RemoveHtml($this->_3_4_R->caption());\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_5_R->EditCustomAttributes = \"\";\n\t\t$this->_4_5_R->EditValue = $this->_4_5_R->CurrentValue;\n\t\t$this->_4_5_R->PlaceHolder = RemoveHtml($this->_4_5_R->caption());\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_6_R->EditCustomAttributes = \"\";\n\t\t$this->_4_6_R->EditValue = $this->_4_6_R->CurrentValue;\n\t\t$this->_4_6_R->PlaceHolder = RemoveHtml($this->_4_6_R->caption());\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_7_R->EditCustomAttributes = \"\";\n\t\t$this->_4_7_R->EditValue = $this->_4_7_R->CurrentValue;\n\t\t$this->_4_7_R->PlaceHolder = RemoveHtml($this->_4_7_R->caption());\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_8_R->EditCustomAttributes = \"\";\n\t\t$this->_4_8_R->EditValue = $this->_4_8_R->CurrentValue;\n\t\t$this->_4_8_R->PlaceHolder = RemoveHtml($this->_4_8_R->caption());\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_9_R->EditCustomAttributes = \"\";\n\t\t$this->_5_9_R->EditValue = $this->_5_9_R->CurrentValue;\n\t\t$this->_5_9_R->PlaceHolder = RemoveHtml($this->_5_9_R->caption());\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_10_R->EditCustomAttributes = \"\";\n\t\t$this->_5_10_R->EditValue = $this->_5_10_R->CurrentValue;\n\t\t$this->_5_10_R->PlaceHolder = RemoveHtml($this->_5_10_R->caption());\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_11_R->EditCustomAttributes = \"\";\n\t\t$this->_5_11_R->EditValue = $this->_5_11_R->CurrentValue;\n\t\t$this->_5_11_R->PlaceHolder = RemoveHtml($this->_5_11_R->caption());\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_12_R->EditCustomAttributes = \"\";\n\t\t$this->_5_12_R->EditValue = $this->_5_12_R->CurrentValue;\n\t\t$this->_5_12_R->PlaceHolder = RemoveHtml($this->_5_12_R->caption());\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_13_R->EditCustomAttributes = \"\";\n\t\t$this->_5_13_R->EditValue = $this->_5_13_R->CurrentValue;\n\t\t$this->_5_13_R->PlaceHolder = RemoveHtml($this->_5_13_R->caption());\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_14_R->EditCustomAttributes = \"\";\n\t\t$this->_5_14_R->EditValue = $this->_5_14_R->CurrentValue;\n\t\t$this->_5_14_R->PlaceHolder = RemoveHtml($this->_5_14_R->caption());\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_51_R->EditCustomAttributes = \"\";\n\t\t$this->_5_51_R->EditValue = $this->_5_51_R->CurrentValue;\n\t\t$this->_5_51_R->PlaceHolder = RemoveHtml($this->_5_51_R->caption());\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_15_R->EditCustomAttributes = \"\";\n\t\t$this->_6_15_R->EditValue = $this->_6_15_R->CurrentValue;\n\t\t$this->_6_15_R->PlaceHolder = RemoveHtml($this->_6_15_R->caption());\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_16_R->EditCustomAttributes = \"\";\n\t\t$this->_6_16_R->EditValue = $this->_6_16_R->CurrentValue;\n\t\t$this->_6_16_R->PlaceHolder = RemoveHtml($this->_6_16_R->caption());\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_17_R->EditCustomAttributes = \"\";\n\t\t$this->_6_17_R->EditValue = $this->_6_17_R->CurrentValue;\n\t\t$this->_6_17_R->PlaceHolder = RemoveHtml($this->_6_17_R->caption());\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_18_R->EditCustomAttributes = \"\";\n\t\t$this->_6_18_R->EditValue = $this->_6_18_R->CurrentValue;\n\t\t$this->_6_18_R->PlaceHolder = RemoveHtml($this->_6_18_R->caption());\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_19_R->EditCustomAttributes = \"\";\n\t\t$this->_6_19_R->EditValue = $this->_6_19_R->CurrentValue;\n\t\t$this->_6_19_R->PlaceHolder = RemoveHtml($this->_6_19_R->caption());\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_20_R->EditCustomAttributes = \"\";\n\t\t$this->_6_20_R->EditValue = $this->_6_20_R->CurrentValue;\n\t\t$this->_6_20_R->PlaceHolder = RemoveHtml($this->_6_20_R->caption());\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_52_R->EditCustomAttributes = \"\";\n\t\t$this->_6_52_R->EditValue = $this->_6_52_R->CurrentValue;\n\t\t$this->_6_52_R->PlaceHolder = RemoveHtml($this->_6_52_R->caption());\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_7_21_R->EditCustomAttributes = \"\";\n\t\t$this->_7_21_R->EditValue = $this->_7_21_R->CurrentValue;\n\t\t$this->_7_21_R->PlaceHolder = RemoveHtml($this->_7_21_R->caption());\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_22_R->EditCustomAttributes = \"\";\n\t\t$this->_8_22_R->EditValue = $this->_8_22_R->CurrentValue;\n\t\t$this->_8_22_R->PlaceHolder = RemoveHtml($this->_8_22_R->caption());\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_23_R->EditCustomAttributes = \"\";\n\t\t$this->_8_23_R->EditValue = $this->_8_23_R->CurrentValue;\n\t\t$this->_8_23_R->PlaceHolder = RemoveHtml($this->_8_23_R->caption());\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_24_R->EditCustomAttributes = \"\";\n\t\t$this->_8_24_R->EditValue = $this->_8_24_R->CurrentValue;\n\t\t$this->_8_24_R->PlaceHolder = RemoveHtml($this->_8_24_R->caption());\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_25_R->EditCustomAttributes = \"\";\n\t\t$this->_8_25_R->EditValue = $this->_8_25_R->CurrentValue;\n\t\t$this->_8_25_R->PlaceHolder = RemoveHtml($this->_8_25_R->caption());\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_26_R->EditCustomAttributes = \"\";\n\t\t$this->_9_26_R->EditValue = $this->_9_26_R->CurrentValue;\n\t\t$this->_9_26_R->PlaceHolder = RemoveHtml($this->_9_26_R->caption());\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_27_R->EditCustomAttributes = \"\";\n\t\t$this->_9_27_R->EditValue = $this->_9_27_R->CurrentValue;\n\t\t$this->_9_27_R->PlaceHolder = RemoveHtml($this->_9_27_R->caption());\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_28_R->EditCustomAttributes = \"\";\n\t\t$this->_9_28_R->EditValue = $this->_9_28_R->CurrentValue;\n\t\t$this->_9_28_R->PlaceHolder = RemoveHtml($this->_9_28_R->caption());\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_29_R->EditCustomAttributes = \"\";\n\t\t$this->_9_29_R->EditValue = $this->_9_29_R->CurrentValue;\n\t\t$this->_9_29_R->PlaceHolder = RemoveHtml($this->_9_29_R->caption());\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_30_R->EditCustomAttributes = \"\";\n\t\t$this->_9_30_R->EditValue = $this->_9_30_R->CurrentValue;\n\t\t$this->_9_30_R->PlaceHolder = RemoveHtml($this->_9_30_R->caption());\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_31_R->EditCustomAttributes = \"\";\n\t\t$this->_9_31_R->EditValue = $this->_9_31_R->CurrentValue;\n\t\t$this->_9_31_R->PlaceHolder = RemoveHtml($this->_9_31_R->caption());\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_32_R->EditCustomAttributes = \"\";\n\t\t$this->_9_32_R->EditValue = $this->_9_32_R->CurrentValue;\n\t\t$this->_9_32_R->PlaceHolder = RemoveHtml($this->_9_32_R->caption());\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_33_R->EditCustomAttributes = \"\";\n\t\t$this->_9_33_R->EditValue = $this->_9_33_R->CurrentValue;\n\t\t$this->_9_33_R->PlaceHolder = RemoveHtml($this->_9_33_R->caption());\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_34_R->EditCustomAttributes = \"\";\n\t\t$this->_9_34_R->EditValue = $this->_9_34_R->CurrentValue;\n\t\t$this->_9_34_R->PlaceHolder = RemoveHtml($this->_9_34_R->caption());\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_35_R->EditCustomAttributes = \"\";\n\t\t$this->_9_35_R->EditValue = $this->_9_35_R->CurrentValue;\n\t\t$this->_9_35_R->PlaceHolder = RemoveHtml($this->_9_35_R->caption());\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_36_R->EditCustomAttributes = \"\";\n\t\t$this->_9_36_R->EditValue = $this->_9_36_R->CurrentValue;\n\t\t$this->_9_36_R->PlaceHolder = RemoveHtml($this->_9_36_R->caption());\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_37_R->EditCustomAttributes = \"\";\n\t\t$this->_9_37_R->EditValue = $this->_9_37_R->CurrentValue;\n\t\t$this->_9_37_R->PlaceHolder = RemoveHtml($this->_9_37_R->caption());\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_38_R->EditCustomAttributes = \"\";\n\t\t$this->_9_38_R->EditValue = $this->_9_38_R->CurrentValue;\n\t\t$this->_9_38_R->PlaceHolder = RemoveHtml($this->_9_38_R->caption());\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_39_R->EditCustomAttributes = \"\";\n\t\t$this->_9_39_R->EditValue = $this->_9_39_R->CurrentValue;\n\t\t$this->_9_39_R->PlaceHolder = RemoveHtml($this->_9_39_R->caption());\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_10_40_R->EditCustomAttributes = \"\";\n\t\t$this->_10_40_R->EditValue = $this->_10_40_R->CurrentValue;\n\t\t$this->_10_40_R->PlaceHolder = RemoveHtml($this->_10_40_R->caption());\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_10_41_R->EditCustomAttributes = \"\";\n\t\t$this->_10_41_R->EditValue = $this->_10_41_R->CurrentValue;\n\t\t$this->_10_41_R->PlaceHolder = RemoveHtml($this->_10_41_R->caption());\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_11_42_R->EditCustomAttributes = \"\";\n\t\t$this->_11_42_R->EditValue = $this->_11_42_R->CurrentValue;\n\t\t$this->_11_42_R->PlaceHolder = RemoveHtml($this->_11_42_R->caption());\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_11_43_R->EditCustomAttributes = \"\";\n\t\t$this->_11_43_R->EditValue = $this->_11_43_R->CurrentValue;\n\t\t$this->_11_43_R->PlaceHolder = RemoveHtml($this->_11_43_R->caption());\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_44_R->EditCustomAttributes = \"\";\n\t\t$this->_12_44_R->EditValue = $this->_12_44_R->CurrentValue;\n\t\t$this->_12_44_R->PlaceHolder = RemoveHtml($this->_12_44_R->caption());\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_45_R->EditCustomAttributes = \"\";\n\t\t$this->_12_45_R->EditValue = $this->_12_45_R->CurrentValue;\n\t\t$this->_12_45_R->PlaceHolder = RemoveHtml($this->_12_45_R->caption());\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_46_R->EditCustomAttributes = \"\";\n\t\t$this->_12_46_R->EditValue = $this->_12_46_R->CurrentValue;\n\t\t$this->_12_46_R->PlaceHolder = RemoveHtml($this->_12_46_R->caption());\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_47_R->EditCustomAttributes = \"\";\n\t\t$this->_12_47_R->EditValue = $this->_12_47_R->CurrentValue;\n\t\t$this->_12_47_R->PlaceHolder = RemoveHtml($this->_12_47_R->caption());\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_48_R->EditCustomAttributes = \"\";\n\t\t$this->_12_48_R->EditValue = $this->_12_48_R->CurrentValue;\n\t\t$this->_12_48_R->PlaceHolder = RemoveHtml($this->_12_48_R->caption());\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_49_R->EditCustomAttributes = \"\";\n\t\t$this->_12_49_R->EditValue = $this->_12_49_R->CurrentValue;\n\t\t$this->_12_49_R->PlaceHolder = RemoveHtml($this->_12_49_R->caption());\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_50_R->EditCustomAttributes = \"\";\n\t\t$this->_12_50_R->EditValue = $this->_12_50_R->CurrentValue;\n\t\t$this->_12_50_R->PlaceHolder = RemoveHtml($this->_12_50_R->caption());\n\n\t\t// 1__R\n\t\t$this->_1__R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_1__R->EditCustomAttributes = \"\";\n\t\t$this->_1__R->EditValue = $this->_1__R->CurrentValue;\n\t\t$this->_1__R->PlaceHolder = RemoveHtml($this->_1__R->caption());\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_R->EditValue = $this->_13_54_R->CurrentValue;\n\t\t$this->_13_54_R->PlaceHolder = RemoveHtml($this->_13_54_R->caption());\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_1_R->EditValue = $this->_13_54_1_R->CurrentValue;\n\t\t$this->_13_54_1_R->PlaceHolder = RemoveHtml($this->_13_54_1_R->caption());\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_2_R->EditValue = $this->_13_54_2_R->CurrentValue;\n\t\t$this->_13_54_2_R->PlaceHolder = RemoveHtml($this->_13_54_2_R->caption());\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_R->EditValue = $this->_13_55_R->CurrentValue;\n\t\t$this->_13_55_R->PlaceHolder = RemoveHtml($this->_13_55_R->caption());\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_1_R->EditValue = $this->_13_55_1_R->CurrentValue;\n\t\t$this->_13_55_1_R->PlaceHolder = RemoveHtml($this->_13_55_1_R->caption());\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_2_R->EditValue = $this->_13_55_2_R->CurrentValue;\n\t\t$this->_13_55_2_R->PlaceHolder = RemoveHtml($this->_13_55_2_R->caption());\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_R->EditValue = $this->_13_56_R->CurrentValue;\n\t\t$this->_13_56_R->PlaceHolder = RemoveHtml($this->_13_56_R->caption());\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_1_R->EditValue = $this->_13_56_1_R->CurrentValue;\n\t\t$this->_13_56_1_R->PlaceHolder = RemoveHtml($this->_13_56_1_R->caption());\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_2_R->EditValue = $this->_13_56_2_R->CurrentValue;\n\t\t$this->_13_56_2_R->PlaceHolder = RemoveHtml($this->_13_56_2_R->caption());\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_R->EditValue = $this->_12_53_R->CurrentValue;\n\t\t$this->_12_53_R->PlaceHolder = RemoveHtml($this->_12_53_R->caption());\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_1_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_1_R->EditValue = $this->_12_53_1_R->CurrentValue;\n\t\t$this->_12_53_1_R->PlaceHolder = RemoveHtml($this->_12_53_1_R->caption());\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_2_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_2_R->EditValue = $this->_12_53_2_R->CurrentValue;\n\t\t$this->_12_53_2_R->PlaceHolder = RemoveHtml($this->_12_53_2_R->caption());\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_3_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_3_R->EditValue = $this->_12_53_3_R->CurrentValue;\n\t\t$this->_12_53_3_R->PlaceHolder = RemoveHtml($this->_12_53_3_R->caption());\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_4_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_4_R->EditValue = $this->_12_53_4_R->CurrentValue;\n\t\t$this->_12_53_4_R->PlaceHolder = RemoveHtml($this->_12_53_4_R->caption());\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_5_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_5_R->EditValue = $this->_12_53_5_R->CurrentValue;\n\t\t$this->_12_53_5_R->PlaceHolder = RemoveHtml($this->_12_53_5_R->caption());\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_6_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_6_R->EditValue = $this->_12_53_6_R->CurrentValue;\n\t\t$this->_12_53_6_R->PlaceHolder = RemoveHtml($this->_12_53_6_R->caption());\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_R->EditValue = $this->_13_57_R->CurrentValue;\n\t\t$this->_13_57_R->PlaceHolder = RemoveHtml($this->_13_57_R->caption());\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_1_R->EditValue = $this->_13_57_1_R->CurrentValue;\n\t\t$this->_13_57_1_R->PlaceHolder = RemoveHtml($this->_13_57_1_R->caption());\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_2_R->EditValue = $this->_13_57_2_R->CurrentValue;\n\t\t$this->_13_57_2_R->PlaceHolder = RemoveHtml($this->_13_57_2_R->caption());\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_R->EditValue = $this->_13_58_R->CurrentValue;\n\t\t$this->_13_58_R->PlaceHolder = RemoveHtml($this->_13_58_R->caption());\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_1_R->EditValue = $this->_13_58_1_R->CurrentValue;\n\t\t$this->_13_58_1_R->PlaceHolder = RemoveHtml($this->_13_58_1_R->caption());\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_2_R->EditValue = $this->_13_58_2_R->CurrentValue;\n\t\t$this->_13_58_2_R->PlaceHolder = RemoveHtml($this->_13_58_2_R->caption());\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_R->EditValue = $this->_13_59_R->CurrentValue;\n\t\t$this->_13_59_R->PlaceHolder = RemoveHtml($this->_13_59_R->caption());\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_1_R->EditValue = $this->_13_59_1_R->CurrentValue;\n\t\t$this->_13_59_1_R->PlaceHolder = RemoveHtml($this->_13_59_1_R->caption());\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_2_R->EditValue = $this->_13_59_2_R->CurrentValue;\n\t\t$this->_13_59_2_R->PlaceHolder = RemoveHtml($this->_13_59_2_R->caption());\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_60_R->EditCustomAttributes = \"\";\n\t\t$this->_13_60_R->EditValue = $this->_13_60_R->CurrentValue;\n\t\t$this->_13_60_R->PlaceHolder = RemoveHtml($this->_13_60_R->caption());\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_7_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_7_R->EditValue = $this->_12_53_7_R->CurrentValue;\n\t\t$this->_12_53_7_R->PlaceHolder = RemoveHtml($this->_12_53_7_R->caption());\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_8_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_8_R->EditValue = $this->_12_53_8_R->CurrentValue;\n\t\t$this->_12_53_8_R->PlaceHolder = RemoveHtml($this->_12_53_8_R->caption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// detail_jenis_spp\n\t\t// id_jenis_spp\n\t\t// status_spp\n\t\t// no_spp\n\t\t// tgl_spp\n\t\t// keterangan\n\t\t// jumlah_up\n\t\t// bendahara\n\t\t// nama_pptk\n\t\t// nip_pptk\n\t\t// kode_program\n\t\t// kode_kegiatan\n\t\t// kode_sub_kegiatan\n\t\t// tahun_anggaran\n\t\t// jumlah_spd\n\t\t// nomer_dasar_spd\n\t\t// tanggal_spd\n\t\t// id_spd\n\t\t// kode_rekening\n\t\t// nama_bendahara\n\t\t// nip_bendahara\n\t\t// no_spm\n\t\t// tgl_spm\n\t\t// status_spm\n\t\t// nama_bank\n\t\t// nomer_rekening_bank\n\t\t// npwp\n\t\t// pimpinan_blud\n\t\t// nip_pimpinan\n\t\t// no_sptb\n\t\t// tgl_sptb\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// detail_jenis_spp\n\t\tif (strval($this->detail_jenis_spp->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->detail_jenis_spp->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `detail_jenis_spp` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jenis_detail_spp`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->detail_jenis_spp->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->detail_jenis_spp, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->detail_jenis_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->detail_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// id_jenis_spp\n\t\t$this->id_jenis_spp->ViewValue = $this->id_jenis_spp->CurrentValue;\n\t\t$this->id_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// status_spp\n\t\tif (strval($this->status_spp->CurrentValue) <> \"\") {\n\t\t\t$this->status_spp->ViewValue = $this->status_spp->OptionCaption($this->status_spp->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spp->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spp\n\t\t$this->tgl_spp->ViewValue = $this->tgl_spp->CurrentValue;\n\t\t$this->tgl_spp->ViewValue = ew_FormatDateTime($this->tgl_spp->ViewValue, 0);\n\t\t$this->tgl_spp->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_up\n\t\t$this->jumlah_up->ViewValue = $this->jumlah_up->CurrentValue;\n\t\t$this->jumlah_up->ViewCustomAttributes = \"\";\n\n\t\t// bendahara\n\t\t$this->bendahara->ViewValue = $this->bendahara->CurrentValue;\n\t\t$this->bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nama_pptk\n\t\t$this->nama_pptk->ViewValue = $this->nama_pptk->CurrentValue;\n\t\t$this->nama_pptk->ViewCustomAttributes = \"\";\n\n\t\t// nip_pptk\n\t\t$this->nip_pptk->ViewValue = $this->nip_pptk->CurrentValue;\n\t\t$this->nip_pptk->ViewCustomAttributes = \"\";\n\n\t\t// kode_program\n\t\t$this->kode_program->ViewValue = $this->kode_program->CurrentValue;\n\t\t$this->kode_program->ViewCustomAttributes = \"\";\n\n\t\t// kode_kegiatan\n\t\t$this->kode_kegiatan->ViewValue = $this->kode_kegiatan->CurrentValue;\n\t\t$this->kode_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// kode_sub_kegiatan\n\t\t$this->kode_sub_kegiatan->ViewValue = $this->kode_sub_kegiatan->CurrentValue;\n\t\t$this->kode_sub_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// tahun_anggaran\n\t\t$this->tahun_anggaran->ViewValue = $this->tahun_anggaran->CurrentValue;\n\t\t$this->tahun_anggaran->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_spd\n\t\t$this->jumlah_spd->ViewValue = $this->jumlah_spd->CurrentValue;\n\t\t$this->jumlah_spd->ViewCustomAttributes = \"\";\n\n\t\t// nomer_dasar_spd\n\t\t$this->nomer_dasar_spd->ViewValue = $this->nomer_dasar_spd->CurrentValue;\n\t\t$this->nomer_dasar_spd->ViewCustomAttributes = \"\";\n\n\t\t// tanggal_spd\n\t\t$this->tanggal_spd->ViewValue = $this->tanggal_spd->CurrentValue;\n\t\t$this->tanggal_spd->ViewValue = ew_FormatDateTime($this->tanggal_spd->ViewValue, 0);\n\t\t$this->tanggal_spd->ViewCustomAttributes = \"\";\n\n\t\t// id_spd\n\t\t$this->id_spd->ViewValue = $this->id_spd->CurrentValue;\n\t\t$this->id_spd->ViewCustomAttributes = \"\";\n\n\t\t// kode_rekening\n\t\t$this->kode_rekening->ViewValue = $this->kode_rekening->CurrentValue;\n\t\t$this->kode_rekening->ViewCustomAttributes = \"\";\n\n\t\t// nama_bendahara\n\t\t$this->nama_bendahara->ViewValue = $this->nama_bendahara->CurrentValue;\n\t\t$this->nama_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nip_bendahara\n\t\t$this->nip_bendahara->ViewValue = $this->nip_bendahara->CurrentValue;\n\t\t$this->nip_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// no_spm\n\t\t$this->no_spm->ViewValue = $this->no_spm->CurrentValue;\n\t\t$this->no_spm->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spm\n\t\t$this->tgl_spm->ViewValue = $this->tgl_spm->CurrentValue;\n\t\t$this->tgl_spm->ViewValue = ew_FormatDateTime($this->tgl_spm->ViewValue, 7);\n\t\t$this->tgl_spm->ViewCustomAttributes = \"\";\n\n\t\t// status_spm\n\t\tif (strval($this->status_spm->CurrentValue) <> \"\") {\n\t\t\t$this->status_spm->ViewValue = $this->status_spm->OptionCaption($this->status_spm->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spm->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spm->ViewCustomAttributes = \"\";\n\n\t\t// nama_bank\n\t\tif (strval($this->nama_bank->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`rekening`\" . ew_SearchString(\"=\", $this->nama_bank->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `rekening`, `rekening` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_blud_rs`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->nama_bank->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nama_bank, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nama_bank->ViewValue = NULL;\n\t\t}\n\t\t$this->nama_bank->ViewCustomAttributes = \"\";\n\n\t\t// nomer_rekening_bank\n\t\t$this->nomer_rekening_bank->ViewValue = $this->nomer_rekening_bank->CurrentValue;\n\t\t$this->nomer_rekening_bank->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan_blud\n\t\t$this->pimpinan_blud->ViewValue = $this->pimpinan_blud->CurrentValue;\n\t\t$this->pimpinan_blud->ViewCustomAttributes = \"\";\n\n\t\t// nip_pimpinan\n\t\t$this->nip_pimpinan->ViewValue = $this->nip_pimpinan->CurrentValue;\n\t\t$this->nip_pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// no_sptb\n\t\t$this->no_sptb->ViewValue = $this->no_sptb->CurrentValue;\n\t\t$this->no_sptb->ViewCustomAttributes = \"\";\n\n\t\t// tgl_sptb\n\t\t$this->tgl_sptb->ViewValue = $this->tgl_sptb->CurrentValue;\n\t\t$this->tgl_sptb->ViewValue = ew_FormatDateTime($this->tgl_sptb->ViewValue, 7);\n\t\t$this->tgl_sptb->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// detail_jenis_spp\n\t\t\t$this->detail_jenis_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->detail_jenis_spp->HrefValue = \"\";\n\t\t\t$this->detail_jenis_spp->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// tgl_spp\n\t\t\t$this->tgl_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spp->HrefValue = \"\";\n\t\t\t$this->tgl_spp->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// no_spm\n\t\t\t$this->no_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spm->HrefValue = \"\";\n\t\t\t$this->no_spm->TooltipValue = \"\";\n\n\t\t\t// tgl_spm\n\t\t\t$this->tgl_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spm->HrefValue = \"\";\n\t\t\t$this->tgl_spm->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function enumerate_values_table_row(){\n\t\treturn \"\n\t\t\t<tr>\n\t\t\t\t<td>$this->avg_reaction_time_m_no_faces</td> \n\t\t\t\t<td>$this->accuracy_m_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_m_faces</td> \n\t\t\t\t<td>$this->accuracy_m_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_aba_no_faces</td> \n\t\t\t\t<td>$this->accuracy_aba_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_aba_faces</td> \n\t\t\t\t<td>$this->accuracy_aba_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_faces</td> \n\t\t\t\t<td>$this->accuracy_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_no_faces</td> \n\t\t\t\t<td>$this->accuracy_no_faces</td> \n\t\t\t</tr>\n\t\t\";\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $archv_finished;\n\n\t\t// Initialize URLs\n\t\t$this->ExportPrintUrl = $this->PageUrl() . \"export=print&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportHtmlUrl = $this->PageUrl() . \"export=html&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportExcelUrl = $this->PageUrl() . \"export=excel&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportWordUrl = $this->PageUrl() . \"export=word&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportXmlUrl = $this->PageUrl() . \"export=xml&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportCsvUrl = $this->PageUrl() . \"export=csv&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->AddUrl = $archv_finished->AddUrl();\n\t\t$this->EditUrl = $archv_finished->EditUrl();\n\t\t$this->CopyUrl = $archv_finished->CopyUrl();\n\t\t$this->DeleteUrl = $archv_finished->DeleteUrl();\n\t\t$this->ListUrl = $archv_finished->ListUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$archv_finished->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// ID\n\n\t\t$archv_finished->ID->CellCssStyle = \"\"; $archv_finished->ID->CellCssClass = \"\";\n\t\t$archv_finished->ID->CellAttrs = array(); $archv_finished->ID->ViewAttrs = array(); $archv_finished->ID->EditAttrs = array();\n\n\t\t// strjrfnum\n\t\t$archv_finished->strjrfnum->CellCssStyle = \"\"; $archv_finished->strjrfnum->CellCssClass = \"\";\n\t\t$archv_finished->strjrfnum->CellAttrs = array(); $archv_finished->strjrfnum->ViewAttrs = array(); $archv_finished->strjrfnum->EditAttrs = array();\n\n\t\t// strquarter\n\t\t$archv_finished->strquarter->CellCssStyle = \"\"; $archv_finished->strquarter->CellCssClass = \"\";\n\t\t$archv_finished->strquarter->CellAttrs = array(); $archv_finished->strquarter->ViewAttrs = array(); $archv_finished->strquarter->EditAttrs = array();\n\n\t\t// strmon\n\t\t$archv_finished->strmon->CellCssStyle = \"\"; $archv_finished->strmon->CellCssClass = \"\";\n\t\t$archv_finished->strmon->CellAttrs = array(); $archv_finished->strmon->ViewAttrs = array(); $archv_finished->strmon->EditAttrs = array();\n\n\t\t// stryear\n\t\t$archv_finished->stryear->CellCssStyle = \"\"; $archv_finished->stryear->CellCssClass = \"\";\n\t\t$archv_finished->stryear->CellAttrs = array(); $archv_finished->stryear->ViewAttrs = array(); $archv_finished->stryear->EditAttrs = array();\n\n\t\t// strdate\n\t\t$archv_finished->strdate->CellCssStyle = \"\"; $archv_finished->strdate->CellCssClass = \"\";\n\t\t$archv_finished->strdate->CellAttrs = array(); $archv_finished->strdate->ViewAttrs = array(); $archv_finished->strdate->EditAttrs = array();\n\n\t\t// strtime\n\t\t$archv_finished->strtime->CellCssStyle = \"\"; $archv_finished->strtime->CellCssClass = \"\";\n\t\t$archv_finished->strtime->CellAttrs = array(); $archv_finished->strtime->ViewAttrs = array(); $archv_finished->strtime->EditAttrs = array();\n\n\t\t// strusername\n\t\t$archv_finished->strusername->CellCssStyle = \"\"; $archv_finished->strusername->CellCssClass = \"\";\n\t\t$archv_finished->strusername->CellAttrs = array(); $archv_finished->strusername->ViewAttrs = array(); $archv_finished->strusername->EditAttrs = array();\n\n\t\t// strusereadd\n\t\t$archv_finished->strusereadd->CellCssStyle = \"\"; $archv_finished->strusereadd->CellCssClass = \"\";\n\t\t$archv_finished->strusereadd->CellAttrs = array(); $archv_finished->strusereadd->ViewAttrs = array(); $archv_finished->strusereadd->EditAttrs = array();\n\n\t\t// strcompany\n\t\t$archv_finished->strcompany->CellCssStyle = \"\"; $archv_finished->strcompany->CellCssClass = \"\";\n\t\t$archv_finished->strcompany->CellAttrs = array(); $archv_finished->strcompany->ViewAttrs = array(); $archv_finished->strcompany->EditAttrs = array();\n\n\t\t// strdepartment\n\t\t$archv_finished->strdepartment->CellCssStyle = \"\"; $archv_finished->strdepartment->CellCssClass = \"\";\n\t\t$archv_finished->strdepartment->CellAttrs = array(); $archv_finished->strdepartment->ViewAttrs = array(); $archv_finished->strdepartment->EditAttrs = array();\n\n\t\t// strloc\n\t\t$archv_finished->strloc->CellCssStyle = \"\"; $archv_finished->strloc->CellCssClass = \"\";\n\t\t$archv_finished->strloc->CellAttrs = array(); $archv_finished->strloc->ViewAttrs = array(); $archv_finished->strloc->EditAttrs = array();\n\n\t\t// strposition\n\t\t$archv_finished->strposition->CellCssStyle = \"\"; $archv_finished->strposition->CellCssClass = \"\";\n\t\t$archv_finished->strposition->CellAttrs = array(); $archv_finished->strposition->ViewAttrs = array(); $archv_finished->strposition->EditAttrs = array();\n\n\t\t// strtelephone\n\t\t$archv_finished->strtelephone->CellCssStyle = \"\"; $archv_finished->strtelephone->CellCssClass = \"\";\n\t\t$archv_finished->strtelephone->CellAttrs = array(); $archv_finished->strtelephone->ViewAttrs = array(); $archv_finished->strtelephone->EditAttrs = array();\n\n\t\t// strcostcent\n\t\t$archv_finished->strcostcent->CellCssStyle = \"\"; $archv_finished->strcostcent->CellCssClass = \"\";\n\t\t$archv_finished->strcostcent->CellAttrs = array(); $archv_finished->strcostcent->ViewAttrs = array(); $archv_finished->strcostcent->EditAttrs = array();\n\n\t\t// strsubject\n\t\t$archv_finished->strsubject->CellCssStyle = \"\"; $archv_finished->strsubject->CellCssClass = \"\";\n\t\t$archv_finished->strsubject->CellAttrs = array(); $archv_finished->strsubject->ViewAttrs = array(); $archv_finished->strsubject->EditAttrs = array();\n\n\t\t// strnature\n\t\t$archv_finished->strnature->CellCssStyle = \"\"; $archv_finished->strnature->CellCssClass = \"\";\n\t\t$archv_finished->strnature->CellAttrs = array(); $archv_finished->strnature->ViewAttrs = array(); $archv_finished->strnature->EditAttrs = array();\n\n\t\t// strdescript\n\t\t$archv_finished->strdescript->CellCssStyle = \"\"; $archv_finished->strdescript->CellCssClass = \"\";\n\t\t$archv_finished->strdescript->CellAttrs = array(); $archv_finished->strdescript->ViewAttrs = array(); $archv_finished->strdescript->EditAttrs = array();\n\n\t\t// strarea\n\t\t$archv_finished->strarea->CellCssStyle = \"\"; $archv_finished->strarea->CellCssClass = \"\";\n\t\t$archv_finished->strarea->CellAttrs = array(); $archv_finished->strarea->ViewAttrs = array(); $archv_finished->strarea->EditAttrs = array();\n\n\t\t// strattach\n\t\t$archv_finished->strattach->CellCssStyle = \"\"; $archv_finished->strattach->CellCssClass = \"\";\n\t\t$archv_finished->strattach->CellAttrs = array(); $archv_finished->strattach->ViewAttrs = array(); $archv_finished->strattach->EditAttrs = array();\n\n\t\t// strpriority\n\t\t$archv_finished->strpriority->CellCssStyle = \"\"; $archv_finished->strpriority->CellCssClass = \"\";\n\t\t$archv_finished->strpriority->CellAttrs = array(); $archv_finished->strpriority->ViewAttrs = array(); $archv_finished->strpriority->EditAttrs = array();\n\n\t\t// strduedate\n\t\t$archv_finished->strduedate->CellCssStyle = \"\"; $archv_finished->strduedate->CellCssClass = \"\";\n\t\t$archv_finished->strduedate->CellAttrs = array(); $archv_finished->strduedate->ViewAttrs = array(); $archv_finished->strduedate->EditAttrs = array();\n\n\t\t// strstatus\n\t\t$archv_finished->strstatus->CellCssStyle = \"\"; $archv_finished->strstatus->CellCssClass = \"\";\n\t\t$archv_finished->strstatus->CellAttrs = array(); $archv_finished->strstatus->ViewAttrs = array(); $archv_finished->strstatus->EditAttrs = array();\n\n\t\t// strlastedit\n\t\t$archv_finished->strlastedit->CellCssStyle = \"\"; $archv_finished->strlastedit->CellCssClass = \"\";\n\t\t$archv_finished->strlastedit->CellAttrs = array(); $archv_finished->strlastedit->ViewAttrs = array(); $archv_finished->strlastedit->EditAttrs = array();\n\n\t\t// strcategory\n\t\t$archv_finished->strcategory->CellCssStyle = \"\"; $archv_finished->strcategory->CellCssClass = \"\";\n\t\t$archv_finished->strcategory->CellAttrs = array(); $archv_finished->strcategory->ViewAttrs = array(); $archv_finished->strcategory->EditAttrs = array();\n\n\t\t// strassigned\n\t\t$archv_finished->strassigned->CellCssStyle = \"\"; $archv_finished->strassigned->CellCssClass = \"\";\n\t\t$archv_finished->strassigned->CellAttrs = array(); $archv_finished->strassigned->ViewAttrs = array(); $archv_finished->strassigned->EditAttrs = array();\n\n\t\t// strdatecomplete\n\t\t$archv_finished->strdatecomplete->CellCssStyle = \"\"; $archv_finished->strdatecomplete->CellCssClass = \"\";\n\t\t$archv_finished->strdatecomplete->CellAttrs = array(); $archv_finished->strdatecomplete->ViewAttrs = array(); $archv_finished->strdatecomplete->EditAttrs = array();\n\n\t\t// strwithpr\n\t\t$archv_finished->strwithpr->CellCssStyle = \"\"; $archv_finished->strwithpr->CellCssClass = \"\";\n\t\t$archv_finished->strwithpr->CellAttrs = array(); $archv_finished->strwithpr->ViewAttrs = array(); $archv_finished->strwithpr->EditAttrs = array();\n\n\t\t// strremarks\n\t\t$archv_finished->strremarks->CellCssStyle = \"\"; $archv_finished->strremarks->CellCssClass = \"\";\n\t\t$archv_finished->strremarks->CellAttrs = array(); $archv_finished->strremarks->ViewAttrs = array(); $archv_finished->strremarks->EditAttrs = array();\n\n\t\t// sap_num\n\t\t$archv_finished->sap_num->CellCssStyle = \"\"; $archv_finished->sap_num->CellCssClass = \"\";\n\t\t$archv_finished->sap_num->CellAttrs = array(); $archv_finished->sap_num->ViewAttrs = array(); $archv_finished->sap_num->EditAttrs = array();\n\n\t\t// work_days\n\t\t$archv_finished->work_days->CellCssStyle = \"\"; $archv_finished->work_days->CellCssClass = \"\";\n\t\t$archv_finished->work_days->CellAttrs = array(); $archv_finished->work_days->ViewAttrs = array(); $archv_finished->work_days->EditAttrs = array();\n\t\tif ($archv_finished->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->ViewValue = $archv_finished->ID->CurrentValue;\n\t\t\t$archv_finished->ID->CssStyle = \"\";\n\t\t\t$archv_finished->ID->CssClass = \"\";\n\t\t\t$archv_finished->ID->ViewCustomAttributes = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->ViewValue = $archv_finished->strjrfnum->CurrentValue;\n\t\t\t$archv_finished->strjrfnum->CssStyle = \"\";\n\t\t\t$archv_finished->strjrfnum->CssClass = \"\";\n\t\t\t$archv_finished->strjrfnum->ViewCustomAttributes = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->ViewValue = $archv_finished->strquarter->CurrentValue;\n\t\t\t$archv_finished->strquarter->CssStyle = \"\";\n\t\t\t$archv_finished->strquarter->CssClass = \"\";\n\t\t\t$archv_finished->strquarter->ViewCustomAttributes = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->ViewValue = $archv_finished->strmon->CurrentValue;\n\t\t\t$archv_finished->strmon->CssStyle = \"\";\n\t\t\t$archv_finished->strmon->CssClass = \"\";\n\t\t\t$archv_finished->strmon->ViewCustomAttributes = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->ViewValue = $archv_finished->stryear->CurrentValue;\n\t\t\t$archv_finished->stryear->CssStyle = \"\";\n\t\t\t$archv_finished->stryear->CssClass = \"\";\n\t\t\t$archv_finished->stryear->ViewCustomAttributes = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->ViewValue = $archv_finished->strdate->CurrentValue;\n\t\t\t$archv_finished->strdate->CssStyle = \"\";\n\t\t\t$archv_finished->strdate->CssClass = \"\";\n\t\t\t$archv_finished->strdate->ViewCustomAttributes = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->ViewValue = $archv_finished->strtime->CurrentValue;\n\t\t\t$archv_finished->strtime->CssStyle = \"\";\n\t\t\t$archv_finished->strtime->CssClass = \"\";\n\t\t\t$archv_finished->strtime->ViewCustomAttributes = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->ViewValue = $archv_finished->strusername->CurrentValue;\n\t\t\t$archv_finished->strusername->CssStyle = \"\";\n\t\t\t$archv_finished->strusername->CssClass = \"\";\n\t\t\t$archv_finished->strusername->ViewCustomAttributes = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->ViewValue = $archv_finished->strusereadd->CurrentValue;\n\t\t\t$archv_finished->strusereadd->CssStyle = \"\";\n\t\t\t$archv_finished->strusereadd->CssClass = \"\";\n\t\t\t$archv_finished->strusereadd->ViewCustomAttributes = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->ViewValue = $archv_finished->strcompany->CurrentValue;\n\t\t\t$archv_finished->strcompany->CssStyle = \"\";\n\t\t\t$archv_finished->strcompany->CssClass = \"\";\n\t\t\t$archv_finished->strcompany->ViewCustomAttributes = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->ViewValue = $archv_finished->strdepartment->CurrentValue;\n\t\t\t$archv_finished->strdepartment->CssStyle = \"\";\n\t\t\t$archv_finished->strdepartment->CssClass = \"\";\n\t\t\t$archv_finished->strdepartment->ViewCustomAttributes = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->ViewValue = $archv_finished->strloc->CurrentValue;\n\t\t\t$archv_finished->strloc->CssStyle = \"\";\n\t\t\t$archv_finished->strloc->CssClass = \"\";\n\t\t\t$archv_finished->strloc->ViewCustomAttributes = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->ViewValue = $archv_finished->strposition->CurrentValue;\n\t\t\t$archv_finished->strposition->CssStyle = \"\";\n\t\t\t$archv_finished->strposition->CssClass = \"\";\n\t\t\t$archv_finished->strposition->ViewCustomAttributes = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->ViewValue = $archv_finished->strtelephone->CurrentValue;\n\t\t\t$archv_finished->strtelephone->CssStyle = \"\";\n\t\t\t$archv_finished->strtelephone->CssClass = \"\";\n\t\t\t$archv_finished->strtelephone->ViewCustomAttributes = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->ViewValue = $archv_finished->strcostcent->CurrentValue;\n\t\t\t$archv_finished->strcostcent->CssStyle = \"\";\n\t\t\t$archv_finished->strcostcent->CssClass = \"\";\n\t\t\t$archv_finished->strcostcent->ViewCustomAttributes = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->ViewValue = $archv_finished->strsubject->CurrentValue;\n\t\t\t$archv_finished->strsubject->CssStyle = \"\";\n\t\t\t$archv_finished->strsubject->CssClass = \"\";\n\t\t\t$archv_finished->strsubject->ViewCustomAttributes = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->ViewValue = $archv_finished->strnature->CurrentValue;\n\t\t\t$archv_finished->strnature->CssStyle = \"\";\n\t\t\t$archv_finished->strnature->CssClass = \"\";\n\t\t\t$archv_finished->strnature->ViewCustomAttributes = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->ViewValue = $archv_finished->strdescript->CurrentValue;\n\t\t\t$archv_finished->strdescript->CssStyle = \"\";\n\t\t\t$archv_finished->strdescript->CssClass = \"\";\n\t\t\t$archv_finished->strdescript->ViewCustomAttributes = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->ViewValue = $archv_finished->strarea->CurrentValue;\n\t\t\t$archv_finished->strarea->CssStyle = \"\";\n\t\t\t$archv_finished->strarea->CssClass = \"\";\n\t\t\t$archv_finished->strarea->ViewCustomAttributes = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->ViewValue = $archv_finished->strattach->CurrentValue;\n\t\t\t$archv_finished->strattach->CssStyle = \"\";\n\t\t\t$archv_finished->strattach->CssClass = \"\";\n\t\t\t$archv_finished->strattach->ViewCustomAttributes = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->ViewValue = $archv_finished->strpriority->CurrentValue;\n\t\t\t$archv_finished->strpriority->CssStyle = \"\";\n\t\t\t$archv_finished->strpriority->CssClass = \"\";\n\t\t\t$archv_finished->strpriority->ViewCustomAttributes = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->ViewValue = $archv_finished->strduedate->CurrentValue;\n\t\t\t$archv_finished->strduedate->CssStyle = \"\";\n\t\t\t$archv_finished->strduedate->CssClass = \"\";\n\t\t\t$archv_finished->strduedate->ViewCustomAttributes = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->ViewValue = $archv_finished->strstatus->CurrentValue;\n\t\t\t$archv_finished->strstatus->CssStyle = \"\";\n\t\t\t$archv_finished->strstatus->CssClass = \"\";\n\t\t\t$archv_finished->strstatus->ViewCustomAttributes = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->ViewValue = $archv_finished->strlastedit->CurrentValue;\n\t\t\t$archv_finished->strlastedit->CssStyle = \"\";\n\t\t\t$archv_finished->strlastedit->CssClass = \"\";\n\t\t\t$archv_finished->strlastedit->ViewCustomAttributes = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->ViewValue = $archv_finished->strcategory->CurrentValue;\n\t\t\t$archv_finished->strcategory->CssStyle = \"\";\n\t\t\t$archv_finished->strcategory->CssClass = \"\";\n\t\t\t$archv_finished->strcategory->ViewCustomAttributes = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->ViewValue = $archv_finished->strassigned->CurrentValue;\n\t\t\t$archv_finished->strassigned->CssStyle = \"\";\n\t\t\t$archv_finished->strassigned->CssClass = \"\";\n\t\t\t$archv_finished->strassigned->ViewCustomAttributes = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->ViewValue = $archv_finished->strdatecomplete->CurrentValue;\n\t\t\t$archv_finished->strdatecomplete->CssStyle = \"\";\n\t\t\t$archv_finished->strdatecomplete->CssClass = \"\";\n\t\t\t$archv_finished->strdatecomplete->ViewCustomAttributes = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->ViewValue = $archv_finished->strwithpr->CurrentValue;\n\t\t\t$archv_finished->strwithpr->CssStyle = \"\";\n\t\t\t$archv_finished->strwithpr->CssClass = \"\";\n\t\t\t$archv_finished->strwithpr->ViewCustomAttributes = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->ViewValue = $archv_finished->strremarks->CurrentValue;\n\t\t\t$archv_finished->strremarks->CssStyle = \"\";\n\t\t\t$archv_finished->strremarks->CssClass = \"\";\n\t\t\t$archv_finished->strremarks->ViewCustomAttributes = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->ViewValue = $archv_finished->sap_num->CurrentValue;\n\t\t\t$archv_finished->sap_num->CssStyle = \"\";\n\t\t\t$archv_finished->sap_num->CssClass = \"\";\n\t\t\t$archv_finished->sap_num->ViewCustomAttributes = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->ViewValue = $archv_finished->work_days->CurrentValue;\n\t\t\t$archv_finished->work_days->CssStyle = \"\";\n\t\t\t$archv_finished->work_days->CssClass = \"\";\n\t\t\t$archv_finished->work_days->ViewCustomAttributes = \"\";\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->HrefValue = \"\";\n\t\t\t$archv_finished->ID->TooltipValue = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->HrefValue = \"\";\n\t\t\t$archv_finished->strjrfnum->TooltipValue = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->HrefValue = \"\";\n\t\t\t$archv_finished->strquarter->TooltipValue = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->HrefValue = \"\";\n\t\t\t$archv_finished->strmon->TooltipValue = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->HrefValue = \"\";\n\t\t\t$archv_finished->stryear->TooltipValue = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->HrefValue = \"\";\n\t\t\t$archv_finished->strdate->TooltipValue = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->HrefValue = \"\";\n\t\t\t$archv_finished->strtime->TooltipValue = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->HrefValue = \"\";\n\t\t\t$archv_finished->strusername->TooltipValue = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->HrefValue = \"\";\n\t\t\t$archv_finished->strusereadd->TooltipValue = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->HrefValue = \"\";\n\t\t\t$archv_finished->strcompany->TooltipValue = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->HrefValue = \"\";\n\t\t\t$archv_finished->strdepartment->TooltipValue = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->HrefValue = \"\";\n\t\t\t$archv_finished->strloc->TooltipValue = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->HrefValue = \"\";\n\t\t\t$archv_finished->strposition->TooltipValue = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->HrefValue = \"\";\n\t\t\t$archv_finished->strtelephone->TooltipValue = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->HrefValue = \"\";\n\t\t\t$archv_finished->strcostcent->TooltipValue = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->HrefValue = \"\";\n\t\t\t$archv_finished->strsubject->TooltipValue = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->HrefValue = \"\";\n\t\t\t$archv_finished->strnature->TooltipValue = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->HrefValue = \"\";\n\t\t\t$archv_finished->strdescript->TooltipValue = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->HrefValue = \"\";\n\t\t\t$archv_finished->strarea->TooltipValue = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->HrefValue = \"\";\n\t\t\t$archv_finished->strattach->TooltipValue = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->HrefValue = \"\";\n\t\t\t$archv_finished->strpriority->TooltipValue = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->HrefValue = \"\";\n\t\t\t$archv_finished->strduedate->TooltipValue = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->HrefValue = \"\";\n\t\t\t$archv_finished->strstatus->TooltipValue = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->HrefValue = \"\";\n\t\t\t$archv_finished->strlastedit->TooltipValue = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->HrefValue = \"\";\n\t\t\t$archv_finished->strcategory->TooltipValue = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->HrefValue = \"\";\n\t\t\t$archv_finished->strassigned->TooltipValue = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->HrefValue = \"\";\n\t\t\t$archv_finished->strdatecomplete->TooltipValue = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->HrefValue = \"\";\n\t\t\t$archv_finished->strwithpr->TooltipValue = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->HrefValue = \"\";\n\t\t\t$archv_finished->strremarks->TooltipValue = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->HrefValue = \"\";\n\t\t\t$archv_finished->sap_num->TooltipValue = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->HrefValue = \"\";\n\t\t\t$archv_finished->work_days->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($archv_finished->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$archv_finished->Row_Rendered();\n\t}", "public function dataFields($fieldArr, $table, $row, $out = [])\n {\n // Check table validity\n if (!isset($GLOBALS['TCA'][$table])) {\n return $out;\n }\n\n $thumbsCol = $GLOBALS['TCA'][$table]['ctrl']['thumbnail'];\n // Traverse fields\n foreach ($fieldArr as $fieldName) {\n if ($GLOBALS['TCA'][$table]['columns'][$fieldName]) {\n // Each field has its own cell (if configured in TCA)\n // If the column is a thumbnail column:\n if ($fieldName == $thumbsCol) {\n $out[$fieldName] = $this->thumbCode($row, $table, $fieldName);\n } else {\n // ... otherwise just render the output:\n $out[$fieldName] = nl2br(htmlspecialchars(trim(GeneralUtility::fixed_lgd_cs(\n BackendUtility::getProcessedValue($table, $fieldName, $row[$fieldName], 0, 0, 0, $row['uid']),\n 250\n ))));\n }\n } else {\n // Each field is separated by <br /> and shown in the same cell (If not a TCA field, then explode\n // the field name with \";\" and check each value there as a TCA configured field)\n $theFields = explode(';', $fieldName);\n // Traverse fields, separated by \";\" (displayed in a single cell).\n foreach ($theFields as $fName2) {\n if ($GLOBALS['TCA'][$table]['columns'][$fName2]) {\n $out[$fieldName] .= '<strong>' . htmlspecialchars($this->getLanguageService()->sL(\n $GLOBALS['TCA'][$table]['columns'][$fName2]['label']\n )) . '</strong>' . '&nbsp;&nbsp;' . htmlspecialchars(GeneralUtility::fixed_lgd_cs(\n BackendUtility::getProcessedValue($table, $fName2, $row[$fName2], 0, 0, 0, $row['uid']),\n 25\n )) . '<br />';\n }\n }\n }\n // If no value, add a nbsp.\n if (!$out[$fieldName]) {\n $out[$fieldName] = '&nbsp;';\n }\n // Wrap in dimmed-span tags if record is \"disabled\"\n if ($this->isDisabled($table, $row)) {\n $out[$fieldName] = '<span class=\"text-muted\">' . $out[$fieldName] . '</span>';\n }\n }\n return $out;\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Name\n\t\t// Basics\n\t\t// HP\n\t\t// MP\n\t\t// AD\n\t\t// AP\n\t\t// Defense\n\t\t// Hit\n\t\t// Dodge\n\t\t// Crit\n\t\t// AbsorbHP\n\t\t// ADPTV\n\t\t// ADPTR\n\t\t// APPTR\n\t\t// APPTV\n\t\t// ImmuneDamage\n\t\t// Intro\n\t\t// ExclusiveSkills\n\t\t// TransferDemand\n\t\t// TransferLevel\n\t\t// FormerOccupation\n\t\t// Belong\n\t\t// AttackEffect\n\t\t// AttackTips\n\t\t// MagicResistance\n\t\t// IgnoreShield\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Name\n\t\t$this->Name->ViewValue = $this->Name->CurrentValue;\n\t\t$this->Name->ViewCustomAttributes = \"\";\n\n\t\t// Basics\n\t\t$this->Basics->ViewValue = $this->Basics->CurrentValue;\n\t\t$this->Basics->ViewCustomAttributes = \"\";\n\n\t\t// HP\n\t\t$this->HP->ViewValue = $this->HP->CurrentValue;\n\t\t$this->HP->ViewCustomAttributes = \"\";\n\n\t\t// MP\n\t\t$this->MP->ViewValue = $this->MP->CurrentValue;\n\t\t$this->MP->ViewCustomAttributes = \"\";\n\n\t\t// AD\n\t\t$this->AD->ViewValue = $this->AD->CurrentValue;\n\t\t$this->AD->ViewCustomAttributes = \"\";\n\n\t\t// AP\n\t\t$this->AP->ViewValue = $this->AP->CurrentValue;\n\t\t$this->AP->ViewCustomAttributes = \"\";\n\n\t\t// Defense\n\t\t$this->Defense->ViewValue = $this->Defense->CurrentValue;\n\t\t$this->Defense->ViewCustomAttributes = \"\";\n\n\t\t// Hit\n\t\t$this->Hit->ViewValue = $this->Hit->CurrentValue;\n\t\t$this->Hit->ViewCustomAttributes = \"\";\n\n\t\t// Dodge\n\t\t$this->Dodge->ViewValue = $this->Dodge->CurrentValue;\n\t\t$this->Dodge->ViewCustomAttributes = \"\";\n\n\t\t// Crit\n\t\t$this->Crit->ViewValue = $this->Crit->CurrentValue;\n\t\t$this->Crit->ViewCustomAttributes = \"\";\n\n\t\t// AbsorbHP\n\t\t$this->AbsorbHP->ViewValue = $this->AbsorbHP->CurrentValue;\n\t\t$this->AbsorbHP->ViewCustomAttributes = \"\";\n\n\t\t// ADPTV\n\t\t$this->ADPTV->ViewValue = $this->ADPTV->CurrentValue;\n\t\t$this->ADPTV->ViewCustomAttributes = \"\";\n\n\t\t// ADPTR\n\t\t$this->ADPTR->ViewValue = $this->ADPTR->CurrentValue;\n\t\t$this->ADPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTR\n\t\t$this->APPTR->ViewValue = $this->APPTR->CurrentValue;\n\t\t$this->APPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTV\n\t\t$this->APPTV->ViewValue = $this->APPTV->CurrentValue;\n\t\t$this->APPTV->ViewCustomAttributes = \"\";\n\n\t\t// ImmuneDamage\n\t\t$this->ImmuneDamage->ViewValue = $this->ImmuneDamage->CurrentValue;\n\t\t$this->ImmuneDamage->ViewCustomAttributes = \"\";\n\n\t\t// Intro\n\t\t$this->Intro->ViewValue = $this->Intro->CurrentValue;\n\t\t$this->Intro->ViewCustomAttributes = \"\";\n\n\t\t// ExclusiveSkills\n\t\t$this->ExclusiveSkills->ViewValue = $this->ExclusiveSkills->CurrentValue;\n\t\t$this->ExclusiveSkills->ViewCustomAttributes = \"\";\n\n\t\t// TransferDemand\n\t\t$this->TransferDemand->ViewValue = $this->TransferDemand->CurrentValue;\n\t\t$this->TransferDemand->ViewCustomAttributes = \"\";\n\n\t\t// TransferLevel\n\t\t$this->TransferLevel->ViewValue = $this->TransferLevel->CurrentValue;\n\t\t$this->TransferLevel->ViewCustomAttributes = \"\";\n\n\t\t// FormerOccupation\n\t\t$this->FormerOccupation->ViewValue = $this->FormerOccupation->CurrentValue;\n\t\t$this->FormerOccupation->ViewCustomAttributes = \"\";\n\n\t\t// Belong\n\t\t$this->Belong->ViewValue = $this->Belong->CurrentValue;\n\t\t$this->Belong->ViewCustomAttributes = \"\";\n\n\t\t// AttackEffect\n\t\t$this->AttackEffect->ViewValue = $this->AttackEffect->CurrentValue;\n\t\t$this->AttackEffect->ViewCustomAttributes = \"\";\n\n\t\t// AttackTips\n\t\t$this->AttackTips->ViewValue = $this->AttackTips->CurrentValue;\n\t\t$this->AttackTips->ViewCustomAttributes = \"\";\n\n\t\t// MagicResistance\n\t\t$this->MagicResistance->ViewValue = $this->MagicResistance->CurrentValue;\n\t\t$this->MagicResistance->ViewCustomAttributes = \"\";\n\n\t\t// IgnoreShield\n\t\t$this->IgnoreShield->ViewValue = $this->IgnoreShield->CurrentValue;\n\t\t$this->IgnoreShield->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Name\n\t\t\t$this->Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Name->HrefValue = \"\";\n\t\t\t$this->Name->TooltipValue = \"\";\n\n\t\t\t// Basics\n\t\t\t$this->Basics->LinkCustomAttributes = \"\";\n\t\t\t$this->Basics->HrefValue = \"\";\n\t\t\t$this->Basics->TooltipValue = \"\";\n\n\t\t\t// HP\n\t\t\t$this->HP->LinkCustomAttributes = \"\";\n\t\t\t$this->HP->HrefValue = \"\";\n\t\t\t$this->HP->TooltipValue = \"\";\n\n\t\t\t// MP\n\t\t\t$this->MP->LinkCustomAttributes = \"\";\n\t\t\t$this->MP->HrefValue = \"\";\n\t\t\t$this->MP->TooltipValue = \"\";\n\n\t\t\t// AD\n\t\t\t$this->AD->LinkCustomAttributes = \"\";\n\t\t\t$this->AD->HrefValue = \"\";\n\t\t\t$this->AD->TooltipValue = \"\";\n\n\t\t\t// AP\n\t\t\t$this->AP->LinkCustomAttributes = \"\";\n\t\t\t$this->AP->HrefValue = \"\";\n\t\t\t$this->AP->TooltipValue = \"\";\n\n\t\t\t// Defense\n\t\t\t$this->Defense->LinkCustomAttributes = \"\";\n\t\t\t$this->Defense->HrefValue = \"\";\n\t\t\t$this->Defense->TooltipValue = \"\";\n\n\t\t\t// Hit\n\t\t\t$this->Hit->LinkCustomAttributes = \"\";\n\t\t\t$this->Hit->HrefValue = \"\";\n\t\t\t$this->Hit->TooltipValue = \"\";\n\n\t\t\t// Dodge\n\t\t\t$this->Dodge->LinkCustomAttributes = \"\";\n\t\t\t$this->Dodge->HrefValue = \"\";\n\t\t\t$this->Dodge->TooltipValue = \"\";\n\n\t\t\t// Crit\n\t\t\t$this->Crit->LinkCustomAttributes = \"\";\n\t\t\t$this->Crit->HrefValue = \"\";\n\t\t\t$this->Crit->TooltipValue = \"\";\n\n\t\t\t// AbsorbHP\n\t\t\t$this->AbsorbHP->LinkCustomAttributes = \"\";\n\t\t\t$this->AbsorbHP->HrefValue = \"\";\n\t\t\t$this->AbsorbHP->TooltipValue = \"\";\n\n\t\t\t// ADPTV\n\t\t\t$this->ADPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTV->HrefValue = \"\";\n\t\t\t$this->ADPTV->TooltipValue = \"\";\n\n\t\t\t// ADPTR\n\t\t\t$this->ADPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTR->HrefValue = \"\";\n\t\t\t$this->ADPTR->TooltipValue = \"\";\n\n\t\t\t// APPTR\n\t\t\t$this->APPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTR->HrefValue = \"\";\n\t\t\t$this->APPTR->TooltipValue = \"\";\n\n\t\t\t// APPTV\n\t\t\t$this->APPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTV->HrefValue = \"\";\n\t\t\t$this->APPTV->TooltipValue = \"\";\n\n\t\t\t// ImmuneDamage\n\t\t\t$this->ImmuneDamage->LinkCustomAttributes = \"\";\n\t\t\t$this->ImmuneDamage->HrefValue = \"\";\n\t\t\t$this->ImmuneDamage->TooltipValue = \"\";\n\n\t\t\t// Intro\n\t\t\t$this->Intro->LinkCustomAttributes = \"\";\n\t\t\t$this->Intro->HrefValue = \"\";\n\t\t\t$this->Intro->TooltipValue = \"\";\n\n\t\t\t// ExclusiveSkills\n\t\t\t$this->ExclusiveSkills->LinkCustomAttributes = \"\";\n\t\t\t$this->ExclusiveSkills->HrefValue = \"\";\n\t\t\t$this->ExclusiveSkills->TooltipValue = \"\";\n\n\t\t\t// TransferDemand\n\t\t\t$this->TransferDemand->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferDemand->HrefValue = \"\";\n\t\t\t$this->TransferDemand->TooltipValue = \"\";\n\n\t\t\t// TransferLevel\n\t\t\t$this->TransferLevel->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferLevel->HrefValue = \"\";\n\t\t\t$this->TransferLevel->TooltipValue = \"\";\n\n\t\t\t// FormerOccupation\n\t\t\t$this->FormerOccupation->LinkCustomAttributes = \"\";\n\t\t\t$this->FormerOccupation->HrefValue = \"\";\n\t\t\t$this->FormerOccupation->TooltipValue = \"\";\n\n\t\t\t// Belong\n\t\t\t$this->Belong->LinkCustomAttributes = \"\";\n\t\t\t$this->Belong->HrefValue = \"\";\n\t\t\t$this->Belong->TooltipValue = \"\";\n\n\t\t\t// AttackEffect\n\t\t\t$this->AttackEffect->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackEffect->HrefValue = \"\";\n\t\t\t$this->AttackEffect->TooltipValue = \"\";\n\n\t\t\t// AttackTips\n\t\t\t$this->AttackTips->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackTips->HrefValue = \"\";\n\t\t\t$this->AttackTips->TooltipValue = \"\";\n\n\t\t\t// MagicResistance\n\t\t\t$this->MagicResistance->LinkCustomAttributes = \"\";\n\t\t\t$this->MagicResistance->HrefValue = \"\";\n\t\t\t$this->MagicResistance->TooltipValue = \"\";\n\n\t\t\t// IgnoreShield\n\t\t\t$this->IgnoreShield->LinkCustomAttributes = \"\";\n\t\t\t$this->IgnoreShield->HrefValue = \"\";\n\t\t\t$this->IgnoreShield->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public static function rowFields($row){\n\t $fields = '';\n $fld = '';\n\n for($x=0;$x < Model::numFields();$x++){\n $fld = Model::fieldName($x);\n\n if($x < Model::numFields() -1){\n $fields .= '<td>' . $row[\"$fld\"] . '</td>'.\"\\n\";\n\t }else{\n $fields .= '<td>' . $row[\"$fld\"] . '</td>';\n }\n }\n return $fields;\n }", "public function render(ResultRow $values) {\n $links = [];\n foreach ($this->options['fields'] as $field) {\n $rendered_field = $this->view->style_plugin->getField($values->index, $field);\n if (empty($rendered_field)) {\n continue;\n }\n $title = $this->view->field[$field]->last_render_text;\n $path = '';\n if (!empty($this->view->field[$field]->options['alter']['path'])) {\n $path = $this->view->field[$field]->options['alter']['path'];\n }\n elseif (!empty($this->view->field[$field]->options['alter']['url']) && $this->view->field[$field]->options['alter']['url'] instanceof Url) {\n $path = $this->view->field[$field]->options['alter']['url']->toString();\n }\n if (!empty($title) && !empty($path)) {\n // Make sure that tokens are replaced for this paths as well.\n $tokens = $this->getRenderTokens([]);\n $path = strip_tags(Html::decodeEntities(strtr($path, $tokens)));\n\n $links[$field] = [\n 'href' => $path,\n 'title' => $title,\n ];\n if (!empty($this->options['destination'])) {\n $links[$field]['query'] = $this->getDestinationArray();\n }\n }\n }\n\n // Renders a contextual links placeholder.\n if (!empty($links)) {\n $contextual_links = [\n 'contextual' => [\n '',\n [],\n [\n 'contextual-views-field-links' => UrlHelper::encodePath(Json::encode($links)),\n ],\n ],\n ];\n\n $element = [\n '#type' => 'contextual_links_placeholder',\n '#id' => _contextual_links_to_id($contextual_links),\n ];\n return \\Drupal::service('renderer')->render($element);\n }\n else {\n return '';\n }\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// name\n\t\t// email\n\t\t// password\n\n\t\t$this->password->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// companyname\n\t\t// servicetime\n\t\t// country\n\t\t// phone\n\t\t// skype\n\t\t// website\n\t\t// linkedin\n\t\t// facebook\n\t\t// twitter\n\t\t// active_code\n\t\t// identification\n\t\t// link_expired\n\t\t// isactive\n\t\t// pio\n\t\t// google\n\t\t// instagram\n\t\t// account_type\n\t\t// logo\n\t\t// profilepic\n\t\t// mailref\n\t\t// deleted\n\t\t// deletefeedback\n\t\t// account_id\n\t\t// start_date\n\t\t// end_date\n\t\t// year_moth\n\t\t// registerdate\n\t\t// login_type\n\t\t// accountstatus\n\t\t// ispay\n\t\t// profilelink\n\t\t// source\n\t\t// agree\n\t\t// balance\n\t\t// job_title\n\t\t// projects\n\t\t// opportunities\n\t\t// isconsaltant\n\t\t// isagent\n\t\t// isinvestor\n\t\t// isbusinessman\n\t\t// isprovider\n\t\t// isproductowner\n\t\t// states\n\t\t// cities\n\t\t// offers\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// companyname\n\t\t$this->companyname->ViewValue = $this->companyname->CurrentValue;\n\t\t$this->companyname->ViewCustomAttributes = \"\";\n\n\t\t// servicetime\n\t\t$this->servicetime->ViewValue = $this->servicetime->CurrentValue;\n\t\t$this->servicetime->ViewCustomAttributes = \"\";\n\n\t\t// country\n\t\t$this->country->ViewValue = $this->country->CurrentValue;\n\t\t$this->country->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// skype\n\t\t$this->skype->ViewValue = $this->skype->CurrentValue;\n\t\t$this->skype->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// linkedin\n\t\t$this->linkedin->ViewValue = $this->linkedin->CurrentValue;\n\t\t$this->linkedin->ViewCustomAttributes = \"\";\n\n\t\t// facebook\n\t\t$this->facebook->ViewValue = $this->facebook->CurrentValue;\n\t\t$this->facebook->ViewCustomAttributes = \"\";\n\n\t\t// twitter\n\t\t$this->twitter->ViewValue = $this->twitter->CurrentValue;\n\t\t$this->twitter->ViewCustomAttributes = \"\";\n\n\t\t// active_code\n\t\t$this->active_code->ViewValue = $this->active_code->CurrentValue;\n\t\t$this->active_code->ViewCustomAttributes = \"\";\n\n\t\t// identification\n\t\t$this->identification->ViewValue = $this->identification->CurrentValue;\n\t\t$this->identification->ViewCustomAttributes = \"\";\n\n\t\t// link_expired\n\t\t$this->link_expired->ViewValue = $this->link_expired->CurrentValue;\n\t\t$this->link_expired->ViewValue = ew_FormatDateTime($this->link_expired->ViewValue, 5);\n\t\t$this->link_expired->ViewCustomAttributes = \"\";\n\n\t\t// isactive\n\t\t$this->isactive->ViewValue = $this->isactive->CurrentValue;\n\t\t$this->isactive->ViewCustomAttributes = \"\";\n\n\t\t// google\n\t\t$this->google->ViewValue = $this->google->CurrentValue;\n\t\t$this->google->ViewCustomAttributes = \"\";\n\n\t\t// instagram\n\t\t$this->instagram->ViewValue = $this->instagram->CurrentValue;\n\t\t$this->instagram->ViewCustomAttributes = \"\";\n\n\t\t// account_type\n\t\t$this->account_type->ViewValue = $this->account_type->CurrentValue;\n\t\t$this->account_type->ViewCustomAttributes = \"\";\n\n\t\t// logo\n\t\t$this->logo->ViewValue = $this->logo->CurrentValue;\n\t\t$this->logo->ViewCustomAttributes = \"\";\n\n\t\t// profilepic\n\t\t$this->profilepic->ViewValue = $this->profilepic->CurrentValue;\n\t\t$this->profilepic->ViewCustomAttributes = \"\";\n\n\t\t// mailref\n\t\t$this->mailref->ViewValue = $this->mailref->CurrentValue;\n\t\t$this->mailref->ViewCustomAttributes = \"\";\n\n\t\t// deleted\n\t\t$this->deleted->ViewValue = $this->deleted->CurrentValue;\n\t\t$this->deleted->ViewCustomAttributes = \"\";\n\n\t\t// deletefeedback\n\t\t$this->deletefeedback->ViewValue = $this->deletefeedback->CurrentValue;\n\t\t$this->deletefeedback->ViewCustomAttributes = \"\";\n\n\t\t// account_id\n\t\t$this->account_id->ViewValue = $this->account_id->CurrentValue;\n\t\t$this->account_id->ViewCustomAttributes = \"\";\n\n\t\t// start_date\n\t\t$this->start_date->ViewValue = $this->start_date->CurrentValue;\n\t\t$this->start_date->ViewValue = ew_FormatDateTime($this->start_date->ViewValue, 5);\n\t\t$this->start_date->ViewCustomAttributes = \"\";\n\n\t\t// end_date\n\t\t$this->end_date->ViewValue = $this->end_date->CurrentValue;\n\t\t$this->end_date->ViewValue = ew_FormatDateTime($this->end_date->ViewValue, 5);\n\t\t$this->end_date->ViewCustomAttributes = \"\";\n\n\t\t// year_moth\n\t\t$this->year_moth->ViewValue = $this->year_moth->CurrentValue;\n\t\t$this->year_moth->ViewCustomAttributes = \"\";\n\n\t\t// registerdate\n\t\t$this->registerdate->ViewValue = $this->registerdate->CurrentValue;\n\t\t$this->registerdate->ViewValue = ew_FormatDateTime($this->registerdate->ViewValue, 5);\n\t\t$this->registerdate->ViewCustomAttributes = \"\";\n\n\t\t// login_type\n\t\t$this->login_type->ViewValue = $this->login_type->CurrentValue;\n\t\t$this->login_type->ViewCustomAttributes = \"\";\n\n\t\t// accountstatus\n\t\t$this->accountstatus->ViewValue = $this->accountstatus->CurrentValue;\n\t\t$this->accountstatus->ViewCustomAttributes = \"\";\n\n\t\t// ispay\n\t\t$this->ispay->ViewValue = $this->ispay->CurrentValue;\n\t\t$this->ispay->ViewCustomAttributes = \"\";\n\n\t\t// profilelink\n\t\t$this->profilelink->ViewValue = $this->profilelink->CurrentValue;\n\t\t$this->profilelink->ViewCustomAttributes = \"\";\n\n\t\t// source\n\t\t$this->source->ViewValue = $this->source->CurrentValue;\n\t\t$this->source->ViewCustomAttributes = \"\";\n\n\t\t// agree\n\t\t$this->agree->ViewValue = $this->agree->CurrentValue;\n\t\t$this->agree->ViewCustomAttributes = \"\";\n\n\t\t// balance\n\t\t$this->balance->ViewValue = $this->balance->CurrentValue;\n\t\t$this->balance->ViewCustomAttributes = \"\";\n\n\t\t// job_title\n\t\t$this->job_title->ViewValue = $this->job_title->CurrentValue;\n\t\t$this->job_title->ViewCustomAttributes = \"\";\n\n\t\t// projects\n\t\t$this->projects->ViewValue = $this->projects->CurrentValue;\n\t\t$this->projects->ViewCustomAttributes = \"\";\n\n\t\t// opportunities\n\t\t$this->opportunities->ViewValue = $this->opportunities->CurrentValue;\n\t\t$this->opportunities->ViewCustomAttributes = \"\";\n\n\t\t// isconsaltant\n\t\t$this->isconsaltant->ViewCustomAttributes = \"\";\n\n\t\t// isagent\n\t\t$this->isagent->ViewCustomAttributes = \"\";\n\n\t\t// isinvestor\n\t\t$this->isinvestor->ViewCustomAttributes = \"\";\n\n\t\t// isbusinessman\n\t\t$this->isbusinessman->ViewCustomAttributes = \"\";\n\n\t\t// isprovider\n\t\t$this->isprovider->ViewCustomAttributes = \"\";\n\n\t\t// isproductowner\n\t\t$this->isproductowner->ViewCustomAttributes = \"\";\n\n\t\t// states\n\t\t$this->states->ViewValue = $this->states->CurrentValue;\n\t\t$this->states->ViewCustomAttributes = \"\";\n\n\t\t// cities\n\t\t$this->cities->ViewValue = $this->cities->CurrentValue;\n\t\t$this->cities->ViewCustomAttributes = \"\";\n\n\t\t// offers\n\t\t$this->offers->ViewValue = $this->offers->CurrentValue;\n\t\t$this->offers->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// companyname\n\t\t\t$this->companyname->LinkCustomAttributes = \"\";\n\t\t\t$this->companyname->HrefValue = \"\";\n\t\t\t$this->companyname->TooltipValue = \"\";\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->LinkCustomAttributes = \"\";\n\t\t\t$this->servicetime->HrefValue = \"\";\n\t\t\t$this->servicetime->TooltipValue = \"\";\n\n\t\t\t// country\n\t\t\t$this->country->LinkCustomAttributes = \"\";\n\t\t\t$this->country->HrefValue = \"\";\n\t\t\t$this->country->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// skype\n\t\t\t$this->skype->LinkCustomAttributes = \"\";\n\t\t\t$this->skype->HrefValue = \"\";\n\t\t\t$this->skype->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->LinkCustomAttributes = \"\";\n\t\t\t$this->linkedin->HrefValue = \"\";\n\t\t\t$this->linkedin->TooltipValue = \"\";\n\n\t\t\t// facebook\n\t\t\t$this->facebook->LinkCustomAttributes = \"\";\n\t\t\t$this->facebook->HrefValue = \"\";\n\t\t\t$this->facebook->TooltipValue = \"\";\n\n\t\t\t// twitter\n\t\t\t$this->twitter->LinkCustomAttributes = \"\";\n\t\t\t$this->twitter->HrefValue = \"\";\n\t\t\t$this->twitter->TooltipValue = \"\";\n\n\t\t\t// active_code\n\t\t\t$this->active_code->LinkCustomAttributes = \"\";\n\t\t\t$this->active_code->HrefValue = \"\";\n\t\t\t$this->active_code->TooltipValue = \"\";\n\n\t\t\t// identification\n\t\t\t$this->identification->LinkCustomAttributes = \"\";\n\t\t\t$this->identification->HrefValue = \"\";\n\t\t\t$this->identification->TooltipValue = \"\";\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->LinkCustomAttributes = \"\";\n\t\t\t$this->link_expired->HrefValue = \"\";\n\t\t\t$this->link_expired->TooltipValue = \"\";\n\n\t\t\t// isactive\n\t\t\t$this->isactive->LinkCustomAttributes = \"\";\n\t\t\t$this->isactive->HrefValue = \"\";\n\t\t\t$this->isactive->TooltipValue = \"\";\n\n\t\t\t// google\n\t\t\t$this->google->LinkCustomAttributes = \"\";\n\t\t\t$this->google->HrefValue = \"\";\n\t\t\t$this->google->TooltipValue = \"\";\n\n\t\t\t// instagram\n\t\t\t$this->instagram->LinkCustomAttributes = \"\";\n\t\t\t$this->instagram->HrefValue = \"\";\n\t\t\t$this->instagram->TooltipValue = \"\";\n\n\t\t\t// account_type\n\t\t\t$this->account_type->LinkCustomAttributes = \"\";\n\t\t\t$this->account_type->HrefValue = \"\";\n\t\t\t$this->account_type->TooltipValue = \"\";\n\n\t\t\t// logo\n\t\t\t$this->logo->LinkCustomAttributes = \"\";\n\t\t\t$this->logo->HrefValue = \"\";\n\t\t\t$this->logo->TooltipValue = \"\";\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->LinkCustomAttributes = \"\";\n\t\t\t$this->profilepic->HrefValue = \"\";\n\t\t\t$this->profilepic->TooltipValue = \"\";\n\n\t\t\t// mailref\n\t\t\t$this->mailref->LinkCustomAttributes = \"\";\n\t\t\t$this->mailref->HrefValue = \"\";\n\t\t\t$this->mailref->TooltipValue = \"\";\n\n\t\t\t// deleted\n\t\t\t$this->deleted->LinkCustomAttributes = \"\";\n\t\t\t$this->deleted->HrefValue = \"\";\n\t\t\t$this->deleted->TooltipValue = \"\";\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->LinkCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->HrefValue = \"\";\n\t\t\t$this->deletefeedback->TooltipValue = \"\";\n\n\t\t\t// account_id\n\t\t\t$this->account_id->LinkCustomAttributes = \"\";\n\t\t\t$this->account_id->HrefValue = \"\";\n\t\t\t$this->account_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$this->start_date->LinkCustomAttributes = \"\";\n\t\t\t$this->start_date->HrefValue = \"\";\n\t\t\t$this->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$this->end_date->LinkCustomAttributes = \"\";\n\t\t\t$this->end_date->HrefValue = \"\";\n\t\t\t$this->end_date->TooltipValue = \"\";\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->LinkCustomAttributes = \"\";\n\t\t\t$this->year_moth->HrefValue = \"\";\n\t\t\t$this->year_moth->TooltipValue = \"\";\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->LinkCustomAttributes = \"\";\n\t\t\t$this->registerdate->HrefValue = \"\";\n\t\t\t$this->registerdate->TooltipValue = \"\";\n\n\t\t\t// login_type\n\t\t\t$this->login_type->LinkCustomAttributes = \"\";\n\t\t\t$this->login_type->HrefValue = \"\";\n\t\t\t$this->login_type->TooltipValue = \"\";\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->LinkCustomAttributes = \"\";\n\t\t\t$this->accountstatus->HrefValue = \"\";\n\t\t\t$this->accountstatus->TooltipValue = \"\";\n\n\t\t\t// ispay\n\t\t\t$this->ispay->LinkCustomAttributes = \"\";\n\t\t\t$this->ispay->HrefValue = \"\";\n\t\t\t$this->ispay->TooltipValue = \"\";\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->LinkCustomAttributes = \"\";\n\t\t\t$this->profilelink->HrefValue = \"\";\n\t\t\t$this->profilelink->TooltipValue = \"\";\n\n\t\t\t// source\n\t\t\t$this->source->LinkCustomAttributes = \"\";\n\t\t\t$this->source->HrefValue = \"\";\n\t\t\t$this->source->TooltipValue = \"\";\n\n\t\t\t// agree\n\t\t\t$this->agree->LinkCustomAttributes = \"\";\n\t\t\t$this->agree->HrefValue = \"\";\n\t\t\t$this->agree->TooltipValue = \"\";\n\n\t\t\t// balance\n\t\t\t$this->balance->LinkCustomAttributes = \"\";\n\t\t\t$this->balance->HrefValue = \"\";\n\t\t\t$this->balance->TooltipValue = \"\";\n\n\t\t\t// job_title\n\t\t\t$this->job_title->LinkCustomAttributes = \"\";\n\t\t\t$this->job_title->HrefValue = \"\";\n\t\t\t$this->job_title->TooltipValue = \"\";\n\n\t\t\t// projects\n\t\t\t$this->projects->LinkCustomAttributes = \"\";\n\t\t\t$this->projects->HrefValue = \"\";\n\t\t\t$this->projects->TooltipValue = \"\";\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->LinkCustomAttributes = \"\";\n\t\t\t$this->opportunities->HrefValue = \"\";\n\t\t\t$this->opportunities->TooltipValue = \"\";\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->LinkCustomAttributes = \"\";\n\t\t\t$this->isconsaltant->HrefValue = \"\";\n\t\t\t$this->isconsaltant->TooltipValue = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->LinkCustomAttributes = \"\";\n\t\t\t$this->isagent->HrefValue = \"\";\n\t\t\t$this->isagent->TooltipValue = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->LinkCustomAttributes = \"\";\n\t\t\t$this->isinvestor->HrefValue = \"\";\n\t\t\t$this->isinvestor->TooltipValue = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->LinkCustomAttributes = \"\";\n\t\t\t$this->isbusinessman->HrefValue = \"\";\n\t\t\t$this->isbusinessman->TooltipValue = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->LinkCustomAttributes = \"\";\n\t\t\t$this->isprovider->HrefValue = \"\";\n\t\t\t$this->isprovider->TooltipValue = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->LinkCustomAttributes = \"\";\n\t\t\t$this->isproductowner->HrefValue = \"\";\n\t\t\t$this->isproductowner->TooltipValue = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->LinkCustomAttributes = \"\";\n\t\t\t$this->states->HrefValue = \"\";\n\t\t\t$this->states->TooltipValue = \"\";\n\n\t\t\t// cities\n\t\t\t$this->cities->LinkCustomAttributes = \"\";\n\t\t\t$this->cities->HrefValue = \"\";\n\t\t\t$this->cities->TooltipValue = \"\";\n\n\t\t\t// offers\n\t\t\t$this->offers->LinkCustomAttributes = \"\";\n\t\t\t$this->offers->HrefValue = \"\";\n\t\t\t$this->offers->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// gjd_id\n\t\t$this->gjd_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->gjd_id->EditCustomAttributes = \"\";\n\t\t$this->gjd_id->EditValue = $this->gjd_id->CurrentValue;\n\t\t$this->gjd_id->ViewCustomAttributes = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->gjm_id->EditCustomAttributes = \"\";\n\t\tif ($this->gjm_id->getSessionValue() <> \"\") {\n\t\t\t$this->gjm_id->CurrentValue = $this->gjm_id->getSessionValue();\n\t\t$this->gjm_id->ViewValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->ViewCustomAttributes = \"\";\n\t\t} else {\n\t\t$this->gjm_id->EditValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->PlaceHolder = ew_RemoveHtml($this->gjm_id->FldCaption());\n\t\t}\n\n\t\t// peg_id\n\t\t$this->peg_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->peg_id->EditCustomAttributes = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_mn->EditCustomAttributes = \"\";\n\t\t$this->b_mn->EditValue = $this->b_mn->CurrentValue;\n\t\t$this->b_mn->PlaceHolder = ew_RemoveHtml($this->b_mn->FldCaption());\n\n\t\t// b_sn\n\t\t$this->b_sn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_sn->EditCustomAttributes = \"\";\n\t\t$this->b_sn->EditValue = $this->b_sn->CurrentValue;\n\t\t$this->b_sn->PlaceHolder = ew_RemoveHtml($this->b_sn->FldCaption());\n\n\t\t// b_sl\n\t\t$this->b_sl->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_sl->EditCustomAttributes = \"\";\n\t\t$this->b_sl->EditValue = $this->b_sl->CurrentValue;\n\t\t$this->b_sl->PlaceHolder = ew_RemoveHtml($this->b_sl->FldCaption());\n\n\t\t// b_rb\n\t\t$this->b_rb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_rb->EditCustomAttributes = \"\";\n\t\t$this->b_rb->EditValue = $this->b_rb->CurrentValue;\n\t\t$this->b_rb->PlaceHolder = ew_RemoveHtml($this->b_rb->FldCaption());\n\n\t\t// b_km\n\t\t$this->b_km->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_km->EditCustomAttributes = \"\";\n\t\t$this->b_km->EditValue = $this->b_km->CurrentValue;\n\t\t$this->b_km->PlaceHolder = ew_RemoveHtml($this->b_km->FldCaption());\n\n\t\t// b_jm\n\t\t$this->b_jm->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_jm->EditCustomAttributes = \"\";\n\t\t$this->b_jm->EditValue = $this->b_jm->CurrentValue;\n\t\t$this->b_jm->PlaceHolder = ew_RemoveHtml($this->b_jm->FldCaption());\n\n\t\t// b_sb\n\t\t$this->b_sb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_sb->EditCustomAttributes = \"\";\n\t\t$this->b_sb->EditValue = $this->b_sb->CurrentValue;\n\t\t$this->b_sb->PlaceHolder = ew_RemoveHtml($this->b_sb->FldCaption());\n\n\t\t// l_mn\n\t\t$this->l_mn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_mn->EditCustomAttributes = \"\";\n\t\t$this->l_mn->EditValue = $this->l_mn->CurrentValue;\n\t\t$this->l_mn->PlaceHolder = ew_RemoveHtml($this->l_mn->FldCaption());\n\n\t\t// l_sn\n\t\t$this->l_sn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_sn->EditCustomAttributes = \"\";\n\t\t$this->l_sn->EditValue = $this->l_sn->CurrentValue;\n\t\t$this->l_sn->PlaceHolder = ew_RemoveHtml($this->l_sn->FldCaption());\n\n\t\t// l_sl\n\t\t$this->l_sl->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_sl->EditCustomAttributes = \"\";\n\t\t$this->l_sl->EditValue = $this->l_sl->CurrentValue;\n\t\t$this->l_sl->PlaceHolder = ew_RemoveHtml($this->l_sl->FldCaption());\n\n\t\t// l_rb\n\t\t$this->l_rb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_rb->EditCustomAttributes = \"\";\n\t\t$this->l_rb->EditValue = $this->l_rb->CurrentValue;\n\t\t$this->l_rb->PlaceHolder = ew_RemoveHtml($this->l_rb->FldCaption());\n\n\t\t// l_km\n\t\t$this->l_km->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_km->EditCustomAttributes = \"\";\n\t\t$this->l_km->EditValue = $this->l_km->CurrentValue;\n\t\t$this->l_km->PlaceHolder = ew_RemoveHtml($this->l_km->FldCaption());\n\n\t\t// l_jm\n\t\t$this->l_jm->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_jm->EditCustomAttributes = \"\";\n\t\t$this->l_jm->EditValue = $this->l_jm->CurrentValue;\n\t\t$this->l_jm->PlaceHolder = ew_RemoveHtml($this->l_jm->FldCaption());\n\n\t\t// l_sb\n\t\t$this->l_sb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_sb->EditCustomAttributes = \"\";\n\t\t$this->l_sb->EditValue = $this->l_sb->CurrentValue;\n\t\t$this->l_sb->PlaceHolder = ew_RemoveHtml($this->l_sb->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Title\n\t\t// LV\n\t\t// Type\n\t\t// ResetTime\n\t\t// ResetType\n\t\t// CompleteTask\n\t\t// Occupation\n\t\t// Target\n\t\t// Data\n\t\t// Reward_Gold\n\t\t// Reward_Diamonds\n\t\t// Reward_EXP\n\t\t// Reward_Goods\n\t\t// Info\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Title\n\t\t$this->Title->ViewValue = $this->Title->CurrentValue;\n\t\t$this->Title->ViewCustomAttributes = \"\";\n\n\t\t// LV\n\t\t$this->LV->ViewValue = $this->LV->CurrentValue;\n\t\t$this->LV->ViewCustomAttributes = \"\";\n\n\t\t// Type\n\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\n\t\t$this->Type->ViewCustomAttributes = \"\";\n\n\t\t// ResetTime\n\t\t$this->ResetTime->ViewValue = $this->ResetTime->CurrentValue;\n\t\t$this->ResetTime->ViewCustomAttributes = \"\";\n\n\t\t// ResetType\n\t\t$this->ResetType->ViewValue = $this->ResetType->CurrentValue;\n\t\t$this->ResetType->ViewCustomAttributes = \"\";\n\n\t\t// CompleteTask\n\t\t$this->CompleteTask->ViewValue = $this->CompleteTask->CurrentValue;\n\t\t$this->CompleteTask->ViewCustomAttributes = \"\";\n\n\t\t// Occupation\n\t\t$this->Occupation->ViewValue = $this->Occupation->CurrentValue;\n\t\t$this->Occupation->ViewCustomAttributes = \"\";\n\n\t\t// Target\n\t\t$this->Target->ViewValue = $this->Target->CurrentValue;\n\t\t$this->Target->ViewCustomAttributes = \"\";\n\n\t\t// Data\n\t\t$this->Data->ViewValue = $this->Data->CurrentValue;\n\t\t$this->Data->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Gold\n\t\t$this->Reward_Gold->ViewValue = $this->Reward_Gold->CurrentValue;\n\t\t$this->Reward_Gold->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Diamonds\n\t\t$this->Reward_Diamonds->ViewValue = $this->Reward_Diamonds->CurrentValue;\n\t\t$this->Reward_Diamonds->ViewCustomAttributes = \"\";\n\n\t\t// Reward_EXP\n\t\t$this->Reward_EXP->ViewValue = $this->Reward_EXP->CurrentValue;\n\t\t$this->Reward_EXP->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Goods\n\t\t$this->Reward_Goods->ViewValue = $this->Reward_Goods->CurrentValue;\n\t\t$this->Reward_Goods->ViewCustomAttributes = \"\";\n\n\t\t// Info\n\t\t$this->Info->ViewValue = $this->Info->CurrentValue;\n\t\t$this->Info->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Title\n\t\t\t$this->Title->LinkCustomAttributes = \"\";\n\t\t\t$this->Title->HrefValue = \"\";\n\t\t\t$this->Title->TooltipValue = \"\";\n\n\t\t\t// LV\n\t\t\t$this->LV->LinkCustomAttributes = \"\";\n\t\t\t$this->LV->HrefValue = \"\";\n\t\t\t$this->LV->TooltipValue = \"\";\n\n\t\t\t// Type\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\n\t\t\t$this->Type->HrefValue = \"\";\n\t\t\t$this->Type->TooltipValue = \"\";\n\n\t\t\t// ResetTime\n\t\t\t$this->ResetTime->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetTime->HrefValue = \"\";\n\t\t\t$this->ResetTime->TooltipValue = \"\";\n\n\t\t\t// ResetType\n\t\t\t$this->ResetType->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetType->HrefValue = \"\";\n\t\t\t$this->ResetType->TooltipValue = \"\";\n\n\t\t\t// CompleteTask\n\t\t\t$this->CompleteTask->LinkCustomAttributes = \"\";\n\t\t\t$this->CompleteTask->HrefValue = \"\";\n\t\t\t$this->CompleteTask->TooltipValue = \"\";\n\n\t\t\t// Occupation\n\t\t\t$this->Occupation->LinkCustomAttributes = \"\";\n\t\t\t$this->Occupation->HrefValue = \"\";\n\t\t\t$this->Occupation->TooltipValue = \"\";\n\n\t\t\t// Target\n\t\t\t$this->Target->LinkCustomAttributes = \"\";\n\t\t\t$this->Target->HrefValue = \"\";\n\t\t\t$this->Target->TooltipValue = \"\";\n\n\t\t\t// Data\n\t\t\t$this->Data->LinkCustomAttributes = \"\";\n\t\t\t$this->Data->HrefValue = \"\";\n\t\t\t$this->Data->TooltipValue = \"\";\n\n\t\t\t// Reward_Gold\n\t\t\t$this->Reward_Gold->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Gold->HrefValue = \"\";\n\t\t\t$this->Reward_Gold->TooltipValue = \"\";\n\n\t\t\t// Reward_Diamonds\n\t\t\t$this->Reward_Diamonds->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Diamonds->HrefValue = \"\";\n\t\t\t$this->Reward_Diamonds->TooltipValue = \"\";\n\n\t\t\t// Reward_EXP\n\t\t\t$this->Reward_EXP->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_EXP->HrefValue = \"\";\n\t\t\t$this->Reward_EXP->TooltipValue = \"\";\n\n\t\t\t// Reward_Goods\n\t\t\t$this->Reward_Goods->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Goods->HrefValue = \"\";\n\t\t\t$this->Reward_Goods->TooltipValue = \"\";\n\n\t\t\t// Info\n\t\t\t$this->Info->LinkCustomAttributes = \"\";\n\t\t\t$this->Info->HrefValue = \"\";\n\t\t\t$this->Info->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identries\r\n\t\t// domain_id\r\n\t\t// hash_content\r\n\t\t// fuente\r\n\t\t// published\r\n\t\t// updated\r\n\t\t// categorias\r\n\t\t// titulo\r\n\t\t// contenido\r\n\t\t// id\r\n\t\t// islive\r\n\t\t// thumbnail\r\n\t\t// reqdate\r\n\t\t// author\r\n\t\t// trans_en\r\n\t\t// trans_es\r\n\t\t// trans_fr\r\n\t\t// trans_it\r\n\t\t// fid\r\n\t\t// fmd5\r\n\t\t// tool_id\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->ViewValue = $this->identries->CurrentValue;\r\n\t\t\t$this->identries->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// domain_id\r\n\t\t\tif (strval($this->domain_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id_domains`\" . ew_SearchString(\"=\", $this->domain_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id_domains`, `dominio` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `domains`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->domain_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->domain_id->ViewValue = $this->domain_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->domain_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->domain_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// hash_content\r\n\t\t\t$this->hash_content->ViewValue = $this->hash_content->CurrentValue;\r\n\t\t\t$this->hash_content->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fuente\r\n\t\t\t$this->fuente->ViewValue = $this->fuente->CurrentValue;\r\n\t\t\t$this->fuente->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// published\r\n\t\t\t$this->published->ViewValue = $this->published->CurrentValue;\r\n\t\t\t$this->published->ViewValue = ew_FormatDateTime($this->published->ViewValue, 5);\r\n\t\t\t$this->published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated\r\n\t\t\t$this->updated->ViewValue = $this->updated->CurrentValue;\r\n\t\t\t$this->updated->ViewValue = ew_FormatDateTime($this->updated->ViewValue, 5);\r\n\t\t\t$this->updated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// categorias\r\n\t\t\t$this->categorias->ViewValue = $this->categorias->CurrentValue;\r\n\t\t\t$this->categorias->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->ViewValue = $this->titulo->CurrentValue;\r\n\t\t\t$this->titulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->ViewValue = $this->islive->CurrentValue;\r\n\t\t\t$this->islive->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// thumbnail\r\n\t\t\t$this->thumbnail->ViewValue = $this->thumbnail->CurrentValue;\r\n\t\t\t$this->thumbnail->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// reqdate\r\n\t\t\t$this->reqdate->ViewValue = $this->reqdate->CurrentValue;\r\n\t\t\t$this->reqdate->ViewValue = ew_FormatDateTime($this->reqdate->ViewValue, 5);\r\n\t\t\t$this->reqdate->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// author\r\n\t\t\t$this->author->ViewValue = $this->author->CurrentValue;\r\n\t\t\t$this->author->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_en\r\n\t\t\t$this->trans_en->ViewValue = $this->trans_en->CurrentValue;\r\n\t\t\t$this->trans_en->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_es\r\n\t\t\t$this->trans_es->ViewValue = $this->trans_es->CurrentValue;\r\n\t\t\t$this->trans_es->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_fr\r\n\t\t\t$this->trans_fr->ViewValue = $this->trans_fr->CurrentValue;\r\n\t\t\t$this->trans_fr->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_it\r\n\t\t\t$this->trans_it->ViewValue = $this->trans_it->CurrentValue;\r\n\t\t\t$this->trans_it->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fid\r\n\t\t\t$this->fid->ViewValue = $this->fid->CurrentValue;\r\n\t\t\t$this->fid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fmd5\r\n\t\t\t$this->fmd5->ViewValue = $this->fmd5->CurrentValue;\r\n\t\t\t$this->fmd5->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->ViewValue = $this->tool_id->CurrentValue;\r\n\t\t\t$this->tool_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->LinkCustomAttributes = \"\";\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\t\t\t$this->identries->TooltipValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\t\t\t$this->titulo->TooltipValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\t\t\t$this->id->TooltipValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->LinkCustomAttributes = \"\";\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\t\t\t$this->islive->TooltipValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t\t$this->tool_id->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// identries\r\n\t\t\t// titulo\r\n\r\n\t\t\t$this->titulo->EditCustomAttributes = \"\";\r\n\t\t\t$this->titulo->EditValue = ew_HtmlEncode($this->titulo->CurrentValue);\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->EditCustomAttributes = \"\";\r\n\t\t\t$this->id->EditValue = ew_HtmlEncode($this->id->CurrentValue);\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->EditCustomAttributes = \"\";\r\n\t\t\t$this->islive->EditValue = ew_HtmlEncode($this->islive->CurrentValue);\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->EditCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->EditValue = ew_HtmlEncode($this->tool_id->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// identries\r\n\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "public function value($row) {\n\t\t$value = $row[$this->field];\n\t\tif (is_array($value)) {\n\t\t\t$value = $this->Table->Text->toList($value, __d('ui', 'and', true));\n\t\t}\n\t\tif (!empty($this->options['truncate'])) {\n\t\t\t$value = Sanitize::stripTags($value, 'img', 'object', 'embed', 'div', 'span');\n\t\t\t$value = $this->Table->Text->truncate($value, $this->options['truncate'], array('html' => true));\n\t\t}\n\t\treturn $value;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id_admission\n\t\t// nomr\n\t\t// ket_nama\n\t\t// ket_tgllahir\n\t\t// ket_alamat\n\t\t// ket_jeniskelamin\n\t\t// ket_title\n\t\t// dokterpengirim\n\t\t// statusbayar\n\t\t// kirimdari\n\t\t// keluargadekat\n\t\t// panggungjawab\n\t\t// masukrs\n\t\t// noruang\n\t\t// tempat_tidur_id\n\t\t// nott\n\t\t// NIP\n\t\t// dokter_penanggungjawab\n\t\t// KELASPERAWATAN_ID\n\t\t// NO_SKP\n\t\t// sep_tglsep\n\t\t// sep_tglrujuk\n\t\t// sep_kodekelasrawat\n\t\t// sep_norujukan\n\t\t// sep_kodeppkasal\n\t\t// sep_namappkasal\n\t\t// sep_kodeppkpelayanan\n\t\t// sep_jenisperawatan\n\t\t// sep_catatan\n\t\t// sep_kodediagnosaawal\n\t\t// sep_namadiagnosaawal\n\t\t// sep_lakalantas\n\t\t// sep_lokasilaka\n\t\t// sep_user\n\t\t// sep_flag_cekpeserta\n\t\t// sep_flag_generatesep\n\t\t// sep_nik\n\t\t// sep_namapeserta\n\t\t// sep_jeniskelamin\n\t\t// sep_pisat\n\t\t// sep_tgllahir\n\t\t// sep_kodejeniskepesertaan\n\t\t// sep_namajeniskepesertaan\n\t\t// sep_nokabpjs\n\t\t// sep_status_peserta\n\t\t// sep_umur_pasien_sekarang\n\t\t// statuskeluarranap_id\n\t\t// keluarrs\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// ket_nama\n\t\t$this->ket_nama->ViewValue = $this->ket_nama->CurrentValue;\n\t\t$this->ket_nama->ViewCustomAttributes = \"\";\n\n\t\t// ket_tgllahir\n\t\t$this->ket_tgllahir->ViewValue = $this->ket_tgllahir->CurrentValue;\n\t\t$this->ket_tgllahir->ViewValue = ew_FormatDateTime($this->ket_tgllahir->ViewValue, 0);\n\t\t$this->ket_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// ket_alamat\n\t\t$this->ket_alamat->ViewValue = $this->ket_alamat->CurrentValue;\n\t\t$this->ket_alamat->ViewCustomAttributes = \"\";\n\n\t\t// ket_jeniskelamin\n\t\t$this->ket_jeniskelamin->ViewValue = $this->ket_jeniskelamin->CurrentValue;\n\t\t$this->ket_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// ket_title\n\t\t$this->ket_title->ViewValue = $this->ket_title->CurrentValue;\n\t\t$this->ket_title->ViewCustomAttributes = \"\";\n\n\t\t// dokterpengirim\n\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokterpengirim->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokterpengirim->ViewValue = NULL;\n\t\t}\n\t\t$this->dokterpengirim->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->statusbayar->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->statusbayar->ViewValue = NULL;\n\t\t}\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kirimdari\n\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kirimdari->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kirimdari->ViewValue = NULL;\n\t\t}\n\t\t$this->kirimdari->ViewCustomAttributes = \"\";\n\n\t\t// keluargadekat\n\t\t$this->keluargadekat->ViewValue = $this->keluargadekat->CurrentValue;\n\t\t$this->keluargadekat->ViewCustomAttributes = \"\";\n\n\t\t// panggungjawab\n\t\t$this->panggungjawab->ViewValue = $this->panggungjawab->CurrentValue;\n\t\t$this->panggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// masukrs\n\t\t$this->masukrs->ViewValue = $this->masukrs->CurrentValue;\n\t\t$this->masukrs->ViewValue = ew_FormatDateTime($this->masukrs->ViewValue, 0);\n\t\t$this->masukrs->ViewCustomAttributes = \"\";\n\n\t\t// noruang\n\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->noruang->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->noruang->ViewValue = NULL;\n\t\t}\n\t\t$this->noruang->ViewCustomAttributes = \"\";\n\n\t\t// tempat_tidur_id\n\t\t$this->tempat_tidur_id->ViewValue = $this->tempat_tidur_id->CurrentValue;\n\t\t$this->tempat_tidur_id->ViewCustomAttributes = \"\";\n\n\t\t// nott\n\t\t$this->nott->ViewValue = $this->nott->CurrentValue;\n\t\t$this->nott->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// dokter_penanggungjawab\n\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokter_penanggungjawab->ViewValue = NULL;\n\t\t}\n\t\t$this->dokter_penanggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// KELASPERAWATAN_ID\n\t\t$this->KELASPERAWATAN_ID->ViewValue = $this->KELASPERAWATAN_ID->CurrentValue;\n\t\t$this->KELASPERAWATAN_ID->ViewCustomAttributes = \"\";\n\n\t\t// NO_SKP\n\t\t$this->NO_SKP->ViewValue = $this->NO_SKP->CurrentValue;\n\t\t$this->NO_SKP->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglsep\n\t\t$this->sep_tglsep->ViewValue = $this->sep_tglsep->CurrentValue;\n\t\t$this->sep_tglsep->ViewValue = ew_FormatDateTime($this->sep_tglsep->ViewValue, 5);\n\t\t$this->sep_tglsep->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglrujuk\n\t\t$this->sep_tglrujuk->ViewValue = $this->sep_tglrujuk->CurrentValue;\n\t\t$this->sep_tglrujuk->ViewValue = ew_FormatDateTime($this->sep_tglrujuk->ViewValue, 5);\n\t\t$this->sep_tglrujuk->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodekelasrawat\n\t\t$this->sep_kodekelasrawat->ViewValue = $this->sep_kodekelasrawat->CurrentValue;\n\t\t$this->sep_kodekelasrawat->ViewCustomAttributes = \"\";\n\n\t\t// sep_norujukan\n\t\t$this->sep_norujukan->ViewValue = $this->sep_norujukan->CurrentValue;\n\t\t$this->sep_norujukan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkasal\n\t\t$this->sep_kodeppkasal->ViewValue = $this->sep_kodeppkasal->CurrentValue;\n\t\t$this->sep_kodeppkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namappkasal\n\t\t$this->sep_namappkasal->ViewValue = $this->sep_namappkasal->CurrentValue;\n\t\t$this->sep_namappkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkpelayanan\n\t\t$this->sep_kodeppkpelayanan->ViewValue = $this->sep_kodeppkpelayanan->CurrentValue;\n\t\t$this->sep_kodeppkpelayanan->ViewCustomAttributes = \"\";\n\n\t\t// sep_jenisperawatan\n\t\t$this->sep_jenisperawatan->ViewValue = $this->sep_jenisperawatan->CurrentValue;\n\t\t$this->sep_jenisperawatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_catatan\n\t\t$this->sep_catatan->ViewValue = $this->sep_catatan->CurrentValue;\n\t\t$this->sep_catatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodediagnosaawal\n\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\tif (strval($this->sep_kodediagnosaawal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->sep_kodediagnosaawal->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_kodediagnosaawal->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_kodediagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namadiagnosaawal\n\t\t$this->sep_namadiagnosaawal->ViewValue = $this->sep_namadiagnosaawal->CurrentValue;\n\t\t$this->sep_namadiagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_lakalantas\n\t\tif (strval($this->sep_lakalantas->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->sep_lakalantas->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_lakalantas->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_lakalantas->ViewCustomAttributes = \"\";\n\n\t\t// sep_lokasilaka\n\t\t$this->sep_lokasilaka->ViewValue = $this->sep_lokasilaka->CurrentValue;\n\t\t$this->sep_lokasilaka->ViewCustomAttributes = \"\";\n\n\t\t// sep_user\n\t\t$this->sep_user->ViewValue = $this->sep_user->CurrentValue;\n\t\t$this->sep_user->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_cekpeserta\n\t\tif (strval($this->sep_flag_cekpeserta->CurrentValue) <> \"\") {\n\t\t\t$this->sep_flag_cekpeserta->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->sep_flag_cekpeserta->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->sep_flag_cekpeserta->ViewValue .= $this->sep_flag_cekpeserta->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->sep_flag_cekpeserta->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_flag_cekpeserta->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_flag_cekpeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_generatesep\n\t\tif (strval($this->sep_flag_generatesep->CurrentValue) <> \"\") {\n\t\t\t$this->sep_flag_generatesep->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->sep_flag_generatesep->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->sep_flag_generatesep->ViewValue .= $this->sep_flag_generatesep->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->sep_flag_generatesep->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_flag_generatesep->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_flag_generatesep->ViewCustomAttributes = \"\";\n\n\t\t// sep_nik\n\t\t$this->sep_nik->ViewValue = $this->sep_nik->CurrentValue;\n\t\t$this->sep_nik->ViewCustomAttributes = \"\";\n\n\t\t// sep_namapeserta\n\t\t$this->sep_namapeserta->ViewValue = $this->sep_namapeserta->CurrentValue;\n\t\t$this->sep_namapeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_jeniskelamin\n\t\t$this->sep_jeniskelamin->ViewValue = $this->sep_jeniskelamin->CurrentValue;\n\t\t$this->sep_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// sep_pisat\n\t\t$this->sep_pisat->ViewValue = $this->sep_pisat->CurrentValue;\n\t\t$this->sep_pisat->ViewCustomAttributes = \"\";\n\n\t\t// sep_tgllahir\n\t\t$this->sep_tgllahir->ViewValue = $this->sep_tgllahir->CurrentValue;\n\t\t$this->sep_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodejeniskepesertaan\n\t\t$this->sep_kodejeniskepesertaan->ViewValue = $this->sep_kodejeniskepesertaan->CurrentValue;\n\t\t$this->sep_kodejeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_namajeniskepesertaan\n\t\t$this->sep_namajeniskepesertaan->ViewValue = $this->sep_namajeniskepesertaan->CurrentValue;\n\t\t$this->sep_namajeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_nokabpjs\n\t\t$this->sep_nokabpjs->ViewValue = $this->sep_nokabpjs->CurrentValue;\n\t\t$this->sep_nokabpjs->ViewCustomAttributes = \"\";\n\n\t\t// sep_status_peserta\n\t\t$this->sep_status_peserta->ViewValue = $this->sep_status_peserta->CurrentValue;\n\t\t$this->sep_status_peserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_umur_pasien_sekarang\n\t\t$this->sep_umur_pasien_sekarang->ViewValue = $this->sep_umur_pasien_sekarang->CurrentValue;\n\t\t$this->sep_umur_pasien_sekarang->ViewCustomAttributes = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\t\t\t$this->ket_nama->TooltipValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\t\t\t$this->ket_tgllahir->TooltipValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\t\t\t$this->ket_alamat->TooltipValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->ket_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\t\t\t$this->ket_title->TooltipValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\t\t\t$this->dokterpengirim->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\t\t\t$this->kirimdari->TooltipValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\t\t\t$this->keluargadekat->TooltipValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\t\t\t$this->panggungjawab->TooltipValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\t\t\t$this->masukrs->TooltipValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\t\t\t$this->noruang->TooltipValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\t\t\t$this->tempat_tidur_id->TooltipValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\t\t\t$this->nott->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\t\t\t$this->dokter_penanggungjawab->TooltipValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->TooltipValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\t\t\t$this->NO_SKP->TooltipValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\t\t\t$this->sep_tglsep->TooltipValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\t\t\t$this->sep_tglrujuk->TooltipValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\t\t\t$this->sep_kodekelasrawat->TooltipValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\t\t\t$this->sep_norujukan->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkasal->TooltipValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\t\t\t$this->sep_namappkasal->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->TooltipValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\t\t\t$this->sep_jenisperawatan->TooltipValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\t\t\t$this->sep_catatan->TooltipValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_kodediagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_namadiagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\t\t\t$this->sep_lakalantas->TooltipValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\t\t\t$this->sep_lokasilaka->TooltipValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\t\t\t$this->sep_user->TooltipValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\t\t\t$this->sep_flag_cekpeserta->TooltipValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\t\t\t$this->sep_flag_generatesep->TooltipValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\t\t\t$this->sep_nik->TooltipValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\t\t\t$this->sep_namapeserta->TooltipValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->sep_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\t\t\t$this->sep_pisat->TooltipValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\t\t\t$this->sep_tgllahir->TooltipValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\t\t\t$this->sep_nokabpjs->TooltipValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\t\t\t$this->sep_status_peserta->TooltipValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_nama->EditCustomAttributes = \"\";\n\t\t\t$this->ket_nama->EditValue = ew_HtmlEncode($this->ket_nama->CurrentValue);\n\t\t\t$this->ket_nama->PlaceHolder = ew_RemoveHtml($this->ket_nama->FldCaption());\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ket_tgllahir->CurrentValue, 8));\n\t\t\t$this->ket_tgllahir->PlaceHolder = ew_RemoveHtml($this->ket_tgllahir->FldCaption());\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_alamat->EditCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->EditValue = ew_HtmlEncode($this->ket_alamat->CurrentValue);\n\t\t\t$this->ket_alamat->PlaceHolder = ew_RemoveHtml($this->ket_alamat->FldCaption());\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->EditValue = ew_HtmlEncode($this->ket_jeniskelamin->CurrentValue);\n\t\t\t$this->ket_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->ket_jeniskelamin->FldCaption());\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_title->EditCustomAttributes = \"\";\n\t\t\t$this->ket_title->EditValue = ew_HtmlEncode($this->ket_title->CurrentValue);\n\t\t\t$this->ket_title->PlaceHolder = ew_RemoveHtml($this->ket_title->FldCaption());\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokterpengirim->EditCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->EditValue = ew_HtmlEncode($this->dokterpengirim->CurrentValue);\n\t\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->dokterpengirim->EditValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->dokterpengirim->EditValue = ew_HtmlEncode($this->dokterpengirim->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->dokterpengirim->PlaceHolder = ew_RemoveHtml($this->dokterpengirim->FldCaption());\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->statusbayar->EditValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kirimdari->EditCustomAttributes = \"\";\n\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->kirimdari->EditValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->kirimdari->PlaceHolder = ew_RemoveHtml($this->kirimdari->FldCaption());\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keluargadekat->EditCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->EditValue = ew_HtmlEncode($this->keluargadekat->CurrentValue);\n\t\t\t$this->keluargadekat->PlaceHolder = ew_RemoveHtml($this->keluargadekat->FldCaption());\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->panggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->EditValue = ew_HtmlEncode($this->panggungjawab->CurrentValue);\n\t\t\t$this->panggungjawab->PlaceHolder = ew_RemoveHtml($this->panggungjawab->FldCaption());\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->masukrs->EditCustomAttributes = \"\";\n\t\t\t$this->masukrs->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->masukrs->CurrentValue, 8));\n\t\t\t$this->masukrs->PlaceHolder = ew_RemoveHtml($this->masukrs->FldCaption());\n\n\t\t\t// noruang\n\t\t\t$this->noruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->noruang->EditCustomAttributes = \"\";\n\t\t\t$this->noruang->EditValue = ew_HtmlEncode($this->noruang->CurrentValue);\n\t\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->noruang->EditValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->noruang->EditValue = ew_HtmlEncode($this->noruang->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->noruang->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->noruang->PlaceHolder = ew_RemoveHtml($this->noruang->FldCaption());\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tempat_tidur_id->EditCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->EditValue = ew_HtmlEncode($this->tempat_tidur_id->CurrentValue);\n\t\t\t$this->tempat_tidur_id->PlaceHolder = ew_RemoveHtml($this->tempat_tidur_id->FldCaption());\n\n\t\t\t// nott\n\t\t\t$this->nott->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nott->EditCustomAttributes = \"\";\n\t\t\t$this->nott->EditValue = ew_HtmlEncode($this->nott->CurrentValue);\n\t\t\t$this->nott->PlaceHolder = ew_RemoveHtml($this->nott->FldCaption());\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokter_penanggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->EditValue = ew_HtmlEncode($this->dokter_penanggungjawab->CurrentValue);\n\t\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->dokter_penanggungjawab->EditValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->dokter_penanggungjawab->EditValue = ew_HtmlEncode($this->dokter_penanggungjawab->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->dokter_penanggungjawab->PlaceHolder = ew_RemoveHtml($this->dokter_penanggungjawab->FldCaption());\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASPERAWATAN_ID->EditCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->EditValue = ew_HtmlEncode($this->KELASPERAWATAN_ID->CurrentValue);\n\t\t\t$this->KELASPERAWATAN_ID->PlaceHolder = ew_RemoveHtml($this->KELASPERAWATAN_ID->FldCaption());\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SKP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->EditValue = ew_HtmlEncode($this->NO_SKP->CurrentValue);\n\t\t\t$this->NO_SKP->PlaceHolder = ew_RemoveHtml($this->NO_SKP->FldCaption());\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglsep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglsep->CurrentValue, 5));\n\t\t\t$this->sep_tglsep->PlaceHolder = ew_RemoveHtml($this->sep_tglsep->FldCaption());\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglrujuk->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglrujuk->CurrentValue, 5));\n\t\t\t$this->sep_tglrujuk->PlaceHolder = ew_RemoveHtml($this->sep_tglrujuk->FldCaption());\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodekelasrawat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->EditValue = ew_HtmlEncode($this->sep_kodekelasrawat->CurrentValue);\n\t\t\t$this->sep_kodekelasrawat->PlaceHolder = ew_RemoveHtml($this->sep_kodekelasrawat->FldCaption());\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_norujukan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->EditValue = ew_HtmlEncode($this->sep_norujukan->CurrentValue);\n\t\t\t$this->sep_norujukan->PlaceHolder = ew_RemoveHtml($this->sep_norujukan->FldCaption());\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->EditValue = ew_HtmlEncode($this->sep_kodeppkasal->CurrentValue);\n\t\t\t$this->sep_kodeppkasal->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkasal->FldCaption());\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namappkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->EditValue = ew_HtmlEncode($this->sep_namappkasal->CurrentValue);\n\t\t\t$this->sep_namappkasal->PlaceHolder = ew_RemoveHtml($this->sep_namappkasal->FldCaption());\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkpelayanan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->EditValue = ew_HtmlEncode($this->sep_kodeppkpelayanan->CurrentValue);\n\t\t\t$this->sep_kodeppkpelayanan->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkpelayanan->FldCaption());\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jenisperawatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->EditValue = ew_HtmlEncode($this->sep_jenisperawatan->CurrentValue);\n\t\t\t$this->sep_jenisperawatan->PlaceHolder = ew_RemoveHtml($this->sep_jenisperawatan->FldCaption());\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_catatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->EditValue = ew_HtmlEncode($this->sep_catatan->CurrentValue);\n\t\t\t$this->sep_catatan->PlaceHolder = ew_RemoveHtml($this->sep_catatan->FldCaption());\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodediagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\tif (strval($this->sep_kodediagnosaawal->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->sep_kodediagnosaawal->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->sep_kodediagnosaawal->EditValue = $this->sep_kodediagnosaawal->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->sep_kodediagnosaawal->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->sep_kodediagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_kodediagnosaawal->FldCaption());\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namadiagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->EditValue = ew_HtmlEncode($this->sep_namadiagnosaawal->CurrentValue);\n\t\t\t$this->sep_namadiagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_namadiagnosaawal->FldCaption());\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->sep_lakalantas->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->sep_lakalantas->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->sep_lakalantas->EditValue = $arwrk;\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_lokasilaka->EditCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->EditValue = ew_HtmlEncode($this->sep_lokasilaka->CurrentValue);\n\t\t\t$this->sep_lokasilaka->PlaceHolder = ew_RemoveHtml($this->sep_lokasilaka->FldCaption());\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_user->EditCustomAttributes = \"\";\n\t\t\t$this->sep_user->EditValue = ew_HtmlEncode($this->sep_user->CurrentValue);\n\t\t\t$this->sep_user->PlaceHolder = ew_RemoveHtml($this->sep_user->FldCaption());\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->EditValue = $this->sep_flag_cekpeserta->Options(FALSE);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->EditValue = $this->sep_flag_generatesep->Options(FALSE);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nik->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nik->EditValue = ew_HtmlEncode($this->sep_nik->CurrentValue);\n\t\t\t$this->sep_nik->PlaceHolder = ew_RemoveHtml($this->sep_nik->FldCaption());\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namapeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->EditValue = ew_HtmlEncode($this->sep_namapeserta->CurrentValue);\n\t\t\t$this->sep_namapeserta->PlaceHolder = ew_RemoveHtml($this->sep_namapeserta->FldCaption());\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->EditValue = ew_HtmlEncode($this->sep_jeniskelamin->CurrentValue);\n\t\t\t$this->sep_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->sep_jeniskelamin->FldCaption());\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_pisat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->EditValue = ew_HtmlEncode($this->sep_pisat->CurrentValue);\n\t\t\t$this->sep_pisat->PlaceHolder = ew_RemoveHtml($this->sep_pisat->FldCaption());\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->EditValue = ew_HtmlEncode($this->sep_tgllahir->CurrentValue);\n\t\t\t$this->sep_tgllahir->PlaceHolder = ew_RemoveHtml($this->sep_tgllahir->FldCaption());\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_kodejeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_kodejeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_kodejeniskepesertaan->FldCaption());\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namajeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_namajeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_namajeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_namajeniskepesertaan->FldCaption());\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nokabpjs->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->EditValue = ew_HtmlEncode($this->sep_nokabpjs->CurrentValue);\n\t\t\t$this->sep_nokabpjs->PlaceHolder = ew_RemoveHtml($this->sep_nokabpjs->FldCaption());\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_status_peserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->EditValue = ew_HtmlEncode($this->sep_status_peserta->CurrentValue);\n\t\t\t$this->sep_status_peserta->PlaceHolder = ew_RemoveHtml($this->sep_status_peserta->FldCaption());\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditValue = ew_HtmlEncode($this->sep_umur_pasien_sekarang->CurrentValue);\n\t\t\t$this->sep_umur_pasien_sekarang->PlaceHolder = ew_RemoveHtml($this->sep_umur_pasien_sekarang->FldCaption());\n\n\t\t\t// Edit refer script\n\t\t\t// nomr\n\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// rid\n\t\t$this->rid->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->rid->EditCustomAttributes = \"\";\n\t\t$this->rid->EditValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->usn->EditCustomAttributes = \"\";\n\t\t$this->usn->EditValue = $this->usn->CurrentValue;\n\t\t$this->usn->PlaceHolder = ew_RemoveHtml($this->usn->FldCaption());\n\n\t\t// name\n\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->name->EditCustomAttributes = \"\";\n\t\t$this->name->EditValue = $this->name->CurrentValue;\n\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());\n\n\t\t// sc1\n\t\t$this->sc1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc1->EditCustomAttributes = \"\";\n\t\t$this->sc1->EditValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->PlaceHolder = ew_RemoveHtml($this->sc1->FldCaption());\n\n\t\t// s1\n\t\t$this->s1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s1->EditCustomAttributes = \"\";\n\t\t$this->s1->EditValue = $this->s1->CurrentValue;\n\t\t$this->s1->PlaceHolder = ew_RemoveHtml($this->s1->FldCaption());\n\n\t\t// sc2\n\t\t$this->sc2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc2->EditCustomAttributes = \"\";\n\t\t$this->sc2->EditValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->PlaceHolder = ew_RemoveHtml($this->sc2->FldCaption());\n\n\t\t// s2\n\t\t$this->s2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s2->EditCustomAttributes = \"\";\n\t\t$this->s2->EditValue = $this->s2->CurrentValue;\n\t\t$this->s2->PlaceHolder = ew_RemoveHtml($this->s2->FldCaption());\n\n\t\t// sc3\n\t\t$this->sc3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc3->EditCustomAttributes = \"\";\n\t\t$this->sc3->EditValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->PlaceHolder = ew_RemoveHtml($this->sc3->FldCaption());\n\n\t\t// s3\n\t\t$this->s3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s3->EditCustomAttributes = \"\";\n\t\t$this->s3->EditValue = $this->s3->CurrentValue;\n\t\t$this->s3->PlaceHolder = ew_RemoveHtml($this->s3->FldCaption());\n\n\t\t// sc4\n\t\t$this->sc4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc4->EditCustomAttributes = \"\";\n\t\t$this->sc4->EditValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->PlaceHolder = ew_RemoveHtml($this->sc4->FldCaption());\n\n\t\t// s4\n\t\t$this->s4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s4->EditCustomAttributes = \"\";\n\t\t$this->s4->EditValue = $this->s4->CurrentValue;\n\t\t$this->s4->PlaceHolder = ew_RemoveHtml($this->s4->FldCaption());\n\n\t\t// sc5\n\t\t$this->sc5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc5->EditCustomAttributes = \"\";\n\t\t$this->sc5->EditValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->PlaceHolder = ew_RemoveHtml($this->sc5->FldCaption());\n\n\t\t// s5\n\t\t$this->s5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s5->EditCustomAttributes = \"\";\n\t\t$this->s5->EditValue = $this->s5->CurrentValue;\n\t\t$this->s5->PlaceHolder = ew_RemoveHtml($this->s5->FldCaption());\n\n\t\t// sc6\n\t\t$this->sc6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc6->EditCustomAttributes = \"\";\n\t\t$this->sc6->EditValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->PlaceHolder = ew_RemoveHtml($this->sc6->FldCaption());\n\n\t\t// s6\n\t\t$this->s6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s6->EditCustomAttributes = \"\";\n\t\t$this->s6->EditValue = $this->s6->CurrentValue;\n\t\t$this->s6->PlaceHolder = ew_RemoveHtml($this->s6->FldCaption());\n\n\t\t// sc7\n\t\t$this->sc7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc7->EditCustomAttributes = \"\";\n\t\t$this->sc7->EditValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->PlaceHolder = ew_RemoveHtml($this->sc7->FldCaption());\n\n\t\t// s7\n\t\t$this->s7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s7->EditCustomAttributes = \"\";\n\t\t$this->s7->EditValue = $this->s7->CurrentValue;\n\t\t$this->s7->PlaceHolder = ew_RemoveHtml($this->s7->FldCaption());\n\n\t\t// sc8\n\t\t$this->sc8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc8->EditCustomAttributes = \"\";\n\t\t$this->sc8->EditValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->PlaceHolder = ew_RemoveHtml($this->sc8->FldCaption());\n\n\t\t// s8\n\t\t$this->s8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s8->EditCustomAttributes = \"\";\n\t\t$this->s8->EditValue = $this->s8->CurrentValue;\n\t\t$this->s8->PlaceHolder = ew_RemoveHtml($this->s8->FldCaption());\n\n\t\t// total\n\t\t$this->total->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->total->EditCustomAttributes = \"\";\n\t\t$this->total->EditValue = $this->total->CurrentValue;\n\t\t$this->total->PlaceHolder = ew_RemoveHtml($this->total->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public static function showBaseFields($row){\n\t\tglobal $bootstrapHelper;\n $configClass = self::loadConfig();\n if((($configClass['use_rooms'] == 1) and ($row->rooms > 0)) or (($configClass['use_bedrooms'] == 1) and ($row->bed_room > 0)) or (($configClass['use_bathrooms'] == 1) and ($row->bath_room > 0)) or ($row->living_areas != \"\")){\n ob_start();\n ?>\n <div class=\"clearfix\"></div>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n <h4>\n <?php echo JText::_('OS_BASE_INFORMATION');?>\n </h4>\n </div>\n </div>\n <?php\n if(($configClass['use_rooms'] == 1) and ($row->rooms > 0)){ ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n <i class=\"osicon-ok\"></i> <?php echo JText::_('OS_ROOMS').\": \".$row->rooms;?>\n </div>\n </div>\n <?php\n }\n ?>\n <?php\n if(($configClass['use_bedrooms'] == 1) and ($row->bed_room > 0)){?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n <i class=\"osicon-ok\"></i> <?php echo JText::_('OS_BED').\": \".$row->bed_room;?>\n </div>\n </div>\n <?php\n }\n ?>\n <?php\n if(($configClass['use_bathrooms'] == 1) and ($row->bath_room > 0)){ ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n <i class=\"osicon-ok\"></i> <?php echo JText::_('OS_BATH').\": \".self::showBath($row->bath_room);?>\n </div>\n </div>\n <?php\n }\n ?>\n <?php\n if((float)$row->square_feet > 0){ ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n <i class=\"osicon-ok\"></i> <?php echo OSPHelper::showSquareLabels().\": \".$row->square_feet;?>\n </div>\n </div>\n <?php\n }\n ?>\n <?php\n $body = ob_get_contents();\n ob_end_clean();\n }\n return $body;\n\t}", "function Row_Export($rs) {\r\n\r\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// IDXDAFTAR\n\t\t// NOMR\n\t\t// KDPOLY\n\t\t// KDCARABAYAR\n\t\t// NIP\n\t\t// TGLREG\n\t\t// JAMREG\n\t\t// NO_SJP\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// NORUJUKAN_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// generate_sep\n\t\t// PESERTANIK_SEP\n\t\t// PESERTANAMA_SEP\n\t\t// PESERTAJENISKELAMIN_SEP\n\t\t// PESERTANAMAKELAS_SEP\n\t\t// PESERTAPISAT\n\t\t// PESERTATGLLAHIR\n\t\t// PESERTAJENISPESERTA_SEP\n\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t// POLITUJUAN_SEP\n\t\t// NAMAPOLITUJUAN_SEP\n\t\t// KDPPKRUJUKAN_SEP\n\t\t// NMPPKRUJUKAN_SEP\n\t\t// mapingtransaksi\n\t\t// bridging_kepesertaan_by_no_ka\n\t\t// pasien_NOTELP\n\t\t// penjamin_kkl_id\n\t\t// asalfaskesrujukan_id\n\t\t// peserta_cob\n\t\t// poli_eksekutif\n\t\t// status_kepesertaan_BPJS\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 5);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 5);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\tif (strval($this->JENISPERAWATAN_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`jeniskeperawatan_id`\" . ew_SearchString(\"=\", $this->JENISPERAWATAN_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jeniskeperawatan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\tif (strval($this->DIAGNOSAAWAL_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->DIAGNOSAAWAL_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\tif (strval($this->LAKALANTAS_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->LAKALANTAS_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->LAKALANTAS_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANIK_SEP\n\t\t$this->PESERTANIK_SEP->ViewValue = $this->PESERTANIK_SEP->CurrentValue;\n\t\t$this->PESERTANIK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMA_SEP\n\t\t$this->PESERTANAMA_SEP->ViewValue = $this->PESERTANAMA_SEP->CurrentValue;\n\t\t$this->PESERTANAMA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAJENISKELAMIN_SEP\n\t\t$this->PESERTAJENISKELAMIN_SEP->ViewValue = $this->PESERTAJENISKELAMIN_SEP->CurrentValue;\n\t\t$this->PESERTAJENISKELAMIN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMAKELAS_SEP\n\t\t$this->PESERTANAMAKELAS_SEP->ViewValue = $this->PESERTANAMAKELAS_SEP->CurrentValue;\n\t\t$this->PESERTANAMAKELAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAPISAT\n\t\t$this->PESERTAPISAT->ViewValue = $this->PESERTAPISAT->CurrentValue;\n\t\t$this->PESERTAPISAT->ViewCustomAttributes = \"\";\n\n\t\t// PESERTATGLLAHIR\n\t\t$this->PESERTATGLLAHIR->ViewValue = $this->PESERTATGLLAHIR->CurrentValue;\n\t\t$this->PESERTATGLLAHIR->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAJENISPESERTA_SEP\n\t\t$this->PESERTAJENISPESERTA_SEP->ViewValue = $this->PESERTAJENISPESERTA_SEP->CurrentValue;\n\t\t$this->PESERTAJENISPESERTA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->ViewValue = $this->PESERTANAMAJENISPESERTA_SEP->CurrentValue;\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// POLITUJUAN_SEP\n\t\tif (strval($this->POLITUJUAN_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDPOLI`\" . ew_SearchString(\"=\", $this->POLITUJUAN_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `KDPOLI`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refpoli`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->POLITUJUAN_SEP->ViewValue = $this->POLITUJUAN_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->POLITUJUAN_SEP->ViewValue = $this->POLITUJUAN_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->POLITUJUAN_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->POLITUJUAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPOLITUJUAN_SEP\n\t\t$this->NAMAPOLITUJUAN_SEP->ViewValue = $this->NAMAPOLITUJUAN_SEP->CurrentValue;\n\t\t$this->NAMAPOLITUJUAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KDPPKRUJUKAN_SEP\n\t\t$this->KDPPKRUJUKAN_SEP->ViewValue = $this->KDPPKRUJUKAN_SEP->CurrentValue;\n\t\t$this->KDPPKRUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NMPPKRUJUKAN_SEP\n\t\t$this->NMPPKRUJUKAN_SEP->ViewValue = $this->NMPPKRUJUKAN_SEP->CurrentValue;\n\t\t$this->NMPPKRUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// pasien_NOTELP\n\t\t$this->pasien_NOTELP->ViewValue = $this->pasien_NOTELP->CurrentValue;\n\t\t$this->pasien_NOTELP->ViewCustomAttributes = \"\";\n\n\t\t// penjamin_kkl_id\n\t\tif (strval($this->penjamin_kkl_id->CurrentValue) <> \"\") {\n\t\t\t$this->penjamin_kkl_id->ViewValue = $this->penjamin_kkl_id->OptionCaption($this->penjamin_kkl_id->CurrentValue);\n\t\t} else {\n\t\t\t$this->penjamin_kkl_id->ViewValue = NULL;\n\t\t}\n\t\t$this->penjamin_kkl_id->ViewCustomAttributes = \"\";\n\n\t\t// asalfaskesrujukan_id\n\t\tif (strval($this->asalfaskesrujukan_id->CurrentValue) <> \"\") {\n\t\t\t$this->asalfaskesrujukan_id->ViewValue = $this->asalfaskesrujukan_id->OptionCaption($this->asalfaskesrujukan_id->CurrentValue);\n\t\t} else {\n\t\t\t$this->asalfaskesrujukan_id->ViewValue = NULL;\n\t\t}\n\t\t$this->asalfaskesrujukan_id->ViewCustomAttributes = \"\";\n\n\t\t// peserta_cob\n\t\tif (strval($this->peserta_cob->CurrentValue) <> \"\") {\n\t\t\t$this->peserta_cob->ViewValue = $this->peserta_cob->OptionCaption($this->peserta_cob->CurrentValue);\n\t\t} else {\n\t\t\t$this->peserta_cob->ViewValue = NULL;\n\t\t}\n\t\t$this->peserta_cob->ViewCustomAttributes = \"\";\n\n\t\t// poli_eksekutif\n\t\tif (strval($this->poli_eksekutif->CurrentValue) <> \"\") {\n\t\t\t$this->poli_eksekutif->ViewValue = $this->poli_eksekutif->OptionCaption($this->poli_eksekutif->CurrentValue);\n\t\t} else {\n\t\t\t$this->poli_eksekutif->ViewValue = NULL;\n\t\t}\n\t\t$this->poli_eksekutif->ViewCustomAttributes = \"\";\n\n\t\t// status_kepesertaan_BPJS\n\t\t$this->status_kepesertaan_BPJS->ViewValue = $this->status_kepesertaan_BPJS->CurrentValue;\n\t\t$this->status_kepesertaan_BPJS->ViewCustomAttributes = \"\";\n\n\t\t\t// NOMR\n\t\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t\t$this->NOMR->HrefValue = \"\";\n\t\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t\t$this->TGLREG->HrefValue = \"\";\n\t\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t\t$this->JAMREG->HrefValue = \"\";\n\t\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t\t// USER\n\t\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t\t$this->USER->HrefValue = \"\";\n\t\t\t$this->USER->TooltipValue = \"\";\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->HrefValue = \"\";\n\t\t\tif ($this->Export == \"\") {\n\t\t\t\t$this->PESERTANIK_SEP->TooltipValue = ($this->PESERTANIK_SEP->ViewValue <> \"\") ? $this->PESERTANIK_SEP->ViewValue : $this->PESERTANIK_SEP->CurrentValue;\n\t\t\t\tif ($this->PESERTANIK_SEP->HrefValue == \"\") $this->PESERTANIK_SEP->HrefValue = \"javascript:void(0);\";\n\t\t\t\tew_AppendClass($this->PESERTANIK_SEP->LinkAttrs[\"class\"], \"ewTooltipLink\");\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-tooltip-id\"] = \"tt_vw_bridging_sep_by_no_kartu_x_PESERTANIK_SEP\";\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-tooltip-width\"] = $this->PESERTANIK_SEP->TooltipWidth;\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-placement\"] = $GLOBALS[\"EW_CSS_FLIP\"] ? \"left\" : \"right\";\n\t\t\t}\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMA_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->HrefValue = \"\";\n\t\t\t$this->PESERTAPISAT->TooltipValue = \"\";\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->HrefValue = \"\";\n\t\t\t$this->PESERTATGLLAHIR->TooltipValue = \"\";\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->TooltipValue = \"\";\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->POLITUJUAN_SEP->HrefValue = \"\";\n\t\t\t$this->POLITUJUAN_SEP->TooltipValue = \"\";\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->HrefValue = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->TooltipValue = \"\";\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->LinkCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->HrefValue = \"\";\n\t\t\t$this->pasien_NOTELP->TooltipValue = \"\";\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->HrefValue = \"\";\n\t\t\t$this->penjamin_kkl_id->TooltipValue = \"\";\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->HrefValue = \"\";\n\t\t\t$this->asalfaskesrujukan_id->TooltipValue = \"\";\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->LinkCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->HrefValue = \"\";\n\t\t\t$this->peserta_cob->TooltipValue = \"\";\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->LinkCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->HrefValue = \"\";\n\t\t\t$this->poli_eksekutif->TooltipValue = \"\";\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->LinkCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->HrefValue = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// NOMR\n\t\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t\t$this->NOMR->EditValue = ew_HtmlEncode($this->NOMR->CurrentValue);\n\t\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->NOMR->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->NOMR->EditValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOMR->EditValue = ew_HtmlEncode($this->NOMR->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOMR->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->NOMR->PlaceHolder = ew_RemoveHtml($this->NOMR->FldCaption());\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDPOLY->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KDPOLY->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDPOLY->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KDPOLY->EditValue = $arwrk;\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KDCARABAYAR->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KDCARABAYAR->EditValue = $arwrk;\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TGLREG->EditCustomAttributes = \"\";\n\t\t\t$this->TGLREG->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TGLREG->CurrentValue, 8));\n\t\t\t$this->TGLREG->PlaceHolder = ew_RemoveHtml($this->TGLREG->FldCaption());\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->JAMREG->EditCustomAttributes = \"\";\n\t\t\t$this->JAMREG->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->JAMREG->CurrentValue, 8));\n\t\t\t$this->JAMREG->PlaceHolder = ew_RemoveHtml($this->JAMREG->FldCaption());\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SJP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->EditValue = ew_HtmlEncode($this->NO_SJP->CurrentValue);\n\t\t\t$this->NO_SJP->PlaceHolder = ew_RemoveHtml($this->NO_SJP->FldCaption());\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOKARTU->EditCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->EditValue = ew_HtmlEncode($this->NOKARTU->CurrentValue);\n\t\t\t$this->NOKARTU->PlaceHolder = ew_RemoveHtml($this->NOKARTU->FldCaption());\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TANGGAL_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TANGGAL_SEP->CurrentValue, 5));\n\t\t\t$this->TANGGAL_SEP->PlaceHolder = ew_RemoveHtml($this->TANGGAL_SEP->FldCaption());\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TANGGALRUJUK_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TANGGALRUJUK_SEP->CurrentValue, 5));\n\t\t\t$this->TANGGALRUJUK_SEP->PlaceHolder = ew_RemoveHtml($this->TANGGALRUJUK_SEP->FldCaption());\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASRAWAT_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->EditValue = ew_HtmlEncode($this->KELASRAWAT_SEP->CurrentValue);\n\t\t\t$this->KELASRAWAT_SEP->PlaceHolder = ew_RemoveHtml($this->KELASRAWAT_SEP->FldCaption());\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NORUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->EditValue = ew_HtmlEncode($this->NORUJUKAN_SEP->CurrentValue);\n\t\t\t$this->NORUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->NORUJUKAN_SEP->FldCaption());\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PPKPELAYANAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->EditValue = ew_HtmlEncode($this->PPKPELAYANAN_SEP->CurrentValue);\n\t\t\t$this->PPKPELAYANAN_SEP->PlaceHolder = ew_RemoveHtml($this->PPKPELAYANAN_SEP->FldCaption());\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->JENISPERAWATAN_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`jeniskeperawatan_id`\" . ew_SearchString(\"=\", $this->JENISPERAWATAN_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_jeniskeperawatan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->JENISPERAWATAN_SEP->EditValue = $arwrk;\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CATATAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->EditValue = ew_HtmlEncode($this->CATATAN_SEP->CurrentValue);\n\t\t\t$this->CATATAN_SEP->PlaceHolder = ew_RemoveHtml($this->CATATAN_SEP->FldCaption());\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = ew_HtmlEncode($this->DIAGNOSAAWAL_SEP->CurrentValue);\n\t\t\tif (strval($this->DIAGNOSAAWAL_SEP->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->DIAGNOSAAWAL_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = $this->DIAGNOSAAWAL_SEP->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = ew_HtmlEncode($this->DIAGNOSAAWAL_SEP->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->DIAGNOSAAWAL_SEP->PlaceHolder = ew_RemoveHtml($this->DIAGNOSAAWAL_SEP->FldCaption());\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NAMADIAGNOSA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->EditValue = ew_HtmlEncode($this->NAMADIAGNOSA_SEP->CurrentValue);\n\t\t\t$this->NAMADIAGNOSA_SEP->PlaceHolder = ew_RemoveHtml($this->NAMADIAGNOSA_SEP->FldCaption());\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->LAKALANTAS_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->LAKALANTAS_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->LAKALANTAS_SEP->EditValue = $arwrk;\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LOKASILAKALANTAS->EditCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->EditValue = ew_HtmlEncode($this->LOKASILAKALANTAS->CurrentValue);\n\t\t\t$this->LOKASILAKALANTAS->PlaceHolder = ew_RemoveHtml($this->LOKASILAKALANTAS->FldCaption());\n\n\t\t\t// USER\n\t\t\t$this->USER->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->USER->EditCustomAttributes = \"\";\n\t\t\t$this->USER->EditValue = ew_HtmlEncode($this->USER->CurrentValue);\n\t\t\t$this->USER->PlaceHolder = ew_RemoveHtml($this->USER->FldCaption());\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANIK_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->EditValue = ew_HtmlEncode($this->PESERTANIK_SEP->CurrentValue);\n\t\t\t$this->PESERTANIK_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANIK_SEP->FldCaption());\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMA_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMA_SEP->FldCaption());\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditValue = ew_HtmlEncode($this->PESERTAJENISKELAMIN_SEP->CurrentValue);\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTAJENISKELAMIN_SEP->FldCaption());\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMAKELAS_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMAKELAS_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMAKELAS_SEP->FldCaption());\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAPISAT->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->EditValue = ew_HtmlEncode($this->PESERTAPISAT->CurrentValue);\n\t\t\t$this->PESERTAPISAT->PlaceHolder = ew_RemoveHtml($this->PESERTAPISAT->FldCaption());\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTATGLLAHIR->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->EditValue = ew_HtmlEncode($this->PESERTATGLLAHIR->CurrentValue);\n\t\t\t$this->PESERTATGLLAHIR->PlaceHolder = ew_RemoveHtml($this->PESERTATGLLAHIR->FldCaption());\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditValue = ew_HtmlEncode($this->PESERTAJENISPESERTA_SEP->CurrentValue);\n\t\t\t$this->PESERTAJENISPESERTA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTAJENISPESERTA_SEP->FldCaption());\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMAJENISPESERTA_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMAJENISPESERTA_SEP->FldCaption());\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->POLITUJUAN_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->POLITUJUAN_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KDPOLI`\" . ew_SearchString(\"=\", $this->POLITUJUAN_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KDPOLI`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `refpoli`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->POLITUJUAN_SEP->EditValue = $arwrk;\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditValue = ew_HtmlEncode($this->NAMAPOLITUJUAN_SEP->CurrentValue);\n\t\t\t$this->NAMAPOLITUJUAN_SEP->PlaceHolder = ew_RemoveHtml($this->NAMAPOLITUJUAN_SEP->FldCaption());\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditValue = ew_HtmlEncode($this->KDPPKRUJUKAN_SEP->CurrentValue);\n\t\t\t$this->KDPPKRUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->KDPPKRUJUKAN_SEP->FldCaption());\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditValue = ew_HtmlEncode($this->NMPPKRUJUKAN_SEP->CurrentValue);\n\t\t\t$this->NMPPKRUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->NMPPKRUJUKAN_SEP->FldCaption());\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pasien_NOTELP->EditCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->EditValue = ew_HtmlEncode($this->pasien_NOTELP->CurrentValue);\n\t\t\t$this->pasien_NOTELP->PlaceHolder = ew_RemoveHtml($this->pasien_NOTELP->FldCaption());\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->penjamin_kkl_id->EditCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->EditValue = $this->penjamin_kkl_id->Options(TRUE);\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->asalfaskesrujukan_id->EditCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->EditValue = $this->asalfaskesrujukan_id->Options(TRUE);\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->peserta_cob->EditCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->EditValue = $this->peserta_cob->Options(TRUE);\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->poli_eksekutif->EditCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->EditValue = $this->poli_eksekutif->Options(TRUE);\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->status_kepesertaan_BPJS->EditCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->EditValue = ew_HtmlEncode($this->status_kepesertaan_BPJS->CurrentValue);\n\t\t\t$this->status_kepesertaan_BPJS->PlaceHolder = ew_RemoveHtml($this->status_kepesertaan_BPJS->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// NOMR\n\n\t\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t\t$this->NOMR->HrefValue = \"\";\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPOLY->HrefValue = \"\";\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t\t$this->TGLREG->HrefValue = \"\";\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t\t$this->JAMREG->HrefValue = \"\";\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->HrefValue = \"\";\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->HrefValue = \"\";\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\n\t\t\t// USER\n\t\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t\t$this->USER->HrefValue = \"\";\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->HrefValue = \"\";\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->HrefValue = \"\";\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->HrefValue = \"\";\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->POLITUJUAN_SEP->HrefValue = \"\";\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->HrefValue = \"\";\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->LinkCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->HrefValue = \"\";\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->HrefValue = \"\";\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->HrefValue = \"\";\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->LinkCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->HrefValue = \"\";\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->LinkCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->HrefValue = \"\";\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->LinkCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function display_rows() {\n \n //Get the records registered in the prepare_items method\n $records = $this->items;\n \n //Get the columns registered in the get_columns and get_sortable_columns methods\n list( $columns, $hidden ) = $this->get_column_info();\n \n //Loop for each record\n if(!empty($records)){foreach($records as $rec){\n \n // Format the status output\n if ( strtotime($rec->until) <= 0 ) {\n $rec->until = false;\n } else {\n //$rec->until = __('Membership ended','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->until));\n $rec->until = '&nbsp;|&nbsp;Active until '.strftime('%Y-%m-%d',strtotime($rec->until));\n }\n $rec->since = __('Applied','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->since));\n \n // Pre-define the edit link\n //$editlink = '/wp-admin/link.php?action=edit&link_id='.(int)$rec->link_id;\n\n //Open the line\n echo \"<tr id=\\\"record_\".$rec->groupID.\"\\\" class=\\\"row-active-\".$rec->active.\"\\\">\\n\";\n foreach ( $columns as $column_name => $column_display_name ) {\n \n //Style attributes for each col\n $class = \"class='$column_name column-$column_name'\";\n \n // Create output in cell\n switch ( $column_name ) {\n case \"col_what\": echo \"<td \".$class.\">\".$this->show_what($rec).\"</td>\\n\"; break;\n case \"col_user\": echo \"<td \".$class.\">\".$this->add_actions($rec).\"</td>\\n\"; break;\n case \"col_groupName\": echo \"<td \".$class.\">\".$rec->groupName.\"</td>\\n\"; break;\n case \"col_application\": echo \"<td \".$class.\">\".$rec->application\n .\"<br><b>\".$rec->since.\"</b></td>\\n\"; break;\n }\n }\n \n //Close the line\n echo \"</tr>\\n\";\n }}\n }", "function Row_Export($rs) {\n\n\t //$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t //$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "public static function showBaseFields1($row){\n\t\tglobal $bootstrapHelper;\n $configClass = self::loadConfig();\n if((($configClass['use_rooms'] == 1) && ($row->rooms > 0)) || (($configClass['use_bedrooms'] == 1) && ($row->bed_room > 0)) && (($configClass['use_bathrooms'] == 1) && ($row->bath_room > 0)) || ((float)$row->square_feet > 0))\n {\n ob_start();\n ?>\n <div class=\"clearfix\"></div>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n <h4>\n <?php echo JText::_('OS_BASE_INFORMATION');?>\n </h4>\n </div>\n </div>\n <?php\n if(($configClass['use_rooms'] == 1) and ($row->rooms > 0))\n {\n ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?> \">\n\t\t\t\t\t\t<div class=\"fieldlabel\">\n\t\t\t\t\t\t\t<?php echo JText::_('OS_ROOMS')?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"fieldvalue\">\n\t\t\t\t\t\t\t<?php echo $row->rooms;?>\n\t\t\t\t\t\t</div>\n </div>\n </div>\n <?php\n }\n if(($configClass['use_bedrooms'] == 1) and ($row->bed_room > 0))\n {\n ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n\t\t\t\t\t\t<div class=\"fieldlabel\">\n\t\t\t\t\t\t\t<?php echo JText::_('OS_BED')?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"fieldvalue\">\n\t\t\t\t\t\t\t<?php echo $row->bed_room;?>\n\t\t\t\t\t\t</div>\n </div>\n </div>\n <?php\n }\n if(($configClass['use_bathrooms'] == 1) and ($row->bath_room > 0))\n {\n ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n\t\t\t\t\t\t<div class=\"fieldlabel\">\n\t\t\t\t\t\t\t<?php echo JText::_('OS_BATH')?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"fieldvalue\">\n\t\t\t\t\t\t\t<?php echo self::showBath($row->bath_room);?>\n\t\t\t\t\t\t</div>\n </div>\n </div>\n <?php\n }\n if((float)$row->square_feet > 0)\n {\n ?>\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('row-fluid'); ?>\">\n <div class=\"<?php echo $bootstrapHelper->getClassMapping('span12'); ?>\">\n\t\t\t\t\t\t<div class=\"fieldlabel\">\n\t\t\t\t\t\t\t<?php echo OSPHelper::showSquareLabels()?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"fieldvalue\">\n\t\t\t\t\t\t\t<?php echo $row->square_feet;?> <?php echo self::showSquareSymbol();?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n </div>\n <?php\n }\n ?>\n <?php\n $body = ob_get_contents();\n ob_end_clean();\n }\n return $body;\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function Row_Export($rs) {\n\n\t\t//$this->ExportDoc->Text .= \"my content\"; // Build HTML with field value: $rs[\"MyField\"] or $this->MyField->ViewValue\n\t}", "function render_field_settings( $field ) {\n\t\t\n\t\t// vars\n\t\t$args = array(\n\t\t\t'fields'\t=> $field['sub_fields'],\n\t\t\t'parent'\t=> $field['ID']\n\t\t);\n\t\t\n\t\t\n\t\t?><tr class=\"acf-field acf-field-setting-sub_fields\" data-setting=\"repeater\" data-name=\"sub_fields\">\n\t\t\t<td class=\"acf-label\">\n\t\t\t\t<label><?php _e(\"Sub Fields\",'acf'); ?></label>\n\t\t\t\t<p class=\"description\"></p>\t\t\n\t\t\t</td>\n\t\t\t<td class=\"acf-input\">\n\t\t\t\t<?php \n\t\t\t\t\n\t\t\t\tacf_get_view('field-group-fields', $args);\n\t\t\t\t\n\t\t\t\t?>\n\t\t\t</td>\n\t\t</tr>\n\t\t<?php\n\t\t\n\t\t\n\t\t// rows\n\t\t$field['min'] = empty($field['min']) ? '' : $field['min'];\n\t\t$field['max'] = empty($field['max']) ? '' : $field['max'];\n\t\t\n\t\t\n\t\t// preview\n\t\t$choices = array();\n\t\t\n\t\tif( $field['collapsed'] ) {\n\t\t\t\n\t\t\t$choices[ $field['collapsed'] ] = $field['collapsed'];\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Collapsed','acf'),\n\t\t\t'instructions'\t=> __('Select a sub field to show when row is collapsed','acf'),\n\t\t\t'type'\t\t\t=> 'select',\n\t\t\t'name'\t\t\t=> 'collapsed',\n\t\t\t'allow_null'\t=> 1,\n\t\t\t'choices'\t\t=> $choices\n\t\t));\n\t\t\n\t\t\n\t\t// min\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Minimum Rows','acf'),\n\t\t\t'instructions'\t=> '',\n\t\t\t'type'\t\t\t=> 'number',\n\t\t\t'name'\t\t\t=> 'min',\n\t\t\t'placeholder'\t=> '0',\n\t\t));\n\t\t\n\t\t\n\t\t// max\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Maximum Rows','acf'),\n\t\t\t'instructions'\t=> '',\n\t\t\t'type'\t\t\t=> 'number',\n\t\t\t'name'\t\t\t=> 'max',\n\t\t\t'placeholder'\t=> '0',\n\t\t));\n\t\t\n\t\t\n\t\t// layout\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Layout','acf'),\n\t\t\t'instructions'\t=> '',\n\t\t\t'class'\t\t\t=> 'acf-repeater-layout',\n\t\t\t'type'\t\t\t=> 'radio',\n\t\t\t'name'\t\t\t=> 'layout',\n\t\t\t'layout'\t\t=> 'horizontal',\n\t\t\t'choices'\t\t=> array(\n\t\t\t\t'table'\t\t\t=> __('Table','acf'),\n\t\t\t\t'block'\t\t\t=> __('Block','acf'),\n\t\t\t\t'row'\t\t\t=> __('Row','acf')\n\t\t\t)\n\t\t));\n\t\t\n\t\t\n\t\t// button_label\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Button Label','acf'),\n\t\t\t'instructions'\t=> '',\n\t\t\t'type'\t\t\t=> 'text',\n\t\t\t'name'\t\t\t=> 'button_label',\n\t\t\t'placeholder'\t=> __('Add Row','acf')\n\t\t));\n\t\t\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Pase\r\n\t\t// Serie_Equipo\r\n\t\t// Id_Hardware\r\n\t\t// SN\r\n\t\t// Modelo_Net\r\n\t\t// Marca_Arranque\r\n\t\t// Nombre_Titular\r\n\t\t// Dni_Titular\r\n\t\t// Cuil_Titular\r\n\t\t// Nombre_Tutor\r\n\t\t// DniTutor\r\n\t\t// Domicilio\r\n\t\t// Tel_Tutor\r\n\t\t// CelTutor\r\n\t\t// Cue_Establecimiento_Alta\r\n\t\t// Escuela_Alta\r\n\t\t// Directivo_Alta\r\n\t\t// Cuil_Directivo_Alta\r\n\t\t// Dpto_Esc_alta\r\n\t\t// Localidad_Esc_Alta\r\n\t\t// Domicilio_Esc_Alta\r\n\t\t// Rte_Alta\r\n\t\t// Tel_Rte_Alta\r\n\t\t// Email_Rte_Alta\r\n\t\t// Serie_Server_Alta\r\n\t\t// Cue_Establecimiento_Baja\r\n\t\t// Escuela_Baja\r\n\t\t// Directivo_Baja\r\n\t\t// Cuil_Directivo_Baja\r\n\t\t// Dpto_Esc_Baja\r\n\t\t// Localidad_Esc_Baja\r\n\t\t// Domicilio_Esc_Baja\r\n\t\t// Rte_Baja\r\n\t\t// Tel_Rte_Baja\r\n\t\t// Email_Rte_Baja\r\n\t\t// Serie_Server_Baja\r\n\t\t// Fecha_Pase\r\n\t\t// Id_Estado_Pase\r\n\t\t// Ruta_Archivo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Serie_Equipo\r\n\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->CurrentValue;\r\n\t\tif (strval($this->Serie_Equipo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->Serie_Equipo->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Serie_Equipo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Serie_Equipo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Hardware\r\n\t\t$this->Id_Hardware->ViewValue = $this->Id_Hardware->CurrentValue;\r\n\t\t$this->Id_Hardware->ViewCustomAttributes = \"\";\r\n\r\n\t\t// SN\r\n\t\t$this->SN->ViewValue = $this->SN->CurrentValue;\r\n\t\t$this->SN->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Modelo_Net\r\n\t\tif (strval($this->Modelo_Net->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Descripcion`\" . ew_SearchString(\"=\", $this->Modelo_Net->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Descripcion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Modelo_Net->ViewValue = $this->Modelo_Net->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Modelo_Net->ViewValue = $this->Modelo_Net->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Modelo_Net->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Modelo_Net->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Marca_Arranque\r\n\t\t$this->Marca_Arranque->ViewValue = $this->Marca_Arranque->CurrentValue;\r\n\t\t$this->Marca_Arranque->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nombre_Titular\r\n\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->CurrentValue;\r\n\t\tif (strval($this->Nombre_Titular->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nombre_Titular->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nombre_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni_Titular\r\n\t\t$this->Dni_Titular->ViewValue = $this->Dni_Titular->CurrentValue;\r\n\t\t$this->Dni_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Titular\r\n\t\t$this->Cuil_Titular->ViewValue = $this->Cuil_Titular->CurrentValue;\r\n\t\t$this->Cuil_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nombre_Tutor\r\n\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->CurrentValue;\r\n\t\tif (strval($this->Nombre_Tutor->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Tutor->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nombre_Tutor->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nombre_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// DniTutor\r\n\t\t$this->DniTutor->ViewValue = $this->DniTutor->CurrentValue;\r\n\t\t$this->DniTutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Tutor\r\n\t\t$this->Tel_Tutor->ViewValue = $this->Tel_Tutor->CurrentValue;\r\n\t\t$this->Tel_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// CelTutor\r\n\t\t$this->CelTutor->ViewValue = $this->CelTutor->CurrentValue;\r\n\t\t$this->CelTutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue_Establecimiento_Alta\r\n\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->CurrentValue;\r\n\t\tif (strval($this->Cue_Establecimiento_Alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Alta->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Cue_Establecimiento_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Escuela_Alta\r\n\t\t$this->Escuela_Alta->ViewValue = $this->Escuela_Alta->CurrentValue;\r\n\t\t$this->Escuela_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Directivo_Alta\r\n\t\t$this->Directivo_Alta->ViewValue = $this->Directivo_Alta->CurrentValue;\r\n\t\t$this->Directivo_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Directivo_Alta\r\n\t\t$this->Cuil_Directivo_Alta->ViewValue = $this->Cuil_Directivo_Alta->CurrentValue;\r\n\t\t$this->Cuil_Directivo_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dpto_Esc_alta\r\n\t\tif (strval($this->Dpto_Esc_alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Dpto_Esc_alta->ViewValue = $this->Dpto_Esc_alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Dpto_Esc_alta->ViewValue = $this->Dpto_Esc_alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Dpto_Esc_alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Dpto_Esc_alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Localidad_Esc_Alta\r\n\t\tif (strval($this->Localidad_Esc_Alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Localidad_Esc_Alta->ViewValue = $this->Localidad_Esc_Alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Localidad_Esc_Alta->ViewValue = $this->Localidad_Esc_Alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Localidad_Esc_Alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Localidad_Esc_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio_Esc_Alta\r\n\t\t$this->Domicilio_Esc_Alta->ViewValue = $this->Domicilio_Esc_Alta->CurrentValue;\r\n\t\t$this->Domicilio_Esc_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Rte_Alta\r\n\t\t$this->Rte_Alta->ViewValue = $this->Rte_Alta->CurrentValue;\r\n\t\t$this->Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Rte_Alta\r\n\t\t$this->Tel_Rte_Alta->ViewValue = $this->Tel_Rte_Alta->CurrentValue;\r\n\t\t$this->Tel_Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Email_Rte_Alta\r\n\t\t$this->Email_Rte_Alta->ViewValue = $this->Email_Rte_Alta->CurrentValue;\r\n\t\t$this->Email_Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Serie_Server_Alta\r\n\t\t$this->Serie_Server_Alta->ViewValue = $this->Serie_Server_Alta->CurrentValue;\r\n\t\t$this->Serie_Server_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue_Establecimiento_Baja\r\n\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->CurrentValue;\r\n\t\tif (strval($this->Cue_Establecimiento_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Baja->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Cue_Establecimiento_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Escuela_Baja\r\n\t\t$this->Escuela_Baja->ViewValue = $this->Escuela_Baja->CurrentValue;\r\n\t\t$this->Escuela_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Directivo_Baja\r\n\t\t$this->Directivo_Baja->ViewValue = $this->Directivo_Baja->CurrentValue;\r\n\t\t$this->Directivo_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Directivo_Baja\r\n\t\t$this->Cuil_Directivo_Baja->ViewValue = $this->Cuil_Directivo_Baja->CurrentValue;\r\n\t\t$this->Cuil_Directivo_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dpto_Esc_Baja\r\n\t\tif (strval($this->Dpto_Esc_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Dpto_Esc_Baja->ViewValue = $this->Dpto_Esc_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Dpto_Esc_Baja->ViewValue = $this->Dpto_Esc_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Dpto_Esc_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Dpto_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Localidad_Esc_Baja\r\n\t\tif (strval($this->Localidad_Esc_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Localidad_Esc_Baja->ViewValue = $this->Localidad_Esc_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Localidad_Esc_Baja->ViewValue = $this->Localidad_Esc_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Localidad_Esc_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Localidad_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio_Esc_Baja\r\n\t\t$this->Domicilio_Esc_Baja->ViewValue = $this->Domicilio_Esc_Baja->CurrentValue;\r\n\t\t$this->Domicilio_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Rte_Baja\r\n\t\t$this->Rte_Baja->ViewValue = $this->Rte_Baja->CurrentValue;\r\n\t\t$this->Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Rte_Baja\r\n\t\t$this->Tel_Rte_Baja->ViewValue = $this->Tel_Rte_Baja->CurrentValue;\r\n\t\t$this->Tel_Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Email_Rte_Baja\r\n\t\t$this->Email_Rte_Baja->ViewValue = $this->Email_Rte_Baja->CurrentValue;\r\n\t\t$this->Email_Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Serie_Server_Baja\r\n\t\t$this->Serie_Server_Baja->ViewValue = $this->Serie_Server_Baja->CurrentValue;\r\n\t\t$this->Serie_Server_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Pase\r\n\t\t$this->Fecha_Pase->ViewValue = $this->Fecha_Pase->CurrentValue;\r\n\t\t$this->Fecha_Pase->ViewValue = ew_FormatDateTime($this->Fecha_Pase->ViewValue, 7);\r\n\t\t$this->Fecha_Pase->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Pase\r\n\t\tif (strval($this->Id_Estado_Pase->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Pase`\" . ew_SearchString(\"=\", $this->Id_Estado_Pase->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Pase->ViewValue = $this->Id_Estado_Pase->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Pase->ViewValue = $this->Id_Estado_Pase->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Pase->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Pase->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Ruta_Archivo\r\n\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->DbValue)) {\r\n\t\t\t$this->Ruta_Archivo->ViewValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t} else {\r\n\t\t\t$this->Ruta_Archivo->ViewValue = \"\";\r\n\t\t}\r\n\t\t$this->Ruta_Archivo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->HrefValue = \"\";\r\n\t\t\t$this->Serie_Equipo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->HrefValue = \"\";\r\n\t\t\t$this->Id_Hardware->TooltipValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\t\t\t$this->SN->TooltipValue = \"\";\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Modelo_Net->HrefValue = \"\";\r\n\t\t\t$this->Modelo_Net->TooltipValue = \"\";\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->HrefValue = \"\";\r\n\t\t\t$this->Marca_Arranque->TooltipValue = \"\";\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->HrefValue = \"\";\r\n\t\t\t$this->Nombre_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->HrefValue = \"\";\r\n\t\t\t$this->Dni_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Nombre_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->HrefValue = \"\";\r\n\t\t\t$this->DniTutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Tel_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->HrefValue = \"\";\r\n\t\t\t$this->CelTutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->HrefValue = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->HrefValue = \"\";\r\n\t\t\t$this->Escuela_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->HrefValue = \"\";\r\n\t\t\t$this->Directivo_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->HrefValue = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->HrefValue = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->HrefValue = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Email_Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->HrefValue = \"\";\r\n\t\t\t$this->Serie_Server_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->HrefValue = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->HrefValue = \"\";\r\n\t\t\t$this->Escuela_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->HrefValue = \"\";\r\n\t\t\t$this->Directivo_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Email_Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->HrefValue = \"\";\r\n\t\t\t$this->Serie_Server_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Pase->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Pase->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Pase->TooltipValue = \"\";\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue2 = $this->Ruta_Archivo->UploadPath . $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t\t$this->Ruta_Archivo->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Equipo->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->EditValue = ew_HtmlEncode($this->Serie_Equipo->CurrentValue);\r\n\t\t\tif (strval($this->Serie_Equipo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->Serie_Equipo->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Serie_Equipo->EditValue = $this->Serie_Equipo->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Serie_Equipo->EditValue = ew_HtmlEncode($this->Serie_Equipo->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Serie_Equipo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Serie_Equipo->PlaceHolder = ew_RemoveHtml($this->Serie_Equipo->FldCaption());\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Hardware->EditCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->EditValue = ew_HtmlEncode($this->Id_Hardware->CurrentValue);\r\n\t\t\t$this->Id_Hardware->PlaceHolder = ew_RemoveHtml($this->Id_Hardware->FldCaption());\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->SN->EditCustomAttributes = \"\";\r\n\t\t\t$this->SN->EditValue = ew_HtmlEncode($this->SN->CurrentValue);\r\n\t\t\t$this->SN->PlaceHolder = ew_RemoveHtml($this->SN->FldCaption());\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Modelo_Net->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Modelo_Net->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Descripcion`\" . ew_SearchString(\"=\", $this->Modelo_Net->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Descripcion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `modelo`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Modelo_Net->EditValue = $arwrk;\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Marca_Arranque->EditCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->EditValue = ew_HtmlEncode($this->Marca_Arranque->CurrentValue);\r\n\t\t\t$this->Marca_Arranque->PlaceHolder = ew_RemoveHtml($this->Marca_Arranque->FldCaption());\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nombre_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->EditValue = ew_HtmlEncode($this->Nombre_Titular->CurrentValue);\r\n\t\t\tif (strval($this->Nombre_Titular->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nombre_Titular->EditValue = $this->Nombre_Titular->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nombre_Titular->EditValue = ew_HtmlEncode($this->Nombre_Titular->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Titular->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nombre_Titular->PlaceHolder = ew_RemoveHtml($this->Nombre_Titular->FldCaption());\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->EditValue = ew_HtmlEncode($this->Dni_Titular->CurrentValue);\r\n\t\t\t$this->Dni_Titular->PlaceHolder = ew_RemoveHtml($this->Dni_Titular->FldCaption());\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->EditValue = ew_HtmlEncode($this->Cuil_Titular->CurrentValue);\r\n\t\t\t$this->Cuil_Titular->PlaceHolder = ew_RemoveHtml($this->Cuil_Titular->FldCaption());\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nombre_Tutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->EditValue = ew_HtmlEncode($this->Nombre_Tutor->CurrentValue);\r\n\t\t\tif (strval($this->Nombre_Tutor->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Tutor->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nombre_Tutor->EditValue = $this->Nombre_Tutor->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nombre_Tutor->EditValue = ew_HtmlEncode($this->Nombre_Tutor->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Tutor->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nombre_Tutor->PlaceHolder = ew_RemoveHtml($this->Nombre_Tutor->FldCaption());\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->DniTutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->EditValue = ew_HtmlEncode($this->DniTutor->CurrentValue);\r\n\t\t\t$this->DniTutor->PlaceHolder = ew_RemoveHtml($this->DniTutor->FldCaption());\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->EditValue = ew_HtmlEncode($this->Domicilio->CurrentValue);\r\n\t\t\t$this->Domicilio->PlaceHolder = ew_RemoveHtml($this->Domicilio->FldCaption());\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Tutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->EditValue = ew_HtmlEncode($this->Tel_Tutor->CurrentValue);\r\n\t\t\t$this->Tel_Tutor->PlaceHolder = ew_RemoveHtml($this->Tel_Tutor->FldCaption());\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->CelTutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->EditValue = ew_HtmlEncode($this->CelTutor->CurrentValue);\r\n\t\t\t$this->CelTutor->PlaceHolder = ew_RemoveHtml($this->CelTutor->FldCaption());\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Alta->CurrentValue);\r\n\t\t\tif (strval($this->Cue_Establecimiento_Alta->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Alta->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\r\n\t\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = $this->Cue_Establecimiento_Alta->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Alta->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Cue_Establecimiento_Alta->PlaceHolder = ew_RemoveHtml($this->Cue_Establecimiento_Alta->FldCaption());\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Escuela_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->EditValue = ew_HtmlEncode($this->Escuela_Alta->CurrentValue);\r\n\t\t\t$this->Escuela_Alta->PlaceHolder = ew_RemoveHtml($this->Escuela_Alta->FldCaption());\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Directivo_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->EditValue = ew_HtmlEncode($this->Directivo_Alta->CurrentValue);\r\n\t\t\t$this->Directivo_Alta->PlaceHolder = ew_RemoveHtml($this->Directivo_Alta->FldCaption());\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Directivo_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->EditValue = ew_HtmlEncode($this->Cuil_Directivo_Alta->CurrentValue);\r\n\t\t\t$this->Cuil_Directivo_Alta->PlaceHolder = ew_RemoveHtml($this->Cuil_Directivo_Alta->FldCaption());\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dpto_Esc_alta->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Dpto_Esc_alta->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Dpto_Esc_alta->EditValue = $arwrk;\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Localidad_Esc_Alta->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Localidad_Esc_Alta->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Localidad_Esc_Alta->EditValue = $arwrk;\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio_Esc_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->EditValue = ew_HtmlEncode($this->Domicilio_Esc_Alta->CurrentValue);\r\n\t\t\t$this->Domicilio_Esc_Alta->PlaceHolder = ew_RemoveHtml($this->Domicilio_Esc_Alta->FldCaption());\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->EditValue = ew_HtmlEncode($this->Rte_Alta->CurrentValue);\r\n\t\t\t$this->Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->EditValue = ew_HtmlEncode($this->Tel_Rte_Alta->CurrentValue);\r\n\t\t\t$this->Tel_Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Tel_Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Email_Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->EditValue = ew_HtmlEncode($this->Email_Rte_Alta->CurrentValue);\r\n\t\t\t$this->Email_Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Email_Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Server_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->EditValue = ew_HtmlEncode($this->Serie_Server_Alta->CurrentValue);\r\n\t\t\t$this->Serie_Server_Alta->PlaceHolder = ew_RemoveHtml($this->Serie_Server_Alta->FldCaption());\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Baja->CurrentValue);\r\n\t\t\tif (strval($this->Cue_Establecimiento_Baja->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Baja->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\r\n\t\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = $this->Cue_Establecimiento_Baja->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Baja->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Cue_Establecimiento_Baja->PlaceHolder = ew_RemoveHtml($this->Cue_Establecimiento_Baja->FldCaption());\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Escuela_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->EditValue = ew_HtmlEncode($this->Escuela_Baja->CurrentValue);\r\n\t\t\t$this->Escuela_Baja->PlaceHolder = ew_RemoveHtml($this->Escuela_Baja->FldCaption());\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Directivo_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->EditValue = ew_HtmlEncode($this->Directivo_Baja->CurrentValue);\r\n\t\t\t$this->Directivo_Baja->PlaceHolder = ew_RemoveHtml($this->Directivo_Baja->FldCaption());\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Directivo_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->EditValue = ew_HtmlEncode($this->Cuil_Directivo_Baja->CurrentValue);\r\n\t\t\t$this->Cuil_Directivo_Baja->PlaceHolder = ew_RemoveHtml($this->Cuil_Directivo_Baja->FldCaption());\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dpto_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Dpto_Esc_Baja->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Dpto_Esc_Baja->EditValue = $arwrk;\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Localidad_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Localidad_Esc_Baja->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Localidad_Esc_Baja->EditValue = $arwrk;\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->EditValue = ew_HtmlEncode($this->Domicilio_Esc_Baja->CurrentValue);\r\n\t\t\t$this->Domicilio_Esc_Baja->PlaceHolder = ew_RemoveHtml($this->Domicilio_Esc_Baja->FldCaption());\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->EditValue = ew_HtmlEncode($this->Rte_Baja->CurrentValue);\r\n\t\t\t$this->Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->EditValue = ew_HtmlEncode($this->Tel_Rte_Baja->CurrentValue);\r\n\t\t\t$this->Tel_Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Tel_Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Email_Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->EditValue = ew_HtmlEncode($this->Email_Rte_Baja->CurrentValue);\r\n\t\t\t$this->Email_Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Email_Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Server_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->EditValue = ew_HtmlEncode($this->Serie_Server_Baja->CurrentValue);\r\n\t\t\t$this->Serie_Server_Baja->PlaceHolder = ew_RemoveHtml($this->Serie_Server_Baja->FldCaption());\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Pase->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->Fecha_Pase->CurrentValue, 7));\r\n\t\t\t$this->Fecha_Pase->PlaceHolder = ew_RemoveHtml($this->Fecha_Pase->FldCaption());\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Estado_Pase->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Estado_Pase->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Estado_Pase`\" . ew_SearchString(\"=\", $this->Id_Estado_Pase->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estado_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Estado_Pase->EditValue = $arwrk;\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Ruta_Archivo->EditCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->DbValue)) {\r\n\t\t\t\t$this->Ruta_Archivo->EditValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t\t} else {\r\n\t\t\t\t$this->Ruta_Archivo->EditValue = \"\";\r\n\t\t\t}\r\n\t\t\tif (!ew_Empty($this->Ruta_Archivo->CurrentValue))\r\n\t\t\t\t$this->Ruta_Archivo->Upload->FileName = $this->Ruta_Archivo->CurrentValue;\r\n\t\t\tif ($this->CurrentAction == \"I\" && !$this->EventCancelled) ew_RenderUploadField($this->Ruta_Archivo);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// Serie_Equipo\r\n\r\n\t\t\t$this->Serie_Equipo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->HrefValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Modelo_Net->HrefValue = \"\";\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->HrefValue = \"\";\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->HrefValue = \"\";\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->HrefValue = \"\";\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->HrefValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->HrefValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Pase->HrefValue = \"\";\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue2 = $this->Ruta_Archivo->UploadPath . $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// name\n\t\t// email\n\t\t// password\n\n\t\t$this->password->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// companyname\n\t\t// servicetime\n\t\t// country\n\t\t// phone\n\t\t// skype\n\t\t// website\n\t\t// linkedin\n\t\t// facebook\n\t\t// twitter\n\t\t// active_code\n\t\t// identification\n\t\t// link_expired\n\t\t// isactive\n\t\t// pio\n\t\t// google\n\t\t// instagram\n\t\t// account_type\n\t\t// logo\n\t\t// profilepic\n\t\t// mailref\n\t\t// deleted\n\t\t// deletefeedback\n\t\t// account_id\n\t\t// start_date\n\t\t// end_date\n\t\t// year_moth\n\t\t// registerdate\n\t\t// login_type\n\t\t// accountstatus\n\t\t// ispay\n\t\t// profilelink\n\t\t// source\n\t\t// agree\n\t\t// balance\n\t\t// job_title\n\t\t// projects\n\t\t// opportunities\n\t\t// isconsaltant\n\t\t// isagent\n\t\t// isinvestor\n\t\t// isbusinessman\n\t\t// isprovider\n\t\t// isproductowner\n\t\t// states\n\t\t// cities\n\t\t// offers\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// companyname\n\t\t$this->companyname->ViewValue = $this->companyname->CurrentValue;\n\t\t$this->companyname->ViewCustomAttributes = \"\";\n\n\t\t// servicetime\n\t\t$this->servicetime->ViewValue = $this->servicetime->CurrentValue;\n\t\t$this->servicetime->ViewCustomAttributes = \"\";\n\n\t\t// country\n\t\t$this->country->ViewValue = $this->country->CurrentValue;\n\t\t$this->country->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// skype\n\t\t$this->skype->ViewValue = $this->skype->CurrentValue;\n\t\t$this->skype->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// linkedin\n\t\t$this->linkedin->ViewValue = $this->linkedin->CurrentValue;\n\t\t$this->linkedin->ViewCustomAttributes = \"\";\n\n\t\t// facebook\n\t\t$this->facebook->ViewValue = $this->facebook->CurrentValue;\n\t\t$this->facebook->ViewCustomAttributes = \"\";\n\n\t\t// twitter\n\t\t$this->twitter->ViewValue = $this->twitter->CurrentValue;\n\t\t$this->twitter->ViewCustomAttributes = \"\";\n\n\t\t// active_code\n\t\t$this->active_code->ViewValue = $this->active_code->CurrentValue;\n\t\t$this->active_code->ViewCustomAttributes = \"\";\n\n\t\t// identification\n\t\t$this->identification->ViewValue = $this->identification->CurrentValue;\n\t\t$this->identification->ViewCustomAttributes = \"\";\n\n\t\t// link_expired\n\t\t$this->link_expired->ViewValue = $this->link_expired->CurrentValue;\n\t\t$this->link_expired->ViewValue = ew_FormatDateTime($this->link_expired->ViewValue, 5);\n\t\t$this->link_expired->ViewCustomAttributes = \"\";\n\n\t\t// isactive\n\t\t$this->isactive->ViewValue = $this->isactive->CurrentValue;\n\t\t$this->isactive->ViewCustomAttributes = \"\";\n\n\t\t// google\n\t\t$this->google->ViewValue = $this->google->CurrentValue;\n\t\t$this->google->ViewCustomAttributes = \"\";\n\n\t\t// instagram\n\t\t$this->instagram->ViewValue = $this->instagram->CurrentValue;\n\t\t$this->instagram->ViewCustomAttributes = \"\";\n\n\t\t// account_type\n\t\t$this->account_type->ViewValue = $this->account_type->CurrentValue;\n\t\t$this->account_type->ViewCustomAttributes = \"\";\n\n\t\t// logo\n\t\t$this->logo->ViewValue = $this->logo->CurrentValue;\n\t\t$this->logo->ViewCustomAttributes = \"\";\n\n\t\t// profilepic\n\t\t$this->profilepic->ViewValue = $this->profilepic->CurrentValue;\n\t\t$this->profilepic->ViewCustomAttributes = \"\";\n\n\t\t// mailref\n\t\t$this->mailref->ViewValue = $this->mailref->CurrentValue;\n\t\t$this->mailref->ViewCustomAttributes = \"\";\n\n\t\t// deleted\n\t\t$this->deleted->ViewValue = $this->deleted->CurrentValue;\n\t\t$this->deleted->ViewCustomAttributes = \"\";\n\n\t\t// deletefeedback\n\t\t$this->deletefeedback->ViewValue = $this->deletefeedback->CurrentValue;\n\t\t$this->deletefeedback->ViewCustomAttributes = \"\";\n\n\t\t// account_id\n\t\t$this->account_id->ViewValue = $this->account_id->CurrentValue;\n\t\t$this->account_id->ViewCustomAttributes = \"\";\n\n\t\t// start_date\n\t\t$this->start_date->ViewValue = $this->start_date->CurrentValue;\n\t\t$this->start_date->ViewValue = ew_FormatDateTime($this->start_date->ViewValue, 5);\n\t\t$this->start_date->ViewCustomAttributes = \"\";\n\n\t\t// end_date\n\t\t$this->end_date->ViewValue = $this->end_date->CurrentValue;\n\t\t$this->end_date->ViewValue = ew_FormatDateTime($this->end_date->ViewValue, 5);\n\t\t$this->end_date->ViewCustomAttributes = \"\";\n\n\t\t// year_moth\n\t\t$this->year_moth->ViewValue = $this->year_moth->CurrentValue;\n\t\t$this->year_moth->ViewCustomAttributes = \"\";\n\n\t\t// registerdate\n\t\t$this->registerdate->ViewValue = $this->registerdate->CurrentValue;\n\t\t$this->registerdate->ViewValue = ew_FormatDateTime($this->registerdate->ViewValue, 5);\n\t\t$this->registerdate->ViewCustomAttributes = \"\";\n\n\t\t// login_type\n\t\t$this->login_type->ViewValue = $this->login_type->CurrentValue;\n\t\t$this->login_type->ViewCustomAttributes = \"\";\n\n\t\t// accountstatus\n\t\t$this->accountstatus->ViewValue = $this->accountstatus->CurrentValue;\n\t\t$this->accountstatus->ViewCustomAttributes = \"\";\n\n\t\t// ispay\n\t\t$this->ispay->ViewValue = $this->ispay->CurrentValue;\n\t\t$this->ispay->ViewCustomAttributes = \"\";\n\n\t\t// profilelink\n\t\t$this->profilelink->ViewValue = $this->profilelink->CurrentValue;\n\t\t$this->profilelink->ViewCustomAttributes = \"\";\n\n\t\t// source\n\t\t$this->source->ViewValue = $this->source->CurrentValue;\n\t\t$this->source->ViewCustomAttributes = \"\";\n\n\t\t// agree\n\t\t$this->agree->ViewValue = $this->agree->CurrentValue;\n\t\t$this->agree->ViewCustomAttributes = \"\";\n\n\t\t// balance\n\t\t$this->balance->ViewValue = $this->balance->CurrentValue;\n\t\t$this->balance->ViewCustomAttributes = \"\";\n\n\t\t// job_title\n\t\t$this->job_title->ViewValue = $this->job_title->CurrentValue;\n\t\t$this->job_title->ViewCustomAttributes = \"\";\n\n\t\t// projects\n\t\t$this->projects->ViewValue = $this->projects->CurrentValue;\n\t\t$this->projects->ViewCustomAttributes = \"\";\n\n\t\t// opportunities\n\t\t$this->opportunities->ViewValue = $this->opportunities->CurrentValue;\n\t\t$this->opportunities->ViewCustomAttributes = \"\";\n\n\t\t// isconsaltant\n\t\t$this->isconsaltant->ViewCustomAttributes = \"\";\n\n\t\t// isagent\n\t\t$this->isagent->ViewCustomAttributes = \"\";\n\n\t\t// isinvestor\n\t\t$this->isinvestor->ViewCustomAttributes = \"\";\n\n\t\t// isbusinessman\n\t\t$this->isbusinessman->ViewCustomAttributes = \"\";\n\n\t\t// isprovider\n\t\t$this->isprovider->ViewCustomAttributes = \"\";\n\n\t\t// isproductowner\n\t\t$this->isproductowner->ViewCustomAttributes = \"\";\n\n\t\t// states\n\t\t$this->states->ViewValue = $this->states->CurrentValue;\n\t\t$this->states->ViewCustomAttributes = \"\";\n\n\t\t// cities\n\t\t$this->cities->ViewValue = $this->cities->CurrentValue;\n\t\t$this->cities->ViewCustomAttributes = \"\";\n\n\t\t// offers\n\t\t$this->offers->ViewValue = $this->offers->CurrentValue;\n\t\t$this->offers->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// companyname\n\t\t\t$this->companyname->LinkCustomAttributes = \"\";\n\t\t\t$this->companyname->HrefValue = \"\";\n\t\t\t$this->companyname->TooltipValue = \"\";\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->LinkCustomAttributes = \"\";\n\t\t\t$this->servicetime->HrefValue = \"\";\n\t\t\t$this->servicetime->TooltipValue = \"\";\n\n\t\t\t// country\n\t\t\t$this->country->LinkCustomAttributes = \"\";\n\t\t\t$this->country->HrefValue = \"\";\n\t\t\t$this->country->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// skype\n\t\t\t$this->skype->LinkCustomAttributes = \"\";\n\t\t\t$this->skype->HrefValue = \"\";\n\t\t\t$this->skype->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->LinkCustomAttributes = \"\";\n\t\t\t$this->linkedin->HrefValue = \"\";\n\t\t\t$this->linkedin->TooltipValue = \"\";\n\n\t\t\t// facebook\n\t\t\t$this->facebook->LinkCustomAttributes = \"\";\n\t\t\t$this->facebook->HrefValue = \"\";\n\t\t\t$this->facebook->TooltipValue = \"\";\n\n\t\t\t// twitter\n\t\t\t$this->twitter->LinkCustomAttributes = \"\";\n\t\t\t$this->twitter->HrefValue = \"\";\n\t\t\t$this->twitter->TooltipValue = \"\";\n\n\t\t\t// active_code\n\t\t\t$this->active_code->LinkCustomAttributes = \"\";\n\t\t\t$this->active_code->HrefValue = \"\";\n\t\t\t$this->active_code->TooltipValue = \"\";\n\n\t\t\t// identification\n\t\t\t$this->identification->LinkCustomAttributes = \"\";\n\t\t\t$this->identification->HrefValue = \"\";\n\t\t\t$this->identification->TooltipValue = \"\";\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->LinkCustomAttributes = \"\";\n\t\t\t$this->link_expired->HrefValue = \"\";\n\t\t\t$this->link_expired->TooltipValue = \"\";\n\n\t\t\t// isactive\n\t\t\t$this->isactive->LinkCustomAttributes = \"\";\n\t\t\t$this->isactive->HrefValue = \"\";\n\t\t\t$this->isactive->TooltipValue = \"\";\n\n\t\t\t// google\n\t\t\t$this->google->LinkCustomAttributes = \"\";\n\t\t\t$this->google->HrefValue = \"\";\n\t\t\t$this->google->TooltipValue = \"\";\n\n\t\t\t// instagram\n\t\t\t$this->instagram->LinkCustomAttributes = \"\";\n\t\t\t$this->instagram->HrefValue = \"\";\n\t\t\t$this->instagram->TooltipValue = \"\";\n\n\t\t\t// account_type\n\t\t\t$this->account_type->LinkCustomAttributes = \"\";\n\t\t\t$this->account_type->HrefValue = \"\";\n\t\t\t$this->account_type->TooltipValue = \"\";\n\n\t\t\t// logo\n\t\t\t$this->logo->LinkCustomAttributes = \"\";\n\t\t\t$this->logo->HrefValue = \"\";\n\t\t\t$this->logo->TooltipValue = \"\";\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->LinkCustomAttributes = \"\";\n\t\t\t$this->profilepic->HrefValue = \"\";\n\t\t\t$this->profilepic->TooltipValue = \"\";\n\n\t\t\t// mailref\n\t\t\t$this->mailref->LinkCustomAttributes = \"\";\n\t\t\t$this->mailref->HrefValue = \"\";\n\t\t\t$this->mailref->TooltipValue = \"\";\n\n\t\t\t// deleted\n\t\t\t$this->deleted->LinkCustomAttributes = \"\";\n\t\t\t$this->deleted->HrefValue = \"\";\n\t\t\t$this->deleted->TooltipValue = \"\";\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->LinkCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->HrefValue = \"\";\n\t\t\t$this->deletefeedback->TooltipValue = \"\";\n\n\t\t\t// account_id\n\t\t\t$this->account_id->LinkCustomAttributes = \"\";\n\t\t\t$this->account_id->HrefValue = \"\";\n\t\t\t$this->account_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$this->start_date->LinkCustomAttributes = \"\";\n\t\t\t$this->start_date->HrefValue = \"\";\n\t\t\t$this->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$this->end_date->LinkCustomAttributes = \"\";\n\t\t\t$this->end_date->HrefValue = \"\";\n\t\t\t$this->end_date->TooltipValue = \"\";\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->LinkCustomAttributes = \"\";\n\t\t\t$this->year_moth->HrefValue = \"\";\n\t\t\t$this->year_moth->TooltipValue = \"\";\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->LinkCustomAttributes = \"\";\n\t\t\t$this->registerdate->HrefValue = \"\";\n\t\t\t$this->registerdate->TooltipValue = \"\";\n\n\t\t\t// login_type\n\t\t\t$this->login_type->LinkCustomAttributes = \"\";\n\t\t\t$this->login_type->HrefValue = \"\";\n\t\t\t$this->login_type->TooltipValue = \"\";\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->LinkCustomAttributes = \"\";\n\t\t\t$this->accountstatus->HrefValue = \"\";\n\t\t\t$this->accountstatus->TooltipValue = \"\";\n\n\t\t\t// ispay\n\t\t\t$this->ispay->LinkCustomAttributes = \"\";\n\t\t\t$this->ispay->HrefValue = \"\";\n\t\t\t$this->ispay->TooltipValue = \"\";\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->LinkCustomAttributes = \"\";\n\t\t\t$this->profilelink->HrefValue = \"\";\n\t\t\t$this->profilelink->TooltipValue = \"\";\n\n\t\t\t// source\n\t\t\t$this->source->LinkCustomAttributes = \"\";\n\t\t\t$this->source->HrefValue = \"\";\n\t\t\t$this->source->TooltipValue = \"\";\n\n\t\t\t// agree\n\t\t\t$this->agree->LinkCustomAttributes = \"\";\n\t\t\t$this->agree->HrefValue = \"\";\n\t\t\t$this->agree->TooltipValue = \"\";\n\n\t\t\t// balance\n\t\t\t$this->balance->LinkCustomAttributes = \"\";\n\t\t\t$this->balance->HrefValue = \"\";\n\t\t\t$this->balance->TooltipValue = \"\";\n\n\t\t\t// job_title\n\t\t\t$this->job_title->LinkCustomAttributes = \"\";\n\t\t\t$this->job_title->HrefValue = \"\";\n\t\t\t$this->job_title->TooltipValue = \"\";\n\n\t\t\t// projects\n\t\t\t$this->projects->LinkCustomAttributes = \"\";\n\t\t\t$this->projects->HrefValue = \"\";\n\t\t\t$this->projects->TooltipValue = \"\";\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->LinkCustomAttributes = \"\";\n\t\t\t$this->opportunities->HrefValue = \"\";\n\t\t\t$this->opportunities->TooltipValue = \"\";\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->LinkCustomAttributes = \"\";\n\t\t\t$this->isconsaltant->HrefValue = \"\";\n\t\t\t$this->isconsaltant->TooltipValue = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->LinkCustomAttributes = \"\";\n\t\t\t$this->isagent->HrefValue = \"\";\n\t\t\t$this->isagent->TooltipValue = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->LinkCustomAttributes = \"\";\n\t\t\t$this->isinvestor->HrefValue = \"\";\n\t\t\t$this->isinvestor->TooltipValue = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->LinkCustomAttributes = \"\";\n\t\t\t$this->isbusinessman->HrefValue = \"\";\n\t\t\t$this->isbusinessman->TooltipValue = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->LinkCustomAttributes = \"\";\n\t\t\t$this->isprovider->HrefValue = \"\";\n\t\t\t$this->isprovider->TooltipValue = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->LinkCustomAttributes = \"\";\n\t\t\t$this->isproductowner->HrefValue = \"\";\n\t\t\t$this->isproductowner->TooltipValue = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->LinkCustomAttributes = \"\";\n\t\t\t$this->states->HrefValue = \"\";\n\t\t\t$this->states->TooltipValue = \"\";\n\n\t\t\t// cities\n\t\t\t$this->cities->LinkCustomAttributes = \"\";\n\t\t\t$this->cities->HrefValue = \"\";\n\t\t\t$this->cities->TooltipValue = \"\";\n\n\t\t\t// offers\n\t\t\t$this->offers->LinkCustomAttributes = \"\";\n\t\t\t$this->offers->HrefValue = \"\";\n\t\t\t$this->offers->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// id\n\t\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = ew_HtmlEncode($this->id->AdvancedSearch->SearchValue);\n\t\t\t$this->id->PlaceHolder = ew_RemoveHtml($this->id->FldCaption());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldCaption());\n\n\t\t\t// companyname\n\t\t\t$this->companyname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->companyname->EditCustomAttributes = \"\";\n\t\t\t$this->companyname->EditValue = ew_HtmlEncode($this->companyname->AdvancedSearch->SearchValue);\n\t\t\t$this->companyname->PlaceHolder = ew_RemoveHtml($this->companyname->FldCaption());\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->servicetime->EditCustomAttributes = \"\";\n\t\t\t$this->servicetime->EditValue = ew_HtmlEncode($this->servicetime->AdvancedSearch->SearchValue);\n\t\t\t$this->servicetime->PlaceHolder = ew_RemoveHtml($this->servicetime->FldCaption());\n\n\t\t\t// country\n\t\t\t$this->country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->country->EditCustomAttributes = \"\";\n\t\t\t$this->country->EditValue = ew_HtmlEncode($this->country->AdvancedSearch->SearchValue);\n\t\t\t$this->country->PlaceHolder = ew_RemoveHtml($this->country->FldCaption());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldCaption());\n\n\t\t\t// skype\n\t\t\t$this->skype->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->skype->EditCustomAttributes = \"\";\n\t\t\t$this->skype->EditValue = ew_HtmlEncode($this->skype->AdvancedSearch->SearchValue);\n\t\t\t$this->skype->PlaceHolder = ew_RemoveHtml($this->skype->FldCaption());\n\n\t\t\t// website\n\t\t\t$this->website->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->website->EditCustomAttributes = \"\";\n\t\t\t$this->website->EditValue = ew_HtmlEncode($this->website->AdvancedSearch->SearchValue);\n\t\t\t$this->website->PlaceHolder = ew_RemoveHtml($this->website->FldCaption());\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->linkedin->EditCustomAttributes = \"\";\n\t\t\t$this->linkedin->EditValue = ew_HtmlEncode($this->linkedin->AdvancedSearch->SearchValue);\n\t\t\t$this->linkedin->PlaceHolder = ew_RemoveHtml($this->linkedin->FldCaption());\n\n\t\t\t// facebook\n\t\t\t$this->facebook->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->facebook->EditCustomAttributes = \"\";\n\t\t\t$this->facebook->EditValue = ew_HtmlEncode($this->facebook->AdvancedSearch->SearchValue);\n\t\t\t$this->facebook->PlaceHolder = ew_RemoveHtml($this->facebook->FldCaption());\n\n\t\t\t// twitter\n\t\t\t$this->twitter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->twitter->EditCustomAttributes = \"\";\n\t\t\t$this->twitter->EditValue = ew_HtmlEncode($this->twitter->AdvancedSearch->SearchValue);\n\t\t\t$this->twitter->PlaceHolder = ew_RemoveHtml($this->twitter->FldCaption());\n\n\t\t\t// active_code\n\t\t\t$this->active_code->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->active_code->EditCustomAttributes = \"\";\n\t\t\t$this->active_code->EditValue = ew_HtmlEncode($this->active_code->AdvancedSearch->SearchValue);\n\t\t\t$this->active_code->PlaceHolder = ew_RemoveHtml($this->active_code->FldCaption());\n\n\t\t\t// identification\n\t\t\t$this->identification->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->identification->EditCustomAttributes = \"\";\n\t\t\t$this->identification->EditValue = ew_HtmlEncode($this->identification->AdvancedSearch->SearchValue);\n\t\t\t$this->identification->PlaceHolder = ew_RemoveHtml($this->identification->FldCaption());\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->link_expired->EditCustomAttributes = \"\";\n\t\t\t$this->link_expired->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->link_expired->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->link_expired->PlaceHolder = ew_RemoveHtml($this->link_expired->FldCaption());\n\n\t\t\t// isactive\n\t\t\t$this->isactive->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->isactive->EditCustomAttributes = \"\";\n\t\t\t$this->isactive->EditValue = ew_HtmlEncode($this->isactive->AdvancedSearch->SearchValue);\n\t\t\t$this->isactive->PlaceHolder = ew_RemoveHtml($this->isactive->FldCaption());\n\n\t\t\t// google\n\t\t\t$this->google->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->google->EditCustomAttributes = \"\";\n\t\t\t$this->google->EditValue = ew_HtmlEncode($this->google->AdvancedSearch->SearchValue);\n\t\t\t$this->google->PlaceHolder = ew_RemoveHtml($this->google->FldCaption());\n\n\t\t\t// instagram\n\t\t\t$this->instagram->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->instagram->EditCustomAttributes = \"\";\n\t\t\t$this->instagram->EditValue = ew_HtmlEncode($this->instagram->AdvancedSearch->SearchValue);\n\t\t\t$this->instagram->PlaceHolder = ew_RemoveHtml($this->instagram->FldCaption());\n\n\t\t\t// account_type\n\t\t\t$this->account_type->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->account_type->EditCustomAttributes = \"\";\n\t\t\t$this->account_type->EditValue = ew_HtmlEncode($this->account_type->AdvancedSearch->SearchValue);\n\t\t\t$this->account_type->PlaceHolder = ew_RemoveHtml($this->account_type->FldCaption());\n\n\t\t\t// logo\n\t\t\t$this->logo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->logo->EditCustomAttributes = \"\";\n\t\t\t$this->logo->EditValue = ew_HtmlEncode($this->logo->AdvancedSearch->SearchValue);\n\t\t\t$this->logo->PlaceHolder = ew_RemoveHtml($this->logo->FldCaption());\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->profilepic->EditCustomAttributes = \"\";\n\t\t\t$this->profilepic->EditValue = ew_HtmlEncode($this->profilepic->AdvancedSearch->SearchValue);\n\t\t\t$this->profilepic->PlaceHolder = ew_RemoveHtml($this->profilepic->FldCaption());\n\n\t\t\t// mailref\n\t\t\t$this->mailref->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->mailref->EditCustomAttributes = \"\";\n\t\t\t$this->mailref->EditValue = ew_HtmlEncode($this->mailref->AdvancedSearch->SearchValue);\n\t\t\t$this->mailref->PlaceHolder = ew_RemoveHtml($this->mailref->FldCaption());\n\n\t\t\t// deleted\n\t\t\t$this->deleted->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deleted->EditCustomAttributes = \"\";\n\t\t\t$this->deleted->EditValue = ew_HtmlEncode($this->deleted->AdvancedSearch->SearchValue);\n\t\t\t$this->deleted->PlaceHolder = ew_RemoveHtml($this->deleted->FldCaption());\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deletefeedback->EditCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->EditValue = ew_HtmlEncode($this->deletefeedback->AdvancedSearch->SearchValue);\n\t\t\t$this->deletefeedback->PlaceHolder = ew_RemoveHtml($this->deletefeedback->FldCaption());\n\n\t\t\t// account_id\n\t\t\t$this->account_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->account_id->EditCustomAttributes = \"\";\n\t\t\t$this->account_id->EditValue = ew_HtmlEncode($this->account_id->AdvancedSearch->SearchValue);\n\t\t\t$this->account_id->PlaceHolder = ew_RemoveHtml($this->account_id->FldCaption());\n\n\t\t\t// start_date\n\t\t\t$this->start_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_date->EditCustomAttributes = \"\";\n\t\t\t$this->start_date->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_date->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->start_date->PlaceHolder = ew_RemoveHtml($this->start_date->FldCaption());\n\n\t\t\t// end_date\n\t\t\t$this->end_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->end_date->EditCustomAttributes = \"\";\n\t\t\t$this->end_date->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->end_date->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->end_date->PlaceHolder = ew_RemoveHtml($this->end_date->FldCaption());\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->year_moth->EditCustomAttributes = \"\";\n\t\t\t$this->year_moth->EditValue = ew_HtmlEncode($this->year_moth->AdvancedSearch->SearchValue);\n\t\t\t$this->year_moth->PlaceHolder = ew_RemoveHtml($this->year_moth->FldCaption());\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->registerdate->EditCustomAttributes = \"\";\n\t\t\t$this->registerdate->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->registerdate->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->registerdate->PlaceHolder = ew_RemoveHtml($this->registerdate->FldCaption());\n\t\t\t$this->registerdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->registerdate->EditCustomAttributes = \"\";\n\t\t\t$this->registerdate->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->registerdate->AdvancedSearch->SearchValue2, 5), 5));\n\t\t\t$this->registerdate->PlaceHolder = ew_RemoveHtml($this->registerdate->FldCaption());\n\n\t\t\t// login_type\n\t\t\t$this->login_type->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->login_type->EditCustomAttributes = \"\";\n\t\t\t$this->login_type->EditValue = ew_HtmlEncode($this->login_type->AdvancedSearch->SearchValue);\n\t\t\t$this->login_type->PlaceHolder = ew_RemoveHtml($this->login_type->FldCaption());\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->accountstatus->EditCustomAttributes = \"\";\n\t\t\t$this->accountstatus->EditValue = ew_HtmlEncode($this->accountstatus->AdvancedSearch->SearchValue);\n\t\t\t$this->accountstatus->PlaceHolder = ew_RemoveHtml($this->accountstatus->FldCaption());\n\n\t\t\t// ispay\n\t\t\t$this->ispay->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ispay->EditCustomAttributes = \"\";\n\t\t\t$this->ispay->EditValue = ew_HtmlEncode($this->ispay->AdvancedSearch->SearchValue);\n\t\t\t$this->ispay->PlaceHolder = ew_RemoveHtml($this->ispay->FldCaption());\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->profilelink->EditCustomAttributes = \"\";\n\t\t\t$this->profilelink->EditValue = ew_HtmlEncode($this->profilelink->AdvancedSearch->SearchValue);\n\t\t\t$this->profilelink->PlaceHolder = ew_RemoveHtml($this->profilelink->FldCaption());\n\n\t\t\t// source\n\t\t\t$this->source->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->source->EditCustomAttributes = \"\";\n\t\t\t$this->source->EditValue = ew_HtmlEncode($this->source->AdvancedSearch->SearchValue);\n\t\t\t$this->source->PlaceHolder = ew_RemoveHtml($this->source->FldCaption());\n\n\t\t\t// agree\n\t\t\t$this->agree->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->agree->EditCustomAttributes = \"\";\n\t\t\t$this->agree->EditValue = ew_HtmlEncode($this->agree->AdvancedSearch->SearchValue);\n\t\t\t$this->agree->PlaceHolder = ew_RemoveHtml($this->agree->FldCaption());\n\n\t\t\t// balance\n\t\t\t$this->balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->balance->EditCustomAttributes = \"\";\n\t\t\t$this->balance->EditValue = ew_HtmlEncode($this->balance->AdvancedSearch->SearchValue);\n\t\t\t$this->balance->PlaceHolder = ew_RemoveHtml($this->balance->FldCaption());\n\n\t\t\t// job_title\n\t\t\t$this->job_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->job_title->EditCustomAttributes = \"\";\n\t\t\t$this->job_title->EditValue = ew_HtmlEncode($this->job_title->AdvancedSearch->SearchValue);\n\t\t\t$this->job_title->PlaceHolder = ew_RemoveHtml($this->job_title->FldCaption());\n\n\t\t\t// projects\n\t\t\t$this->projects->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->projects->EditCustomAttributes = \"\";\n\t\t\t$this->projects->EditValue = ew_HtmlEncode($this->projects->AdvancedSearch->SearchValue);\n\t\t\t$this->projects->PlaceHolder = ew_RemoveHtml($this->projects->FldCaption());\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->opportunities->EditCustomAttributes = \"\";\n\t\t\t$this->opportunities->EditValue = ew_HtmlEncode($this->opportunities->AdvancedSearch->SearchValue);\n\t\t\t$this->opportunities->PlaceHolder = ew_RemoveHtml($this->opportunities->FldCaption());\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->EditCustomAttributes = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->EditCustomAttributes = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->EditCustomAttributes = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->EditCustomAttributes = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->EditCustomAttributes = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->EditCustomAttributes = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->states->EditCustomAttributes = \"\";\n\t\t\t$this->states->EditValue = ew_HtmlEncode($this->states->AdvancedSearch->SearchValue);\n\t\t\t$this->states->PlaceHolder = ew_RemoveHtml($this->states->FldCaption());\n\n\t\t\t// cities\n\t\t\t$this->cities->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cities->EditCustomAttributes = \"\";\n\t\t\t$this->cities->EditValue = ew_HtmlEncode($this->cities->AdvancedSearch->SearchValue);\n\t\t\t$this->cities->PlaceHolder = ew_RemoveHtml($this->cities->FldCaption());\n\n\t\t\t// offers\n\t\t\t$this->offers->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->offers->EditCustomAttributes = \"\";\n\t\t\t$this->offers->EditValue = ew_HtmlEncode($this->offers->AdvancedSearch->SearchValue);\n\t\t\t$this->offers->PlaceHolder = ew_RemoveHtml($this->offers->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// spec_id\n\t\t// model_id\n\t\t// title\n\t\t// description\n\t\t// s_order\n\t\t// status\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->ViewValue = $this->spec_id->CurrentValue;\n\t\t\t$this->spec_id->ViewCustomAttributes = \"\";\n\n\t\t\t// model_id\n\t\t\tif (strval($this->model_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->model_id->CurrentValue, EW_DATATYPE_NUMBER);\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->model_id->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->model_id->ViewValue = $this->model_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->model_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->model_id->ViewCustomAttributes = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->ViewValue = $this->title->CurrentValue;\n\t\t\t$this->title->ViewCustomAttributes = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\n\t\t\t$this->description->ViewCustomAttributes = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->ViewValue = $this->s_order->CurrentValue;\n\t\t\t$this->s_order->ViewCustomAttributes = \"\";\n\n\t\t\t// status\n\t\t\tif (strval($this->status->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->status->CurrentValue) {\n\t\t\t\t\tcase $this->status->FldTagValue(1):\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->FldTagCaption(1) <> \"\" ? $this->status->FldTagCaption(1) : $this->status->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->status->FldTagValue(2):\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->FldTagCaption(2) <> \"\" ? $this->status->FldTagCaption(2) : $this->status->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->status->ViewCustomAttributes = \"\";\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->LinkCustomAttributes = \"\";\n\t\t\t$this->spec_id->HrefValue = \"\";\n\t\t\t$this->spec_id->TooltipValue = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->LinkCustomAttributes = \"\";\n\t\t\t$this->model_id->HrefValue = \"\";\n\t\t\t$this->model_id->TooltipValue = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->LinkCustomAttributes = \"\";\n\t\t\t$this->title->HrefValue = \"\";\n\t\t\t$this->title->TooltipValue = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->LinkCustomAttributes = \"\";\n\t\t\t$this->description->HrefValue = \"\";\n\t\t\t$this->description->TooltipValue = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->LinkCustomAttributes = \"\";\n\t\t\t$this->s_order->HrefValue = \"\";\n\t\t\t$this->s_order->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->LinkCustomAttributes = \"\";\n\t\t\t$this->status->HrefValue = \"\";\n\t\t\t$this->status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->EditCustomAttributes = \"\";\n\t\t\t$this->spec_id->EditValue = $this->spec_id->CurrentValue;\n\t\t\t$this->spec_id->ViewCustomAttributes = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->EditCustomAttributes = \"\";\n\t\t\tif ($this->model_id->getSessionValue() <> \"\") {\n\t\t\t\t$this->model_id->CurrentValue = $this->model_id->getSessionValue();\n\t\t\tif (strval($this->model_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->model_id->CurrentValue, EW_DATATYPE_NUMBER);\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->model_id->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->model_id->ViewValue = $this->model_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->model_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->model_id->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->model_id->EditValue = $arwrk;\n\t\t\t}\n\n\t\t\t// title\n\t\t\t$this->title->EditCustomAttributes = \"\";\n\t\t\t$this->title->EditValue = ew_HtmlEncode($this->title->CurrentValue);\n\n\t\t\t// description\n\t\t\t$this->description->EditCustomAttributes = \"\";\n\t\t\t$this->description->EditValue = ew_HtmlEncode($this->description->CurrentValue);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->EditCustomAttributes = \"\";\n\t\t\t$this->s_order->EditValue = ew_HtmlEncode($this->s_order->CurrentValue);\n\n\t\t\t// status\n\t\t\t$this->status->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->status->FldTagValue(1), $this->status->FldTagCaption(1) <> \"\" ? $this->status->FldTagCaption(1) : $this->status->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->status->FldTagValue(2), $this->status->FldTagCaption(2) <> \"\" ? $this->status->FldTagCaption(2) : $this->status->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->status->EditValue = $arwrk;\n\n\t\t\t// Edit refer script\n\t\t\t// spec_id\n\n\t\t\t$this->spec_id->HrefValue = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->HrefValue = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->HrefValue = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->HrefValue = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->HrefValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $rekeningju;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$rekeningju->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// NoRek\r\n\t\t// Keterangan\r\n\t\t// debet\r\n\t\t// kredit\r\n\t\t// kode_bukti\r\n\t\t// tanggal\r\n\t\t// kode_otomatis_master\r\n\r\n\t\t$rekeningju->kode_otomatis_master->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// tanggal_nota\r\n\t\t// kode_otomatis\r\n\r\n\t\t$rekeningju->kode_otomatis->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// kode_otomatis_tingkat\r\n\t\t$rekeningju->kode_otomatis_tingkat->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// id\r\n\t\t$rekeningju->id->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// apakah_original\r\n\t\tif ($rekeningju->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// NoRek\r\n\t\t\tif (strval($rekeningju->NoRek->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Norek` = '\" . ew_AdjustSql($rekeningju->NoRek->CurrentValue) . \"'\";\r\n\t\t\t$sSqlWrk = \"SELECT `Norek`, `Keterangan` FROM `rekening2`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Norek` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue = $rswrk->fields('Norek');\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue .= ew_ValueSeparator(0,1,$rekeningju->NoRek) . $rswrk->fields('Keterangan');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue = $rekeningju->NoRek->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$rekeningju->NoRek->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$rekeningju->NoRek->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->ViewValue = $rekeningju->Keterangan->CurrentValue;\r\n\t\t\t$rekeningju->Keterangan->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->ViewValue = $rekeningju->debet->CurrentValue;\r\n\t\t\t$rekeningju->debet->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->ViewValue = $rekeningju->kredit->CurrentValue;\r\n\t\t\t$rekeningju->kredit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->ViewValue = $rekeningju->kode_bukti->CurrentValue;\r\n\t\t\t$rekeningju->kode_bukti->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->ViewValue = $rekeningju->tanggal->CurrentValue;\r\n\t\t\t$rekeningju->tanggal->ViewValue = ew_FormatDateTime($rekeningju->tanggal->ViewValue, 7);\r\n\t\t\t$rekeningju->tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->ViewValue = $rekeningju->tanggal_nota->CurrentValue;\r\n\t\t\t$rekeningju->tanggal_nota->ViewValue = ew_FormatDateTime($rekeningju->tanggal_nota->ViewValue, 7);\r\n\t\t\t$rekeningju->tanggal_nota->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->ViewValue = $rekeningju->kode_otomatis->CurrentValue;\r\n\t\t\t$rekeningju->kode_otomatis->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->ViewValue = $rekeningju->kode_otomatis_tingkat->CurrentValue;\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->ViewValue = $rekeningju->apakah_original->CurrentValue;\r\n\t\t\t$rekeningju->apakah_original->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\t\t\t$rekeningju->NoRek->TooltipValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\t\t\t$rekeningju->Keterangan->TooltipValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\t\t\t$rekeningju->debet->TooltipValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\t\t\t$rekeningju->kredit->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_bukti->TooltipValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\t\t\t$rekeningju->tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->TooltipValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t\t$rekeningju->apakah_original->TooltipValue = \"\";\r\n\t\t} elseif ($rekeningju->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->EditCustomAttributes = \"\";\r\n\t\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Norek`, `Norek` AS `DispFld`, `Keterangan` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld` FROM `rekening2`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Norek` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\"));\r\n\t\t\t$rekeningju->NoRek->EditValue = $arwrk;\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->EditValue = ew_HtmlEncode($rekeningju->Keterangan->CurrentValue);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->EditValue = ew_HtmlEncode($rekeningju->debet->CurrentValue);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->EditValue = ew_HtmlEncode($rekeningju->kredit->CurrentValue);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->EditValue = ew_HtmlEncode($rekeningju->kode_bukti->CurrentValue);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal->CurrentValue, 7));\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7));\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->CurrentValue = unik();\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->CurrentValue = $_SESSION[\"kode_otomatis_tingkat\"];\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->EditValue = ew_HtmlEncode($rekeningju->apakah_original->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// NoRek\r\n\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t} elseif ($rekeningju->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->EditValue = ew_HtmlEncode($rekeningju->Keterangan->CurrentValue);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->EditValue = ew_HtmlEncode($rekeningju->debet->CurrentValue);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->EditValue = ew_HtmlEncode($rekeningju->kredit->CurrentValue);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->EditValue = ew_HtmlEncode($rekeningju->kode_bukti->CurrentValue);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal->CurrentValue, 7));\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7));\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->EditValue = ew_HtmlEncode($rekeningju->apakah_original->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// NoRek\r\n\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($rekeningju->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$rekeningju->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$rekeningju->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$rekeningju->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($rekeningju->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$rekeningju->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// userlevelid\n\t\t// userlevelname\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->ViewValue = $this->userlevelid->CurrentValue;\n\t\t\t$this->userlevelid->ViewCustomAttributes = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->ViewValue = $this->userlevelname->CurrentValue;\n\t\t\t$this->userlevelname->ViewCustomAttributes = \"\";\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->LinkCustomAttributes = \"\";\n\t\t\t$this->userlevelid->HrefValue = \"\";\n\t\t\t$this->userlevelid->TooltipValue = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->LinkCustomAttributes = \"\";\n\t\t\t$this->userlevelname->HrefValue = \"\";\n\t\t\t$this->userlevelname->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->EditCustomAttributes = \"\";\n\t\t\t$this->userlevelid->EditValue = ew_HtmlEncode($this->userlevelid->CurrentValue);\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->EditCustomAttributes = \"\";\n\t\t\t$this->userlevelname->EditValue = ew_HtmlEncode($this->userlevelname->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// userlevelid\n\n\t\t\t$this->userlevelid->HrefValue = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_sector\n\t\t// id_actividad\n\t\t// id_categoria\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// fecha_nacimiento\n\t\t// sexo\n\t\t// ci\n\t\t// nrodiscapacidad\n\t\t// celular\n\t\t// direcciondomicilio\n\t\t// ocupacion\n\t\t// email\n\t\t// cargo\n\t\t// nivelestudio\n\t\t// id_institucion\n\t\t// observaciones\n\t\t// id_centro\n\n\t\t$this->id_centro->CellCssStyle = \"white-space: nowrap;\";\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_sector\n\t\tif (strval($this->id_sector->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sector->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sector`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sector->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sector, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sector->ViewValue = $this->id_sector->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sector->ViewValue = $this->id_sector->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sector->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sector->ViewCustomAttributes = \"\";\n\n\t\t// id_actividad\n\t\tif (strval($this->id_actividad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_actividad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombreactividad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `actividad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_actividad->LookupFilters = array(\"dx1\" => '`nombreactividad`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_actividad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_actividad->ViewValue = $this->id_actividad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_actividad->ViewValue = $this->id_actividad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_actividad->ViewValue = NULL;\n\t\t}\n\t\t$this->id_actividad->ViewCustomAttributes = \"\";\n\n\t\t// id_categoria\n\t\tif (strval($this->id_categoria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->id_categoria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categoria`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_categoria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_categoria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->id_categoria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->id_categoria->ViewValue .= $this->id_categoria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->id_categoria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_categoria->ViewValue = $this->id_categoria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_categoria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_categoria->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// nrodiscapacidad\n\t\t$this->nrodiscapacidad->ViewValue = $this->nrodiscapacidad->CurrentValue;\n\t\t$this->nrodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// celular\n\t\t$this->celular->ViewValue = $this->celular->CurrentValue;\n\t\t$this->celular->ViewCustomAttributes = \"\";\n\n\t\t// direcciondomicilio\n\t\t$this->direcciondomicilio->ViewValue = $this->direcciondomicilio->CurrentValue;\n\t\t$this->direcciondomicilio->ViewCustomAttributes = \"\";\n\n\t\t// ocupacion\n\t\t$this->ocupacion->ViewValue = $this->ocupacion->CurrentValue;\n\t\t$this->ocupacion->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// cargo\n\t\t$this->cargo->ViewValue = $this->cargo->CurrentValue;\n\t\t$this->cargo->ViewCustomAttributes = \"\";\n\n\t\t// nivelestudio\n\t\t$this->nivelestudio->ViewValue = $this->nivelestudio->CurrentValue;\n\t\t$this->nivelestudio->ViewCustomAttributes = \"\";\n\n\t\t// id_institucion\n\t\t$this->id_institucion->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// id_sector\n\t\t\t$this->id_sector->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sector->HrefValue = \"\";\n\t\t\t$this->id_sector->TooltipValue = \"\";\n\n\t\t\t// id_actividad\n\t\t\t$this->id_actividad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_actividad->HrefValue = \"\";\n\t\t\t$this->id_actividad->TooltipValue = \"\";\n\n\t\t\t// id_categoria\n\t\t\t$this->id_categoria->LinkCustomAttributes = \"\";\n\t\t\t$this->id_categoria->HrefValue = \"\";\n\t\t\t$this->id_categoria->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// nrodiscapacidad\n\t\t\t$this->nrodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nrodiscapacidad->HrefValue = \"\";\n\t\t\t$this->nrodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// celular\n\t\t\t$this->celular->LinkCustomAttributes = \"\";\n\t\t\t$this->celular->HrefValue = \"\";\n\t\t\t$this->celular->TooltipValue = \"\";\n\n\t\t\t// direcciondomicilio\n\t\t\t$this->direcciondomicilio->LinkCustomAttributes = \"\";\n\t\t\t$this->direcciondomicilio->HrefValue = \"\";\n\t\t\t$this->direcciondomicilio->TooltipValue = \"\";\n\n\t\t\t// ocupacion\n\t\t\t$this->ocupacion->LinkCustomAttributes = \"\";\n\t\t\t$this->ocupacion->HrefValue = \"\";\n\t\t\t$this->ocupacion->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// cargo\n\t\t\t$this->cargo->LinkCustomAttributes = \"\";\n\t\t\t$this->cargo->HrefValue = \"\";\n\t\t\t$this->cargo->TooltipValue = \"\";\n\n\t\t\t// nivelestudio\n\t\t\t$this->nivelestudio->LinkCustomAttributes = \"\";\n\t\t\t$this->nivelestudio->HrefValue = \"\";\n\t\t\t$this->nivelestudio->TooltipValue = \"\";\n\n\t\t\t// id_institucion\n\t\t\t$this->id_institucion->LinkCustomAttributes = \"\";\n\t\t\t$this->id_institucion->HrefValue = \"\";\n\t\t\t$this->id_institucion->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\r\tglobal $conn, $Security, $ratings;\r\r\r\r\t// Call Row Rendering event\r\r\t$ratings->Row_Rendering();\r\r\r\r\t// Common render codes for all row types\r\r\t// id\r\r\r\r\t$ratings->id->CellCssStyle = \"\";\r\r\t$ratings->id->CellCssClass = \"\";\r\r\r\r\t// rating\r\r\t$ratings->rating->CellCssStyle = \"\";\r\r\t$ratings->rating->CellCssClass = \"\";\r\r\r\r\t// domain\r\r\t$ratings->domain->CellCssStyle = \"\";\r\r\t$ratings->domain->CellCssClass = \"\";\r\r\tif ($ratings->RowType == EW_ROWTYPE_VIEW) { // View row\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_ADD) { // Add row\r\r\r\r\t\t// id\r\r\t\t$ratings->id->EditCustomAttributes = \"\";\r\r\t\t$ratings->id->EditValue = ew_HtmlEncode($ratings->id->CurrentValue);\r\r\r\r\t\t// rating\r\r\t\t$ratings->rating->EditCustomAttributes = \"\";\r\r\t\t$ratings->rating->EditValue = ew_HtmlEncode($ratings->rating->CurrentValue);\r\r\r\r\t\t// domain\r\r\t\t$ratings->domain->EditCustomAttributes = \"\";\r\r\t\t$ratings->domain->EditValue = ew_HtmlEncode($ratings->domain->CurrentValue);\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\r\t}\r\r\r\r\t// Call Row Rendered event\r\r\t$ratings->Row_Rendered();\r\r}", "public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// IncomeCode\n\t\t$this->IncomeCode->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeCode->EditCustomAttributes = \"\";\n\t\t$this->IncomeCode->EditValue = $this->IncomeCode->CurrentValue;\n\t\t$this->IncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeName->EditCustomAttributes = \"\";\n\t\tif (!$this->IncomeName->Raw)\n\t\t\t$this->IncomeName->CurrentValue = HtmlDecode($this->IncomeName->CurrentValue);\n\t\t$this->IncomeName->EditValue = $this->IncomeName->CurrentValue;\n\t\t$this->IncomeName->PlaceHolder = RemoveHtml($this->IncomeName->caption());\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeDescription->EditCustomAttributes = \"\";\n\t\tif (!$this->IncomeDescription->Raw)\n\t\t\t$this->IncomeDescription->CurrentValue = HtmlDecode($this->IncomeDescription->CurrentValue);\n\t\t$this->IncomeDescription->EditValue = $this->IncomeDescription->CurrentValue;\n\t\t$this->IncomeDescription->PlaceHolder = RemoveHtml($this->IncomeDescription->caption());\n\n\t\t// Division\n\t\t$this->Division->EditCustomAttributes = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeAmount->EditCustomAttributes = \"\";\n\t\t$this->IncomeAmount->EditValue = $this->IncomeAmount->CurrentValue;\n\t\t$this->IncomeAmount->PlaceHolder = RemoveHtml($this->IncomeAmount->caption());\n\t\tif (strval($this->IncomeAmount->EditValue) != \"\" && is_numeric($this->IncomeAmount->EditValue))\n\t\t\t$this->IncomeAmount->EditValue = FormatNumber($this->IncomeAmount->EditValue, -2, -2, -2, -2);\n\t\t\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeBasicRate->EditCustomAttributes = \"\";\n\t\t$this->IncomeBasicRate->EditValue = $this->IncomeBasicRate->CurrentValue;\n\t\t$this->IncomeBasicRate->PlaceHolder = RemoveHtml($this->IncomeBasicRate->caption());\n\t\tif (strval($this->IncomeBasicRate->EditValue) != \"\" && is_numeric($this->IncomeBasicRate->EditValue))\n\t\t\t$this->IncomeBasicRate->EditValue = FormatNumber($this->IncomeBasicRate->EditValue, -2, -2, -2, -2);\n\t\t\n\n\t\t// BaseIncomeCode\n\t\t$this->BaseIncomeCode->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BaseIncomeCode->EditCustomAttributes = \"\";\n\n\t\t// Taxable\n\t\t$this->Taxable->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->Taxable->EditCustomAttributes = \"\";\n\n\t\t// AccountNo\n\t\t$this->AccountNo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->AccountNo->EditCustomAttributes = \"\";\n\n\t\t// JobIncluded\n\t\t$this->JobIncluded->EditCustomAttributes = \"\";\n\n\t\t// Application\n\t\t$this->Application->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->Application->EditCustomAttributes = \"\";\n\n\t\t// JobExcluded\n\t\t$this->JobExcluded->EditCustomAttributes = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $fs_multijoin_v;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $fs_multijoin_v->ViewUrl();\r\n\t\t$this->EditUrl = $fs_multijoin_v->EditUrl();\r\n\t\t$this->InlineEditUrl = $fs_multijoin_v->InlineEditUrl();\r\n\t\t$this->CopyUrl = $fs_multijoin_v->CopyUrl();\r\n\t\t$this->InlineCopyUrl = $fs_multijoin_v->InlineCopyUrl();\r\n\t\t$this->DeleteUrl = $fs_multijoin_v->DeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$fs_multijoin_v->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$fs_multijoin_v->id->CellCssStyle = \"\"; $fs_multijoin_v->id->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->id->CellAttrs = array(); $fs_multijoin_v->id->ViewAttrs = array(); $fs_multijoin_v->id->EditAttrs = array();\r\n\r\n\t\t// mount\r\n\t\t$fs_multijoin_v->mount->CellCssStyle = \"\"; $fs_multijoin_v->mount->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->mount->CellAttrs = array(); $fs_multijoin_v->mount->ViewAttrs = array(); $fs_multijoin_v->mount->EditAttrs = array();\r\n\r\n\t\t// path\r\n\t\t$fs_multijoin_v->path->CellCssStyle = \"\"; $fs_multijoin_v->path->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->path->CellAttrs = array(); $fs_multijoin_v->path->ViewAttrs = array(); $fs_multijoin_v->path->EditAttrs = array();\r\n\r\n\t\t// parent\r\n\t\t$fs_multijoin_v->parent->CellCssStyle = \"\"; $fs_multijoin_v->parent->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->parent->CellAttrs = array(); $fs_multijoin_v->parent->ViewAttrs = array(); $fs_multijoin_v->parent->EditAttrs = array();\r\n\r\n\t\t// deprecated\r\n\t\t$fs_multijoin_v->deprecated->CellCssStyle = \"\"; $fs_multijoin_v->deprecated->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->deprecated->CellAttrs = array(); $fs_multijoin_v->deprecated->ViewAttrs = array(); $fs_multijoin_v->deprecated->EditAttrs = array();\r\n\r\n\t\t// name\r\n\t\t$fs_multijoin_v->name->CellCssStyle = \"\"; $fs_multijoin_v->name->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->name->CellAttrs = array(); $fs_multijoin_v->name->ViewAttrs = array(); $fs_multijoin_v->name->EditAttrs = array();\r\n\r\n\t\t// snapshot\r\n\t\t$fs_multijoin_v->snapshot->CellCssStyle = \"\"; $fs_multijoin_v->snapshot->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->snapshot->CellAttrs = array(); $fs_multijoin_v->snapshot->ViewAttrs = array(); $fs_multijoin_v->snapshot->EditAttrs = array();\r\n\r\n\t\t// tapebackup\r\n\t\t$fs_multijoin_v->tapebackup->CellCssStyle = \"\"; $fs_multijoin_v->tapebackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->tapebackup->CellAttrs = array(); $fs_multijoin_v->tapebackup->ViewAttrs = array(); $fs_multijoin_v->tapebackup->EditAttrs = array();\r\n\r\n\t\t// diskbackup\r\n\t\t$fs_multijoin_v->diskbackup->CellCssStyle = \"\"; $fs_multijoin_v->diskbackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->diskbackup->CellAttrs = array(); $fs_multijoin_v->diskbackup->ViewAttrs = array(); $fs_multijoin_v->diskbackup->EditAttrs = array();\r\n\r\n\t\t// type\r\n\t\t$fs_multijoin_v->type->CellCssStyle = \"\"; $fs_multijoin_v->type->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->type->CellAttrs = array(); $fs_multijoin_v->type->ViewAttrs = array(); $fs_multijoin_v->type->EditAttrs = array();\r\n\r\n\t\t// CONTACT\r\n\t\t$fs_multijoin_v->CONTACT->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT->CellAttrs = array(); $fs_multijoin_v->CONTACT->ViewAttrs = array(); $fs_multijoin_v->CONTACT->EditAttrs = array();\r\n\r\n\t\t// CONTACT2\r\n\t\t$fs_multijoin_v->CONTACT2->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT2->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT2->CellAttrs = array(); $fs_multijoin_v->CONTACT2->ViewAttrs = array(); $fs_multijoin_v->CONTACT2->EditAttrs = array();\r\n\r\n\t\t// RESCOMP\r\n\t\t$fs_multijoin_v->RESCOMP->CellCssStyle = \"\"; $fs_multijoin_v->RESCOMP->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->RESCOMP->CellAttrs = array(); $fs_multijoin_v->RESCOMP->ViewAttrs = array(); $fs_multijoin_v->RESCOMP->EditAttrs = array();\r\n\t\tif ($fs_multijoin_v->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->ViewValue = $fs_multijoin_v->id->CurrentValue;\r\n\t\t\t$fs_multijoin_v->id->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->id->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->ViewValue = $fs_multijoin_v->mount->CurrentValue;\r\n\t\t\t$fs_multijoin_v->mount->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->mount->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->ViewValue = $fs_multijoin_v->path->CurrentValue;\r\n\t\t\t$fs_multijoin_v->path->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->path->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->ViewValue = $fs_multijoin_v->parent->CurrentValue;\r\n\t\t\t$fs_multijoin_v->parent->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->parent->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->ViewValue = $fs_multijoin_v->deprecated->CurrentValue;\r\n\t\t\t$fs_multijoin_v->deprecated->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->ViewValue = $fs_multijoin_v->name->CurrentValue;\r\n\t\t\t$fs_multijoin_v->name->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->name->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->ViewValue = $fs_multijoin_v->snapshot->CurrentValue;\r\n\t\t\t$fs_multijoin_v->snapshot->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewValue = $fs_multijoin_v->tapebackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->tapebackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewValue = $fs_multijoin_v->diskbackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->diskbackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->ViewValue = $fs_multijoin_v->type->CurrentValue;\r\n\t\t\t$fs_multijoin_v->type->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->type->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewValue = $fs_multijoin_v->CONTACT->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewValue = $fs_multijoin_v->CONTACT2->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewValue = $fs_multijoin_v->RESCOMP->CurrentValue;\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->id->TooltipValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->mount->TooltipValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->path->TooltipValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->parent->TooltipValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->name->TooltipValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->TooltipValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->TooltipValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->type->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->TooltipValue = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($fs_multijoin_v->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$fs_multijoin_v->Row_Rendered();\r\n\t}", "function make_form_row(){\n\t\t$index = $this->col_index;\n\t\t# remove the * at the start of the first line\n\t\t$this->col_data = preg_replace(\"/^\\*/\",\"\",$this->col_data);\n\t\t# split the lines and remove the * from each. The value in each line goes into the array $values\n\t\t$values = preg_split(\"/\\n\\*?/\", $this->col_data);\n\t\t# pad the values array to make sure there are 3 entries\n\t\t$values = array_pad($values, 3, \"\");\n\t\t\n\t\t/*\n\t\tmake three input boxes. TableEdit takes row input from an input array named field a \n\t\tvalue for a particular field[$index] can be an array\n\t\t\tfield[$index][] is the field name\n\t\t\t40 is the length of the box\n\t\t\t$value is the value for the ith line\n\t\t \n\t\t */\n\t\t $form = ''; #initialize\n\t\t foreach($values as $i => $value){\n\t\t\t$form .= \"$i:\".XML::input(\"field[$index][]\",40,$value, array('maxlength'=>255)).\"<br>\\n\";\n\t\t}\n\t\treturn $form;\n\t\n\t}", "public function decorateSettings($value, \\Magento\\Framework\\DataObject $row, \\Magento\\Framework\\DataObject $column)\n {\n $value = $row->getId();\n $html = $this->_getSettingsButtonHtmlWithValue($row, $value);\n\n $html .=\"<input type='hidden' name='{$this->getAttributeInputName($row->getIndex(), 'limit')}' data-bind='value: attributes()[{$row->getGridIndex()}].limit'/>\";\n $html .=\"<input type='hidden' name='{$this->getAttributeInputName($row->getIndex(), 'eppav')}' data-bind='value: attributes()[{$row->getGridIndex()}].eppav'/>\";\n $html .=\"<input type='hidden' name='{$this->getAttributeInputName($row->getIndex(), 'postproc')}' data-bind='value: attributes()[{$row->getGridIndex()}].postproc'/>\";\n\n //Add empty value for convert if no row is defined\n $html .= \"<span id=\\\"convert_container_values\\\" data-bind=\\\"visible: attributes()[{$row->getGridIndex()}].convert().length <= 0\\\">\n \t\t\t <input type=\\\"hidden\\\" value=\\\"\\\" name='{$this->getAttributeInputName($row->getIndex(), 'convert')}' class=\\\" input-text admin__control-text\\\">\n\t\t </span>\";\n //Render caonvert value inputs\n $html .=\n \"<span id=\\\"convert_container_values\\\" data-bind=\\\"foreach: attributes()[{$row->getGridIndex()}].convert\\\">\n\t\t <input type=\\\"hidden\\\"\n\t\t \tid=\\\"convert_row_from\\\"\n\t\t \tdata-bind=\\\"value: from,\n\t\t \t\t\t attr: { name: '{$this->getAttributeInputName($row->getIndex(), 'convert')}[' + \\$index() + '][from]',\n \t\t\t\t\t\t\t id: 'convert_row_from_{$row->getIndex()}_' + \\$index()}\\\"\n\t\t \t class=\\\" input-text admin__control-text\\\">\n\t\t <input type=\\\"hidden\\\"\n\t\t \tdata-bind=\\\"value: to,\n\t\t \t\t\t attr: { name: '{$this->getAttributeInputName($row->getIndex(), 'convert')}[' + \\$index() + '][to]',\n \t\t\t\t\t\t\t\t\t\tid: 'convert_row_to_{$row->getIndex()}_' + \\$index()}\\\"\n\t\t \t class=\\\" input-text admin__control-text\\\">\n\t\t\t\t</span>\";\n\n $html .=\"<input type='hidden' name='{$this->getAttributeInputName($row->getIndex(), 'composed_value')}' data-bind='value: attributes()[{$row->getGridIndex()}].composed_value'/>\";\n return $html;\n }", "public function getCellValueForRendering($row, $cell=null);", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// gjd_id\n\t\t// gjm_id\n\t\t// peg_id\n\t\t// b_mn\n\t\t// b_sn\n\t\t// b_sl\n\t\t// b_rb\n\t\t// b_km\n\t\t// b_jm\n\t\t// b_sb\n\t\t// l_mn\n\t\t// l_sn\n\t\t// l_sl\n\t\t// l_rb\n\t\t// l_km\n\t\t// l_jm\n\t\t// l_sb\n\t\t// gjd_id\n\n\t\t$this->gjd_id->ViewValue = $this->gjd_id->CurrentValue;\n\t\t$this->gjd_id->ViewCustomAttributes = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->ViewValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->ViewCustomAttributes = \"\";\n\n\t\t// peg_id\n\t\tif (strval($this->peg_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`peg_id`\" . ew_SearchString(\"=\", $this->peg_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `peg_id`, `peg_nama` AS `DispFld`, `peg_jabatan` AS `Disp2Fld`, `peg_upah` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `t_pegawai`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->peg_id->LookupFilters = array(\"dx1\" => '`peg_nama`', \"dx2\" => '`peg_jabatan`', \"dx3\" => '`peg_upah`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->peg_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = ew_FormatNumber($rswrk->fields('Disp3Fld'), 0, -2, -2, -1);\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->peg_id->ViewValue = NULL;\n\t\t}\n\t\t$this->peg_id->ViewCustomAttributes = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->ViewValue = $this->b_mn->CurrentValue;\n\t\t$this->b_mn->ViewCustomAttributes = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->ViewValue = $this->b_sn->CurrentValue;\n\t\t$this->b_sn->ViewCustomAttributes = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->ViewValue = $this->b_sl->CurrentValue;\n\t\t$this->b_sl->ViewCustomAttributes = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->ViewValue = $this->b_rb->CurrentValue;\n\t\t$this->b_rb->ViewCustomAttributes = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->ViewValue = $this->b_km->CurrentValue;\n\t\t$this->b_km->ViewCustomAttributes = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->ViewValue = $this->b_jm->CurrentValue;\n\t\t$this->b_jm->ViewCustomAttributes = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->ViewValue = $this->b_sb->CurrentValue;\n\t\t$this->b_sb->ViewCustomAttributes = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->ViewValue = $this->l_mn->CurrentValue;\n\t\t$this->l_mn->ViewCustomAttributes = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->ViewValue = $this->l_sn->CurrentValue;\n\t\t$this->l_sn->ViewCustomAttributes = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->ViewValue = $this->l_sl->CurrentValue;\n\t\t$this->l_sl->ViewCustomAttributes = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->ViewValue = $this->l_rb->CurrentValue;\n\t\t$this->l_rb->ViewCustomAttributes = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->ViewValue = $this->l_km->CurrentValue;\n\t\t$this->l_km->ViewCustomAttributes = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->ViewValue = $this->l_jm->CurrentValue;\n\t\t$this->l_jm->ViewCustomAttributes = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->ViewValue = $this->l_sb->CurrentValue;\n\t\t$this->l_sb->ViewCustomAttributes = \"\";\n\n\t\t// gjd_id\n\t\t$this->gjd_id->LinkCustomAttributes = \"\";\n\t\t$this->gjd_id->HrefValue = \"\";\n\t\t$this->gjd_id->TooltipValue = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->LinkCustomAttributes = \"\";\n\t\t$this->gjm_id->HrefValue = \"\";\n\t\t$this->gjm_id->TooltipValue = \"\";\n\n\t\t// peg_id\n\t\t$this->peg_id->LinkCustomAttributes = \"\";\n\t\t$this->peg_id->HrefValue = \"\";\n\t\t$this->peg_id->TooltipValue = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->LinkCustomAttributes = \"\";\n\t\t$this->b_mn->HrefValue = \"\";\n\t\t$this->b_mn->TooltipValue = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->LinkCustomAttributes = \"\";\n\t\t$this->b_sn->HrefValue = \"\";\n\t\t$this->b_sn->TooltipValue = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->LinkCustomAttributes = \"\";\n\t\t$this->b_sl->HrefValue = \"\";\n\t\t$this->b_sl->TooltipValue = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->LinkCustomAttributes = \"\";\n\t\t$this->b_rb->HrefValue = \"\";\n\t\t$this->b_rb->TooltipValue = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->LinkCustomAttributes = \"\";\n\t\t$this->b_km->HrefValue = \"\";\n\t\t$this->b_km->TooltipValue = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->LinkCustomAttributes = \"\";\n\t\t$this->b_jm->HrefValue = \"\";\n\t\t$this->b_jm->TooltipValue = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->LinkCustomAttributes = \"\";\n\t\t$this->b_sb->HrefValue = \"\";\n\t\t$this->b_sb->TooltipValue = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->LinkCustomAttributes = \"\";\n\t\t$this->l_mn->HrefValue = \"\";\n\t\t$this->l_mn->TooltipValue = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->LinkCustomAttributes = \"\";\n\t\t$this->l_sn->HrefValue = \"\";\n\t\t$this->l_sn->TooltipValue = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->LinkCustomAttributes = \"\";\n\t\t$this->l_sl->HrefValue = \"\";\n\t\t$this->l_sl->TooltipValue = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->LinkCustomAttributes = \"\";\n\t\t$this->l_rb->HrefValue = \"\";\n\t\t$this->l_rb->TooltipValue = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->LinkCustomAttributes = \"\";\n\t\t$this->l_km->HrefValue = \"\";\n\t\t$this->l_km->TooltipValue = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->LinkCustomAttributes = \"\";\n\t\t$this->l_jm->HrefValue = \"\";\n\t\t$this->l_jm->TooltipValue = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->LinkCustomAttributes = \"\";\n\t\t$this->l_sb->HrefValue = \"\";\n\t\t$this->l_sb->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function render($row)\n\t{\n\t\tlist($zone,$page,$limit_to)=$row['extra'];\n\t\treturn $this->decide_template($zone,$page,$limit_to);\n\t}", "function getRowHtml()\r\n\t{\r\n\t // Failsafe if i18n is not loaded\r\n\t if(! function_exists('__'))\r\n\t Misc::use_helper('I18N');\r\n\r\n\t if ($this->showGeenResultaten && ($this->rowCount == 0)) {\r\n\t\t $html = \" <td colspan='$this->colCount'>\" . __('Geen resultaten') . \"</td>\\n\";\r\n\t\t}\r\n\t\telse $html = $this->rowDataHtml;\r\n\r\n\t\treturn $html;\r\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// IDXDAFTAR\n\t\t// TGLREG\n\t\t// NOMR\n\t\t// KETERANGAN\n\t\t// NOKARTU_BPJS\n\t\t// NOKTP\n\t\t// KDDOKTER\n\t\t// KDPOLY\n\t\t// KDRUJUK\n\t\t// KDCARABAYAR\n\t\t// NOJAMINAN\n\t\t// SHIFT\n\t\t// STATUS\n\t\t// KETERANGAN_STATUS\n\t\t// PASIENBARU\n\t\t// NIP\n\t\t// MASUKPOLY\n\t\t// KELUARPOLY\n\t\t// KETRUJUK\n\t\t// KETBAYAR\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t// JAMREG\n\t\t// BATAL\n\t\t// NO_SJP\n\t\t// NO_PESERTA\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// MINTA_RUJUKAN\n\t\t// NORUJUKAN_SEP\n\t\t// PPKRUJUKANASAL_SEP\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// tanggal\n\t\t// bulan\n\t\t// tahun\n\t\t// IDXDAFTAR\n\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->ViewValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->ViewValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->ViewValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->ViewValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->ViewValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->ViewValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->ViewValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->ViewValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->ViewValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->ViewValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->ViewValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->ViewValue = ew_FormatDateTime($this->MASUKPOLY->ViewValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->ViewValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->ViewValue = ew_FormatDateTime($this->KELUARPOLY->ViewValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->ViewValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->ViewValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->ViewValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->ViewValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->ViewValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->ViewValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->ViewValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->ViewValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->LinkCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->HrefValue = \"\";\n\t\t$this->IDXDAFTAR->TooltipValue = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t$this->TGLREG->HrefValue = \"\";\n\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t$this->NOMR->HrefValue = \"\";\n\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN->HrefValue = \"\";\n\t\t$this->KETERANGAN->TooltipValue = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->HrefValue = \"\";\n\t\t$this->NOKARTU_BPJS->TooltipValue = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->LinkCustomAttributes = \"\";\n\t\t$this->NOKTP->HrefValue = \"\";\n\t\t$this->NOKTP->TooltipValue = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->LinkCustomAttributes = \"\";\n\t\t$this->KDDOKTER->HrefValue = \"\";\n\t\t$this->KDDOKTER->TooltipValue = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KDRUJUK->HrefValue = \"\";\n\t\t$this->KDRUJUK->TooltipValue = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->LinkCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->HrefValue = \"\";\n\t\t$this->NOJAMINAN->TooltipValue = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->LinkCustomAttributes = \"\";\n\t\t$this->SHIFT->HrefValue = \"\";\n\t\t$this->SHIFT->TooltipValue = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->LinkCustomAttributes = \"\";\n\t\t$this->STATUS->HrefValue = \"\";\n\t\t$this->STATUS->TooltipValue = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->HrefValue = \"\";\n\t\t$this->KETERANGAN_STATUS->TooltipValue = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->LinkCustomAttributes = \"\";\n\t\t$this->PASIENBARU->HrefValue = \"\";\n\t\t$this->PASIENBARU->TooltipValue = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t$this->NIP->HrefValue = \"\";\n\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->LinkCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->HrefValue = \"\";\n\t\t$this->MASUKPOLY->TooltipValue = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->HrefValue = \"\";\n\t\t$this->KELUARPOLY->TooltipValue = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KETRUJUK->HrefValue = \"\";\n\t\t$this->KETRUJUK->TooltipValue = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KETBAYAR->HrefValue = \"\";\n\t\t$this->KETBAYAR->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->TooltipValue = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t$this->JAMREG->HrefValue = \"\";\n\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->LinkCustomAttributes = \"\";\n\t\t$this->BATAL->HrefValue = \"\";\n\t\t$this->BATAL->TooltipValue = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->LinkCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->HrefValue = \"\";\n\t\t$this->NO_PESERTA->TooltipValue = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->LinkCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->HrefValue = \"\";\n\t\t$this->MINTA_RUJUKAN->TooltipValue = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t// USER\n\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t$this->USER->HrefValue = \"\";\n\t\t$this->USER->TooltipValue = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t$this->tanggal->HrefValue = \"\";\n\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->LinkCustomAttributes = \"\";\n\t\t$this->bulan->HrefValue = \"\";\n\t\t$this->bulan->TooltipValue = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->LinkCustomAttributes = \"\";\n\t\t$this->tahun->HrefValue = \"\";\n\t\t$this->tahun->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function get_row_local_field( $id = '1234QWERasdf' ) {\n\treturn array (\n\t\tarray (\n\t\t\t'key' => $id . '_5821e71cd49fd',\n\t\t\t'label' => 'Row Type',\n\t\t\t'name' => 'Row_Type_tab_0',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top'\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e72dd49fe',\n\t\t\t'label' => 'Row type',\n\t\t\t'name' => 'row-type',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'choices' => array (\n\t\t\t\t'content' => 'Content',\n\t\t\t\t'blog' => 'Blog posts',\n\t\t\t),\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 20\n\t\t\t),\n\t\t\t'default_value' => 'content',\n\t\t),\n\n\t\t// Blog fields\n\t\tarray (\n\t\t\t'key' => $id . '_5821e772d49ff',\n\t\t\t'label' => 'Show posts',\n\t\t\t'name' => 'posts_count',\n\t\t\t'type' => 'number',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'blog',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'default_value' => 1,\n\t\t\t'min' => 1,\n\t\t\t'step' => 1,\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 15\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e332d49aa',\n\t\t\t'label' => 'Style',\n\t\t\t'name' => 'blog-style',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'blog',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'choices' => array( 'style-one' => 'Style one' ),\n\t\t\t'default_value' => 'style-one',\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 15\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e799d4a00',\n\t\t\t'label' => 'Show Info',\n\t\t\t'name' => 'blog-show',\n\t\t\t'type' => 'checkbox',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'blog',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 50\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'image' => 'Thumbnail',\n\t\t\t\t'date' => 'Date',\n\t\t\t\t'excerpt' => 'Excerpt',\n\t\t\t\t'button' => 'Button'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'image',\n\t\t\t),\n\t\t\t'layout' => 'horizontal',\n\t\t\t'toggle' => 0,\n\t\t),\n\n\t\t// Content\n\t\tarray (\n\t\t\t'key' => $id . '_5821f6a6269db',\n\t\t\t'label' => 'Columns',\n\t\t\t'name' => 'columns',\n\t\t\t'type' => 'flexible_content',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'content',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'button_label' => 'Add Column',\n\t\t\t'layouts' => array (\n\t\t\t\tarray (\n\t\t\t\t\t'key' => $id . '_21126955f123',\n\t\t\t\t\t'name' => 'contentcard',\n\t\t\t\t\t'label' => 'Content card',\n\t\t\t\t\t'display' => 'block',\n\t\t\t\t\t'sub_fields' => get_content_local_field( $id )\n\t\t\t\t),\n\t\t\t\tarray (\n\t\t\t\t\t'key' => $id . '_21126946d214',\n\t\t\t\t\t'name' => 'flexicard',\n\t\t\t\t\t'label' => 'Flexi Card',\n\t\t\t\t\t'display' => 'block',\n\t\t\t\t\t'sub_fields' => get_flexi_local_field( $id )\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\n\t\t// Options\n\t\tarray (\n\t\t\t'key' => $id . '_5821e2e1f659b',\n\t\t\t'label' => 'Options',\n\t\t\t'name' => 'taboptions',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top',\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_0014mn5CO4n1',\n\t\t\t'label' => 'Columns per line',\n\t\t\t'name' => 'cols-count',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'placeholder' => 'Columns per line',\n\t\t\t'choices' => array(\n\t\t\t\t1 => 'Just one',\n\t\t\t\t2 => 'Two',\n\t\t\t\t3 => 'Three',\n\t\t\t\t4 => 'Four',\n\t\t\t\t5 => 'Five',\n\t\t\t\t6 => 'Six'\n\t\t\t),\n\t\t\t'default_values' => array( 0 => 1 )\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e6f3d49fc',\n\t\t\t'label' => 'Layout',\n\t\t\t'name' => 'layout',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'grid' => 'Grid',\n\t\t\t\t'carousel' => 'Carousel',\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'grid',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e2fcf659c',\n\t\t\t'label' => 'Columns\\' margins',\n\t\t\t'name' => 'cols-margins',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'none' => 'None',\n\t\t\t\t'normal' => 'Normal',\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'none',\n\t\t\t)\n\t\t),\t\t\t\t\t\t\n\t\tarray (\n\t\t\t'key' => $id . '_5821e359f659d',\n\t\t\t'label' => 'Width',\n\t\t\t'name' => 'width',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'full' => 'Full',\n\t\t\t\t'four-five' => '4/5',\n\t\t\t\t'three-four' => '3/4',\n\t\t\t\t'one-two' => '1/2',\n\t\t\t),\n\t\t\t'default_value' => 'full',\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821eelementali34',\n\t\t\t'label' => 'Position',\n\t\t\t'name' => 'position',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'left' => 'Left',\n\t\t\t\t'center' => 'Center',\n\t\t\t\t'right' => 'Right',\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'center',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e44ff659f',\n\t\t\t'label' => 'Vertical row placement',\n\t\t\t'name' => 'vertical-placement',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'stretch' => 'Stretch',\n\t\t\t\t'top' => 'Top',\n\t\t\t\t'middle' => 'Middle',\n\t\t\t\t'bottom' => 'Bottom',\n\t\t\t),\n\t\t\t'default_value' => array( 'middle' )\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5c21c44ff659c',\n\t\t\t'label' => 'Columns placement',\n\t\t\t'name' => 'cols-placement',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'stretch' => 'Stretch',\n\t\t\t\t'top' => 'Top',\n\t\t\t\t'middle' => 'Middle',\n\t\t\t\t'bottom' => 'Bottom',\n\t\t\t),\n\t\t\t'default_value' => array( 'middle' )\n\t\t),\t\t\t\t\t\t\t\t\n\t\tarray (\n\t\t\t'key' => $id . '_18212372d49ff',\n\t\t\t'label' => 'Margins',\n\t\t\t'name' => 'margins',\n\t\t\t'type' => 'clone',\n\t\t\t'required' => 0,\n\t\t\t'clone' => array (\n\t\t\t\t0 => 'marg_59930ca194830',\n\t\t\t),\n\t\t\t'display' => 'group',\n\t\t\t'layout' => 'block',\n\t\t\t'prefix_label' => 0,\n\t\t\t'prefix_name' => 0,\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 50\n\t\t\t)\n\t\t),\n\n\t\t// Grid settings\n\t\tarray (\n\t\t\t'key' => $id . '_5821E2e1f659b',\n\t\t\t'label' => 'Grid settings',\n\t\t\t'name' => 'tabopt1ons',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top',\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'grid'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_cePuha1234',\n\t\t\t'label' => 'Columns align',\n\t\t\t'name' => 'cols-align',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'grid'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'left' => 'Left',\n\t\t\t\t'center' => 'Center',\n\t\t\t\t'right' => 'Right',\n\t\t\t\t'space-around' => 'Space Around',\n\t\t\t\t'space-between' => 'Space Between'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'left',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_co1231era9ti5od',\n\t\t\t'label' => 'The ratio of rows',\n\t\t\t'name' => 'cols-ratio',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 33\n\t\t\t),\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_0014mn5CO4n1',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => '2',\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'grid'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'equal' => 'Equal width',\n\t\t\t\t'left' => 'Two thirds left',\n\t\t\t\t'right' => 'Two thirds right',\n\t\t\t),\n\t\t\t'default_value' => 'equal',\n\t\t),\n\n\t\t// Carousel settings\n\t\tarray (\n\t\t\t'key' => $id . '_5821Q2e1f659b',\n\t\t\t'label' => 'Carousel settings',\n\t\t\t'name' => 'tabopt2Cans',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top',\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t),\t\t\t\t\t\t\t\t\n\t\tarray (\n\t\t\t'key' => $id . '_1822e772d49ff',\n\t\t\t'label' => 'How many slides to scroll',\n\t\t\t'name' => 'slides_scroll',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'1' => 'One',\n\t\t\t\t'2' => 'Two',\n\t\t\t\t'3' => 'Three',\n\t\t\t\t'4' => 'Four',\n\t\t\t\t'5' => 'Five',\n\t\t\t\t'6' => 'Six',\n\t\t\t),\n\t\t\t'default_value' => '1',\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 33\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arr28oo659a',\n\t\t\t'label' => 'Show dots?',\n\t\t\t'name' => 'show_dots',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'false' => 'None',\n\t\t\t\t'true' => 'Yes, show'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'false',\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arr28ff659a',\n\t\t\t'label' => 'Arrows type',\n\t\t\t'name' => 'arrows_type',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'auto' => 'Auto',\n\t\t\t\t'none' => 'None',\n\t\t\t\t'custom' => 'Custom'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'auto',\n\t\t\t),\n\t\t\t'readonly' => 1,\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arsis1ize9a',\n\t\t\t'label' => 'Arrows size',\n\t\t\t'name' => 'arrows_size',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'small' => 'Small',\n\t\t\t\t'medium' => 'Medium',\n\t\t\t\t'large' => 'Large'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'medium',\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arrwe09a',\n\t\t\t'label' => 'Arrows weight',\n\t\t\t'name' => 'arrows_weight',\n\t\t\t'type' => 'select',\n\t\t\t'instructions' => '',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'thin' => 'Thin',\n\t\t\t\t'normal' => 'Normal',\n\t\t\t\t'bold' => 'Bold'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'normal',\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_1olor9azza',\n\t\t\t'label' => 'Arrows Position',\n\t\t\t'name' => 'arrows_position',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'within' => 'Within Row',\n\t\t\t\t'out' => 'Out of Row'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'within',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_lor8a49e2',\n\t\t\t'label' => 'Arrows Color',\n\t\t\t'name' => 'arrows_color',\n\t\t\t'type' => 'rgba_color',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'rgba' => 'rgba(255,255,255,1)',\n\t\t\t'return_value' => 0\n\t\t),\n\n\n\t\tarray (\n\t\t\t'key' => $id . '_4821d6ba6de39',\n\t\t\t'label' => 'Background',\n\t\t\t'name' => 'Background_Options_0',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0\n\t\t),\n\n\t\tarray (\n\t\t\t'key' => $id . '_4821t6ba6ze48',\n\t\t\t'label' => 'Background',\n\t\t\t'name' => 'background',\n\t\t\t'type' => 'clone',\n\t\t\t'required' => 0,\n\t\t\t'clone' => array (\n\t\t\t\t0 => 'bgrd_59930ca194830',\n\t\t\t),\n\t\t\t'display' => 'group',\n\t\t\t'layout' => 'block',\n\t\t\t'prefix_label' => 0,\n\t\t\t'prefix_name' => 0,\n\t\t),\n\t);\n}", "function format($type, $row) {\n\n $row->RemittanceSequence = $this->transaction->RemittanceSequence;\n $row->CustomerOrgNumber = $this->transaction->CustomerOrgNumber;\n $row->NumTransactions = $this->transaction->NumTransactions;\n $row->TotalAmount = $this->transaction->TotalAmount;\n $row->Database = $this->transaction->Database;\n $row->Date = $this->transaction->Date;\n $row->VersionSoftware = $this->transaction->VersionSoftware;\n\n $this->transaction->RemittanceDaySequence++; #Starts at zero each day\n $this->transaction->NumRecords++; #Starts at zero each file\n \n $row->RemittanceDaySequence = $this->transaction->RemittanceDaySequence;\n $row->NumRecords = $this->transaction->NumRecords;\n\n #$html = \"$type\";\n foreach($this->formatH[$type] as $field => $column) {\n if($field != 'name') {\n #print_r($row);\n #print \"$field - field: \" . $column['field'] . \"<br>\\n\";\n\n $value = '';\n if(isset($column['field']) && $row->{$column['field']}) {\n $value = $row->{$column['field']};\n\n } elseif(isset($column['value']) && strlen($column['value'])) {\n $value = $column['value'];\n\n } else {\n $value = ' ';\n }\n $length = $column['stop'] - $column['start'] + 1;\n if($column['type'] == 'int' || $column['type'] == 'amount') {\n $pad = '0';\n $align = STR_PAD_LEFT;\n } elseif($column['type'] == 'text' || $column['type'] == 'date' || $column['type'] == 'bankaccount' || $column['type'] == 'monthdate') {\n $pad = ' ';\n $align = STR_PAD_RIGHT;\n } else {\n $pad = '*'; #Not defined \n $align = STR_PAD_LEFT;\n }\n $value = $this->{$column['type']}($value);\n $value = substr($value, 0, $length); #husk Œ klippe de totale datene til max lenge\n \n $html .= str_pad($value, $length, $pad, $align);\n #print \"field: $field: length: $length, value: <b>\" . str_pad($value, $length, $pad, $align) . \"</b>, pad: $pad, field: \" . $column['field'] . \", type: \" . $column['type'] . \"<br>\\n\";\n\n }\n }\n $html .= \"\\n\";\n return $html;\n }", "function table_table_row($values,$escape=false)\n{\n\t$cells=new ocp_tempcode();\n\tforeach ($values as $value)\n\t{\n\t\tif (($escape) && ((!is_object($value)) || ($value->pure_lang!==true)))\n\t\t\t$value=make_string_tempcode(escape_html(is_object($value)?$value->evaluate():$value));\n\n\t\t$cells->attach(do_template('TABLE_TABLE_ROW_CELL',array('_GUID'=>'700a982eb2262149295816ddee91b0e7','VALUE'=>$value)));\n\t}\n\n\treturn do_template('TABLE_TABLE_ROW',array('_GUID'=>'a4efacc07ecb165e37c355559f476ae9','CELLS'=>$cells));\n}" ]
[ "0.6965264", "0.68751854", "0.68063164", "0.6744669", "0.66982454", "0.6696665", "0.65729517", "0.65343034", "0.6494044", "0.6480644", "0.6480593", "0.64398867", "0.6422173", "0.64171076", "0.64055", "0.6375064", "0.6368812", "0.63550013", "0.63550013", "0.6343881", "0.63414556", "0.6287164", "0.6283008", "0.62798643", "0.6273526", "0.62613267", "0.6258571", "0.62501544", "0.6248303", "0.62464803", "0.6241992", "0.6241346", "0.6239317", "0.6216352", "0.6214693", "0.6213754", "0.6211647", "0.62069386", "0.61994964", "0.61991364", "0.6191657", "0.6182582", "0.6174034", "0.61580175", "0.6143781", "0.61273456", "0.61264896", "0.612628", "0.612204", "0.6118212", "0.6102632", "0.6100123", "0.6099066", "0.60949683", "0.6094907", "0.60922164", "0.60896635", "0.6089289", "0.6074096", "0.60728294", "0.60559595", "0.60533756", "0.60533285", "0.6045052", "0.60401", "0.60390484", "0.6036644", "0.60344124", "0.60298103", "0.60248035", "0.602408", "0.602408", "0.6019576", "0.6018282", "0.6018282", "0.6018282", "0.6018282", "0.6018282", "0.6018282", "0.6018282", "0.60078573", "0.6006937", "0.60062563", "0.59996176", "0.5994386", "0.5977443", "0.59528244", "0.595249", "0.5949532", "0.59359634", "0.5913668", "0.5898373", "0.5890384", "0.5887137", "0.5873605", "0.5851698", "0.58455086", "0.5839096", "0.5826057", "0.5788898" ]
0.6160493
43
Delete records based on current filter
function DeleteRows() { global $Language, $Security; if (!$Security->CanDelete()) { $this->setFailureMessage($Language->Phrase("NoDeletePermission")); // No delete permission return FALSE; } $DeleteRows = TRUE; $sSql = $this->SQL(); $conn = &$this->Connection(); $conn->raiseErrorFn = $GLOBALS["EW_ERROR_FN"]; $rs = $conn->Execute($sSql); $conn->raiseErrorFn = ''; if ($rs === FALSE) { return FALSE; } elseif ($rs->EOF) { $this->setFailureMessage($Language->Phrase("NoRecord")); // No record found $rs->Close(); return FALSE; //} else { // $this->LoadRowValues($rs); // Load row values } $rows = ($rs) ? $rs->GetRows() : array(); $conn->BeginTrans(); // Clone old rows $rsold = $rows; if ($rs) $rs->Close(); // Call row deleting event if ($DeleteRows) { foreach ($rsold as $row) { $DeleteRows = $this->Row_Deleting($row); if (!$DeleteRows) break; } } if ($DeleteRows) { $sKey = ""; foreach ($rsold as $row) { $sThisKey = ""; if ($sThisKey <> "") $sThisKey .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"]; $sThisKey .= $row['Id_tercero']; $conn->raiseErrorFn = $GLOBALS["EW_ERROR_FN"]; $DeleteRows = $this->Delete($row); // Delete $conn->raiseErrorFn = ''; if ($DeleteRows === FALSE) break; if ($sKey <> "") $sKey .= ", "; $sKey .= $sThisKey; } } else { // Set up error message if ($this->getSuccessMessage() <> "" || $this->getFailureMessage() <> "") { // Use the message, do nothing } elseif ($this->CancelMessage <> "") { $this->setFailureMessage($this->CancelMessage); $this->CancelMessage = ""; } else { $this->setFailureMessage($Language->Phrase("DeleteCancelled")); } } if ($DeleteRows) { $conn->CommitTrans(); // Commit the changes } else { $conn->RollbackTrans(); // Rollback changes } // Call Row Deleted event if ($DeleteRows) { foreach ($rsold as $row) { $this->Row_Deleted($row); } } return $DeleteRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteRecords(IFilterable $filter) {\n return $this->_dataHandler->delete($this->_table, $filter->resultFilter());\n }", "public function deleteFilter($id) {\n return parent::delete($id);\n }", "protected function delete() {\n $this->db->deleteRows($this->table_name, $this->filter);\n storeDbMsg($this->db);\n }", "function delete() {\n \tif($this->active_filter->isNew()) {\n \t $this->httpError(HTTP_ERR_NOT_FOUND);\n \t} // if\n \t\n \tif(!$this->active_filter->canEdit($this->logged_user)) {\n \t $this->httpError(HTTP_ERR_FORBIDDEN);\n \t} // if\n \t\n \tif($this->request->isSubmitted()) {\n \t $delete = $this->active_filter->delete();\n \t if($delete && !is_error($delete)) {\n \t flash_success(\"Filter ':name' has been deleted\", array('name' => $this->active_filter->getName()));\n \t } else {\n \t flash_error(\"Failed to delete ':name' filter\", array('name' => $this->active_filter->getName()));\n \t } // if\n \t $this->redirectTo('assignments');\n \t} // if\n }", "public function delete()\n {\n return $this->query->batchDelete($this->filter);\n }", "public function delete($ids){\n \n $filter = $this->primaryFilter; \n $ids = ! is_array($ids) ? array($ids) : $ids;\n \n foreach ($ids as $id) {\n $id = $filter($id);\n if ($id) {\n $this->db->where($this->primary_key, $id)->limit(1)->delete($this->table_name);\n }\n }\n }", "function delete_by( $conds = array() )\n\t{\n\t\t// where clause\n\t\t$this->custom_conds( $conds );\n\t\t// delete the record\n\t return $this->db->delete( $this->table_name );\n\t //print_r($this->db->last_query());die;\n\t \n \t}", "public function delete($where);", "public function cleanRecords(){\n\t\tOpendocs::model()->deleteAll(\" createTime<=(NOW()-1)\");//oracle\n\t}", "public function delete(array $where);", "public static function deleteAll($condition = null){}", "private function deleteRecords(){\r\n\t\r\n\t\t$fileNames = explode(',', $this->collection['images']);\r\n\t\t// remove imagerecords which are not used anymore\r\n\t\tforeach($this->images as $filename => $image){\r\n\t\t\tif(array_search($filename, $fileNames) === false){\r\n\t\t\r\n\t\t\t\t$this->db->exec_DELETEquery('tx_gorillary_images', \"image='$filename' AND collection='\".$this->collection['uid'].\"'\");\r\n\t\t\t\t//unset ($this->images[$filename]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }", "public function deleteSelected()\n {\n PatientRecord::whereIn('id', $this->selectedKeys())->delete();\n }", "function prepare_remove($id = '', $filter = []){\n $where_sql = $this->create_where($id, $filter);\n $ret_val = \"DELETE FROM {$this->table_name} $where_sql;\";\n return $ret_val;\n }", "public function deleteWhere(array $data)\n {\n return $this->model->where($data)->delete();\n }", "public function delete() \n {\n $this->_data['query'] = 'DELETE';\n $this->_data['from'] = ' FROM '.$this->_data['from'];\n $this->_data['query'] .= $this->_data['from'];\n if (func_num_args() > 0) {\n $this->where(func_get_args());\n }\n return $this;\n }", "public function delete_by()\n\t{\n\t\t$where = func_get_args();\n\t\t$this->_set_where($where);\n\n\t\t$where = $this->trigger('before_delete', $where);\n\n\t\tif($this->soft_delete)\n\t\t{\n\t\t\t$result = $this->db->update($this->_table, array($this->soft_delete_key => TRUE));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $this->delete($this->_table);\n\t\t}\n\n\t\t$this->trigger('after_delete', $result);\n\n\t\treturn $result;\n\t}", "public function removeDeletedRecords() \n {\n // this algorythm should be a fair bit\n // faster than calling DataSet::removeRecord()\n $new_recs = array();\n foreach($this->records as $rec) {\n if (!$rec->isAZombie()) {\n $new_recs[] = $rec;\n }\n }\n $this->records = $new_recs;\n }", "protected function _deleteByFilter($_filter, Tinebase_Controller_Record_Interface $_controller, $_filterModel)\n {\n $filter = $this->_decodeFilter($_filter, $_filterModel, TRUE);\n \n // extend execution time to 30 minutes\n $this->_longRunningRequest(1800);\n\n $_controller->deleteByFilter($filter);\n return array(\n 'status' => 'success'\n );\n }", "function DeleteSingleData($table=false,$filter=false)\n\t{\n\t\t$this->db->where($filter);\n\t\t$qry=$this->db->delete($table);\n\t\treturn $qry;\n\t}", "public function deleteBy($criteria, $params = false)\n {\n $query = $this->model->query();\n\n /*== FILTER ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;\n\n if (isset($filter->field))//Where field\n $field = $filter->field;\n }\n\n /*== REQUEST ==*/\n $model = $query->where($field ?? 'id', $criteria)->first();\n $model ? $model->delete() : false;\n }", "public function delete(array $filter){\n if (empty($filter))\n return false;\n\n $this->query = \"\";\n $this->args = [];\n\n $this->deleteFrom($this->class::sqlTableName());\n $this->where($filter);\n\n if (count($this->args) <= 0)\n throw new appException(\"You likely don't want to delete the entire table\");\n\n $this->prepareQuery($this->query);\n $this->bindParams($this->args);\n return $this->execAndCloseQuery();\n }", "abstract public function deleteRecord($tableName, $where);", "function deleteRecords($table, $where)\n\t{ \n\t\t$query = \"DELETE FROM $table WHERE $where\";\n\t\t$this->db->query($query);\n\t}", "public function deleteWhere($where, Database_Config $databaseConfig = NULL);", "function deleteattributesandvalues($filter=false)\n\t{\n\t\t$qry=$this->db->query(\"DELETE rp_project_attribute_values,rp_project_attribute_value_details FROM rp_project_attribute_values JOIN rp_project_attribute_value_details ON rp_project_attribute_value_details.attrValueID = rp_project_attribute_values.attrValueID WHERE rp_project_attribute_values.projectID ='$filter'\");\n\t\t//return $qry->result();\n\t}", "public function delete($filter = true, array $saveTables = null)\n {\n $this->trackUsage();\n $rows = $this->load($filter);\n\n if ($rows) {\n foreach ($rows as $row) {\n if (isset($row['gro_id_round'])) {\n $roundId = $row['gro_id_round'];\n if ($this->isDeleteable($roundId)) {\n $this->db->delete('gems__rounds', $this->db->quoteInto('gro_id_round = ?', $roundId));\n\n // Delete the round before anyone starts using it\n $this->db->delete('gems__tokens', $this->db->quoteInto('gto_id_round = ?', $roundId));\n } else {\n $values['gro_id_round'] = $roundId;\n $values['gro_active'] = 0;\n $this->save($values);\n }\n $this->addChanged();\n }\n }\n }\n }", "public function filterDeleted()\n {\n $owner = $this->getOwner();\n if (!$this->_withDeleted) {\n $criteria = $owner->getDbCriteria();\n $column = $owner->getDbConnection()->quoteColumnName($owner->getTableAlias() . '.' . $this->deletedFlagField);\n if (strpos($criteria->condition, $column) === false) { // 判断是否加入\n $criteria->addCondition($column . '!=' . CDbCriteria::PARAM_PREFIX . CDbCriteria::$paramCount);\n $criteria->params[CDbCriteria::PARAM_PREFIX . CDbCriteria::$paramCount++] = $this->deletedFlag;\n }\n }\n $this->_withDeleted = false;\n return $owner;\n }", "public function delete() {\n $events = $this->getEventsCreatedHere(); # we will need to write this method\n foreach ($events as $record) {\n $record->delete();\n }\n\n # delete the calendar_has_event records\n $has_events = $this->getCalendarHasEvents();\n foreach ($has_events as $record) {\n $record->delete();\n }\n\n # delete the user_has_permission records\n $permissions = $this->getAllPermissions();\n foreach ($permissions as $record) {\n $record->delete();\n }\n\n # delete the subscriptions on the calendar\n $subscriptions = $this->getSubscriptions();\n foreach ($subscriptions as $record) {\n $record->delete();\n }\n\n # delete the subscription_has_calendar records (remove calendar from subscriptions that subscribe to it)\n $subscriptions = $this->getSubscriptionHasCalendarRecords();\n foreach ($subscriptions as $record) {\n $record->delete();\n }\n\n return parent::delete();\n }", "function DeleteRows() {\n\t\tglobal $conn, $Security, $patient_detail;\n\t\t$DeleteRows = TRUE;\n\t\t$sWrkFilter = $patient_detail->CurrentFilter;\n\n\t\t// Set up filter (Sql Where Clause) and get Return SQL\n\t\t// SQL constructor in patient_detail class, patient_detailinfo.php\n\n\t\t$patient_detail->CurrentFilter = $sWrkFilter;\n\t\t$sSql = $patient_detail->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE) {\n\t\t\treturn FALSE;\n\t\t} elseif ($rs->EOF) {\n\t\t\t$this->setMessage(\"No records found\"); // No record found\n\t\t\t$rs->Close();\n\t\t\treturn FALSE;\n\t\t}\n\t\t$conn->BeginTrans();\n\n\t\t// Clone old rows\n\t\t$rsold = ($rs) ? $rs->GetRows() : array();\n\t\tif ($rs) $rs->Close();\n\n\t\t// Call row deleting event\n\t\tif ($DeleteRows) {\n\t\t\tforeach ($rsold as $row) {\n\t\t\t\t$DeleteRows = $patient_detail->Row_Deleting($row);\n\t\t\t\tif (!$DeleteRows) break;\n\t\t\t}\n\t\t}\n\t\tif ($DeleteRows) {\n\t\t\t$sKey = \"\";\n\t\t\tforeach ($rsold as $row) {\n\t\t\t\t$sThisKey = \"\";\n\t\t\t\tif ($sThisKey <> \"\") $sThisKey .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t\t\t$sThisKey .= $row['DetailNo'];\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\t$DeleteRows = $conn->Execute($patient_detail->DeleteSQL($row)); // Delete\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($DeleteRows === FALSE)\n\t\t\t\t\tbreak;\n\t\t\t\tif ($sKey <> \"\") $sKey .= \", \";\n\t\t\t\t$sKey .= $sThisKey;\n\t\t\t}\n\t\t} else {\n\n\t\t\t// Set up error message\n\t\t\tif ($patient_detail->CancelMessage <> \"\") {\n\t\t\t\t$this->setMessage($patient_detail->CancelMessage);\n\t\t\t\t$patient_detail->CancelMessage = \"\";\n\t\t\t} else {\n\t\t\t\t$this->setMessage(\"Delete cancelled\");\n\t\t\t}\n\t\t}\n\t\tif ($DeleteRows) {\n\t\t\t$conn->CommitTrans(); // Commit the changes\n\t\t} else {\n\t\t\t$conn->RollbackTrans(); // Rollback changes\n\t\t}\n\n\t\t// Call recordset deleted event\n\t\tif ($DeleteRows) {\n\t\t\tforeach ($rsold as $row) {\n\t\t\t\t$patient_detail->Row_Deleted($row);\n\t\t\t}\t\n\t\t}\n\t\treturn $DeleteRows;\n\t}", "public function deleteWhere(Array $query)\r\n {\r\n }", "public static function deleteByFilter(PDO $db, $filter, $and=true) {\n\t\tif (!($filter instanceof DFCInterface)) {\n\t\t\t$filter=new DFCAggregate($filter, $and);\n\t\t}\n\t\tif (0==count($filter)) {\n\t\t\tthrow new InvalidArgumentException('refusing to delete without filter'); // just comment out this line if you are brave\n\t\t}\n\t\t$sql='DELETE FROM `factuurmaand`'\n\t\t. self::buildSqlWhere($filter, $and, false, true);\n\t\t$stmt=self::prepareStatement($db, $sql);\n\t\tself::bindValuesForFilter($stmt, $filter);\n\t\t$affected=$stmt->execute();\n\t\tif (false===$affected) {\n\t\t\t$stmt->closeCursor();\n\t\t\tthrow new Exception($stmt->errorCode() . ':' . var_export($stmt->errorInfo(), true), 0);\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $affected;\n\t}", "public function delete()\n {\n $query = ['collection' => $this->collection, 'filter' => $this->filter->toArray()];\n\n return $this->connection->delete($query, $options = []);\n }", "private function Delete()\n {\n $return = false;\n $action = $this->Action();\n $table = $this->Table();\n $where = $this->Where();\n if($action && $table && Checker::isArray($where, false) && isset($where[Where::VALUES]))\n {\n $return[Where::QUERY] = \"$action FROM $table\".$where[Where::QUERY];\n $return[Where::VALUES] = $where[Where::VALUES];\n }\n return $return;\n }", "public function removeFilters();", "function alm_filters_deleted(){\n\t \tif(isset($_GET['delete_filter'])) {\n\t\t\t\t$deleted_filter = $_GET['delete_filter'];\n\t\t\t\t// Confirm option exists\n\t\t\t\t$is_delete = get_option(ALM_FILTERS_PREFIX .$_GET['delete_filter']);\n\t\t\t\tif(!empty($is_delete)){\n\t\t\t\t\tdelete_option(ALM_FILTERS_PREFIX .$_GET['delete_filter']);\n\t\t\t\t\t$message = '<strong>'. $deleted_filter .'</strong> '. __('filter was successfully deleted', 'ajax-load-more-filters');\n\t\t\t\t\t$this->alm_filters_add_admin_notice($message, 'ajax-load-more-filters');\n\t\t\t\t}\n\t\t\t}\n \t}", "function deleteItems($cond)\n {\n $this->db->where($cond);\n $this->db->delete(\"feedback\");\n return true;\n }", "public function remove_redundant_record()\r\n\t{\r\n\t\t//where status = 0, 1, 6 and modify_on is 21 days ago.\r\n\t\t$iof_where['`status` in (0, 1, 6)'] = null;\r\n\t\t$iof_where['DATEDIFF(NOW(),modify_on) >'] = 21;\r\n\t\t$obsolete_iof_record_number = $this->integrated_order_fulfillment_service->get_dao()->q_delete($iof_where);\r\n\r\n\t\t//completed refunded order and more than 21 days unmodified\r\n\t\t$iof_where = array();\r\n\t\t$iof_where['refund_status'] = 4;\r\n\t\t$iof_where['DATEDIFF(NOW(),modify_on) >'] = 21;\r\n\t\t$obsolete_iof_record_number = $this->integrated_order_fulfillment_service->get_dao()->q_delete($iof_where);\r\n\t}", "public function delete() {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\t$query = \"DELETE FROM \".$this->getTableName();\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"AND\").\" \".$column.\" = '\".$val.\"'\";\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$res = $dbh->exec($query);\n\t\t$dbh = null;\n\t\treturn $res;\n\t}", "public static function deleteAll($condition = NULL, $params = []) {\n return parent::updateAll([\n 'isdeleted' => 1,\n 'deletedtime' => date(\"Y-m-d H:i:s\"),\n 'deleteduser' => \\Yii::$app->user->getId()\n ], $condition, $params);\n }", "public static function deleteByFilter(PDO $db, $filter, $and=true) {\n\t\tif (!($filter instanceof DFCInterface)) {\n\t\t\t$filter=new DFCAggregate($filter, $and);\n\t\t}\n\t\tif (0==count($filter)) {\n\t\t\tthrow new InvalidArgumentException('refusing to delete without filter'); // just comment out this line if you are brave\n\t\t}\n\t\t$sql='DELETE FROM `tchat`'\n\t\t. self::buildSqlWhere($filter, $and, false, true);\n\t\t$stmt=self::prepareStatement($db, $sql);\n\t\tself::bindValuesForFilter($stmt, $filter);\n\t\t$affected=$stmt->execute();\n\t\tif (false===$affected) {\n\t\t\t$stmt->closeCursor();\n\t\t\tthrow new Exception($stmt->errorCode() . ':' . var_export($stmt->errorInfo(), true), 0);\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $affected;\n\t}", "public function delteRecords(){\n // Get the sql statement\n $sql = $this->deleteSql();\n // Prepare the query\n $stmt = $this->db->prepare($sql);\n \n $stmt->execute();\n \n return true;\n \n }", "public function delete($where = null, array $markers = []);", "public function delete($where){\n return parent::delete($this->table,$where);\n }", "public function delete(){\n\t $this->model->clear()->filter(array('preview_master_id' => WaxUrl::get(\"id\")))->delete();\n\t parent::delete();\n\t}", "public function delete( $table, $where='', $orderBy='', $limit=array(), $shutdown=false );", "public function deleteBy(array $params)\n {\n return $this ->model ->where($params) ->delete();\n }", "public function delete($records = '')/*# : DeleteStatementInterface */;", "function delete($table, array $conditions);", "public function DeleteProjectGalery($filter = false) {\n $this->db->query(\"DELETE rp_project_images,rp_project_image_details FROM rp_project_images JOIN rp_project_image_details ON rp_project_image_details.projectImageID = rp_project_images.projectImageID WHERE rp_project_images.projectImageID ='$filter'\");\n }", "function deleteRecord($table,$where) \t{\n\t\t$query = \"DELETE FROM \".$this->tablePrefix .$table.' WHERE '.$where ;\n $res = $this->execute($query);\n\n\t}", "function DeleteRecord($tabel_name='',$where='')\n {\n $param = ['is_delete'=>1];\n $this->db\n ->where($where)\n ->update($tabel_name,$param);\n }", "public function clearWhere()\n {\n \t$this->_where = null;\n }", "function deleteData($db)\n{\n global $_REQUEST;\n $i = 0;\n foreach ($_REQUEST as $strIndex => $strValue) {\n if (substr($strIndex, 0, 5) == 'chkID') {\n $strSQL = \"DELETE FROM \\\"hrdTransportation\\\" WHERE id = '$strValue' \";\n $resExec = $db->execute($strSQL);\n $i++;\n }\n }\n if ($i > 0) {\n writeLog(ACTIVITY_DELETE, MODULE_PAYROLL, \"$i data\", 0);\n }\n}", "public function delete($filter = true)\n {\n $this->setChanged(0);\n $tracks = $this->load($filter);\n\n if ($tracks) {\n foreach ($tracks as $row) {\n if (isset($row['gtr_id_track'])) {\n $trackId = $row['gtr_id_track'];\n if ($this->isDeleteable($trackId)) {\n $this->db->delete('gems__tracks', $this->db->quoteInto('gtr_id_track = ?', $trackId));\n\n // Now cascade to children, they should take care of further cascading\n // Delete rounds\n $trackEngine = $this->tracker->getTrackEngine($trackId);\n $roundModel = $trackEngine->getRoundModel(true, 'index');\n $roundModel->delete(['gro_id_track' => $trackId]);\n\n // Delete trackfields\n $trackFieldModel = $trackEngine->getFieldsMaintenanceModel(false, 'index');\n $trackFieldModel->delete(['gtf_id_track' => $trackId]);\n\n // Delete assigned but unused tracks\n $this->db->delete('gems__respondent2track', $this->db->quoteInto('gr2t_id_track = ?', $trackId));\n } else {\n $values['gtr_id_track'] = $trackId;\n $values['gtr_active'] = 0;\n $this->save($values);\n }\n $this->addChanged();\n }\n }\n }\n\n return $this->getChanged();\n }", "public function clearRecordsData()\n {\n $defaultMaxAge = 60*60*24; // 24 hours\n $maxAge = craft()->config->get('registrationStorageDuration') ?? $defaultMaxAge; // in seconds\n\n $affectedRows = TobiasAx_RegistrationRecord::model()\n ->updateAll(['data' => null], '(UNIX_TIMESTAMP() - UNIX_TIMESTAMP(dateCreated)) > :age', [':age' => $maxAge]);\n\n return $affectedRows;\n }", "abstract public function deleteAll();", "public function delete($table, array $where);", "public function delete() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_delete', array($where));\n\n $result = $this->db->delete($this->_table());\n\n $this->_callbacks('after_delete', array($where, $result));\n\n return $this->db->affected_rows();\n }", "function delete() {\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n\t\t\t// Delete het huidige record.\n\n\t\t\t$deleteQuery = \"DELETE FROM \".$this->table.\" WHERE \".$kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\t\t\t$this->lastQuery = $deleteQuery;\n\n $deleteTable = $this->mysqlConnection->prepare($this->lastQuery);\n $deleteTable->execute();\n\n\t\t}", "function deleteRecords($table, $where)\n\t{ \n\t\t$this->db->delete($table, $where);\n\t\treturn $this->db->affected_rows();\n\t}", "function DELETEquery($table, $where) {\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->DELETEquery_preProcessAction($table, $where, $this);\n\t\t}\n\t\treturn parent::DELETEquery($table, $where);\n\t}", "public function delete_where($query, $params = array())\r\n {\r\n $this->type = 'delete';\r\n return $this->where($query, $params);\r\n }", "public function deleteRow(Request $request)\n {\n $result=MyRow::where('id',$request->id)->delete();\n if ($result) echo 'Data Deleted';\n }", "function delete_data($where,$table){\n $this->db->where($where);\n $this->db->delete($table);\n }", "function deleteRecordByCondition($tablename, $condition) {\n $ci = & get_instance();\n $ci->load->database();\n $ci->db->delete($tablename, $condition);\n}", "public function forceDeleteWhere(array $data)\n {\n return $this->model->where($data)->forceDelete();\n }", "public function actionRemove()\n {\n $delete_record = new DeleteRecord();\n $result = Yii::$app->request->post('selection');\n\n if (!$delete_record->isOkPermission(ACTION_DELETE)\n || !$delete_record->isOkSelection($result)\n ) {\n return $this->redirect([ACTION_INDEX]);\n }\n\n $nro_selections = sizeof($result);\n $status = [];\n for ($counter = 0; $counter < $nro_selections; $counter++) {\n try {\n $primary_key = $result[$counter];\n $model = Permission::findOne($primary_key);\n $item = $delete_record->remove($model, 0);\n $status[$item] .= $primary_key . ',';\n } catch (Exception $exception) {\n $bitacora = new Bitacora();\n $bitacora->registerAndFlash(\n $exception,\n 'actionRemove',\n MSG_ERROR\n );\n }\n }\n\n $delete_record->summaryDisplay($status);\n return $this->redirect([ACTION_INDEX]);\n }", "public function deleteMatch(){\n\t\t$this->getDbTable()->delete(\"\");\n\t}", "public function disableDeleteClause() {}", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n\n }", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n\n }", "public function delete() {\n if ($this->_is_new) return false;\n\n if (isset($this->_data[$this->_key_field])) {\n $where = array($this->_key_field=>$this->_data[$this->_key_field]); \n } elseif ($this->_load_criteria) {\n $where = $this->_load_criteria;\n } else {\n return false;\n }\n\n Q::create($this->_structure['table'])->delete($where)->exec();\n if (isset($this->_structure['relations'])) {\n foreach($this->_structure['relations'] as $relation_name=>$info) {\n $this->detach(null, $relation_name);\n }\n }\n if (isset($this->_structure['abilities'])) {\n foreach($this->_structure['abilities'] as $ability_name=>$info) {\n $ability_name = ucfirst($ability_name);\n if (!is_object($this->_loaded_abilities[$ability_name])) continue;\n $objects = array(&$this);\n $this->_loaded_abilities[$ability_name]->unlink($objects);\n }\n }\n return null;\n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function clearCondition(){\n\t\t$this->where=\"\";\n\t}", "function Delete(){\n return $this->DeleteBy([\"ID_AVAL = \".$this->idAval]);\n }", "public function deleteAction()\n {\n $this->deleteParameters = $this->deleteParameters + $this->_deleteExtraParameters;\n\n parent::deleteAction();\n }", "public function actionBulkDelete() {\n\n if (Yii::$app->request->post('selection')) {\n $where = ['id' => Yii::$app->request->post('selection', []), 'sender_id' => Yii::$app->user->identity->id, 'status_del' => $this->modelClass::STATUS_DEL_TRASH];\n $this->modelClass::updateAll(['status_del' => $this->modelClass::STATUS_DEL_DELETE, 'deleted_at' => time()], $where);\n\n $whereVia = ['mailbox_id' => Yii::$app->request->post('selection', []), 'receiver_id' => Yii::$app->user->identity->id, 'status_del' => $this->modelClass::STATUS_DEL_TRASH];\n $this->modelViaClass::updateAll(['status_del' => $this->modelClass::STATUS_DEL_DELETE, 'deleted_at' => time()], $whereVia);\n }\n }", "public function actionBulkDelete() {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n }", "public function index_delete(){\n\t\t\n\t\t}", "function delete($tab, $cond)\n{\n\t$args = (func_num_args() > 2)? array_slice(func_get_args(),2) : null;\n\t$where = $this->getWhereSql($cond, $args);\n\n\t$sql = \"DELETE FROM $tab WHERE $where\";\n\t$res = $this->query($sql);\n\treturn $res;\n}", "public function deletesAction()\n {\n $em = $this->getDoctrine()->getManager();\n $request = $this->get('request');\n\n $filter_category = $em->getRepository('AciliaCmsBundle:ExpertCategory')->find(3);\n $query = $em->getRepository('AciliaCmsBundle:Energy')->getQuery(null, null, null, null, $filter_category);\n\n $paginator = $this->get('knp_paginator');\n $pagination = $paginator->paginate($query, $this->get('request')->query->get('page', 1), 15);\n\n return $this->render('AciliaCmsBundle:Energy:deletes.html.twig', array(\n 'pagination' => $pagination,\n ));\n }", "function delete(){\n // Delete subclauses\n foreach($this->subClause as $clause){\n $clause->delete();\n }\n \n mysql_query(\"DELETE FROM resolution WHERE id='$this->clauseId'\") or die(mysql_error());\n }", "public function deleteRecords($lintidreg) {\r\n $db = Zend_Db_Table::getDefaultAdapter();\r\n $where_delete_records = \" IdStudent = '\".$lintidreg.\"' \" ;\r\n $db->delete('tbl_academicprogress_subjects', $where_delete_records); \r\n $db->delete('tbl_academic_progress', $where_delete_records); \r\n \r\n }", "public function eraseAll() {\n $where = '1';\n return $this->delete($where);\n }", "function erase() {\n\t\tif (method_exists($this,'beforeErase') && !$this->beforeErase())\n\t\t\treturn;\n\t\t$this->exec(array('method'=>'remove','criteria'=>$this->criteria));\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t$this->afterErase();\n\t}", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n }", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n }", "public function actionDelete($q = 1)\n {\n if ($q != 1 AND $q != 2 AND $q != 3 AND $q != 5 AND $q != 15 AND $q != 30) {\n echo 'error';\n }\n $time = new \\DateTime('now');\n date_sub($time, date_interval_create_from_date_string($q . ' days'));\n $today = $time->format('Y-m-d');\n echo $today;\n $comments = Comments::deleteAll(['<', 'data', $today]);\n echo \"Was removed \" . $comments . \" records\";\n }", "function hapus_data($where,$table){\n $this->db->where($where); //menangkap array dari variabel $where yang dikirimkan dari controller hapus\n $this->db->delete($table);\n }", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function destroy()\n {\n try {\n $medSupID = array();\n foreach (Input::all() as $key) {\n $medSupID = $key;\n }\n\n UsedMedSupply::whereIn('medSupplyUsedID', $medSupID)->update(['isDeleted' => 1]);\n\n\n } catch (Exception $e) {\n\n }\n }", "public function deleteattributesandvaluesProjectUnit($filter=false)\n\t{\n\t\t$this->db->query(\"DELETE rp_property_attribute_values,rp_property_attribute_value_details FROM rp_property_attribute_values JOIN rp_property_attribute_value_details ON rp_property_attribute_value_details.attrValueID = rp_property_attribute_values.attrValueID WHERE rp_property_attribute_values.propertyID ='$filter'\");\n\t}", "function soft_delete($table_name, $param) {\n $fields = $this->db->field_data($table_name);\n\n if (is_array($param)) { //If condition more than one\n $this->db->where($param);\n } else { //If condition by primary key\n foreach ($fields as $field) {\n if ($field->primary_key == 1) {\n $this->db->where($field->name, $param);\n break;\n }\n }\n }\n \n $data = array('active' => 0);\n foreach ($fields as $field) {\n if ($field->name == 'updated_by') {\n $data['updated_by'] = $this->session->userdata('user_id');\n } elseif ($field->name == 'updated_on') {\n $data['updated_on'] = date('Y-m-d H:i:s');\n }\n }\n\n return $this->db->update($table_name, $data);\n }", "public function testDeleteConditions() {\n $this->loadFixtures('Users', 'Profiles');\n\n $this->assertSame(5, User::total());\n $this->assertSame(3, User::deleteMany(function(Query $query) {\n $query->where('age', '>', 30);\n }));\n $this->assertSame(2, User::total());\n }" ]
[ "0.7129866", "0.6738881", "0.6565824", "0.6560726", "0.6436854", "0.64097214", "0.63932365", "0.63763773", "0.63570726", "0.6349686", "0.63400126", "0.631256", "0.62817943", "0.6274181", "0.6258517", "0.62581605", "0.6246503", "0.62420434", "0.6204449", "0.6174847", "0.6162101", "0.6108254", "0.610662", "0.6078298", "0.6076873", "0.60671604", "0.60642356", "0.6014806", "0.6009413", "0.60089374", "0.60009223", "0.5999351", "0.5987254", "0.59778005", "0.5967503", "0.5946218", "0.5944922", "0.59412855", "0.5930815", "0.59204996", "0.59159523", "0.591301", "0.59082216", "0.5883857", "0.58834594", "0.5870708", "0.5847398", "0.58351487", "0.58258533", "0.58213043", "0.5808189", "0.58018243", "0.5792992", "0.57916784", "0.57897884", "0.5789368", "0.5782577", "0.57798296", "0.5769194", "0.57578427", "0.57552266", "0.5750395", "0.574367", "0.57273847", "0.5722234", "0.5719127", "0.57036984", "0.5698796", "0.5696979", "0.56839913", "0.5683482", "0.56833225", "0.56833225", "0.56822187", "0.56705576", "0.56705576", "0.56705576", "0.56705576", "0.56704694", "0.5655524", "0.5649812", "0.56446743", "0.56421137", "0.56412536", "0.5631675", "0.56273204", "0.56259674", "0.5615685", "0.5606751", "0.5600565", "0.56001806", "0.56001806", "0.5586506", "0.55806625", "0.55780876", "0.55780876", "0.55780876", "0.5576666", "0.55709964", "0.5563501", "0.55613524" ]
0.0
-1
Setup lookup filters of a field
function SetupLookupFilters($fld, $pageId = null) { global $gsLanguage; $pageId = $pageId ?: $this->PageID; switch ($fld->FldVar) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetupLookupFilters($fld) {\n\t\tglobal $gsLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\t}\r\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_currency\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `id_cur` AS `LinkFld`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_currency`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$fld->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`id_cur` IN ({filter_value})', \"t0\" => \"200\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Serie_Equipo\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie` AS `LinkFld`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`NroSerie` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Modelo_Net\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Descripcion` AS `LinkFld`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Descripcion` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nombre_Titular\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres` AS `LinkFld`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Apellidos_Nombres` = {filter_value}\", \"t0\" => \"201\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nombre_Tutor\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres` AS `LinkFld`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Apellidos_Nombres` = {filter_value}\", \"t0\" => \"201\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Cue_Establecimiento_Alta\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento` AS `LinkFld`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Cue_Establecimiento` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Dpto_Esc_alta\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre` AS `LinkFld`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Nombre` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Localidad_Esc_Alta\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre` AS `LinkFld`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Nombre` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Cue_Establecimiento_Baja\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento` AS `LinkFld`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Cue_Establecimiento` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Dpto_Esc_Baja\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre` AS `LinkFld`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Nombre` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Localidad_Esc_Baja\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre` AS `LinkFld`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Nombre` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_Estado_Pase\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase` AS `LinkFld`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Id_Estado_Pase` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupLookupFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_MainGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`MainGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `MainGroup`, `MainGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`MainGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_SubGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`SubGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `SubGroup`, `SubGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`SubGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_Article\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`Article` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"f2\" => '`SubGroup` = {filter_value}', \"t2\" => \"200\", \"fn2\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `Article`, `Article` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`Article` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Titular_Original\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres` AS `LinkFld`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Apellidos_Nombres` = {filter_value}\", \"t0\" => \"201\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_NroSerie\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie` AS `LinkFld`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`NroSerie` = {filter_value}\", \"t0\" => \"200\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nuevo_Titular\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres` AS `LinkFld`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"{filter}\";\r\n\t\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Apellidos_Nombres` = {filter_value}\", \"t0\" => \"201\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_Motivo_Reasig\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig` AS `LinkFld`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `motivo_reasignacion`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Id_Motivo_Reasig` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_cat_id\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `cat_id` AS `LinkFld`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categories`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$fld->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`cat_id` IN ({filter_value})', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_company_id\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `company_id` AS `LinkFld`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `company`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$fld->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`company_id` IN ({filter_value})', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_pro_model\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `model_id` AS `LinkFld`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$fld->LookupFilters = array(\"dx1\" => '`name`');\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`model_id` IN ({filter_value})', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_folder_image\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id` AS `LinkFld`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `product_gallery`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$fld->LookupFilters = array(\"dx1\" => '`image`');\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`pro_gallery_id` IN ({filter_value})', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_branch_id\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `branch_id` AS `LinkFld`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `branch`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$fld->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`branch_id` IN ({filter_value})', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_dokterpengirim\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER` AS `LinkFld`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`KDDOKTER` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_statusbayar\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KODE` AS `LinkFld`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`KODE` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_kirimdari\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `kode` AS `LinkFld`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`kode` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_noruang\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `no` AS `LinkFld`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`no` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_dokter_penanggungjawab\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER` AS `LinkFld`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`KDDOKTER` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_sep_kodediagnosaawal\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `CODE` AS `LinkFld`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`CODE` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_sep_lakalantas\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `id` AS `LinkFld`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`id` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_discapacidad\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t\t$sSqlWrk = \"SELECT `id` AS `LinkFld`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t\t$fld->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`id` IN ({filter_value})', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_NOMR\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `NOMR` AS `LinkFld`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->NOMR->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`NOMR` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_KDPOLY\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `kode` AS `LinkFld`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDPOLY->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`kode` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_KDCARABAYAR\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KODE` AS `LinkFld`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`KODE` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_JENISPERAWATAN_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id` AS `LinkFld`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jeniskeperawatan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`jeniskeperawatan_id` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_DIAGNOSAAWAL_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `Code` AS `LinkFld`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"{filter}\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`Code` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_LAKALANTAS_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `id` AS `LinkFld`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`id` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_POLITUJUAN_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDPOLI` AS `LinkFld`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refpoli`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`KDPOLI` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_tipejurnal_id\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `id` AS `LinkFld`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipejurnal`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`id` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Id_Marca\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Marca` AS `LinkFld`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `marca_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Id_Marca` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_Modelo\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Modelo` AS `LinkFld`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Id_Modelo` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_SO\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id_SO` AS `LinkFld`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `so_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_SO->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Id_SO` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_Estado\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado` AS `LinkFld`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => \"`Id_Estado` = {filter_value}\", \"t0\" => \"3\", \"fn0\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_kode_tindakan\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `kode` AS `LinkFld`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\", \"f0\" => '`kode` = {filter_value}', \"t0\" => \"3\", \"fn0\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $gsLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_discapacidad\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld` FROM `discapacidad`\";\n\t\t\t\t$sWhereWrk = \"`nombre` LIKE '{query_value}%'\";\n\t\t\t\t$fld->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Titular_Original\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_NroSerie\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroSerie` LIKE '{query_value}%'\";\r\n\t\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nuevo_Titular\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Serie_Equipo\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroSerie` LIKE '{query_value}%'\";\r\n\t\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nombre_Titular\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nombre_Tutor\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `tutores`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Cue_Establecimiento_Alta\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"`Cue_Establecimiento` LIKE '{query_value}%' OR CONCAT(`Cue_Establecimiento`,'\" . ew_ValueSeparator(1, $this->Cue_Establecimiento_Alta) . \"',`Nombre_Establecimiento`) LIKE '{query_value}%'\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Cue_Establecimiento_Baja\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"`Cue_Establecimiento` LIKE '{query_value}%' OR CONCAT(`Cue_Establecimiento`,'\" . ew_ValueSeparator(1, $this->Cue_Establecimiento_Baja) . \"',`Nombre_Establecimiento`) LIKE '{query_value}%'\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_dokterpengirim\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"`NAMADOKTER` LIKE '%{query_value}%'\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_statusbayar\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"`NAMA` LIKE '%{query_value}%'\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_kirimdari\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"`nama` LIKE '%{query_value}%'\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_noruang\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"`nama` LIKE '%{query_value}%'\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_dokter_penanggungjawab\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"`NAMADOKTER` LIKE '%{query_value}%'\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_sep_kodediagnosaawal\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"`CODE` LIKE '%{query_value}%'\";\n\t\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_NOMR\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"`NOMR` LIKE '%{query_value}%' OR `NAMA` LIKE '%{query_value}%' OR CONCAT(`NOMR`,'\" . ew_ValueSeparator(1, $this->NOMR) . \"',`NAMA`) LIKE '{query_value}%'\";\n\t\t\t$this->NOMR->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_DIAGNOSAAWAL_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"`Code` LIKE '%{query_value}%' OR `Description` LIKE '%{query_value}%' OR CONCAT(`Code`,'\" . ew_ValueSeparator(1, $this->DIAGNOSAAWAL_SEP) . \"',`Description`) LIKE '{query_value}%'\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "public function getLookupField() {}", "protected function initFilterFields(): void\n {\n $this->filterSliderFields = $this->filterSliderFields();\n $this->filterNumericFields = $this->filterNumericFields();\n $this->filterDropdownFields = $this->filterDropdownFields();\n }", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}", "private function _setupFiltering()\n\t{\n\t\tglobal $txt;\n\n\t\t// We'll escape some strings...\n\t\t$db = database();\n\n\t\t// You can filter by any of the following columns:\n\t\t$filters = array(\n\t\t\t'id_member' => $txt['username'],\n\t\t\t'ip' => $txt['ip_address'],\n\t\t\t'session' => $txt['session'],\n\t\t\t'url' => $txt['error_url'],\n\t\t\t'message' => $txt['error_message'],\n\t\t\t'error_type' => $txt['error_type'],\n\t\t\t'file' => $txt['file'],\n\t\t\t'line' => $txt['line'],\n\t\t);\n\n\t\t$filter = $this->_req->getQuery('filter', 'trim', null);\n\t\t$value = $this->_req->getQuery('value', 'trim', null);\n\n\t\t// Set up the filtering...\n\t\tif (isset($value, $filters[$filter]))\n\t\t{\n\t\t\t$filter = array(\n\t\t\t\t'variable' => $filter,\n\t\t\t\t'value' => array(\n\t\t\t\t\t'sql' => in_array($filter, array('message', 'url', 'file'))\n\t\t\t\t\t\t? base64_decode(strtr($value, array(' ' => '+')))\n\t\t\t\t\t\t: $db->escape_wildcard_string($value),\n\t\t\t\t),\n\t\t\t\t'href' => ['filter' => $filter, 'value' => $value],\n\t\t\t\t'entity' => $filters[$filter]\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($filter, $value))\n\t\t\t{\n\t\t\t\tunset($this->_req->query->filter, $this->_req->query->value);\n\t\t\t}\n\n\t\t\t$filter = [];\n\t\t}\n\n\t\treturn $filter;\n\t}", "public function setupFilterRules()\n { }", "private function loadFiltersFromQuery(): void\n {\n $request = RequestUtil::getMainRequest($this->requestStack) ?? Request::createFromGlobals();\n $requestFilters = $request->query->all('filter');\n\n if (is_array($requestFilters)) {\n foreach ($requestFilters as $name => $limitations) {\n foreach ($limitations as $comparison => $value) {\n $filterField = new FilterField();\n $filterField->setName($name)\n ->setValue($value)\n ->setComparison($comparison)\n ->setFilter($this->getFilterByName($name));\n\n $this->filterFields[] = $filterField;\n }\n }\n }\n }", "public function setFilter($filter){ }", "function acf_set_filters($filters = array())\n{\n}", "private function filterFields() {\n\n // Initialize an associate array of our field name and value pairs.\n $values = array();\n\n // Initialize an associate array of our field name and filters pairs.\n $filters = array();\n\n // Populate the arrays.\n foreach ($this->fields as $field) {\n if ($field->getFilters()) {\n $values[$field->getName()] = $field->getValue();\n $filters[$field->getName()] = $field->getFilters();\n }\n }\n\n // Load an instance of GUMP to use to sanitize and filter our field values.\n $gump = new \\GUMP();\n\n // Sanitize the field values.\n $values = $gump->sanitize($values);\n\n // Pass the arrays to GUMP and let it do the heavy-lifting.\n $values = $gump->filter($values, $filters);\n\n // Set the values of all fields to their filtered values.\n foreach ($values as $name => $value) {\n $this->passValue($name, $value);\n }\n }", "function ApplyDefaultExtFilter(&$fld) {\n\t\t$fld->SearchValue = $fld->DefaultSearchValue;\n\t\t$fld->SearchValue2 = $fld->DefaultSearchValue2;\n\t\t$fld->SearchOperator = $fld->DefaultSearchOperator;\n\t\t$fld->SearchOperator2 = $fld->DefaultSearchOperator2;\n\t\t$fld->SearchCondition = $fld->DefaultSearchCondition;\n\t}", "function ApplyDefaultExtFilter(&$fld) {\n\t\t$fld->SearchValue = $fld->DefaultSearchValue;\n\t\t$fld->SearchValue2 = $fld->DefaultSearchValue2;\n\t\t$fld->SearchOperator = $fld->DefaultSearchOperator;\n\t\t$fld->SearchOperator2 = $fld->DefaultSearchOperator2;\n\t\t$fld->SearchCondition = $fld->DefaultSearchCondition;\n\t}", "private function init_andWhereFilter_localTable( $arr_piVar, $tableField )\n {\n $str_andWhere = null;\n // SWITCH : area filter versus default filter\n switch ( true )\n {\n case( is_array( $this->pObj->objCal->arr_area[ $tableField ] ) ):\n // Handle area filter\n $str_andWhere = $this->init_andWhereFilter_localTableArea( $arr_piVar, $tableField );\n break;\n // #i0117, 141223, dwildt, +\n case( in_array( $tableField, $this->treeviewTableFields ) ):\n // Handle tree view filter\n list( $table ) = explode( '.', $tableField );\n foreach ( $arr_piVar as $str_value )\n {\n $str_value = str_replace( \"'\", null, $str_value );\n $str_value = str_replace( '\"', null, $str_value );\n $arr_orValues[] = $table . '.uid' . \" LIKE '\" . $str_value . \"'\";\n $strtolower_value = \"'\" . mb_strtolower( $str_value ) . \"'\";\n $this->arr_filter_condition[ $table . '.uid' ][ 'like' ][] = $strtolower_value;\n }\n $str_andWhere = implode( ' OR ', $arr_orValues );\n if ( !empty( $str_andWhere ) )\n {\n $str_andWhere = ' (' . $str_andWhere . ')';\n }\n break;\n default:\n // Handle default filter (without area)\n foreach ( $arr_piVar as $str_value )\n {\n $str_value = str_replace( \"'\", null, $str_value );\n $str_value = str_replace( '\"', null, $str_value );\n $arr_orValues[] = $tableField . \" LIKE '\" . $str_value . \"'\";\n $strtolower_value = \"'\" . mb_strtolower( $str_value ) . \"'\";\n $this->arr_filter_condition[ $tableField ][ 'like' ][] = $strtolower_value;\n }\n $str_andWhere = implode( ' OR ', $arr_orValues );\n if ( !empty( $str_andWhere ) )\n {\n $str_andWhere = ' (' . $str_andWhere . ')';\n }\n break;\n }\n // SWITCH : area filter versus default filter\n return $str_andWhere;\n }", "abstract protected function filterField(): string;", "function acf_get_filters()\n{\n}", "public function global_filter_field_expr()\n {\n\n // filtering $_GET\n if (is_array(ctx()->getRequest()->get()) && ! empty(ctx()->getRequest()->get()))\n {\n foreach (ctx()->getRequest()->get() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->get($key, $this->_clean_input_field_expr($val));\n }\n }\n\n }\n\n // filtering $_POST\n if (is_array(ctx()->getRequest()->post()) && ! empty(ctx()->getRequest()->post()))\n {\n foreach (ctx()->getRequest()->post() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->post($key, $this->_clean_input_field_expr($val));\n }\n }\n }\n\n // filtering $_COOKIE\n if (is_array(ctx()->getRequest()->cookie()) && ! empty(ctx()->getRequest()->cookie()))\n {\n foreach (ctx()->getRequest()->cookie() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->cookie($key, $this->_clean_input_field_expr($val));\n }\n\n }\n }\n\n\n // filtering $_REQUEST\n if (is_array(ctx()->getRequest()->request()) && ! empty(ctx()->getRequest()->request()))\n {\n foreach (ctx()->getRequest()->request() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->request($key, $this->_clean_input_field_expr($val));\n }\n }\n }\n\n }", "abstract protected function filterFieldvalue();", "function acf_enable_filters($filters = array())\n{\n}", "private static function _getFilter() {}", "public function register_filters() {\n\n\t\t}", "public function prepareListFilter(array &$filter, array $requestFilter): void\n\t{\n\t\tif (isset($requestFilter['FIND']) && !empty($requestFilter['FIND']))\n\t\t{\n\t\t\t$filter['SEARCH_CONTENT'] = $requestFilter['FIND'];\n\t\t\tSearchEnvironment::prepareSearchFilter($this->getEntityTypeId(), $filter);\n\t\t}\n\n\t\tif ($this->factory->isCrmTrackingEnabled())\n\t\t{\n\t\t\t$runtime = [];\n\t\t\t\\Bitrix\\Crm\\Tracking\\UI\\Filter::buildOrmFilter($filter, $requestFilter, $this->getEntityTypeId(), $runtime);\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_NUMBER, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (isset($requestFilter[$fieldName.'_from']) && $requestFilter[$fieldName.'_from'] > 0)\n\t\t\t{\n\t\t\t\t$filter['>='.$fieldName] = $requestFilter[$fieldName.'_from'];\n\t\t\t}\n\t\t\tif (isset($requestFilter[$fieldName.'_to']) && $requestFilter[$fieldName.'_to'] > 0)\n\t\t\t{\n\t\t\t\t$filter['<='.$fieldName] = $requestFilter[$fieldName.'_to'];\n\t\t\t}\n\t\t\tif (isset($requestFilter[$fieldName]) && $requestFilter[$fieldName] > 0)\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_STRING, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['%'.$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_USER, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = (int)$requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_CRM_ENTITY, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = (int)$requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_DATE, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName.'_from']))\n\t\t\t{\n\t\t\t\t$filter['>='.$fieldName] = $requestFilter[$fieldName.'_from'];\n\t\t\t}\n\t\t\tif (!empty($requestFilter[$fieldName.'_to']))\n\t\t\t{\n\t\t\t\t$filter['<='.$fieldName] = $requestFilter[$fieldName.'_to'];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_BOOLEAN, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filterValue = $requestFilter[$fieldName] === 'Y';\n\n\t\t\t\t$filter['='.$fieldName] = $filterValue;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_LIST, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\tif($fieldName === static::FIELD_STAGE_SEMANTIC && $this->factory->isStagesEnabled())\n\t\t\t\t{\n\t\t\t\t\tstatic::processStageSemanticFilter($requestFilter, $filter);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$filter['='.$fieldName] = $requestFilter[$fieldName];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$parentFields = $this->getFieldNamesByType(\n\t\t\tstatic::TYPE_PARENT,\n\t\t\tstatic::DISPLAY_IN_FILTER\n\t\t);\n\t\tforeach ($parentFields as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter[$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\t}", "public function addFilterFields($fields=array()){\n \tif(empty($fields)) return ;\n\n \t$this->filterFields = !is_array($fields) ? explode(',',$fields) : $fields;\n \t\n }", "abstract public function prepareFilters();", "public function __construct($filterRules = false, $fields = false)\n {\n ($filterRules && ($this->filterRules = $filterRules));\n if(!$fields){\n $this->filters = &$this->filterRules;\n return;\n }\n ($fields && ($this->fields = (array)$fields));\n $rulesKeys = array_keys($this->filterRules);\n foreach ($this->fields as $key => $value) {\n $this->filters[$key] = $this->filterRules[$rulesKeys[$value]];\n }\n }", "function ewp_query_fields()\n {\n\n return apply_filters(\n 'ewp_query_fields_filter',\n array(\n 'post' => array(\n 'label' => __('WP Post object', 'extend-wp'),\n 'field-choices' => array(\n 'search_type' => array(\n 'label' => __('Search type', 'extend-wp'),\n 'case' => 'select',\n 'options' => array(\n 'search' => array('label' => __('Search text', 'extend-wp')),\n 'date_from' => array('label' => __('Publish date from', 'extend-wp')),\n 'date_to' => array('label' => __('Publish date to', 'extend-wp')),\n 'orderby' => array('label' => __('Order by', 'extend-wp')),\n 'order' => array('label' => __('Order', 'extend-wp')),\n ),\n 'label_class' => array('awm-needed'),\n )\n )\n ),\n 'meta' => array(\n 'label' => __('WP Meta', 'extend-wp'),\n 'field-choices' => array(\n 'meta_key' => array(\n 'label' => __('Meta key', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'label_class' => array('awm-needed'),\n ),\n 'meta_compare' => array(\n 'label' => __('Compare function', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'label_class' => array('awm-needed'),\n )\n ),\n ),\n 'taxonomy' => array(\n 'label' => __('WP taxonomy', 'extend-wp'),\n 'field-choices' => array(\n 'compare_type' => array(\n 'label' => __('Compare operator', 'extend-wp'),\n 'case' => 'select',\n 'options' => array(\n 'in' => array('label' => 'IN'),\n 'not_in' => array('label' => 'NOT IN'),\n ),\n 'label_class' => array('awm-needed'),\n ),\n ),\n )\n )\n );\n }", "public static function addFilterFields($property, $controlSettings, &$filter, &$filtered)\n {\n $filtered = false;\n \n \n }", "private function init_andWhereFilter_foreignTable( $arr_piVar, $tableField )\n {\n $str_andWhere = null;\n\n list( $table ) = explode( '.', $tableField );\n\n // SWITCH : area filter versus default filter\n switch ( true )\n {\n case( is_array( $this->pObj->objCal->arr_area[ $tableField ] ) ):\n // Handle area filter\n $str_andWhere = $this->init_andWhereFilter_foreignTableArea( $arr_piVar, $tableField );\n break;\n default:\n // Handle default filter (without area)\n // #48859, 130528, dwildt: make SQL query safe, 4+\n foreach ( ( array ) $arr_piVar as $key => $value )\n {\n $arr_piVar[ $key ] = ( int ) $value;\n }\n // #48859, 130528, dwildt: make SQL query safe, 4+\n // #t0607, dwildt, 4+\n if ( !is_array( $arr_piVar ) )\n {\n $arr_piVar = ( int ) $value;\n }\n $str_uidList = implode( ', ', ( array ) $arr_piVar );\n //var_dump( __METHOD__, __LINE__, $arr_piVar, $str_uidList );\n $str_andWhere = $table . '.uid IN (' . $str_uidList . ')' . PHP_EOL;\n // #30912, 120127, dwildt+\n $this->arr_filter_condition[ $table . '.uid' ][ 'uid_in_list' ] = $arr_piVar;\n break;\n }\n // SWITCH : area filter versus default filter\n\n return $str_andWhere;\n }", "function _acf_do_prepare_local_fields()\n{\n}", "abstract public function getFieldsSearchable();", "public function filter($fields)\n {\n }", "abstract public function filterFields();", "protected function handleFilterField( SqlBuilder $aFilter, $aFieldname )\n\t{\n\t\tswitch ( $aFieldname ) {\n\t\t\tcase 'group_id':\n\t\t\tcase 'group_name':\n\t\t\t\t$theSavedPrefix = $aFilter->myParamPrefix;\n\t\t\t\t$dbAuthGroups = $this->getAuthGroupsProp();\n\t\t\t\t$aFilter->add($aFilter->myParamPrefix . 'auth_id IN (');\n\t\t\t\t$aFilter->endWhereClause()\n\t\t\t\t\t->add('SELECT auth_id FROM')->add($dbAuthGroups->tnGroupMap)\n\t\t\t\t\t;\n\t\t\t\tif ( $aFieldname!=='group_id') {\n\t\t\t\t\t$aFilter->add('INNER JOIN')->add($dbAuthGroups->tnGroups)\n\t\t\t\t\t\t->add('USING(group_id)')\n\t\t\t\t\t\t;\n\t\t\t\t}\n\t\t\t\t$aFilter\t->startWhereClause()->addParam($aFieldname);\n\t\t\t\t$aFilter->add(')');\n\t\t\t\t$aFilter->setParamPrefix($theSavedPrefix);\n\t\t\t\tbreak;\n\t\t\tcase 'org_id':\n\t\t\tcase 'org_name':\n\t\t\tcase 'org_title':\n\t\t\tcase 'org_desc':\n\t\t\tcase 'parent_org_id':\n\t\t\t\t$theSavedPrefix = $aFilter->myParamPrefix;\n\t\t\t\t$dbAuth = $this->getMyModel();\n\t\t\t\t$aFilter->add($aFilter->myParamPrefix . 'auth_id IN (');\n\t\t\t\t$aFilter->endWhereClause()\n\t\t\t\t\t->add('SELECT auth_id FROM')->add($dbAuth->tnAuthOrgMap)\n\t\t\t\t\t;\n\t\t\t\tif ( $aFieldname!=='org_id') {\n\t\t\t\t\t$aFilter->add('INNER JOIN')->add($dbAuth->tnAuthOrgs)\n\t\t\t\t\t\t->add('USING(org_id)')\n\t\t\t\t\t\t;\n\t\t\t\t}\n\t\t\t\t$aFilter->startWhereClause()->addParam($aFieldname);\n\t\t\t\t$aFilter->add(')');\n\t\t\t\t$aFilter->setParamPrefix($theSavedPrefix);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tparent::handleFilterField($aFilter, $aFieldname);\n\t\t}//switch\n\t}", "public function setFilter($arrFilter);", "public function addLookupField($field)\n {\n if (in_array($field, $this->properties)) {\n $this->lookupFields[] = $field;\n\n return $this;\n }\n\n throw new \\Exception(\"Invalid Lookup field \\\"{$field}\\\". Property does not exist in class {$this->entity}.\");\n }", "private function setSearchFilters()\n\t{\n\t\tif(sizeof($this->searchFilters) > 0)\n\t\t{\n\t\t\t$this->taskSearchHelperDA->setSearchFilters($this->searchFilters);\n\t\t}\n\t}", "function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2) {\n\t\t$fld->DefaultSearchValue = $sv1; // Default ext filter value 1\n\t\t$fld->DefaultSearchValue2 = $sv2; // Default ext filter value 2 (if operator 2 is enabled)\n\t\t$fld->DefaultSearchOperator = $so1; // Default search operator 1\n\t\t$fld->DefaultSearchOperator2 = $so2; // Default search operator 2 (if operator 2 is enabled)\n\t\t$fld->DefaultSearchCondition = $sc; // Default search condition (if operator 2 is enabled)\n\t}", "function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2) {\n\t\t$fld->DefaultSearchValue = $sv1; // Default ext filter value 1\n\t\t$fld->DefaultSearchValue2 = $sv2; // Default ext filter value 2 (if operator 2 is enabled)\n\t\t$fld->DefaultSearchOperator = $so1; // Default search operator 1\n\t\t$fld->DefaultSearchOperator2 = $so2; // Default search operator 2 (if operator 2 is enabled)\n\t\t$fld->DefaultSearchCondition = $sc; // Default search condition (if operator 2 is enabled)\n\t}", "private static function addFieldFilter(SugarQuery $q, SugarQuery_Builder_Where $where, $filter, $field)\n {\n static $sfh;\n if (!isset($sfh)) {\n $sfh = new SugarFieldHandler();\n }\n\n // Looks like just a normal field, parse its options\n $fieldInfo = self::verifyField($q, $field);\n\n // If the field was a related field and we added a join, we need to adjust the table name used\n // to get the right join table alias\n if (!empty($fieldInfo['field'])) {\n $field = $fieldInfo['field'];\n }\n $fieldType = !empty($fieldInfo['def']['custom_type']) ? $fieldInfo['def']['custom_type'] :\n $fieldInfo['def']['type'];\n $sugarField = $sfh->getSugarField($fieldType);\n if (!is_array($filter)) {\n $value = $filter;\n $filter = array();\n $filter['$equals'] = $value;\n }\n foreach ($filter as $op => $value) {\n /*\n * occasionally fields may need to be fixed up for the Filter, for instance if you are\n * doing an operation on a datetime field and only send in a date, we need to fix that field to\n * be a dateTime then unFormat it so that its in GMT ready for DB use\n */\n\n if (strpos($field, '.') === false) {\n if (isset($fieldInfo['def']['source']) && $fieldInfo['def']['source'] === 'custom_fields') {\n $tableName = $fieldInfo['bean']->get_custom_table_name();\n } else {\n $tableName = $fieldInfo['bean']->getTableName();\n }\n $columnName = $tableName . '.' . $field;\n } else {\n $columnName = $field;\n }\n\n if ($sugarField->fixForFilter($value, $columnName, $fieldInfo['bean'], $q, $where, $op) == false) {\n continue;\n }\n\n if (is_array($value)) {\n foreach ($value as $i => $val) {\n // FIXME: BR-4063 apiUnformat() is deprecated, this will change to apiUnformatField() in\n // next API version\n $value[$i] = $sugarField->apiUnformat($val);\n }\n } else {\n // FIXME: BR-4063 apiUnformat() is deprecated, this will change to apiUnformatField() in\n // next API version\n $value = $sugarField->apiUnformat($value);\n }\n\n switch ($op) {\n case '$equals':\n $where->equals($field, $value);\n break;\n case '$not_equals':\n $where->notEquals($field, $value);\n break;\n case '$starts':\n $where->starts($field, $value);\n break;\n case '$ends':\n $where->ends($field, $value);\n break;\n case '$contains':\n $where->contains($field, $value);\n break;\n case '$not_contains':\n $where->notContains($field, $value);\n break;\n case '$in':\n if (!is_array($value)) {\n throw new SugarApiExceptionInvalidParameter('$in requires an array');\n }\n $where->in($field, $value);\n break;\n case '$not_in':\n if (!is_array($value)) {\n throw new SugarApiExceptionInvalidParameter('$not_in requires an array');\n }\n $where->notIn($field, $value);\n break;\n case '$dateBetween':\n case '$between':\n if (!is_array($value) || count($value) != 2) {\n throw new SugarApiExceptionInvalidParameter(\n '$between requires an array with two values.'\n );\n }\n $where->between($field, $value[0], $value[1]);\n break;\n case '$is_null':\n $where->isNull($field);\n break;\n case '$not_null':\n $where->notNull($field);\n break;\n case '$empty':\n $where->isEmpty($field);\n break;\n case '$not_empty':\n $where->isNotEmpty($field);\n break;\n case '$lt':\n $where->lt($field, $value);\n break;\n case '$lte':\n $where->lte($field, $value);\n break;\n case '$gt':\n $where->gt($field, $value);\n break;\n case '$gte':\n $where->gte($field, $value);\n break;\n case '$dateRange':\n $where->dateRange($field, $value, $fieldInfo['bean']);\n break;\n default:\n throw new SugarApiExceptionInvalidParameter('Did not recognize the operand: ' . $op);\n }\n }\n }", "function LoadDefaultFilters() {\n\t\tglobal $deals_details;\n\n\t\t/**\n\t\t* Set up default values for non Text filters\n\t\t*/\n\n\t\t// Field dealer\n\t\t$deals_details->dealer->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->dealer->DropDownValue = $deals_details->dealer->DefaultDropDownValue;\n\n\t\t// Field date_start\n\t\t$deals_details->date_start->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->date_start->DropDownValue = $deals_details->date_start->DefaultDropDownValue;\n\n\t\t// Field status\n\t\t$deals_details->status->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->status->DropDownValue = $deals_details->status->DefaultDropDownValue;\n\n\t\t/**\n\t\t* Set up default values for extended filters\n\t\t* function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2)\n\t\t* Parameters:\n\t\t* $fld - Field object\n\t\t* $so1 - Default search operator 1\n\t\t* $sv1 - Default ext filter value 1\n\t\t* $sc - Default search condition (if operator 2 is enabled)\n\t\t* $so2 - Default search operator 2 (if operator 2 is enabled)\n\t\t* $sv2 - Default ext filter value 2 (if operator 2 is enabled)\n\t\t*/\n\n\t\t/**\n\t\t* Set up default values for popup filters\n\t\t*/\n\t}", "function translate_filter ($filter,$dir='db') \n{ \n $url = array(\"category\", \"location\", \"start_date\", \"end_date\");\n $db = array(\"categories\", \"locations\", \"startDate\", \"endDate\");\n $return = array();\n \n foreach ($filter as $key=>$val) {\n if ($dir == 'db') \n $key = str_replace($url,$db,$key);\n if ($dir == 'url') \n $key = str_replace($db,$url,$key);\n $return[$key] = $val;\n }\n \n return $return;\n}", "function _prepare_filter_data () {\n\t\t// Filter session array name\n\t\t$this->_filter_name\t= $_GET[\"object\"].\"_filter\";\n\t\t// Connect common used arrays\n\t\tif (file_exists(INCLUDE_PATH.\"common_code.php\")) {\n\t\t\tinclude (INCLUDE_PATH.\"common_code.php\");\n\t\t}\n\t\t// Fields in the filter\n\t\t$this->_fields_in_filter = array(\n\t\t\t\"engine\",\n\t\t\t\"text\",\n\t\t);\n\t}", "public function set_filters() {\n\t\tdo_action('emd_ext_class_init', $this);\n\t\t$search_args = Array();\n\t\t$filter_args = Array();\n\t\t$this->sing_label = __('Contact', 'wpas_attendeeinfo');\n\t\t$this->plural_label = __('Contacts', 'wpas_attendeeinfo');\n\t\t$this->menu_entity = 'emd_contact';\n\t\t$this->boxes['emd_contact_info_emd_contact_0'] = array(\n\t\t\t'id' => 'emd_contact_info_emd_contact_0',\n\t\t\t'title' => __('Contact Info', 'wpas_attendeeinfo') ,\n\t\t\t'app_name' => 'wpas_attendeeinfo',\n\t\t\t'pages' => array(\n\t\t\t\t'emd_contact'\n\t\t\t) ,\n\t\t\t'context' => 'normal',\n\t\t);\n\t\tlist($search_args, $filter_args) = $this->set_args_boxes();\n\t\tif (!post_type_exists($this->post_type) || in_array($this->post_type, Array(\n\t\t\t'post',\n\t\t\t'page'\n\t\t))) {\n\t\t\tself::register();\n\t\t}\n\t\tdo_action('emd_set_adv_filtering', $this->post_type, $search_args, $this->boxes, $filter_args, $this->textdomain, $this->plural_label);\n\t\t$ent_map_list = get_option(str_replace('-', '_', $this->textdomain) . '_ent_map_list');\n\t}", "function filter_pre_load_value($null, $post_id, $field)\n {\n }", "function GetFilterValues(&$fld) {\n\t\t$parm = substr($fld->FldVar, 2);\n\t\tif (ewrpt_IsHttpPost())\n\t\t\treturn; // Skip post back\n\t\t$got = FALSE;\n\t\tif (isset($_GET[\"sv1_$parm\"])) {\n\t\t\t$fld->SearchValue = ewrpt_StripSlashes($_GET[\"sv1_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"so1_$parm\"])) {\n\t\t\t$fld->SearchOperator = ewrpt_StripSlashes($_GET[\"so1_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"sc_$parm\"])) {\n\t\t\t$fld->SearchCondition = ewrpt_StripSlashes($_GET[\"sc_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"sv2_$parm\"])) {\n\t\t\t$fld->SearchValue2 = ewrpt_StripSlashes($_GET[\"sv2_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"so2_$parm\"])) {\n\t\t\t$fld->SearchOperator2 = ewrpt_StripSlashes($_GET[\"so2_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\treturn $got;\n\t}", "function GetFilterValues(&$fld) {\n\t\t$parm = substr($fld->FldVar, 2);\n\t\tif (ewrpt_IsHttpPost())\n\t\t\treturn; // Skip post back\n\t\t$got = FALSE;\n\t\tif (isset($_GET[\"sv1_$parm\"])) {\n\t\t\t$fld->SearchValue = ewrpt_StripSlashes($_GET[\"sv1_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"so1_$parm\"])) {\n\t\t\t$fld->SearchOperator = ewrpt_StripSlashes($_GET[\"so1_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"sc_$parm\"])) {\n\t\t\t$fld->SearchCondition = ewrpt_StripSlashes($_GET[\"sc_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"sv2_$parm\"])) {\n\t\t\t$fld->SearchValue2 = ewrpt_StripSlashes($_GET[\"sv2_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\tif (isset($_GET[\"so2_$parm\"])) {\n\t\t\t$fld->SearchOperator2 = ewrpt_StripSlashes($_GET[\"so2_$parm\"]);\n\t\t\t$got = TRUE;\n\t\t}\n\t\treturn $got;\n\t}", "function acf_search_fields($id, $fields)\n{\n}", "public function setFilter(string $filter);", "public function buildFilters()\n {\n $this->addFilter('name', new ORM\\StringFilterType('name'), 'kuma_menu.menu.adminlist.filter.name');\n }", "function add_field_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1)\n {\n }", "function getFieldId_Filter($id_field, $field_prefix = FALSE) {\n\t\tif( $field_prefix === FALSE )\n\t\t \treturn 'field_filter_'.$id_field;\n\t\telse\n\t\t\treturn $field_prefix.'field_filter_'.$id_field;\n\t }", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}" ]
[ "0.8202938", "0.78009534", "0.76604855", "0.76604855", "0.75719875", "0.75587285", "0.75573546", "0.7517113", "0.7458288", "0.7423638", "0.7373194", "0.7268946", "0.7222277", "0.7209276", "0.7099541", "0.6962225", "0.6905902", "0.6635627", "0.6594376", "0.6594376", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6579793", "0.6517045", "0.64854497", "0.6449397", "0.6449397", "0.64143574", "0.6346946", "0.62160915", "0.6175183", "0.6040898", "0.5955151", "0.588191", "0.5858521", "0.5850087", "0.58384764", "0.57299274", "0.57186353", "0.57186353", "0.5702188", "0.56937724", "0.5646762", "0.5625948", "0.5568665", "0.55650496", "0.55546963", "0.555217", "0.55120975", "0.5511713", "0.55103415", "0.55098474", "0.5488081", "0.5460455", "0.5449405", "0.54476804", "0.54425484", "0.5437911", "0.54373866", "0.5420429", "0.540823", "0.53993237", "0.5395951", "0.53835595", "0.53835595", "0.5370471", "0.53637064", "0.53480357", "0.53442186", "0.53431493", "0.533738", "0.5327113", "0.5327113", "0.530175", "0.5292108", "0.5290036", "0.5286687", "0.52584416", "0.5255494", "0.5255494" ]
0.7793232
9
Setup AutoSuggest filters of a field
function SetupAutoSuggestFilters($fld, $pageId = null) { global $gsLanguage; $pageId = $pageId ?: $this->PageID; switch ($fld->FldVar) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $gsLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Serie_Equipo\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroSerie` LIKE '{query_value}%'\";\r\n\t\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nombre_Titular\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nombre_Tutor\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `tutores`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Cue_Establecimiento_Alta\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"`Cue_Establecimiento` LIKE '{query_value}%' OR CONCAT(`Cue_Establecimiento`,'\" . ew_ValueSeparator(1, $this->Cue_Establecimiento_Alta) . \"',`Nombre_Establecimiento`) LIKE '{query_value}%'\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Cue_Establecimiento_Baja\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"`Cue_Establecimiento` LIKE '{query_value}%' OR CONCAT(`Cue_Establecimiento`,'\" . ew_ValueSeparator(1, $this->Cue_Establecimiento_Baja) . \"',`Nombre_Establecimiento`) LIKE '{query_value}%'\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_discapacidad\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld` FROM `discapacidad`\";\n\t\t\t\t$sWhereWrk = \"`nombre` LIKE '{query_value}%'\";\n\t\t\t\t$fld->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Titular_Original\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_NroSerie\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroSerie` LIKE '{query_value}%'\";\r\n\t\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Nuevo_Titular\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"`Apellidos_Nombres` LIKE '{query_value}%'\";\r\n\t\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\t}\r\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_dokterpengirim\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"`NAMADOKTER` LIKE '%{query_value}%'\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_statusbayar\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"`NAMA` LIKE '%{query_value}%'\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_kirimdari\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"`nama` LIKE '%{query_value}%'\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_noruang\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"`nama` LIKE '%{query_value}%'\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_dokter_penanggungjawab\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"`NAMADOKTER` LIKE '%{query_value}%'\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_sep_kodediagnosaawal\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"`CODE` LIKE '%{query_value}%'\";\n\t\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_NOMR\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"`NOMR` LIKE '%{query_value}%' OR `NAMA` LIKE '%{query_value}%' OR CONCAT(`NOMR`,'\" . ew_ValueSeparator(1, $this->NOMR) . \"',`NAMA`) LIKE '{query_value}%'\";\n\t\t\t$this->NOMR->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\tcase \"x_DIAGNOSAAWAL_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"`Code` LIKE '%{query_value}%' OR `Description` LIKE '%{query_value}%' OR CONCAT(`Code`,'\" . ew_ValueSeparator(1, $this->DIAGNOSAAWAL_SEP) . \"',`Description`) LIKE '{query_value}%'\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}", "public function getFieldAutoCompleteInmueble() {\n\t\t\n\t}", "function exposed_form_alter(&$form, &$form_state) {\n parent::exposed_form_alter($form, $form_state);\n\n if (!empty($this->options['make_autocompletable'])) {\n foreach ($this->options['make_autocompletable'] as $filter) {\n $field_name = $this->view->filter[$filter]->content_field['field_name'];\n $type_name = $this->view->filter[$filter]->content_field['type_name'];\n $form[$filter]['#autocomplete_path'] = 'autocomplete_widgets/'. $type_name .'/'. $field_name;\n }\n }\n }", "function SetupLookupFilters($fld) {\n\t\tglobal $gsLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "protected function preValidate()\n {\n $this->setFilter( preg_quote($this->getFilter()) );\n }", "public function addFilterFormInput(): void;", "private function addInputFilter() \n {\n // Create main input filter\n \n //$inputFilter = new InputFilter(); \n \n $inputFilter = $this->getInputFilter(); \n $this->setInputFilter($inputFilter);\n \n // Add input for \"usuario\" field\n $inputFilter->add([\n 'name' => 'nombre',\n 'required' => true,\n 'filters' => [ \n ['name' => 'StringTrim'],\n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 512\n ],\n ],\n ],\n ]);\n \n // Add input for \"telefono\" field\n $inputFilter->add([\n 'name' => 'telefono',\n 'required' => false,\n 'filters' => [ \n ['name' => 'StringTrim'],\n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 512\n ],\n ],\n ],\n ]);\n \n // Add input for \"email\" field\n $inputFilter->add([\n 'name' => 'email',\n 'required' => false,\n 'filters' => [ \n ['name' => 'StringTrim'],\n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 512\n ],\n ],\n ],\n ]);\n \n // Add input for \"email\" field\n $inputFilter->add([\n 'name' => 'skype',\n 'required' => false,\n 'filters' => [ \n ['name' => 'StringTrim'],\n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 512\n ],\n ],\n ],\n ]);\n \n }", "function acf_set_filters($filters = array())\n{\n}", "protected function initInputFilters()\n {\n $inputFilter = new ZendInputFilter\\InputFilter();\n\n $this->setInputFilter($inputFilter);\n\n $inputFilter->add([\n 'name' => \"{$this->prefix}ip\",\n 'required' => false,\n 'filters' => [\n ['name' => ZendFilter\\StringTrim::class],\n ],\n ]);\n\n $inputFilter->add([\n 'name' => \"{$this->prefix}comment\",\n 'required' => false,\n 'filters' => [\n ['name' => ZendFilter\\StringTrim::class],\n ],\n ]);\n }", "function acf_enable_filters($filters = array())\n{\n}", "private static function _getFilter() {}", "public function buildFilters()\n {\n $this->addFilter('name', new ORM\\StringFilterType('name'), 'kuma_menu.menu.adminlist.filter.name');\n }", "public function autoSuggestList()\n {\n // TODO: Implement autoSuggestList() method.\n }", "public function facetSuggestAction()\n {\n $suggestBlock = $this->getLayout()->createBlock('smile_elasticsearch/catalog_layer_filter_attribute_suggest');\n $this->getResponse()->setBody($suggestBlock->toHtml());\n }", "function acf_enable_filter($name = '')\n{\n}", "private function addInputFilter() \n {\n // Create main input filter\n $inputFilter = new InputFilter(); \n $this->setInputFilter($inputFilter);\n \n // Add input for \"email\" field\n $inputFilter->add([\n 'name' => 'title',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'], \n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 128\n ],\n ],\n \n \n ],\n ]); \n\n\n \n // Add input for \"status\" field\n $inputFilter->add([\n 'name' => 'status',\n 'required' => true,\n 'filters' => [ \n ['name' => 'ToInt'],\n ], \n 'validators' => [\n ['name'=>'InArray', 'options'=>['haystack'=>[1, 2]]]\n ],\n ]); \n }", "function onAdvSearchDisplayFilter(&$filter, $value='', $formName='searchForm')\r\n\t{\r\n\t\t// execute the code only if the field type match the plugin type\r\n\t\tif ( !in_array($filter->field_type, self::$field_types) ) return;\r\n\t\t\r\n\t\t$filter->parameters->set( 'display_filter_as_s', 1 ); // Only supports a basic filter of single text search input\r\n\t\tFlexicontentFields::createFilter($filter, $value, $formName);\r\n\t}", "protected function initFilterFields(): void\n {\n $this->filterSliderFields = $this->filterSliderFields();\n $this->filterNumericFields = $this->filterNumericFields();\n $this->filterDropdownFields = $this->filterDropdownFields();\n }", "function ldap_autocomplete_dummy_function($l_field_def, $l_custom_field_value) {\n#\tdie(__FILE__ . ':'. __LINE__ . ' ERROR! You need the custom field event patches!');\n}", "public function getInputFilter();", "function setup_my_field_in_bar( $filters ) {\n\t\t$filters['tribe-bar-event-type'] = array(\n\t\t\t'name' => 'tribe-bar-event-type',\n\t\t\t'caption' => 'Event Type',\n\t\t\t'html' => '<select name=\"tribe-bar-event-type\" id=\"tribe-bar-event-type\" multiple><option value=\"aslan\">Aslan Event</option></select>'\n\t\t);\n\n\t\treturn $filters;\n\t}", "private function addInputFilter()\n {\n // Create main input filter\n $inputFilter = $this->getInputFilter();\n\n // Add input for \"latitude\" field\n $inputFilter->add([\n 'name' => 'latitude',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'],\n ],\n 'validators' => [\n [\n 'name' => 'Float',\n ],\n ],\n ]);\n\n // Add input for \"longitude\" field\n $inputFilter->add([\n 'name' => 'longitude',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'],\n ],\n 'validators' => [\n [\n 'name' => 'Float',\n ],\n ],\n ]);\n\n\n }", "public function createDefaultListFinderFilters(){\n \n $filters = array();\n \n $filters['id'] = new EqualsFilter('id', 'text', array(\n 'label' => 'ID'\n ));\n \n return $filters;\n \n }", "public function setFilter($filter){ }", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}", "private function setFilter()\n {\n $this->filter['value'] = $this->getParameter('value') == null ? '' : $this->getParameter('value');\n }", "public function filters()\n {\n return [\n 'name' => 'trim|capitalize|escape'\n ];\n }", "public function buildFilters()\n {\n $this->addFilter('name', new ORM\\StringFilterType('name'), 'media.adminlist.configurator.filter.name');\n $this->addFilter('contentType', new ORM\\StringFilterType('contentType'), 'media.adminlist.configurator.filter.type');\n $this->addFilter('updatedAt', new ORM\\NumberFilterType('updatedAt'), 'media.adminlist.configurator.filter.updated_at');\n $this->addFilter('filesize', new ORM\\NumberFilterType('filesize'), 'media.adminlist.configurator.filter.filesize');\n }", "private function setSearchFilters()\n\t{\n\t\tif(sizeof($this->searchFilters) > 0)\n\t\t{\n\t\t\t$this->taskSearchHelperDA->setSearchFilters($this->searchFilters);\n\t\t}\n\t}", "public function autocomplete_callback();", "private function _setupFiltering()\n\t{\n\t\tglobal $txt;\n\n\t\t// We'll escape some strings...\n\t\t$db = database();\n\n\t\t// You can filter by any of the following columns:\n\t\t$filters = array(\n\t\t\t'id_member' => $txt['username'],\n\t\t\t'ip' => $txt['ip_address'],\n\t\t\t'session' => $txt['session'],\n\t\t\t'url' => $txt['error_url'],\n\t\t\t'message' => $txt['error_message'],\n\t\t\t'error_type' => $txt['error_type'],\n\t\t\t'file' => $txt['file'],\n\t\t\t'line' => $txt['line'],\n\t\t);\n\n\t\t$filter = $this->_req->getQuery('filter', 'trim', null);\n\t\t$value = $this->_req->getQuery('value', 'trim', null);\n\n\t\t// Set up the filtering...\n\t\tif (isset($value, $filters[$filter]))\n\t\t{\n\t\t\t$filter = array(\n\t\t\t\t'variable' => $filter,\n\t\t\t\t'value' => array(\n\t\t\t\t\t'sql' => in_array($filter, array('message', 'url', 'file'))\n\t\t\t\t\t\t? base64_decode(strtr($value, array(' ' => '+')))\n\t\t\t\t\t\t: $db->escape_wildcard_string($value),\n\t\t\t\t),\n\t\t\t\t'href' => ['filter' => $filter, 'value' => $value],\n\t\t\t\t'entity' => $filters[$filter]\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($filter, $value))\n\t\t\t{\n\t\t\t\tunset($this->_req->query->filter, $this->_req->query->value);\n\t\t\t}\n\n\t\t\t$filter = [];\n\t\t}\n\n\t\treturn $filter;\n\t}", "function ewp_query_fields()\n {\n\n return apply_filters(\n 'ewp_query_fields_filter',\n array(\n 'post' => array(\n 'label' => __('WP Post object', 'extend-wp'),\n 'field-choices' => array(\n 'search_type' => array(\n 'label' => __('Search type', 'extend-wp'),\n 'case' => 'select',\n 'options' => array(\n 'search' => array('label' => __('Search text', 'extend-wp')),\n 'date_from' => array('label' => __('Publish date from', 'extend-wp')),\n 'date_to' => array('label' => __('Publish date to', 'extend-wp')),\n 'orderby' => array('label' => __('Order by', 'extend-wp')),\n 'order' => array('label' => __('Order', 'extend-wp')),\n ),\n 'label_class' => array('awm-needed'),\n )\n )\n ),\n 'meta' => array(\n 'label' => __('WP Meta', 'extend-wp'),\n 'field-choices' => array(\n 'meta_key' => array(\n 'label' => __('Meta key', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'label_class' => array('awm-needed'),\n ),\n 'meta_compare' => array(\n 'label' => __('Compare function', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'label_class' => array('awm-needed'),\n )\n ),\n ),\n 'taxonomy' => array(\n 'label' => __('WP taxonomy', 'extend-wp'),\n 'field-choices' => array(\n 'compare_type' => array(\n 'label' => __('Compare operator', 'extend-wp'),\n 'case' => 'select',\n 'options' => array(\n 'in' => array('label' => 'IN'),\n 'not_in' => array('label' => 'NOT IN'),\n ),\n 'label_class' => array('awm-needed'),\n ),\n ),\n )\n )\n );\n }", "function barebones_theme_suggestions_field_alter(array &$suggestions, array $variables) {\n $element = $variables['element'];\n $name = $element['#field_name'];\n $bundle = $element['#bundle'];\n $view_mode = $element['#view_mode'];\n $type = $element['#entity_type'];\n\n // Add per view mode template suggestions for fields.\n $suggestions[] = 'field__' . $name;\n $suggestions[] = 'field__' . $name . '__' . $view_mode;\n $suggestions[] = 'field__' . $name . '__' . $view_mode . '__' . $bundle;\n $suggestions[] = 'field__' . $name . '__' . $view_mode . '__' . $bundle . '__' . $type;\n\n return $suggestions;\n}", "function acf_get_filters()\n{\n}", "function culturefeed_search_ui_default_filter_options($filter_form_number) {\n\n $defaults = array(\n 1 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n 2 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide long-running events',\n 'query-string' => 'no-periods',\n 'api-filter-query' => 'periods:false'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'Hide permanent events',\n 'query-string' => 'no-permanent',\n 'api-filter-query' => 'permanent:false'\n ),\n ),\n 3 => array(\n array(\n 'exposed' => TRUE,\n 'title' => 'Free only',\n 'query-string' => 'free-only',\n 'api-filter-query' => 'price:0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'No courses and workshops',\n 'query-string' => 'no-courses-workshops',\n 'api-filter-query' => '!category_id:0.3.1.0.0'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For toddlers',\n 'query-string' => 'voor-kinderen',\n 'api-filter-query' => '(agefrom:[* TO 12] OR keywords:\"ook voor kinderen\")'\n ),\n array(\n 'exposed' => TRUE,\n 'title' => 'For UiTPAS and Paspartoe',\n 'query-string' => 'uitpas',\n 'api-filter-query' => '(keywords:uitpas* OR Paspartoe)'\n ),\n ),\n );\n\n return isset($defaults[$filter_form_number]) ? $defaults[$filter_form_number] : array();\n\n}", "public function __construct() {\n //$inputFilter = $this->getInputFilter(); \n\n // Add input for \"nombre\" field\n $this->add([\n 'name' => 'nombre',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'], \n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 128\n ],\n ], \n ],\n ]); \n \n $this->add([\n 'name' => 'rut',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'], \n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 1,\n 'max' => 128\n ],\n ], \n ],\n ]);\n }", "function add_field_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1)\n {\n }", "public function setFilter($arrFilter);", "private function filterOptions(){\n $request = new Request();\n\n $key = $request->query->get('key') ? $this->global_helper_service->cleanDataInput($request->query->get('key')) : '';\n $date_range = $request->query->get('date_range') ? $request->query->get('date_range') : '';\n\n $array_filters = array();\n\n $array_filters['key'] = array(\n 'type' => 'input',\n 'title' => 'Search',\n 'default_value' => $key\n );\n\n $array_filters['date_range'] = array(\n 'type' => 'date_picker',\n 'title' => 'Date Range',\n 'options' => '',\n 'default_value' => $date_range\n );\n\n return $this->admincp_service->handleElementFormFilter($array_filters);\n }", "public function optionsCallback($strField);", "function ApplyDefaultExtFilter(&$fld) {\n\t\t$fld->SearchValue = $fld->DefaultSearchValue;\n\t\t$fld->SearchValue2 = $fld->DefaultSearchValue2;\n\t\t$fld->SearchOperator = $fld->DefaultSearchOperator;\n\t\t$fld->SearchOperator2 = $fld->DefaultSearchOperator2;\n\t\t$fld->SearchCondition = $fld->DefaultSearchCondition;\n\t}", "function ApplyDefaultExtFilter(&$fld) {\n\t\t$fld->SearchValue = $fld->DefaultSearchValue;\n\t\t$fld->SearchValue2 = $fld->DefaultSearchValue2;\n\t\t$fld->SearchOperator = $fld->DefaultSearchOperator;\n\t\t$fld->SearchOperator2 = $fld->DefaultSearchOperator2;\n\t\t$fld->SearchCondition = $fld->DefaultSearchCondition;\n\t}", "public function getAttributeFilterSuggestions()\n {\n return $this->attributeFilterSuggestions;\n }", "function SetupLookupFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_MainGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`MainGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `MainGroup`, `MainGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`MainGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_SubGroup\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`SubGroup` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `SubGroup`, `SubGroup` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`SubGroup` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\tcase \"x_Article\":\n\t\t\t$fld->LookupFilters = array(\"d\" => \"DB\", \"f0\" => '`Article` = {filter_value}', \"t0\" => \"200\", \"fn0\" => \"\", \"dlm\" => ewr_Encrypt($fld->FldDelimiter), \"f1\" => '`MainGroup` = {filter_value}', \"t1\" => \"200\", \"fn1\" => \"\", \"f2\" => '`SubGroup` = {filter_value}', \"t2\" => \"200\", \"fn2\" => \"\", \"af\" => json_encode($fld->AdvancedFilters));\n\t\t$sWhereWrk = \"{filter}\";\n\t\t$fld->LookupFilters += array(\n\t\t\t\"select\" => \"SELECT DISTINCT `Article`, `Article` AS `DispFld`, '' AS `DispFld2`, '' AS `DispFld3`, '' AS `DispFld4` FROM `t13_mutasi`\",\n\t\t\t\"where\" => $sWhereWrk,\n\t\t\t\"orderby\" => \"`Article` ASC\"\n\t\t);\n\t\t$this->Lookup_Selecting($fld, $fld->LookupFilters[\"where\"]); // Call Lookup selecting\n\t\t$fld->LookupFilters[\"s\"] = ewr_BuildReportSql($fld->LookupFilters[\"select\"], $fld->LookupFilters[\"where\"], \"\", \"\", $fld->LookupFilters[\"orderby\"], \"\", \"\");\n\t\t\tbreak;\n\t\t}\n\t}", "private function addInputFilters()\n {\n $inputFilter = new InputFilter();\n\n $author = (new Input())->setName('author')->setRequired(true);\n $author->getFilterChain()->attach(new StringTrim());\n $author->getValidatorChain()->attach((new StringLength())->setMin(1)->setMax(128));\n $inputFilter->add($author);\n\n $comment = (new Input())->setName('comment')->setRequired(true);\n $comment->getFilterChain()->attach(new StripTags());\n $comment->getValidatorChain()->attach((new StringLength())->setMin(1)->setMax(4096));\n $inputFilter->add($author)->add($comment);\n\n $this->setInputFilter($inputFilter);\n }", "function my_epl_add_single_bedrooms_search_dropdown_field($fields) {\n\tforeach($fields as $field_key => &$field) {\n\t if( in_array($field['meta_key'], array('property_bedrooms_min','property_bedrooms_max') ) ) {\n\t\t\tunset($fields[$field_key]);\n\t }\n\t}\n\t$fields[] =array(\n\t\t'key'\t\t\t=>\t'search_bed',\n\t\t//'multiple'\t\t=>\ttrue,\n\t\t'meta_key'\t\t=>\t'property_bedrooms',\n\t\t'label'\t\t\t=>\t__('Bedrooms','epl'),\n\t\t'type'\t\t\t=>\t'select',\n\t\t'option_filter'\t\t=>\t'property_bedrooms',\n\t\t'options'\t\t=>\tarray(\n\t\t\t\t\t\t\t'studio'\t=> 'Studio',\n\t\t\t\t\t\t\t'1'\t\t=> '1',\n\t\t\t\t\t\t\t'2'\t\t=> '2',\n\t\t\t\t\t\t\t'3'\t\t=> '3',\n\t\t\t\t\t\t\t'4'\t\t=> '4',\n\t\t\t\t\t\t\t'5'\t\t=> '5',\n\t\t),\n\t\t'option_type' => 'range', // provide range of option instead of option array\n\t\t'query'\t\t\t=>\tarray(\n\t\t\t\t\t\t\t'query'\t\t=>\t'meta',\n\t\t\t\t\t\t\t'compare'\t=>\t'EQUALS',\n\t\t\t\t\t\t\t'type'\t\t=>\t'numeric'\n\t\t),\n\t\t'class'\t\t\t=>\t'epl-search-row-full',\n\t\t'order'\t\t\t=> 160\n\t);\n\treturn $fields;\n}", "public function addFilters()\n {\n }", "private function initInputFilter($di) {\n\t\t\t$di->set('inputFilter', function(){\n\t\t\t\n\t\t\t\treturn new FilterOptions();\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t}", "public function bindSuggestAjax(){\n\t\tif($this->request->is('post')){\n\t\t\t$keyup = $this->request->data['Enquiry']['affiliate_id'];\n\t\t\t$data = $this->Affiliate->find('list',array(\n\t\t\t\t\t\t\t\t\t\t\t'fields' => 'id,text',\n\t\t\t\t\t\t\t\t\t\t\t'conditions' => array('Affiliate.text LIKE'=>$keyup.'%'),\n\t\t\t\t\t\t\t\t\t\t\t));\n\t\t\t$this->set('keyup', $keyup);\n\t\t\t$this->set('affiliate', $data);\n\t\t\t$this->layout = 'ajax';\n\t\t}\n\t}", "function iniciarFiltro(&$filtro) {\n\n if (isset($_GET['order']))\n $filtro->order($_GET['order']);\n $filtro->nombres[] = 'Nombre';\n $filtro->valores[] = array('input', 'nombre', $filtro->filtro('nombre'));\n $filtro->nombres[] = 'Descripci&oacute;n';\n $filtro->valores[] = array('input', 'descripcion', $filtro->filtro('descripcion'));\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->exemplar_id) AND ( (is_scalar($data->exemplar_id) AND $data->exemplar_id !== '') OR (is_array($data->exemplar_id) AND (!empty($data->exemplar_id)) )) )\n {\n\n $filters[] = new TFilter('exemplar_id', '=', $data->exemplar_id);// create the filter \n }\n\n if (isset($data->leitor_id) AND ( (is_scalar($data->leitor_id) AND $data->leitor_id !== '') OR (is_array($data->leitor_id) AND (!empty($data->leitor_id)) )) )\n {\n\n $filters[] = new TFilter('leitor_id', '=', $data->leitor_id);// create the filter \n }\n\n if (isset($data->dt_emprestimo) AND ( (is_scalar($data->dt_emprestimo) AND $data->dt_emprestimo !== '') OR (is_array($data->dt_emprestimo) AND (!empty($data->dt_emprestimo)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '>=', $data->dt_emprestimo);// create the filter \n }\n\n if (isset($data->dt_emprestimo_final) AND ( (is_scalar($data->dt_emprestimo_final) AND $data->dt_emprestimo_final !== '') OR (is_array($data->dt_emprestimo_final) AND (!empty($data->dt_emprestimo_final)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '<=', $data->dt_emprestimo_final);// create the filter \n }\n\n if (isset($data->dt_previsao) AND ( (is_scalar($data->dt_previsao) AND $data->dt_previsao !== '') OR (is_array($data->dt_previsao) AND (!empty($data->dt_previsao)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '>=', $data->dt_previsao);// create the filter \n }\n\n if (isset($data->dt_prevista_final) AND ( (is_scalar($data->dt_prevista_final) AND $data->dt_prevista_final !== '') OR (is_array($data->dt_prevista_final) AND (!empty($data->dt_prevista_final)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '<=', $data->dt_prevista_final);// create the filter \n }\n\n if (isset($data->dt_devolucao) AND ( (is_scalar($data->dt_devolucao) AND $data->dt_devolucao !== '') OR (is_array($data->dt_devolucao) AND (!empty($data->dt_devolucao)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '>=', $data->dt_devolucao);// create the filter \n }\n\n if (isset($data->dt_devolucao_final) AND ( (is_scalar($data->dt_devolucao_final) AND $data->dt_devolucao_final !== '') OR (is_array($data->dt_devolucao_final) AND (!empty($data->dt_devolucao_final)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '<=', $data->dt_devolucao_final);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }", "function LoadDefaultFilters() {\n\t\tglobal $deals_details;\n\n\t\t/**\n\t\t* Set up default values for non Text filters\n\t\t*/\n\n\t\t// Field dealer\n\t\t$deals_details->dealer->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->dealer->DropDownValue = $deals_details->dealer->DefaultDropDownValue;\n\n\t\t// Field date_start\n\t\t$deals_details->date_start->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->date_start->DropDownValue = $deals_details->date_start->DefaultDropDownValue;\n\n\t\t// Field status\n\t\t$deals_details->status->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->status->DropDownValue = $deals_details->status->DefaultDropDownValue;\n\n\t\t/**\n\t\t* Set up default values for extended filters\n\t\t* function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2)\n\t\t* Parameters:\n\t\t* $fld - Field object\n\t\t* $so1 - Default search operator 1\n\t\t* $sv1 - Default ext filter value 1\n\t\t* $sc - Default search condition (if operator 2 is enabled)\n\t\t* $so2 - Default search operator 2 (if operator 2 is enabled)\n\t\t* $sv2 - Default ext filter value 2 (if operator 2 is enabled)\n\t\t*/\n\n\t\t/**\n\t\t* Set up default values for popup filters\n\t\t*/\n\t}", "public function register_filters() {\n\n\t\t}", "function acf_filter_attrs($attrs)\n{\n}", "public function setupFilterRules()\n { }", "function autoComplete() {\n\t\t$this->autoRender=false;\n \t\t$this->layout = 'ajax';\n\t\t\n\t\t$field=isset($this->params['named']['field'])?$this->params['named']['field']:'clcvecli';\n\t\t/* Validate and Format the search term */\n\t\t$term=strtoupper(substr(trim($_GET['term']),0,16));\n\n\t\t$this->Contacto->recursive=0;\n\n\t\t$conditions=array(\n \t\t\t\t\t);\n\n\t\tif($field=='cve') {\n\t\t\t$conditions[]=array(\n \t\t\t\t\t'Contacto.cve LIKE '=>$term.'%',\n \t\t\t\t\t'Contacto.nom LIKE'=>'%'.$term.'%'\n \t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t}\n\n\t\t/* Configure and Execute the Query */\n \t\t$records = $this->Contacto->find('all', array(\n\t\t\t'fields'=>array('Contacto.id','Contacto.clcvecli','Contacto.cltda','Contacto.clnom','Contacto.clsuc','Contacto.clst','Contacto.clt'),\n\t\t\t'order'=>'Contacto.clcvecli ASC, Contacto.cltda ASC',\n\t\t\t'limit'=>32,\n\t\t\t'conditions' => $conditions\n\t\t\t));\n\n\t\t/* Create the dataset to be returned */\n\t\t$response = array();\n\t\t$i=0;\n\t\tforeach($records as $record) {\n\t\t\t$response[$i]['id']=$record['Contacto']['id'];\n\t\t\t$response[$i]['value']=trim($record['Contacto']['clcvecli']);\n\t\t\tif($field=='clcvecli') {\n \t\t\t\t$response[$i]['value']=trim($record['Contacto']['clcvecli']);\n \t\t\t\t$response[$i]['label']='('.trim($record['Contacto']['clcvecli']) . ') ' . $record['Contacto']['clnom'];\n\t\t\t}\n \t\t\t$i++;\n \t\t}\n\t\t/* Send the response in json format */\n\t\techo json_encode($response);\n\t}", "public function set_filters() {\n\t\tdo_action('emd_ext_class_init', $this);\n\t\t$search_args = Array();\n\t\t$filter_args = Array();\n\t\t$this->sing_label = __('Contact', 'wpas_attendeeinfo');\n\t\t$this->plural_label = __('Contacts', 'wpas_attendeeinfo');\n\t\t$this->menu_entity = 'emd_contact';\n\t\t$this->boxes['emd_contact_info_emd_contact_0'] = array(\n\t\t\t'id' => 'emd_contact_info_emd_contact_0',\n\t\t\t'title' => __('Contact Info', 'wpas_attendeeinfo') ,\n\t\t\t'app_name' => 'wpas_attendeeinfo',\n\t\t\t'pages' => array(\n\t\t\t\t'emd_contact'\n\t\t\t) ,\n\t\t\t'context' => 'normal',\n\t\t);\n\t\tlist($search_args, $filter_args) = $this->set_args_boxes();\n\t\tif (!post_type_exists($this->post_type) || in_array($this->post_type, Array(\n\t\t\t'post',\n\t\t\t'page'\n\t\t))) {\n\t\t\tself::register();\n\t\t}\n\t\tdo_action('emd_set_adv_filtering', $this->post_type, $search_args, $this->boxes, $filter_args, $this->textdomain, $this->plural_label);\n\t\t$ent_map_list = get_option(str_replace('-', '_', $this->textdomain) . '_ent_map_list');\n\t}", "protected function get_initial_filters() {\n $initialfilters = parent::get_initial_filters();\n $initialfilters[] = 'autoass';\n return $initialfilters;\n }", "function draw_user_auto_complete_field($args = '') {\r\n global $wpi_settings, $wpdb, $wp_scripts;\r\n wp_enqueue_script('jquery-ui-autocomplete');\r\n\r\n //** Extract passed args and load defaults */\r\n extract(wp_parse_args($args, array(\r\n 'input_name' => 'wpi[new_invoice][user_email]',\r\n 'input_class' => 'input_field',\r\n 'input_id' => 'wp_invoice_userlookup',\r\n 'input_style' => ''\r\n )), EXTR_SKIP);\r\n ?>\r\n <script type=\"text/javascript\">\r\n jQuery(document).ready(function() {\r\n jQuery(\"#<?php echo $input_id; ?>\").autocomplete({\r\n source:ajaxurl+'?action=wpi_user_autocomplete_handler',\r\n minLength: 3\r\n });\r\n jQuery(\"#<?php echo $input_id; ?>\").focus();\r\n });\r\n </script>\r\n <input type=\"text\" name=\"<?php echo $input_name; ?>\" class=\"<?php echo $input_class; ?>\" id=\"<?php echo $input_id; ?>\" style=\"<?php echo $input_style; ?>\" />\r\n <?php\r\n }", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "static function add_filters(): void {\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_group']);\r\n\r\n\t\tself::add_tab('Divisions');\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_divisions']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_name']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_notes']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_d_priority']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_roles']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_title']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_r_priority']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_voting']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_email']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_archival']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_aliases']);\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_alias']);\r\n\r\n\t\tself::add_tab('Layout');\r\n\t\tadd_action('acf/init', [__CLASS__, 'add_show_emails']);\r\n\t}", "function options_form(&$form, &$form_state) {\n parent::options_form($form, $form_state);\n $relationships = $this->view->relationship;\n $options = array();\n foreach ($this->display->handler->get_handlers('filter') as $filter => $handler) {\n if ($handler->is_exposed() && $handler->content_field['widget']['module'] == 'autocomplete_widgets') {\n $options[$filter] = $handler->ui_name();\n if (!empty($handler->options['relationship'])) {\n $relationship = $handler->options['relationship'];\n if (!empty($relationships[$relationship])) {\n $options[$filter] = '('. $relationships[$relationship] .') '. $options[$filter];\n }\n }\n }\n }\n\n if (!empty($options)) {\n $form['make_autocompletable'] = array(\n '#type' => 'checkboxes',\n '#title' => t('Convert into a autocomplete widget'),\n '#options' => $options,\n '#default_value' => $this->options['make_autocompletable'],\n '#description' => t('This list contains only exposed filters for CCK Text and Number fields.'),\n );\n }\n }", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tif ($pageId == \"list\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t} elseif ($pageId == \"extbs\") {\n\t\t\tswitch ($fld->FldVar) {\n\t\t\t}\n\t\t}\n\t}", "public function autocompleteSelect($filter = '') {\n $events = $this->findAll(NULL, '*', 'event_name ASC');\n $result = array();\n foreach($events as $key=>$event){\n $result[$key]['id'] = $event->event_slug;\n $result[$key]['name'] = $event->event_name.' - '.strtoupper($event->event_code);\n $result[$key]['url'] = '';\n }\n \n return $result;\n }", "public function ajax_autocomplete() {\n\t\tglobal $wpdb;\n\n\t\tif ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'visual_form_builder_autocomplete' ) {\n\t\t\t$term \t\t= esc_html( $_REQUEST['term'] );\n\t\t\t$form_id \t= absint( $_REQUEST['form'] );\n\t\t\t$field_id \t= absint( $_REQUEST['field'] );\n\n\t\t\t$fields = $wpdb->get_results( $wpdb->prepare( \"SELECT * FROM $this->field_table_name WHERE form_id = %d AND field_id = %d ORDER BY field_sequence ASC\", $form_id, $field_id ) );\n\n\t\t\t$suggestions = array();\n\n\t\t\tforeach ( $fields as $field ) {\n\t\t\t\t$options = unserialize( $field->field_options );\n\n\t\t\t\tforeach ( $options as $opts ){\n\t\t\t\t\t// Find a match in our list of options\n\t\t\t\t\t$pos = stripos( $opts, $term );\n\n\t\t\t\t\t// If a match was found, add it to the suggestions\n\t\t\t\t\tif ( $pos !== false )\n\t\t\t\t\t\t$suggestions[] = array( 'value' => $opts );\n\t\t\t\t}\n\n\t\t\t\t// Send a JSON-encoded array to our AJAX call\n\t\t\t\techo json_encode( $suggestions );\n\t\t\t}\n\t\t}\n\n\t\tdie(1);\n\t}", "private function addInputFilter()\n {\n // Create main input filter\n $inputFilter = new InputFilter();\n $this->setInputFilter($inputFilter);\n\n // Add input for \"pin\" field\n $inputFilter->add([\n 'name' => 'pin',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'],\n ],\n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'max' => 14\n ],\n ],\n ],\n ]);\n\n }", "public function getFilter(): string;", "private function addInputFilter() \n {\n \n $inputFilter = new InputFilter(); \n $this->setInputFilter($inputFilter);\n \n $inputFilter->add([\n 'name' => 'nom_parent',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'],\n ['name' => 'StripTags'],\n ['name' => 'StripNewlines'],\n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 2,\n 'max' => 100\n ],\n ],\n ],\n ]);\n \n $inputFilter->add([\n 'name' => 'prenom_parent',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'],\n ['name' => 'StripTags'],\n ['name' => 'StripNewlines'],\n ], \n 'validators' => [\n [\n 'name' => 'StringLength',\n 'options' => [\n 'min' => 2,\n 'max' => 100\n ],\n ],\n ],\n ]);\n \n $inputFilter->add([\n 'name' => 'email_parent',\n 'required' => true,\n 'filters' => [\n ['name' => 'StringTrim'], \n ], \n 'validators' => [\n [\n 'name' => 'EmailAddress',\n 'options' => [\n 'allow' => \\Zend\\Validator\\Hostname::ALLOW_DNS,\n 'useMxCheck' => false, \n ],\n ],\n ],\n ]);\n \n }", "public function getInputFilter()\n {\n if (!$this->inputFilter){\n $inputFilter = new InputFilter();\n $factory = new InputFactory();\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'id',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'nome',\n 'required' => true,\n 'filters'\t=>\tarray(\n array('name'\t=>\t'StripTags'),\n array('name'\t=>\t'StringTrim'),\n ),\n 'validators' => array(\n array(\n 'name' => 'StringLength',\n 'options' => array(\n 'encoding' => 'UTF-8',\n 'min' => 1,\n 'max' => 255,\n ),\n ),\n ),\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'etapaCurso',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'concluinte',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'cargaHoraria',\n 'required' => true,\n 'validators' => array(\n array(\n 'name' => 'Float',\n 'options' => array(\n 'min' => 1,\n 'locale' => 'en_US'\n )\n )\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'ativo',\n 'required' => false,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'intervalo',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'idadeInicial',\n 'required' => false,\n 'validators' => array(\n array(\n 'name' => 'Digits'\n )\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'idadeFinal',\n 'required' => false,\n 'validators' => array(\n array(\n 'name' => 'Digits'\n )\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'observacaoHistorico',\n 'required' => false,\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'diasLetivos',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'curso',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int')\n )\n )));\n\n $inputFilter->add($factory->createInput(array(\n 'name' => 'regraAvaliacao',\n 'required' => false,\n 'filters'=> array(\n array('name' => 'Int')\n )\n )));\n\n $this->inputFilter = $inputFilter;\n }\n\n return $this->inputFilter;\n }", "function SetupLookupFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\t}\r\n\t}", "function genesisawesome_custom_filters( $filters ) {\n\n\t$filters['email'] = 'sanitize_email';\n\t$filters['integer'] = 'genesisawesome_intval';\n\n\treturn $filters;\n\n}", "public function registerFilters() {\n//\t $this->addFilter('get_avatar', ['Chayka\\\\LinkedIn\\\\LinkedInHelper', 'filterGetLinkedInAvatar'], 10, 3);\n\t $this->addFilter('CommentModel.created', ['Chayka\\\\LinkedIn\\\\LinkedInHelper', 'filterMarkCommentWithLinkedInUserId']);\n\t $this->addFilter('pre_comment_approved', ['Chayka\\\\LinkedIn\\\\LinkedInHelper', 'filterApproveLinkedInUserComment'], 10, 2);\n\t\t/* chayka: registerFilters */\n }", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function SetupLookupFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}" ]
[ "0.80122644", "0.79950917", "0.7341881", "0.7284358", "0.7237325", "0.7237006", "0.7237006", "0.7210664", "0.7210664", "0.7077294", "0.7012674", "0.6686608", "0.6202265", "0.6129609", "0.6018526", "0.6000091", "0.5978845", "0.5948706", "0.5925772", "0.5923308", "0.5906133", "0.5862423", "0.585354", "0.5808473", "0.58045423", "0.579776", "0.5790603", "0.57887363", "0.5702904", "0.568094", "0.56669575", "0.5664229", "0.5638721", "0.56217945", "0.5617872", "0.56159925", "0.5613821", "0.5596698", "0.55868083", "0.5584648", "0.55649376", "0.55625767", "0.55608565", "0.5555178", "0.5541468", "0.55334306", "0.55333674", "0.5529244", "0.551909", "0.5516902", "0.55107254", "0.55107254", "0.55033517", "0.54951864", "0.5484918", "0.54758286", "0.54671246", "0.54587597", "0.5456935", "0.54559684", "0.5452817", "0.5447627", "0.5445665", "0.54365134", "0.54317665", "0.54233056", "0.5419865", "0.54172724", "0.5414202", "0.5412559", "0.5412559", "0.53958106", "0.53816855", "0.53806937", "0.53806937", "0.53724736", "0.53614706", "0.5359296", "0.53583395", "0.53545743", "0.5353945", "0.53485525", "0.53483236", "0.5346863", "0.5342269", "0.5342269", "0.5342269" ]
0.7235865
17
Message Showing event $type = ''|'success'|'failure'|'warning'
function Message_Showing(&$msg, $type) { if ($type == 'success') { //$msg = "your success message"; } elseif ($type == 'failure') { //$msg = "your failure message"; } elseif ($type == 'warning') { //$msg = "your warning message"; } else { //$msg = "your message"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\t\tif ($type == 'success') {\r\n\r\n\t\t\t//$msg = \"your success message\";\r\n\t\t} elseif ($type == 'failure') {\r\n\r\n\t\t\t//$msg = \"your failure message\";\r\n\t\t} elseif ($type == 'warning') {\r\n\r\n\t\t\t//$msg = \"your warning message\";\r\n\t\t} else {\r\n\r\n\t\t\t//$msg = \"your message\";\r\n\t\t}\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\r\n\t\t// Example:\r\n\t\t//if ($type == 'success') $msg = \"your success message\";\r\n\r\n\t}", "function Message_Showing(&$msg, $type) {\r\n\r\n\t\t// Example:\r\n\t\t//if ($type == 'success') $msg = \"your success message\";\r\n\r\n\t}", "function Message_Showing(&$msg, $type) {\n\n\t\t// Example:\n\t\t//if ($type == 'success') $msg = \"your success message\";\n\n\t}", "function Message_Showing(&$msg, $type) {\n\n\t\t// Example:\n\t\t//if ($type == 'success') $msg = \"your success message\";\n\n\t}", "function show_message($type,$message) {\n\t\treturn $message;\n\t}", "private function genMessage($type, $text)\n {\n if($type == 'danger') {\n return '<div uk-alert class=\"uk-alert-danger\">'.$text.'<a class=\"uk-alert-close\" uk-close></a></div>';\n } elseif($type == 'success') {\n return '<div uk-alert class=\"uk-alert-success\">'.$text.'<a class=\"uk-alert-close\" uk-close></a></div>';\n }\n }", "function _pushStatusMessage($message, $type = 'ok') {\r\n switch ($type) {\r\n case 'ok':\r\n array_push($this->_okMessage, $message);\r\n break;\r\n case 'error':\r\n array_push($this->_errMessage, $message);\r\n break;\r\n default:\r\n $this->_pushStatusMessage('invalid errortype, check FileBrowser.class.php', 'error');\r\n break;\r\n }\r\n }", "function alert($type, $msg)\n {\n switch ($type) {\n case 'success':\n $alert = '<div class=\"alert alert-success\" role=\"alert\">' . $msg . '</div>';\n break;\n case 'info':\n $alert = '<div class=\"alert alert-info\" role=\"alert\">' . $msg . '</div>';\n break;\n case 'warning':\n $alert = '<div class=\"alert alert-warning\" role=\"alert\">' . $msg . '</div>';\n break;\n case 'danger':\n $alert = '<div class=\"alert alert-danger\" role=\"alert\">' . $msg . '</div>';\n break;\n\n }\n\n return $alert;\n }", "public static function format_message($message,$type){\n if($type == 'cancel'){\n \t$baru = 'danger';\n }elseif ($type == 'checkmark') {\n \t$baru = 'success';\n }elseif ($type == 'warning') {\n \t$baru = 'warning';\n }else{\n \t$baru = 'info';\n }\n $alert = '';\n $alert .= '<div class=\"alert alert-'.$baru.' fade in block-inner\">';\n $alert .= '<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>';\n\t\t$alert .= '<i class=\"icon-'.$type.'-circle\"></i>'.$message;\t \n\t\t$alert .= '</div>';\n\t\treturn $alert;\n }", "public function showConfirmInfo($info,$type){\n if(is_array($info)) $info = implode('<br />',$info);\n switch($type){\n case 1: // note info\n $this->_note($info);\n break;\n case 2: // waring info\n $this->_warning($info);\n break;\n case 3: // error info\n $this->_error($info);\n break;\n case 0:\n default: // success info\n $this->_success($info);\n break;\n }\n }", "public function getStatus($type = 'short') {\n /*\n * if ($this->courseObjectFulfillment->isComplete()) {\n * // do other messages?\n * }\n * else {\n * if ($type == 'short') {\n * return \"Not viewed\";\n * }\n *\n * if ($type == 'long') {\n * return \"You have not viewed $title\";\n * }\n * }\n */\n }", "function format_alert($p_type, $p_msg){\n\treturn '<div class=\"alert alert-' . $p_type . '\">' . $p_msg . '</div>';\n}", "public function message($type, $message) {}", "protected function getMessageFunction(string $type) {\n $functions = [\n 'info' => 'addStatus',\n 'error' => 'addError',\n ];\n if (isset($functions[$type])) {\n return $functions[$type];\n }\n\n $this->messenger()->addWarning(t('Unknown message type: @type', ['@type' => $message[0]]));\n return 'addStatus';\n }", "function show_notice($msg, $type = 0){\n\tif ($this->debug_mode) {\n\t switch ($type) {\n\t\t case 1: $msg = 'unknown template variable <b>' . $msg . '</b>'; break;\n\t\t\tcase 2: $msg = 'unknown template control <b>' . $msg . '</b>'; break;\n\t\t\tcase 3: $msg = 'invalid nesting - <b>' . $msg . '</b>'; break;\n\t\t\tcase 4: $msg = 'invalid array variable - <b>' . $msg . '</b>'; break;\n\t\t}\n\t\t$GLOBALS['GlobalDebugInfo']->Write('<font color=\"red\">Template Notice: </font>\t' . $msg);\n\t}\n}", "private static function buildMsg(string $type, string $messageTitle,string $message){\n echo \"<div class='alert alert-{$type} alert-dismissible fade show' role='alert'>\"\n . \"<strong>{$messageTitle}</strong> {$message}\"\n . \"<button type='button' class='close' data-dismiss='alert' aria-label='Close'>\"\n . \"<span aria-hidden='true'>&times;</span>\"\n .\"</button></div>\";\n\n }", "private function ajax_response( $type, $message ){\n echo json_encode( array( 'status' => $type, 'message' => $message ) );\n die();\n }", "function showAlert($type, $msg) {\n\techo '<div class=\"alert alert-'.$type.'\" style=\"margin:0 auto;margin-bottom:20px;padding:5px;width:250px;font-weight:bold;\">';\n\techo \t$msg;\n\techo '</div>';\n}", "public function showAlert($type,$msg,$title='')\n\t\t{\n\t\t\n\t\tif($title == '' )\n\t\t{\n\t\t\t switch($type)\n\t\t\t {\n\t\t\t\tcase 'danger': $title = 'Error';break; \n\t\t\t\tcase 'info': $title = 'Info';break; \n\t\t\t\tcase 'success': $title = 'Success';break; \n\t\t\t\tcase 'warning': $title = 'Warning';break; \n\t\t\t }\n\t\t\t \n\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$html =\"<div class='alert alert-$type fade in'> <i data-dismiss='alert' class='icon-remove close'></i> <strong>$title!</strong> $msg. </div>\";\n\t\t\t\t\n\t\treturn \t$html;\n\t\t\t\n\t\t\t\n\t\t}", "public function notify($type, $message)\n {\n return $message?<<<NOTIFY\n<div class=\"hide notifier\" data-class-name=\"$type\">\n$message\n</div>\nNOTIFY\n: null;\n }", "function showAlert($type, $alert) {\n $alert = \"<div class='alert alert-$type' role='alert'>\n <center>$alert</center>\n </div>\";\n return $alert;\n }", "public function message($msg, $type = 'success')\n\t{\n\t\t$this->add_onload_js(\"message('\".$msg.\"','\".$type.\"');\");\n\t}", "protected function alertMessage(string $message, string $type = 'error')\n\t{\n\t\t$this->output->set_header('Content-Type: application/json; charset=utf-8');\n\t\techo json_encode([\n\t\t\t'type'\t\t=> $type,\n\t\t\t'message'\t=> $message,\n\t\t]);\n\t\texit;\n\t}", "function print_message( $type, $message, $title = '', $indent = 1 )\n{\n\tswitch( $type )\n\t{\n\t\tcase 'good':\n\t\t\t$type_class = ' good';\n\t\tbreak;\n\n\t\tcase 'bad':\n\t\t\t$type_class = ' bad';\n\t\tbreak;\n\n\t\tcase 'system':\n\t\t\t$type_class = ' system';\n\t\tbreak;\n\n\t\tcase NULL:\n\t\tdefault:\n\t\t\t$type_class = '';\n\t\tbreak;\n\t}\n\n\tprint str_repeat( \"\\t\", $indent ) . '<p class=\"message' . $type_class . '\">';\n\n\tif( $title )\n\t{\n\t\tprint '<strong>' . $title . '</strong> ';\n\t}\n\n\tprint $message . '</p>' . \"\\n\";\n}", "function feedback($messages, $type = \"error\", $style = '')\n{\n\tif (!is_array($messages))\n\t\t$messages = array($messages);\n\n\techo '\n\t<div class=\"notice ' .(($type == \"error\")? \"warning\" : \"info\"). '\" style=\"' .$style. '\">\n\t\t<div class=\"inner_notice\">\n\t\t<ul>';\n\t\n\tforeach ($messages as $message)\n\t\techo \"<li>\" .$message. \"</li>\";\n\t\n\techo '\n\t\t</ul>\n\t\t</div>\n\t</div>';\n}", "public function notification($type)\n {\n switch ($type) {\n case 'message':\n alert()->message('Notificación solo con mensaje');\n break;\n case 'basic':\n alert()->basic('Notificación Básica, mensaje y título', 'Título');\n break;\n case 'info':\n alert()->info('Notificación tipo Información');\n break;\n case 'success':\n alert()->success('Notificación de Éxito.','Título')->autoclose(3000);\n break;\n case 'error':\n alert()->error('Notificación de Error');\n break;\n case 'warning':\n alert()->warning('Notificación de Advertencia');\n break;\n }\n\n return redirect()->route('home');\n }", "public function notification($type)\n {\n switch ($type) {\n case 'message':\n alert()->message('Notificación solo con mensaje');\n break;\n case 'basic':\n alert()->basic('Notificación Básica, mensaje y título', 'Título');\n break;\n case 'info':\n alert()->info('Notificación tipo Información');\n break;\n case 'success':\n alert()->success('Notificación de Éxito.','Título')->autoclose(3000);\n break;\n case 'error':\n alert()->error('Notificación de Error');\n break;\n case 'warning':\n alert()->warning('Notificación de Advertencia');\n break;\n }\n\n return redirect()->route('home');\n }", "public function msg($type=NULL,$function=NULL,$msg=NULL){\n\tif($type==NULL&&$function==NULL&&$msg==NULL){\n\t echo \"Error Function Misconfigured! You Must Select an Error Type\";\n\t die;\n\t}\n\tif(strlen($msg)>0){\n\t $msg = \"<font style='color:#0000ff'>Message</font>: \".$msg;\n\t $valid = true;\n\t}\n\t$types = array(\n\t \"bool\",\"invalid\",\"num\",\n\t \"alphanum\",\"letters\",\"char\"\n\t);\n\tforeach($types as $err){\n\t if(stristr($type,$err)){\n\t $valid=true;\n\t }\n\t}\n\tif(!$valid==true){\n\t define(cw_err_check, false);\n\t echo \"Error Function Misconfigured!\";\n\t}\n\telse{\n\t define(cw_error,true,true);\n\t define(cw_err_check,true,true);\n }\n\tif($msg==NULL){\n\t $msg=\"A variable in the function \\\"<font style='color:#0000ff'>\".$function.\"</font>\\\" \";\n\t if($function==\"\"){\n\t $msg=\"A variable \";\n\t }\n\t elseif(stristr($type,\"bool\")){\n\t $msg.=\"should be <font style='color:#d11a1a'>TRUE</font> or <font style='color:#d11a1a'>FALSE</font> but is not\";\n\t }\n\t elseif(stristr($type,\"invalid\")){\n\t $msg.=\"is <font style='color:#d11a1a'>INVALID</font>\";\n\t }\n\t elseif(stristr($type,\"alphanum\")){\n\t $msg.=\"should ONLY contain <font style='color:#d11a1a'>LETTERS</font> and <font style='color:#d11a1a'>NUMBERS</font>\";\n\t }\n\t elseif(stristr($type,\"num\")){\n\t $msg.=\"should ONLY contain <font style='color:#d11a1a'>NUMBERS</font>\";\n\t }\n\t elseif(stristr($type,\"letters\")){\n\t $msg.=\"should ONLY contain <font style='color:#d11a1a'>LETTERS</font>\";\n\t }\n\t elseif(stristr($type,\"char\")){\n\t $msg.=\"contains <font style='color:#d11a1a'>INVALID CHARACTERS</font>\";\n\t }\n\t $msg.=\"!\";\n\t}\n\tglobal $_CW;\n $_CW[\"internal_errors\"][]=$msg;\n }", "function formatEventType($type){\n\tif($type == C('STR_GPT')){\n\t\treturn C('STR_GPT_LONG');\n\t}\n\telseif($type == C('STR_PPTQ')){\n\t\treturn C('STR_PPTQ_LONG');\n\t}\n\telseif($type == C('STR_RPTQ')){\n\t\treturn C('STR_RPTQ_LONG');\n\t}\n\telseif($type == C('STR_OTHER')){\n\t\treturn C('STR_OTHER_LONG');\n\t}\n\telse return false;\n}", "public function actionMessage($message, $type = 'success')\r\n {\r\n if(!YII_DEBUG) // This action is only available in debug mode.\r\n {\r\n throw new \\yii\\web\\NotFoundHttpException();\r\n }\r\n \r\n return $this->render('message', [\r\n 'message' => $message,\r\n 'type' => $type\r\n ]);\r\n }", "function debugMP($type,$hdr,$msg='') {\n\t\t\tif (($type === 'msg') && ($msg!=='')) {\n\t\t\t\t$msg = esc_html($msg);\n\t\t\t}\n\t\t\tif (($hdr!=='')) {\n\t\t\t\t$hdr = 'UI: ' . $hdr;\n\t\t\t}\n\t\t\t$this->addon->debugMP($type,$hdr,$msg,NULL,NULL,true);\n\t\t}", "function message($type,$val){\n return '<div class=\"alert alert-'.$type.' alert-dismissible\" role=\"alert\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>'.$val.'</div>';\n}", "function returnUserNotificationTypeText( $type ) {\n\tglobal $NOTIFICATION_TYPES;\n\n\treturn apply_filters( 'returnUserNotificationTypeText', __( $NOTIFICATION_TYPES[ $type ] ), $type );\n}", "function contact_form($type, $message){\r\n global $response;\r\n if($type == \"success\") $response = \"<div class='col-md-12'><div class='alert alert-success'>{$message}</div></div>\";\r\n else $response = \"<div class='col-md-12'><div class='alert alert-danger'>{$message}</div></div>\";\r\n }", "function output($type = 'success', $output = null)\n\t{\n\t\tif ($type == 'success') {\n\t\t\techo \"\\033[32m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'error') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'fatal') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t\texit(EXIT_ERROR);\n\t\t} else {\n\t\t\techo $output . PHP_EOL;\n\t\t}\n\t}", "function messages_notification_msg($hook_name, $entity_type, $return_value, $params) {\n\n\tif ($params['entity'] instanceof ElggEntity) {\n\t\tif ($params['entity']->getSubtype() == 'messages') {\n\t\t\treturn false;\n\t\t}\n\t}\n}", "function showInputError($errorType)\n{\n if ($errorType !== '') {\n return \"<p class='error-alert'>$errorType</p>\";\n }\n}", "function buildAlert($heading, $description, $type) {\n\t\techo \"<div class='alert $type' role='alert'><strong>$heading</strong>$description</div>\";\n\t}", "function mensagem($message_type = false)\n\t{\n\t\tif ($this->museuUserLogged)\n\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\n\t\t$this->set(compact('message_type'));\n\t}", "function statusMessage()\n {\n }", "function displaySuccess( $type )\n\t{\n\t\t$displaySuccess = '<div class=\"row\">';\n\t\t$displaySuccess .= '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100\" height=\"100\" fill=\"currentColor\" class=\"bi bi-check-circle my-5 text-muted\" viewBox=\"0 0 16 16\">';\n\t\t$displaySuccess .= '<path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z\"/>';\n\t\t$displaySuccess .= '<path d=\"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z\"/>';\n\t\t$displaySuccess .= '</svg>';\n\t\t$displaySuccess .= '';\n\t\t$displaySuccess .= '</div>';\n\t\t$displaySuccess .= '<div class=\"row\">';\n\t\t$displaySuccess .= '<h1 class=\"text-center text-muted mt-3 mb-5\">' . $type . '</h1></div>';\n\n\t\treturn $displaySuccess;\n\t}", "public function buildMessage($type = null, $message = null, $default = null) {\n\n switch (strtolower($type)) {\n\n case 'success':\n return Messages::COLORS['SUCCESS'] . \"success: $message.\\n\" . Messages::COLORS['CONSOLE'];\n break;\n\n case 'error':\n return Messages::COLORS['ERROR'] . \"error: $message.\\n\" . Messages::COLORS['CONSOLE'];\n break;\n\n case 'warning':\n return Messages::COLORS['WARNING'] . \"warning: $message.\\n\" . Messages::COLORS['CONSOLE'];\n break;\n\n case 'question':\n return Messages::COLORS['CONSOLE'] . \"$message\" . Messages::COLORS['SUCCESS'] . '? ' . Messages::COLORS['CONSOLE'] . ($default ? '(' . Messages::COLORS['WARNING'] . $default . Messages::COLORS['CONSOLE'] . '): ' : ': ' ) . Messages::COLORS['PROMPT'];\n break;\n\n case 'option':\n return Messages::COLORS['CONSOLE'] . \"[ \" . Messages::COLORS['WARNING'] . $default . Messages::COLORS['CONSOLE'] . \" ] $message\\n\";\n break;\n\n case 'unknown':\n return Messages::COLORS['UNKNOWN'] . \"unknown command $message.\\n\" . Messages::COLORS['CONSOLE'];\n break;\n\n case 'prompt':\n return Messages::COLORS['SUCCESS'] . '? ' . Messages::COLORS['CONSOLE'] . \"$message\" . ($default ? ' (' . Messages::COLORS['WARNING'] . $default . Messages::COLORS['CONSOLE'] . ')' : '') . \": \" . Messages::COLORS['PROMPT'];\n break;\n\n case 'out':\n return Messages::COLORS['SUCCESS'] . \"- \" . Messages::COLORS['CONSOLE'] . \"$message\\n\";\n break;\n\n case 'null':\n return Messages::COLORS['CONSOLE'];\n break;\n\n default:\n return Messages::COLORS['SUCCESS'] . \"$message\\n\" . Messages::COLORS['CONSOLE'];\n break;\n\n }\n\n }", "function set_alert($msg = '', $type = 'info')\n {\n $CI =& get_instance();\n // Make sure the session library is loaded\n class_exists('CI_Session') OR $CI->load->library('session');\n // Make sure alert type is not unknown\n $type === 'error' && $type = 'danger';\n in_array($type,array('info','warning','success','danger')) OR $type = 'info';\n $CI->session->set_flashdata('__ci_flash', array(\n 'type' => $type,\n 'message' => $msg\n ));\n }", "private function _msg($message = '', $type = 'success') {\n\t\tif (!isset($_SESSION))\n\t\t\tsession_start();\n\t\t\n\t\tif ($message) { //set message\n\t\t\tif (g($_SESSION, 'cfind-message.message')) {\n\t\t\t\t$message = g($_SESSION, 'cfind-message.message').'<br>'.$message;\n\t\t\t}\n\t\t\t$_SESSION['cfind-message'] = array('message' => $message, 'type' => $type);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!is_array(g($_SESSION, 'cfind-message'))) return array();\n\t\t\n\t\t$message = g($_SESSION, 'cfind-message');\n\t\t$_SESSION['cfind-message'] = '';\n\t\t\n\t\treturn $message;\n\t}", "function clientNotify($type, $error) {\n echo '\n <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css\">\n <script src=\"//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js\"></script>\n <script type=\"text/javascript\">\n if(window.toastr != undefined) {\n if (typeof jQuery == \"undefined\") {\n alert(\"System: ' . $error . '\")\n } else {\n toastr.' . $type . '(\"' . $error . '\")\n }\n } else {\n alert(\"System: ' . $error . '\")\n }\n </script>\n ';\n}", "function show_message($msg=\"\"){\n\t\tswitch($msg){\n\t\t\tcase 'business_location_success':\n\t\t\t\t$msg=\"<div class='message success'>Thank You, Business Destination Updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'offer_update_success':\n\t\t\t\t$msg=\"<div class='message success'>Offer Updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'offer_add_success':\n\t\t\t\t$msg=\"<div class='message success'>Offer Added</div>\";\n\t\t\tbreak;\n\t\t\tcase 'booking_update_success':\n\t\t\t\t$msg=\"<div class='message success'>Booking Updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'room_update_success':\n\t\t\t\t$msg=\"<div class='message success'>Room Updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'room_add_success':\n\t\t\t\t$msg=\"<div class='message success'>Room Added</div>\";\n\t\t\tbreak;\n\t\t\tcase 'house_update_success':\n\t\t\t\t$msg=\"<div class='message success'>House Updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'house_add_success':\n\t\t\t\t$msg=\"<div class='message success'>House Added</div>\";\n\t\t\tbreak;\n\t\t\tcase 'package_update_success':\n\t\t\t\t$msg=\"<div class='message success'>Package Updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'package_add_success':\n\t\t\t\t$msg=\"<div class='message success'>Package Added</div>\";\n\t\t\tbreak;\n\t\t\tcase 'property_update_success':\n\t\t\t\t$msg=\"<div class='message success'>Property updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'property_insert_success':\n\t\t\t\t$msg=\"<div class='message success'>Property added to database</div>\";\n\t\t\tbreak;\n\t\t\tcase 'image_upload_success':\n\t\t\t\t$msg=\"<div class='message success'>Images uploaded</div>\";\n\t\t\tbreak;\n\t\t\tcase 'image_upload_success_partially':\n\t\t\t\t$msg=\"<div class='message success'>Images uploaded (some images skipped due to size limit)</div>\";\n\t\t\tbreak;\n\t\t\tcase 'image_upload_error':\n\t\t\t\t$msg=\"<div class='message error'>Error uploading images</div>\";\n\t\t\tbreak;\n\t\t\tcase 'image_upload_error_no_files_selected':\n\t\t\t\t$msg=\"<div class='message error'>No files selected</div>\";\n\t\t\tbreak;\n\t\t\tcase 'image_upload_error_no_user':\n\t\t\t\t$msg=\"<div class='message error'>Error locating property owner, please contact administrator</div>\";\n\t\t\tbreak;\n\t\t\tcase 'form_missing_fields':\n\t\t\t\t$msg=\"<div class='message error'>Error: please enter fields where required</div>\";\n\t\t\tbreak;\n\t\t\tcase 'set_rate_no_selection':\n\t\t\t\t$msg=\"<div class='message error'>Skipped action, nothing selected for update</div>\";\n\t\t\tbreak;\n\t\t\tcase 'set_rate_success':\n\t\t\t\t$msg=\"<div class='message success'>Rates updated</div>\";\n\t\t\tbreak;\n\t\t\tcase 'db_error':\n\t\t\t\t$msg=\"<div class='message error'>Database connection error, please contact administrator</div>\";\n\t\t\tbreak;\n\t\t\tcase 'access_denied':\n\t\t\t\t$msg=\"<div class='message error'>Sorry, you don't have permissions to view this page</div>\";\n\t\t\tbreak;\n\t\t}\n\t\t$this->set_html('system_message',$msg);\n\t\treturn $this;\n\t}", "public static function getTypeLabel($type) {\n\tswitch ($type) {\n\t case self::TYPE_INTERNAL:\n\t\treturn \\Yii::t('translation', 'trigger.type_internal');\n\t\tbreak;\n\t case self::TYPE_EXTERNAL:\n\t\treturn \\Yii::t('translation', 'trigger.type_external');\n\t\tbreak;\n\t}\n }", "public function setErrorMessage($type='',$msg=''){\n\t\t($type == 'success') ? $msgVal = 'message-green' : $msgVal = 'message-red';\n\t\t$this->session->set_flashdata('sErrMSGType', $msgVal);\n\t\t$this->session->set_flashdata('sErrMSG', $msg);\n\t}", "public function message($message, $type='info')\n {\n $this->session->flash('flashi.message', $message);\n $this->session->flash('flashi.type', $type);\n }", "public function setNotifyMessage($type, $message) {\n if ($type == NotificationType::Error)\n Yii::app()->user->setFlash('beFormError', $message);\n elseif ($type == NotificationType::Success)\n Yii::app()->user->setFlash('beFormAction', $message);\n }", "protected function output($message, $type = 'note')\n {\n if(isset($this->output)){\n call_user_func([$this->output, $type], $message);\n }\n }", "function setMessage($text, $type = \"default\") {\n\tglobal $systemMessages;\n\t$systemMessages[$type][] = $text;\n}", "function error_log_details($type = \"info\",$label = \"no label\") \n\t{\n\t\t$w_call_detail = __FILE__.\" line (\".__LINE__.\") call from (\".$_SERVER[\"SCRIPT_FILENAME\"].\") : \";\n\t\tswitch($type) \n\t\t{\n\t\t\tcase \"fatal\":\n\t\t\t\t$w_prefixe = \"Fatal error on \".$w_call_detail;\n\t\t\t\terror_log($w_prefixe.$label);\n\t\t\t\tdie();\n\t\t\t\tbreak;\n\t\t\tcase \"info\":\n\t\t\t\t$w_prefixe = \"Info : \".$w_call_detail;\n\t\t\t\terror_log($w_prefixe.$label);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$w_prefixe = \"STOP : \".$w_call_detail;\n\t\t\t\terror_log($w_prefixe.\"!!!! unknown type parameters call !!!!!!\");\n\t\t\t\tdie();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public static function message($text = null, $type = 'info')\n {\n $id = Str::random(20);\n $message = [];\n\n if (is_array($text) && Arr::has($text, 'text')) {\n $message = [\n 'id' => $id,\n 'text' => Arr::get($text, 'text'),\n 'type' => Arr::get($text, 'type', 'info'),\n 'url' => Arr::get($text, 'url'),\n 'link' => Arr::get($text, 'link'),\n ];\n }\n\n if (is_string($text)) {\n $message = [\n 'id' => $id,\n 'text' => $text,\n 'type' => $type,\n ];\n }\n\n $alerts = session()->get('alerts', []);\n $alerts[$id] = $message;\n session()->flash('alerts', $alerts);\n }", "public static function translate($eventid, $type){\n\t\t$name = Event::model()->findByPk($eventid)->name;\n\t\tif($type == Notification::EVENT_INVITATION){\n\t\t\treturn \"You've been invited to $name.\";\n\t\t} else if($type == Notification::EVENT_EDITED){\n\t\t\treturn \"$name has been edited. Check it out!\";\n\t\t} else if($type == Notification::EVENT_DELETED){\n\t\t\treturn \"$name has been deleted.\";\n\t\t} else if($type == Notification::INVITATION_DELETED){\n\t\t\treturn \"You are no longer invited to $name.\";\n\t\t} else if($type == Notification::EVENT_READY){\n\t\t\treturn \"Every participant has made some proposals, you can fix the date for $name now\";\n\t\t} else if($type == Notification::EVENT_OK){\n\t\t\treturn \"The organizer has made fixed arrangemnts for $name\";\n\t\t}\n\t}", "public function flashNotify($string, $type)\n {\n Session::put('flash_notification', [\n 'text' => Lang::get($string),\n 'type' => $type,\n ]);\n }", "public function notify($type): void {\n\t\tif (!$this->notify_user) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tswitch ($type) {\n\t\t\tcase 'replace':\n\t\t\t\telgg_register_success_message(elgg_echo('tag_tools:rule:notify:replace', [$this->from_tag, $this->to_tag]));\n\t\t\t\tbreak;\n\t\t\tcase 'delete':\n\t\t\t\telgg_register_success_message(elgg_echo('tag_tools:rule:notify:delete', [$this->from_tag]));\n\t\t\t\tbreak;\n\t\t}\n\t}", "function tn_add_static_message( $type, $message ) {\n\tTN_Messages::add_static_message( array( $type => $message ) );\n}", "protected function getOptionStatusMessage($type, array $limit) {\n $message = $this->configuration['option_' . $type . '_message'];\n if (!$message) {\n return '';\n }\n\n return new FormattableMarkup($message, [\n '@name' => $this->getElementLabel(),\n '@label' => $limit['label'],\n '@limit' => $limit['limit'],\n '@total' => $limit['total'],\n '@remaining' => $limit['remaining'],\n ]);\n }", "function alert_page($p_type, $p_msg, $p_page_title = ''){\n\tlayout_page_header();\n\tlayout_page_begin();\n\n\tif($p_page_title != '')\n\t\tpage_title($p_page_title);\n\n\techo '<div class=\"col-md-12-left\">';\n\n\talert($p_type, $p_msg);\n\n\techo '</div>';\n\tlayout_page_end();\n\texit();\n}", "public function displayMessage()\n {\n if(empty($this->data)) {\n return trans('messages.event_not_set_yet');\n }\n\n $msg = '';\n switch ($this->event_type) {\n case self::TYPE_SPECIFIC_DATETIME:\n $msg = trans('messages.on_the_specific_date', [\n 'date' => \\Acelle\\Library\\Tool::dayStringFromTimestamp(\\Acelle\\Library\\Tool::dateTimeFromString($this->getDataValue('datetime'))),\n 'time' => \\Acelle\\Library\\Tool::timeStringFromTimestamp(\\Acelle\\Library\\Tool::dateTimeFromString($this->getDataValue('datetime')))\n ]);\n break;\n case self::TYPE_WEEKLY_RECURRING:\n $msg = trans('messages.weekly_recurring_description', [\n 'weekdays' => implode(', ', \\Acelle\\Library\\Tool::numberArrayToWeekdaysArray($this->getDataValue('weekdays'))),\n 'weeks' => implode(', ', \\Acelle\\Library\\Tool::numberArrayToWeeksArray($this->getDataValue('weeks'))),\n 'months' => implode(', ', \\Acelle\\Library\\Tool::numberArrayToMonthsArray($this->getDataValue('months'))),\n 'time' => \\Acelle\\Library\\Tool::timeStringFromTimestamp(\\Acelle\\Library\\Tool::dateTimeFromString($this->getDataValue('time'))),\n ]);\n break;\n case self::TYPE_MONTHLY_RECURRING:\n $msg = trans('messages.monthly_recurring_description', [\n 'days' => implode(', ', \\Acelle\\Library\\Tool::getDayNamesFromArrayOfNumber($this->getDataValue('days'))),\n 'months' => implode(', ', \\Acelle\\Library\\Tool::numberArrayToMonthsArray($this->getDataValue('months'))),\n 'time' => \\Acelle\\Library\\Tool::timeStringFromTimestamp(\\Acelle\\Library\\Tool::dateTimeFromString($this->getDataValue('time'))),\n ]);\n break;\n case self::TYPE_LIST_SUBSCRIPTION:\n if(!empty($this->getDataValue('delay_value'))) {\n $msg = trans('messages.event_type_list_subscription_description_with_delay', [\n 'list_name' => $this->automation->defaultMailList->name,\n 'delay' => $this->getDelayMessage()\n ]);\n } else {\n $msg = trans('messages.event_type_list_subscription_description', [\n 'list_name' => $this->automation->defaultMailList->name\n ]);\n }\n break;\n case self::TYPE_LIST_UNSUBSCRIPTION:\n if(!empty($this->getDataValue('delay_value'))) {\n $msg = trans('messages.event_type_list_unsubscription_description_with_delay', [\n 'list_name' => $this->automation->defaultMailList->name,\n 'delay' => $this->getDelayMessage()\n ]);\n } else {\n $msg = trans('messages.event_type_list_unsubscription_description', [\n 'list_name' => $this->automation->defaultMailList->name\n ]);\n }\n break;\n case self::TYPE_SUBSCRIBER_EVENT:\n $event = $this->getDataValue('event');\n\n // check if event with field uid\n if($event != 'subscription_date') {\n $field = \\Acelle\\Model\\Field::findByUid($event);\n $text = is_object($field) ? strtolower(trans('messages.subscriber_s_field', ['name' => $field->label])) : '';\n } else {\n $text = strtolower(trans('messages.subscriber_s_field', ['name' => trans('messages.' . $event)]));\n }\n if(!empty($this->getDataValue('delay_value'))) {\n $msg = trans('messages.event_type_subscriber_event_description_with_delay', [\n 'event' => $text,\n 'delay' => $this->getDelayMessage()\n ]);\n } else {\n $msg = trans('messages.event_type_subscriber_event_description', [\n 'event' => $text\n ]);\n }\n break;\n case self::TYPE_CUSTOM_CRITERIA:\n $strings = [];\n foreach($this->getDataValue('criteria') as $criteria) {\n $field = Field::findByUid($criteria[\"field_uid\"]);\n if (is_object($field)) {\n if(in_array($criteria['operator'], [AutoEvent::OPERATOR_BLANK, AutoEvent::OPERATOR_NOT_BLANK])) {\n $strings[] = trans('messages.event_type_custom_criteria_description_2', [\n 'field' => $field->label,\n 'operator' => trans('messages.' . $criteria[\"operator\"]),\n 'value' => $criteria[\"value\"],\n ]);\n } else {\n $strings[] = trans('messages.event_type_custom_criteria_description', [\n 'field' => $field->label,\n 'operator' => trans('messages.' . $criteria[\"operator\"]),\n 'value' => $criteria[\"value\"],\n ]);\n }\n }\n }\n\n if(!empty($this->getDataValue('delay_value'))) {\n $msg = trans('messages.event_type_custom_criterias_description_with_delay', [\n 'conditions' => implode(' ' . trans('messages.criteria_and') . ' ', $strings),\n 'delay' => $this->getDelayMessage()\n ]);\n } else {\n $msg = trans('messages.event_type_custom_criterias_description', [\n 'conditions' => implode(' ' . trans('messages.criteria_and') . ' ', $strings)\n ]);\n }\n break;\n case self::TYPE_FOLLOW_UP:\n case self::TYPE_FOLLOW_UP_OPENED:\n case self::TYPE_FOLLOW_UP_NOT_OPENED:\n case self::TYPE_FOLLOW_UP_CLICKED:\n case self::TYPE_FOLLOW_UP_NOT_CLICKED:\n if(empty($this->getDataValue('delay_value'))) {\n $msg = trans('messages.follow_up_send_right_after', [\n 'event' => trans('messages.follow_up_event_' . $this->event_type)\n ]);\n } else {\n $msg = trans('messages.follow_up_description', [\n 'value' => $this->getDataValue('delay_value'),\n 'unit' => \\Acelle\\Library\\Tool::getPluralPrase($this->getDataValue('delay_unit'), $this->getDataValue('delay_value')),\n 'event' => trans('messages.follow_up_event_' . $this->event_type)\n ]);\n }\n break;\n case self::TYPE_API_CALL:\n $msg = trans('messages.event_type_api_description');\n break;\n }\n\n return $msg;\n }" ]
[ "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.7681036", "0.72623986", "0.72623986", "0.7223903", "0.7223903", "0.69610333", "0.6880169", "0.67525846", "0.65849483", "0.6578528", "0.6539363", "0.64822775", "0.64540285", "0.6399385", "0.63755405", "0.63516366", "0.6304599", "0.6299997", "0.62998277", "0.6296068", "0.6292334", "0.6257572", "0.6182142", "0.61663795", "0.6165203", "0.6147774", "0.6104755", "0.6104755", "0.61031306", "0.60951185", "0.60719424", "0.6065245", "0.60620403", "0.606101", "0.60510856", "0.60384905", "0.60179955", "0.59774065", "0.59667104", "0.5958996", "0.5958882", "0.5958375", "0.5955533", "0.5951253", "0.59347147", "0.59340674", "0.5910772", "0.5901364", "0.59002393", "0.5893512", "0.5860266", "0.58536464", "0.5850876", "0.5838677", "0.58334816", "0.58320874", "0.5831727", "0.5830508", "0.5829539", "0.58182836", "0.5806876", "0.5804501" ]
0.7667
37
Page Data Rendering event
function Page_DataRendering(&$header) { // Example: //$header = "your header"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initPageRenderer() {}", "protected function initPageRenderer() {}", "public function renderData();", "public function generatePage_postProcessing() {}", "public function drawPage()\n\t\t{\n\t\t}", "abstract function render_page();", "protected function getPageRenderer() {}", "public function postRender()\n {\n }", "abstract protected function render_page_content(): void;", "protected function prepareRendering() {}", "public function generatePage_preProcessing() {}", "function processPageData() {\n\n $this->dataLayer=new ClsDataLayer();\n\n $this->cookieOk = $this->checkAuthCookie();\n\n if ($this->cookieOk == 1) {\n\n $this->weeks = $this->getWeeks();\n $this->years = $this->getYears();\n\n $this->processPostData();\n\n $this->payrollDataCalculated = $this->generatePayrollDataCalculated();\n\n }\n else {\n $this->cookieNotOkText = $this->getCookieNotOkText();\n }\n\n }", "protected function callRenderHook() {}", "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function onPreRender($param) {\r\n\t\tPrado::trace(\"OnPreRender\",'System.Web.Services.TPageService');\r\n\t\t$this->raiseEvent('OnPreRender',$this,$param);\r\n\t}", "public function render() {\n \t\tif (isset($_GET['eventId']) )\n\t\t\t$this->allElements[$_GET['eventId']]->callOnClickPreRenderFn();\n\n\t\tparent::render();\n \t\t\n\t\tif (isset($_GET['eventId']) )\n\t\t\t$this->allElements[$_GET['eventId']]->callOnClickPostRenderFn();\n\n\t}", "function page_content()\n {\n //This needs to deliver page data that is requested by the ROUTE.\n }", "abstract protected function view_generatePageContent();", "public function ee_breakouts_page_load() {}", "public function getPageData();", "public function getPageRenderer() {}", "public function getPageRenderer() {}", "public function _render_page($data = [])\n {\n \t$this->load->view('layouts/main', $data);\n }", "public function beforerender() {\n parent::beforeRender();\n $this->Meta->data();\n }", "public function onRun()\n {\n $this->page['visible'] = $this->property('visible');\n $this->page['button'] = $this->property('button');\n }", "protected function executePreRenderHook() {}", "protected function render( $page_name , $data )\n\t {\n\t \t//append security headers\n\t \t$this->append_security_headers( $data );\n\t \tif( $this->_app_mode === 'json' )\n\t \t{\n\t \t\t//exits at once !\n\t \t\treturn $this->render_json( $data );\n\t \t}\n\t \t$this->load->view('admin/html/partials/head' , $data );\n\t \t$this->load->view('admin/html/' . $page_name , $data );\n\t \t//$this->load->view\n\t }", "public function prePageContent();", "protected abstract function beforeRendering(): void;", "private static function BigPipe($data, $pagelet) {\n\t\t\tstatic $uniq_counter = 0;\n\t\t$uniq_counter++;\n echo '<script id=\"'.$data['id'].'\">BigPipe.OnPageLoad(' . Json::encode($data) . ');</script>';\n\tflush();\n\t}", "protected function onBeforeRender() : void\n {\n }", "public function onPageContentProcessed(Event $event)\n {\n $page = $event['page'];\n $config = $this->mergeConfig($page);\n\n // get current rendered content\n $content = $page->getRawContent();\n // replace marker(s) with Google map object(s)\n $page->setRawContent($this->processMarkdownContent($content, $config));\n\n // set this page's assets that where dynamically generated\n $this->setAssetsFromData();\n }", "protected function _render()\n {\n }", "protected function callRenderMethod() {}", "function postRender(&$render)\n {\n }", "function pagecreate()\r\n {\r\n $output = parent::pagecreate().\"\\n\";\r\n\r\n $output .= $this->_getJavascriptVar() . \" = document.getElementById('\" . $this->getName() . \"').getContext('\" . $this->getContext() . \"');\\n\";\r\n\r\n //Fire the event, if any\r\n if ($this->_jsonpaint != '')\r\n $output .= $this->_jsonpaint . \"(\" . $this->_getJavascriptVar() .\");\\n\";\r\n\r\n // bind standart events\r\n $output .= $this->bindJSEvent('click');\r\n $output .= $this->bindJSEvent('dblclick');\r\n $output .= $this->bindJSEvent('drag');\r\n $output .= $this->bindJSEvent('dragend');\r\n $output .= $this->bindJSEvent('dragenter');\r\n $output .= $this->bindJSEvent('dragleave');\r\n $output .= $this->bindJSEvent('dragover');\r\n $output .= $this->bindJSEvent('dragstart');\r\n $output .= $this->bindJSEvent('drop');\r\n $output .= $this->bindJSEvent('mousedown');\r\n $output .= $this->bindJSEvent('mousemove');\r\n $output .= $this->bindJSEvent('mouseout');\r\n $output .= $this->bindJSEvent('mouseover');\r\n $output .= $this->bindJSEvent('mouseup');\r\n $output .= $this->bindJSEvent('mousewheel');\r\n $output .= $this->bindJSEvent('scroll');\r\n $output .= $this->bindJSEvent('keydown');\r\n $output .= $this->bindJSEvent('keypress');\r\n $output .= $this->bindJSEvent('keyup');\r\n\r\n return $output;\r\n }", "function render() ;", "public function Process($data) {\n\t\tprint_pre($this);\n\t\tprint_pre($data); //lets see what's inside\n\t\t//here we're setting page <title> text\n\t\t$this->core->title = 'custom title';\n\t\t//and main page body source, which you can generate using your own methods in this controller class\n\t\t//by looking at $this->core->routes for internal paging\n\t\t$this->core->text = print_pre($this->core->routes, false);\n\t}", "public function render() {\n $vars = array('page' => &$this);\n // Page complete.\n $this->env->hook('page_render', $vars);\n return $this->html;\n }", "public function onRun()\n {\n $this->page['tagPage'] = $this->property('tagPage');\n $this->page['tagPageSlug'] = $this->paramName('tagPageSlug');\n $this->page['tagsPage'] = $this->property('tagsPage');\n $this->page['tagsPageSlug'] = $this->paramName('tagsPageSlug');\n }", "abstract public function render($data);", "protected function renderPage()\n\t{\n\t\tglobal $ilCtrl, $lng, $tpl, $rbacsystem;\n\n\t\t$pages = $this->object->getSurveyPages();\n\t\t$this->has_next_page = ($this->current_page < sizeof($pages));\n\t\t$this->has_previous_page = ($this->current_page > 1);\n\t\t$this->has_datasets = $this->object->_hasDatasets($this->object->getSurveyId());\n\t\t\n\t\tif($this->has_datasets)\n\t\t{\n\t\t\t$link = $ilCtrl->getLinkTargetByClass(array(\"ilobjsurveygui\", \"ilsurveyparticipantsgui\"), \"maintenance\");\n\t\t\t$link = \"<a href=\\\"\".$link.\"\\\">\".$lng->txt(\"survey_has_datasets_warning_page_view_link\").\"</a>\";\n\t\t\tilUtil::sendInfo($lng->txt(\"survey_has_datasets_warning_page_view\").\" \".$link);\n\t\t}\n\n\t\t$ilCtrl->setParameter($this, \"pg\", $this->current_page);\n\t\t$ilCtrl->setParameter($this, \"pgov\", \"\");\n\n\t\t$this->renderToolbar($pages);\n\n\t\tif($pages)\n\t\t{\n\t\t\t$ttpl = new ilTemplate(\"tpl.il_svy_svy_page_view.html\", true, true, \"Modules/Survey\");\n\t\t\t$ttpl->setVariable(\"FORM_ACTION\", $ilCtrl->getFormAction($this));\t\t\t\n\t\t\t$lng->loadLanguageModule(\"form\");\n\n\t\t\t$read_only = ($this->has_datasets || !$rbacsystem->checkAccess(\"write\", $this->ref_id));\n\n\t\t\t$commands = $multi_commands = array();\n\n\t\t\tif(!$read_only)\n\t\t\t{\n\t\t\t\t// clipboard is empty\n\t\t\t\tif(!$_SESSION[\"survey_page_view\"][$this->ref_id][\"clipboard\"])\n\t\t\t\t{\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"multiDelete\", \"text\"=>$lng->txt(\"delete\"));\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"multiCut\", \"text\"=>$lng->txt(\"cut\"));\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"multiCopy\", \"text\"=>$lng->txt(\"copy\"));\t\t\t\t\t\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"selectAll\", \"text\"=>$lng->txt(\"select_all\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$this->suppress_clipboard_msg)\n\t\t\t\t\t{\n\t\t\t\t\t\tilUtil::sendInfo($lng->txt(\"survey_clipboard_notice\"));\n\t\t\t\t\t}\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"clearClipboard\", \"text\"=>$lng->txt(\"survey_dnd_clear_clipboard\"));\n\t\t\t\t}\n\n\t\t\t\t// help - see ilPageObjectGUI::insertHelp()\t\t\t\t\t\t\n\t\t\t\t$lng->loadLanguageModule(\"content\");\t\t\t\t\t\t\t\n\t\t\t\t$ttpl->setCurrentBlock(\"help_section\");\n\t\t\t\t$ttpl->setVariable(\"TXT_ADD_EL\", $lng->txt(\"cont_add_elements\"));\n\t\t\t\tinclude_once(\"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php\");\n\t\t\t\t$ttpl->setVariable(\"PLUS\", ilGlyphGUI::get(ilGlyphGUI::ADD));\n\t\t\t\t$ttpl->setVariable(\"DRAG_ARROW\", ilGlyphGUI::get(ilGlyphGUI::DRAG));\n\t\t\t\t$ttpl->setVariable(\"TXT_DRAG\", $lng->txt(\"cont_drag_and_drop_elements\"));\n\t\t\t\t$ttpl->setVariable(\"TXT_SEL\", $lng->txt(\"cont_double_click_to_delete\"));\n\t\t\t\t$ttpl->parseCurrentBlock();\n\n\t\t\t\t$ttpl->setVariable(\"DND_INIT_JS\", \"initDragElements();\");\n\n\n\t\t\t\t// tiny mce\n\t\t\t\t\n\t\t\t\tinclude_once \"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php\";\n\t\t\t\t$tags = ilObjAdvancedEditing::_getUsedHTMLTags(\"survey\");\n\n\t\t\t\tinclude_once \"./Services/RTE/classes/class.ilTinyMCE.php\";\n\t\t\t\t$tiny = new ilTinyMCE();\t\t\t\t\n\t\t\t\t$ttpl->setVariable(\"WYSIWYG_BLOCKFORMATS\", $tiny->_buildAdvancedBlockformatsFromHTMLTags($tags));\n\t\t\t\t$ttpl->setVariable(\"WYSIWYG_VALID_ELEMENTS\", $tiny->_getValidElementsFromHTMLTags($tags));\n\n\t\t\t\t$buttons_1 = $tiny->_buildAdvancedButtonsFromHTMLTags(1, $tags);\n\t\t\t\t$buttons_2 = $tiny->_buildAdvancedButtonsFromHTMLTags(2, $tags).','.\n\t\t\t\t\t\t\t$tiny->_buildAdvancedTableButtonsFromHTMLTags($tags).\n\t\t\t\t\t\t\t($tiny->getStyleSelect() ? ',styleselect' : '');\n\t\t\t\t$buttons_3 = $tiny->_buildAdvancedButtonsFromHTMLTags(3, $tags);\n\t\t\t\t$ttpl->setVariable('WYSIWYG_BUTTONS_1', $tiny->_removeRedundantSeparators($buttons_1));\n\t\t\t\t$ttpl->setVariable('WYSIWYG_BUTTONS_2', $tiny->_removeRedundantSeparators($buttons_2));\n\t\t\t\t$ttpl->setVariable('WYSIWYG_BUTTONS_3', $tiny->_removeRedundantSeparators($buttons_3));\n\t\t\t}\n\n\t\t\t// commands\n\t\t\tif (count($multi_commands) > 0)\n\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\tforeach($multi_commands as $cmd)\n\t\t\t\t{\n\t\t\t\t\t$ttpl->setCurrentBlock(\"multi_cmd\");\n\t\t\t\t\t$ttpl->setVariable(\"ORG_CMD_MULTI\", \"renderPage\");\n\t\t\t\t\t$ttpl->setVariable(\"MULTI_CMD\", $cmd[\"cmd\"]);\n\t\t\t\t\t$ttpl->setVariable(\"MULTI_CMD_TXT\", $cmd[\"text\"]);\n\t\t\t\t\t$ttpl->parseCurrentBlock();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ttpl->setCurrentBlock(\"multi_cmds\");\n\t\t\t\t$ttpl->setVariable(\"MCMD_ALT\", $lng->txt(\"commands\"));\n\t\t\t\t$ttpl->setVariable(\"MCMD_IMG\", ilUtil::getImagePath(\"arrow_downright.svg\"));\n\t\t\t\t$ttpl->parseCurrentBlock();\n\t\t\t}\n\n\t\t\t// nodes\n\t\t\t$ttpl->setVariable(\"NODES\", $this->getPageNodes($pages[$this->current_page-1],\n\t\t\t\t$this->has_previous_page, $this->has_next_page, $read_only));\n\n\t\t\t$tpl->setContent($ttpl->get());\n\n\t\t\t// add js to template\n\t\t\tinclude_once(\"./Services/YUI/classes/class.ilYuiUtil.php\");\n\t\t\tilYuiUtil::initDragDrop();\n\t\t\t$tpl->addJavascript(\"./Modules/Survey/js/SurveyPageView.js\");\n\t\t\t$tpl->addJavascript(\"./Services/RTE/tiny_mce_3_5_11/tiny_mce_src.js\");\n\t\t}\n\t}", "protected function render() {}", "protected function render() {}", "public function process()\n\t{\n\t\t$this->_init();\n\t\tif ($this->_flow != PAGE_FLOW_NORMAL) {$this->process_flow(); return;}\n\n\t\t$this->_handle_forms();\n\t\tif ($this->_flow != PAGE_FLOW_NORMAL) {$this->process_flow(); return;}\n\n\t\t$this->_pre_render();\n\t\tif ($this->_flow != PAGE_FLOW_NORMAL) {$this->process_flow(); return;}\n\n\t\t$this->render();\n\t}", "protected function render() {}", "public abstract function render($data);", "public function render($data);", "public function onSinglePageLoaded(array &$pageData)\n {\n $this->triggerEvent('get_page_data', array(&$pageData, $pageData['meta']));\n }", "function beforeRender(){\n\t\t$this->recordActivity();\n\t}", "abstract protected function renderComplete();", "public function preRender()\n {\n }", "public function preRender()\n {\n }", "public function preRender()\n {\n }", "function renderToClient();", "abstract protected function RenderContent();", "public function before_render() {}", "function render_callback() {\n\t\t$callback = NULL === $this->render_callback\n\t\t\t? array( $this, 'render_page' )\n\t\t\t: $this->render_callback;\n\n\t\tcall_user_func( $callback, $this );\n\t}", "public function HandlePage()\n\t{\n\t\tif(!gzte11(ISC_HUGEPRINT)) {\n\t\t\texit;\n\t\t}\n\n\t\t$this->SetVendorData();\n\n\t\tif($this->displaying == 'products') {\n\t\t\t$this->ShowVendorProducts();\n\t\t}\n\t\telse if($this->displaying == 'page') {\n\t\t\t$this->ShowVendorPage();\n\t\t}\n\t\telse if($this->displaying == 'profile') {\n\t\t\t$this->ShowVendorProfile();\n\t\t}\n\t\telse {\n\t\t\t$this->ShowVendors();\n\t\t}\n\t}", "public function postPageGeneration(OutputObjectInterface $page);", "public function renderContent() {}", "function &renderPage( $page=0 )\r\n {\r\n $generator =& $this->generator();\r\n// print( \"Using renderer: \" . $this->RendererClass . \"<br>\");\r\n \r\n return $generator->renderPage( $page );\r\n }", "protected function _post_render() {\n\t\n\t\t// Silence is golden\n\t\n\t}", "protected function setupPage() {}", "function render($data) {\n\t\t$this->body->set_template('report_geolocation.tpl');\n\t\t$this->body->set('latest_visits', $this->get('latest_visits'));\n\t\t$this->body->set('site_id', $this->get('site_id') );\n\t\t$this->setjs('jmaps', 'base/js/includes/jquery/jquery.jmap-r72.js');\n\t\t$this->setjs('owa.map', 'base/js/owa.map.js');\n\t}", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function executeRenderPostTransformHook() {}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}", "function Page_DataRendered(&$footer) {\n\n\t\t// Example:\n\t\t//$footer = \"your footer\";\n\n\t}" ]
[ "0.67980355", "0.67974484", "0.67871046", "0.6756407", "0.6742592", "0.6664751", "0.6566766", "0.6537306", "0.64949924", "0.6487174", "0.6471443", "0.6458514", "0.6323813", "0.63140345", "0.6306794", "0.6306187", "0.6296541", "0.6282448", "0.6265285", "0.6239667", "0.6226386", "0.6224796", "0.62230194", "0.6196341", "0.6151105", "0.6149015", "0.6134922", "0.61286455", "0.6126794", "0.61258024", "0.6066659", "0.6036412", "0.6025232", "0.60138303", "0.60057455", "0.60049695", "0.59947467", "0.5991396", "0.5988408", "0.59862673", "0.59658414", "0.5963256", "0.5949574", "0.5937778", "0.5937778", "0.59375167", "0.5937463", "0.5934852", "0.59106773", "0.5910639", "0.5908648", "0.5895403", "0.5890063", "0.5890063", "0.5890063", "0.5886104", "0.58825797", "0.5877018", "0.5876451", "0.5857206", "0.5817889", "0.58098084", "0.579842", "0.5773993", "0.57630986", "0.5751302", "0.5747946", "0.5747033", "0.5747033", "0.5746868", "0.574516", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57449245", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303", "0.57439303" ]
0.0
-1
Page Data Rendered event
function Page_DataRendered(&$footer) { // Example: //$footer = "your footer"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postRender()\n {\n }", "public function renderData();", "public function generatePage_postProcessing() {}", "public function drawPage()\n\t\t{\n\t\t}", "abstract function render_page();", "protected function callRenderHook() {}", "protected function initPageRenderer() {}", "protected function initPageRenderer() {}", "public function onPreRender($param) {\r\n\t\tPrado::trace(\"OnPreRender\",'System.Web.Services.TPageService');\r\n\t\t$this->raiseEvent('OnPreRender',$this,$param);\r\n\t}", "public function onRun()\n {\n $this->page['visible'] = $this->property('visible');\n $this->page['button'] = $this->property('button');\n }", "function processPageData() {\n\n $this->dataLayer=new ClsDataLayer();\n\n $this->cookieOk = $this->checkAuthCookie();\n\n if ($this->cookieOk == 1) {\n\n $this->weeks = $this->getWeeks();\n $this->years = $this->getYears();\n\n $this->processPostData();\n\n $this->payrollDataCalculated = $this->generatePayrollDataCalculated();\n\n }\n else {\n $this->cookieNotOkText = $this->getCookieNotOkText();\n }\n\n }", "function postRender(&$render)\n {\n }", "public function render() {\n \t\tif (isset($_GET['eventId']) )\n\t\t\t$this->allElements[$_GET['eventId']]->callOnClickPreRenderFn();\n\n\t\tparent::render();\n \t\t\n\t\tif (isset($_GET['eventId']) )\n\t\t\t$this->allElements[$_GET['eventId']]->callOnClickPostRenderFn();\n\n\t}", "abstract protected function render_page_content(): void;", "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function _render_page($data = [])\n {\n \t$this->load->view('layouts/main', $data);\n }", "function beforeRender(){\n\t\t$this->recordActivity();\n\t}", "protected function render( $page_name , $data )\n\t {\n\t \t//append security headers\n\t \t$this->append_security_headers( $data );\n\t \tif( $this->_app_mode === 'json' )\n\t \t{\n\t \t\t//exits at once !\n\t \t\treturn $this->render_json( $data );\n\t \t}\n\t \t$this->load->view('admin/html/partials/head' , $data );\n\t \t$this->load->view('admin/html/' . $page_name , $data );\n\t \t//$this->load->view\n\t }", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function generatePage_preProcessing() {}", "public function beforerender() {\n parent::beforeRender();\n $this->Meta->data();\n }", "protected function getPageRenderer() {}", "function page_content()\n {\n //This needs to deliver page data that is requested by the ROUTE.\n }", "protected function executePreRenderHook() {}", "abstract protected function renderComplete();", "public function ee_breakouts_page_load() {}", "public function onRun()\n {\n $this->page['tagPage'] = $this->property('tagPage');\n $this->page['tagPageSlug'] = $this->paramName('tagPageSlug');\n $this->page['tagsPage'] = $this->property('tagsPage');\n $this->page['tagsPageSlug'] = $this->paramName('tagsPageSlug');\n }", "public function render() {\n $vars = array('page' => &$this);\n // Page complete.\n $this->env->hook('page_render', $vars);\n return $this->html;\n }", "protected function onBeforeRender() : void\n {\n }", "private static function BigPipe($data, $pagelet) {\n\t\t\tstatic $uniq_counter = 0;\n\t\t$uniq_counter++;\n echo '<script id=\"'.$data['id'].'\">BigPipe.OnPageLoad(' . Json::encode($data) . ');</script>';\n\tflush();\n\t}", "function render_callback() {\n\t\t$callback = NULL === $this->render_callback\n\t\t\t? array( $this, 'render_page' )\n\t\t\t: $this->render_callback;\n\n\t\tcall_user_func( $callback, $this );\n\t}", "protected function prepareRendering() {}", "public function prePageContent();", "public function getPageData();", "public function render($data);", "abstract protected function view_generatePageContent();", "public function onSinglePageLoaded(array &$pageData)\n {\n $this->triggerEvent('get_page_data', array(&$pageData, $pageData['meta']));\n }", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "function Page_DataRendered(&$footer) {\r\n\r\n\t\t// Example:\r\n\t\t//$footer = \"your footer\";\r\n\r\n\t}", "protected function callRenderMethod() {}", "protected function executeRenderPostTransformHook() {}", "abstract public function render($data);", "public abstract function render($data);", "public function preRender()\n {\n }", "public function preRender()\n {\n }", "public function preRender()\n {\n }", "protected abstract function beforeRendering(): void;", "public function run() {\n $this->render('dataSaved', array());\n }", "public function getPageRenderer() {}", "protected function renderPage()\n\t{\n\t\tglobal $ilCtrl, $lng, $tpl, $rbacsystem;\n\n\t\t$pages = $this->object->getSurveyPages();\n\t\t$this->has_next_page = ($this->current_page < sizeof($pages));\n\t\t$this->has_previous_page = ($this->current_page > 1);\n\t\t$this->has_datasets = $this->object->_hasDatasets($this->object->getSurveyId());\n\t\t\n\t\tif($this->has_datasets)\n\t\t{\n\t\t\t$link = $ilCtrl->getLinkTargetByClass(array(\"ilobjsurveygui\", \"ilsurveyparticipantsgui\"), \"maintenance\");\n\t\t\t$link = \"<a href=\\\"\".$link.\"\\\">\".$lng->txt(\"survey_has_datasets_warning_page_view_link\").\"</a>\";\n\t\t\tilUtil::sendInfo($lng->txt(\"survey_has_datasets_warning_page_view\").\" \".$link);\n\t\t}\n\n\t\t$ilCtrl->setParameter($this, \"pg\", $this->current_page);\n\t\t$ilCtrl->setParameter($this, \"pgov\", \"\");\n\n\t\t$this->renderToolbar($pages);\n\n\t\tif($pages)\n\t\t{\n\t\t\t$ttpl = new ilTemplate(\"tpl.il_svy_svy_page_view.html\", true, true, \"Modules/Survey\");\n\t\t\t$ttpl->setVariable(\"FORM_ACTION\", $ilCtrl->getFormAction($this));\t\t\t\n\t\t\t$lng->loadLanguageModule(\"form\");\n\n\t\t\t$read_only = ($this->has_datasets || !$rbacsystem->checkAccess(\"write\", $this->ref_id));\n\n\t\t\t$commands = $multi_commands = array();\n\n\t\t\tif(!$read_only)\n\t\t\t{\n\t\t\t\t// clipboard is empty\n\t\t\t\tif(!$_SESSION[\"survey_page_view\"][$this->ref_id][\"clipboard\"])\n\t\t\t\t{\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"multiDelete\", \"text\"=>$lng->txt(\"delete\"));\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"multiCut\", \"text\"=>$lng->txt(\"cut\"));\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"multiCopy\", \"text\"=>$lng->txt(\"copy\"));\t\t\t\t\t\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"selectAll\", \"text\"=>$lng->txt(\"select_all\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!$this->suppress_clipboard_msg)\n\t\t\t\t\t{\n\t\t\t\t\t\tilUtil::sendInfo($lng->txt(\"survey_clipboard_notice\"));\n\t\t\t\t\t}\n\t\t\t\t\t$multi_commands[] = array(\"cmd\"=>\"clearClipboard\", \"text\"=>$lng->txt(\"survey_dnd_clear_clipboard\"));\n\t\t\t\t}\n\n\t\t\t\t// help - see ilPageObjectGUI::insertHelp()\t\t\t\t\t\t\n\t\t\t\t$lng->loadLanguageModule(\"content\");\t\t\t\t\t\t\t\n\t\t\t\t$ttpl->setCurrentBlock(\"help_section\");\n\t\t\t\t$ttpl->setVariable(\"TXT_ADD_EL\", $lng->txt(\"cont_add_elements\"));\n\t\t\t\tinclude_once(\"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php\");\n\t\t\t\t$ttpl->setVariable(\"PLUS\", ilGlyphGUI::get(ilGlyphGUI::ADD));\n\t\t\t\t$ttpl->setVariable(\"DRAG_ARROW\", ilGlyphGUI::get(ilGlyphGUI::DRAG));\n\t\t\t\t$ttpl->setVariable(\"TXT_DRAG\", $lng->txt(\"cont_drag_and_drop_elements\"));\n\t\t\t\t$ttpl->setVariable(\"TXT_SEL\", $lng->txt(\"cont_double_click_to_delete\"));\n\t\t\t\t$ttpl->parseCurrentBlock();\n\n\t\t\t\t$ttpl->setVariable(\"DND_INIT_JS\", \"initDragElements();\");\n\n\n\t\t\t\t// tiny mce\n\t\t\t\t\n\t\t\t\tinclude_once \"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php\";\n\t\t\t\t$tags = ilObjAdvancedEditing::_getUsedHTMLTags(\"survey\");\n\n\t\t\t\tinclude_once \"./Services/RTE/classes/class.ilTinyMCE.php\";\n\t\t\t\t$tiny = new ilTinyMCE();\t\t\t\t\n\t\t\t\t$ttpl->setVariable(\"WYSIWYG_BLOCKFORMATS\", $tiny->_buildAdvancedBlockformatsFromHTMLTags($tags));\n\t\t\t\t$ttpl->setVariable(\"WYSIWYG_VALID_ELEMENTS\", $tiny->_getValidElementsFromHTMLTags($tags));\n\n\t\t\t\t$buttons_1 = $tiny->_buildAdvancedButtonsFromHTMLTags(1, $tags);\n\t\t\t\t$buttons_2 = $tiny->_buildAdvancedButtonsFromHTMLTags(2, $tags).','.\n\t\t\t\t\t\t\t$tiny->_buildAdvancedTableButtonsFromHTMLTags($tags).\n\t\t\t\t\t\t\t($tiny->getStyleSelect() ? ',styleselect' : '');\n\t\t\t\t$buttons_3 = $tiny->_buildAdvancedButtonsFromHTMLTags(3, $tags);\n\t\t\t\t$ttpl->setVariable('WYSIWYG_BUTTONS_1', $tiny->_removeRedundantSeparators($buttons_1));\n\t\t\t\t$ttpl->setVariable('WYSIWYG_BUTTONS_2', $tiny->_removeRedundantSeparators($buttons_2));\n\t\t\t\t$ttpl->setVariable('WYSIWYG_BUTTONS_3', $tiny->_removeRedundantSeparators($buttons_3));\n\t\t\t}\n\n\t\t\t// commands\n\t\t\tif (count($multi_commands) > 0)\n\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\tforeach($multi_commands as $cmd)\n\t\t\t\t{\n\t\t\t\t\t$ttpl->setCurrentBlock(\"multi_cmd\");\n\t\t\t\t\t$ttpl->setVariable(\"ORG_CMD_MULTI\", \"renderPage\");\n\t\t\t\t\t$ttpl->setVariable(\"MULTI_CMD\", $cmd[\"cmd\"]);\n\t\t\t\t\t$ttpl->setVariable(\"MULTI_CMD_TXT\", $cmd[\"text\"]);\n\t\t\t\t\t$ttpl->parseCurrentBlock();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ttpl->setCurrentBlock(\"multi_cmds\");\n\t\t\t\t$ttpl->setVariable(\"MCMD_ALT\", $lng->txt(\"commands\"));\n\t\t\t\t$ttpl->setVariable(\"MCMD_IMG\", ilUtil::getImagePath(\"arrow_downright.svg\"));\n\t\t\t\t$ttpl->parseCurrentBlock();\n\t\t\t}\n\n\t\t\t// nodes\n\t\t\t$ttpl->setVariable(\"NODES\", $this->getPageNodes($pages[$this->current_page-1],\n\t\t\t\t$this->has_previous_page, $this->has_next_page, $read_only));\n\n\t\t\t$tpl->setContent($ttpl->get());\n\n\t\t\t// add js to template\n\t\t\tinclude_once(\"./Services/YUI/classes/class.ilYuiUtil.php\");\n\t\t\tilYuiUtil::initDragDrop();\n\t\t\t$tpl->addJavascript(\"./Modules/Survey/js/SurveyPageView.js\");\n\t\t\t$tpl->addJavascript(\"./Services/RTE/tiny_mce_3_5_11/tiny_mce_src.js\");\n\t\t}\n\t}", "public function getPageRenderer() {}", "public function postPageGeneration(OutputObjectInterface $page);", "public function onPageContentProcessed(Event $event)\n {\n $page = $event['page'];\n $config = $this->mergeConfig($page);\n\n // get current rendered content\n $content = $page->getRawContent();\n // replace marker(s) with Google map object(s)\n $page->setRawContent($this->processMarkdownContent($content, $config));\n\n // set this page's assets that where dynamically generated\n $this->setAssetsFromData();\n }", "public function Process($data) {\n\t\tprint_pre($this);\n\t\tprint_pre($data); //lets see what's inside\n\t\t//here we're setting page <title> text\n\t\t$this->core->title = 'custom title';\n\t\t//and main page body source, which you can generate using your own methods in this controller class\n\t\t//by looking at $this->core->routes for internal paging\n\t\t$this->core->text = print_pre($this->core->routes, false);\n\t}", "function render() ;", "protected function _render()\n {\n }", "public function before_render() {}" ]
[ "0.6680758", "0.66792035", "0.6568818", "0.6427073", "0.63736224", "0.6359168", "0.6339016", "0.63382024", "0.62868935", "0.628492", "0.6282473", "0.6253914", "0.62176883", "0.62087375", "0.61511374", "0.6145371", "0.614004", "0.61151963", "0.6111418", "0.61074454", "0.61024433", "0.60943675", "0.6092844", "0.6083806", "0.6070464", "0.6064944", "0.60543954", "0.603416", "0.6016934", "0.60053825", "0.60036063", "0.598766", "0.5967624", "0.596426", "0.5930899", "0.5929507", "0.5906383", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.5904477", "0.59023196", "0.58959335", "0.5895182", "0.58604896", "0.5819284", "0.5819284", "0.5819284", "0.58188325", "0.58138186", "0.5809671", "0.5808245", "0.58074605", "0.5796258", "0.57896966", "0.5785542", "0.5781924", "0.5777444", "0.5775974" ]
0.59075534
60
Load data fixtures with the passed EntityManager
public function load(ObjectManager $manager) { for ($i = 1; $i < 6; $i++) { $task = new Task(); $task->setName($this->faker->jobTitle) ->setDescription($this->faker->text()); $this->addReference('Task-' . $i, $task); $manager->persist($task); } $manager->flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function loadData(ObjectManager $em);", "public function load(ObjectManager $manager)\n {\n // Fixtures are split into separate files\n }", "private function myLoadFixtures()\n {\n $em = $this->getDatabaseManager();\n\n // load fixtures\n $client = static::createClient();\n $classes = array(\n // classes implementing Doctrine\\Common\\DataFixtures\\FixtureInterface\n 'Demofony2\\AppBundle\\DataFixtures\\ORM\\FixturesLoader',\n );\n\n $this->loadFixtures($classes);\n }", "public function load(ObjectManager $manager)\n {\n $entities = Fixtures::load($this->getFixtures(), $manager);\n }", "private function loadGenerated(ObjectManager $em)\n {\n for ($i = 100; $i <= 130; $i++) {\n $fixture = new AlumniExperiences();\n\n $ref_aid = $this->getReference('alumni-anon-'.$i);\n\n $fixture\n ->setAlumni($em->merge($ref_aid))\n ->setOrganization('PT. '.$i)\n ->setDescription('Pekerjaan '.$i);\n\n $em->persist($fixture);\n }\n\n $em->flush();\n }", "protected function loadData(ObjectManager $em)\n {\n }", "public function load(ObjectManager $manager)\n {\n /**\n * Ingredients fixtures\n */\n\n // Ingredients List\n// $ingredientsList = array(\n// 'Cereals' => ['シリアル', 'cereals.jpg', 0],\n// 'Dairy' => ['乳製品', 'dairy.jpg', 0],\n// 'Fruits' => ['果物', 'fruits.jpg', 0],\n// 'Meat' => ['肉', 'meat.jpg', 0],\n// 'Nuts, seeds & oils' => ['ナツ、油', 'nuts-seeds-oils.jpg', 0],\n// 'Other ingredients' => ['その他', 'other-ingredients.jpg', 0],\n// 'Seafood' => ['シーフード', 'seafood.jpg', 0],\n// 'Spices & herbs' => ['スパイス&ハーブ', 'spices-and-herbs.jpg', 0],\n// 'Sugar products' => ['砂糖', 'sugar-products.jpg', 0],\n// 'Vegetables' => ['野菜', 'vegetables.jpg', 0]\n// );\n//\n// foreach ($ingredientsList as $key => $ingredient) {\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($key);\n// $ingredientDb->setNameJa($ingredient[0]);\n// $ingredientDb->setImage($ingredient[1]);\n// $ingredientDb->setParent($ingredient[2]);\n//\n// $manager->persist($ingredientDb);\n// $manager->flush();\n// }\n\n// $parentPath = \"web/images/ingredients\";\n// $parentDir = new DirectoryIterator(dirname($parentPath.\"/*\"));\n// $filetypes = array(\"jpg\", \"png\");\n//\n// foreach ($parentDir as $fileParentInfo) {\n// if (!$fileParentInfo->isDot() && $fileParentInfo->isFile()) {\n//\n// $fullName = str_replace('-',' ', ucfirst(substr($fileParentInfo->getFilename(), 0, -4)));\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($fullName);\n//\n// $ingredientDb->setImage($fileParentInfo->getFilename());\n// $ingredientDb->setParent(0);\n// $manager->persist($ingredientDb);\n// $manager->flush();\n//\n// $childPath = $parentPath.'/'.$fullName.'/*';\n// $currentId = $ingredientDb->getId();\n// $childDir = new DirectoryIterator(dirname($childPath));\n//\n// foreach ($childDir as $fileinfo) {\n// if (!$fileinfo->isDot() && $fileinfo->isFile() && in_array(strtolower($fileinfo->getExtension()), $filetypes)) {\n// var_dump($fileinfo->getFilename());\n//\n// $childFullName = str_replace('-',' ', ucfirst(substr($fileinfo->getFilename(), 0, -4)));\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($childFullName);\n// $ingredientDb->setImage($fullName.'/'.$fileinfo->getFilename());\n// $ingredientDb->setParent($currentId);\n//\n// $manager->persist($ingredientDb);\n// $manager->flush();\n//\n// }\n// }\n// }\n// }\n\n\n// $dir = new DirectoryIterator(dirname(\"web/images/ingredients/vegetables/*\"));\n//\n//\n//\n// foreach ($dir as $fileinfo) {\n// if (!$fileinfo->isDot() && $fileinfo->isFile() && in_array(strtolower($fileinfo->getExtension()), $filetypes)) {\n//\n// $fullName = str_replace('-',' ', ucfirst(substr($fileinfo->getFilename(), 0, -4)));\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($fullName);\n//// $ingredientDb->setNameJa($ingredient[0]);\n// $ingredientDb->setImage($fileinfo->getFilename());\n// $ingredientDb->setParent(10);\n////\n// $manager->persist($ingredientDb);\n// $manager->flush();\n//\n// }\n// }\n\n }", "public function load(ObjectManager $manager)\n {\n// $band->setName('Obituary' . rand(1, 100));\n// $band->setSubGenre('Death Metal');\n//\n// $manager->persist($band);\n// $manager->flush();\n \n Fixtures::load(__DIR__.'/fixtures.yml', $manager, [ 'providers' => [$this] ]);\n \n }", "public function load(ObjectManager $em)\n {\n $faker = FakerFactory::create();\n $admin = $this->getReference('user_admin');\n\n for ($i = 0 ; $i < 30 ; $i++) {\n $article = new Article();\n\n $article->setTitle($faker->sentence(4));\n $article->setAuthor($admin);\n $article->setContent('<p>'.$faker->text(500).'</p>');\n $article->setVisible(0 == $i % 2);\n $article->setCreated(new \\DateTime('-'.($i * 4).' day'));\n\n $em->persist($article);\n }\n\n $em->flush();\n }", "public function load(ObjectManager $manager)\n {\n // Array of data for the fixture\n $usersData = array(\n array(\n 'username' => 'superman',\n 'email' => 'superman@user.sup',\n 'password' => 'sup',\n 'roles' => array('ROLE_ADMIN'),\n ),\n array(\n 'username' => 'batman',\n 'email' => 'batman@user.bat',\n 'password' => 'bat',\n 'roles' => array('ROLE_ADMIN'),\n ),\n array(\n 'username' => 'spiderman',\n 'email' => 'spiderman@user.spi',\n 'password' => 'spi',\n// 'roles' => array(),\n 'roles' => array('ROLE_USER'),\n ),\n array(\n 'username' => 'Martine',\n 'email' => 'martine@user.fr',\n 'password' => 'mar',\n 'roles' => array(),\n ),\n array(\n 'username' => 'Jean',\n 'email' => 'jean@user.fr',\n 'password' => 'jea',\n 'roles' => array(),\n ),\n array(\n 'username' => 'Marc',\n 'email' => 'marc@user.fr',\n 'password' => 'mar',\n 'roles' => array(),\n ),\n array(\n 'username' => 'David',\n 'email' => 'david@user.fr',\n 'password' => 'dav',\n 'roles' => array(),\n ),\n\n );\n\n // Accessing the user manager service\n $userManager = $this->container->get('fos_user.user_manager');\n\n foreach ($usersData as $i => $userData)\n {\n $user = $userManager->createUser();\n $user->setUsername($userData['username']);\n $user->setEmail($userData['email']);\n $user->setPlainPassword($userData['password']);\n $user->setEnabled(true);\n $user->setRoles($userData['roles']);\n\n $manager->persist($user);\n $this->addReference(sprintf('user-%s', $i), $user);\n }\n $manager->flush();\n }", "public function loadData(ObjectManager $manager)\n {\n // $manager->persist($product);\n $this->createMany(50, \"abonne\", function($num){\n //\"abonne\" s'il est en clé étrangère dans une autre table\n //$num, quel numéro de boucle\n $prenom = $this->faker->firstName;\n $email = $prenom . \".\" . $this->faker->lastName . \"@yopmail.com\";\n return (new Abonne)->setPrenom($prenom)\n ->setEmail($email);\n });\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n for ($i=1; $i <= 100 ; $i++) { \n \t$article = new Article();\n \t$article->setTitre(\"Titre de l'article n°$i\")\n \t\t\t->setContenu(\"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae eum et vel inventore harum omnis minus. Minima neque perspiciatis, doloremque quia obcaecati harum, quae ut ipsa illo ad autem facilis beatae doloribus delectus veniam. Alias quibusdam praesentium saepe nisi repellat.\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci ab magnam dolor excepturi quidem blanditiis, consectetur reiciendis similique, voluptates incidunt odio accusantium quas.\n Officia sed, aliquid provident sapiente odio voluptate praesentium neque nobis, culpa animi consequatur ducimus atque repudiandae incidunt aperiam sint! Cum tempora hic velit.\n Dolorum pariatur facere vel consequuntur dignissimos a mollitia sint porro sequi, sed possimus temporibus eum. Ipsum facere quis eius harum, voluptates odit iusto.\n Mollitia, tempore, odio. Itaque sunt ducimus earum nostrum dolorum ratione saepe pariatur ipsum, in ad atque id, corporis, cum ea, omnis hic amet?\n Provident, iure quia nam minus praesentium velit hic placeat soluta ab recusandae, temporibus at aspernatur nisi magnam doloremque. Autem tempore inventore, unde architecto!\")\n \t\t\t->setDate(new \\DateTime());\n\n \t\t\t$manager->persist($article);\n }\n\n $manager->flush();\n }", "protected function reloadDataFixtures()\n {\n $em = $this->getEntityManager();\n $loader = new Loader;\n foreach ($this->dataFixturePaths as $path) {\n $loader->loadFromDirectory($path);\n }\n $purger = new ORMPurger($em);\n $executor = new ORMExecutor($em, $purger);\n $executor->execute($loader->getFixtures());\n $this->fixturesReloaded = true;\n }", "public function testLoadAllFixtures(): void\n {\n $this->loadFixtures();\n $article = $this->getTableLocator()->get('Articles')->get(1);\n $this->assertSame(1, $article->id);\n $category = $this->getTableLocator()->get('Categories')->get(1);\n $this->assertSame(1, $category->id);\n }", "public function testFixtureLoadOnDemand(): void\n {\n $this->loadFixtures('Categories');\n }", "public function load(ObjectManager $manager)\n {\n //FOR LOAD METHOD WITHOUT DROP TABLE \"symfony console doctrine:fixtures:load --append\"\n $contenu_fichier_json = file_get_contents(__DIR__.'/datas.json');\n $datas = json_decode($contenu_fichier_json, true);\n\n foreach($datas['tools'] as $tools ){\n $user = new User();\n $user->setUsername($this->faker->userName)\n ->setEmail($this->faker->email)\n ->setRoles(User::ROLE_USER)\n ->setPassword($this->encoder->encodePassword($user, \"Hub3E2021!\"));\n $manager->persist($user);\n\n $newTools = new Tools();\n $newTools->setName($tools[\"name\"])\n ->setDescription($tools[\"description\"])\n ->setRelation($user);\n $manager->persist($newTools);\n }\n $simpleUser = new User();\n $simpleUser->setUsername(\"user\")\n ->setEmail(\"user@user.fr\")\n ->setRoles(User::ROLE_USER)\n ->setPassword($this->encoder->encodePassword($simpleUser, \"Hub3E2021!\"));\n $manager->persist($simpleUser);\n\n $user = new User();\n $user->setUsername(\"admin\")\n ->setEmail(\"admin@admin.fr\")\n ->setRoles(User::ROLE_ADMIN)\n ->setPassword($this->encoder->encodePassword($user, \"Hub3E2021!\"));\n $manager->persist($user);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n #\n #\n //Fixtures::load(__DIR__.'/fixtures.yml', $manager);\n\n #\n # Same as above but with an extra 3th argument for the formatter providers\n # providers -> passing in this will add all providers to the yml file\n Fixtures::load(\n __DIR__.'/fixtures.yml',\n $manager,\n ['providers' => [$this] ]\n );\n\n\n\n #\n # Load yml file trough nativeloader\n #\n// $loader = new \\Nelmio\\Alice\\Fixtures\\Loader();\n// $objects = $loader->load(__DIR__.'/fixtures.yml', $manager);\n//\n// $persister = new \\Nelmio\\Alice\\Persister\\Doctrine($manager);\n// $persister->persist($objects);\n\n #\n # Loop a few times to create random entries\n #\n// // create 20 products! Bam!\n// for ($i = 0; $i < 20; $i++) {\n//\n// $genius = new Genius();\n// $genius->setName('Octopus'.rand(1, 100));\n// $genius->setSubFamily('Family'.rand(1, 100));\n// $genius->setSpeciesCount(rand(1, 100));\n// $genius->setFunFact('Funfact: '.rand(1, 100));\n// $genius->setLastUpdateAt( new \\DateTime(\"now\") );\n//\n// $manager->persist($genius);\n// $manager->flush();\n\n\n }", "public function load(ObjectManager $manager)\n {\n $userManager = $this->container->get('fos_user.user_manager');\n\n $user = $userManager->createUser();\n $user->setEmail('admin@gmail.com');\n $user->setUsername('admin');\n $user->setname('admin');\n $user->setPlainPassword('admin');\n $user->setEnabled(true);\n $user->addRole('ROLE_ADMIN');\n $this->addReference('user-admin', $user);\n $userManager->updateUser($user);\n\n // Fixture article !\n for ($i = 0; $i < 8; $i++) {\n $Article = new Article();\n $Article->setTitle('Titre' . $i);\n $Article->setContent('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.');\n $Article->setPrice('1399');\n $Article->setMainPicture('fixture0.jpeg');\n $Article->setGalleryPicture(['fixture1.jpeg','fixture2.jpeg','fixture3.jpeg','fixture4.jpeg','fixture5.jpeg','fixture6.jpeg']);\n $manager->persist($Article);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // Instance de la classe Faker avec un paramètre pour obtenir les données dans la langue souhaitée ->\n $faker = \\Faker\\Factory::create('fr_FR');\n\n // Création d'un tableau regroupant tous les faux utilisateurs ->\n $users = [];\n\n /*-------------------------------\n | CREATION D'UTILISATEURS |\n -------------------------------*/\n\n for ($m = 0; $m <= 10; $m++) {\n $user = new User();\n $user->setEmail($faker->email())\n ->setUsername($faker->name())\n ->setPassword($this->encoder->encodePassword($user, 'password'));\n\n $manager->persist($user);\n\n // Envoi de l'utilisateur vers le tableau ->\n $users[] = $user;\n } // EO for\n\n /*-------------------------------------------------------------------\n | CREATION DE CATEGORIES, D'ARTICLES, DE COMMENTAIRES ET DE LIKES |\n -------------------------------------------------------------------*/\n\n // Création de 3 fakes catégories ->\n for ($i = 1; $i <= 3; $i++) {\n $category = new Category();\n $category->setTitle($faker->sentence())\n ->setDescription($faker->paragraph());\n\n // Pour préparer la persistance des données ->\n $manager->persist($category);\n\n // Création de fakes articles à l'intérieur de ces catégories (entre 4 et 6) ->\n for ($j = 1; $j <= mt_rand(4, 6); $j++) {\n $article = new Article();\n $article->setTitle($faker->sentence())\n ->setContent($faker->paragraphs(5, true))\n ->setImage($faker->imageUrl(640, 480, 'Article illustration'))\n ->setCreatedAt($faker->dateTimeBetween('-6 months'))\n ->setCategory($category);\n\n $manager->persist($article);\n\n // Création de fakes commentaires pour ces articles (entre 4 et 10) ->\n for ($k = 1; $k <= mt_rand(4, 10); $k++) {\n $comment = new Comment();\n\n // Pour le createdAt du commentaire (forcément compris entre la date de création de l'article et aujourd'hui) ->\n $days = (new \\DateTime())->diff($article->getCreatedAt())->days;\n\n $comment->setAuthor($faker->name())\n ->setContent($faker->paragraphs(2, true))\n ->setCreatedAt($faker->dateTimeBetween('-' . $days . ' days'))\n ->setArticle($article);\n\n $manager->persist($comment);\n } // EO for\n\n // Création de fakes likes pour ces articles (entre 0 et 10) ->\n for ($l = 1; $l <= mt_rand(0, 10); $l++) {\n $like = new ArticleLike();\n $like->setArticle($article)\n ->setUser($faker->randomElement($users));\n\n $manager->persist($like);\n } // EO for\n\n } // EO for\n\n } // EO for\n\n /*-----------------------------\n | ENVOI DES FAUSSES DONNÉES |\n -----------------------------*/\n\n $manager->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n //création de faux articles avec faker sans mettre de 'use'\n $faker = \\Faker\\Factory::create('fr_FR');\n for ($i=0; $i < 10; $i++) { \n $article = new Article();\n $article->setTitle($faker->word(2, true))\n ->setContent($faker->paragraphs(2, true))\n ->setImage($faker->imageUrl(300, 250))\n ->setCreatedAt($faker->dateTimeBetween('-6 month'));\n\n //sauvegarder article (objet) dans un tableau\n $manager->persist($article);\n }\n \n //envoie en bdd\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n foreach( AbstractDataFixtures::CATEGORIES as $cat => $sub){\n $slugger = new AsciiSlugger();\n $mainCat = new Category();\n $mainCat\n ->setName($cat)\n ->setSlug($slugger->slug($cat));\n \n $manager->persist($mainCat);\n \n foreach ($sub as $subcats) {\n $subCat = new Category();\n $subCat\n ->setName($subcats)\n ->setSlug($slugger->slug($subcats))\n ->setParent($mainCat);\n \n $manager->persist($subCat);\n\n // mise en memoire les entité pour pouvoir y acceder dans d'autres fixtures\n // addReference : 2 parametres\n // identifiant unique de la référence\n // entité liée à la référence\n $this->addReference(\"subcategory-$subcats\", $subCat);\n }\n }\n \n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $this->manager = $manager;\n $this->faker = Faker\\Factory::create('fr_FR');\n\n // Executes the loadData function implemented by the user\n $this->loadData($manager);\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = \\Faker\\Factory::create('fr_FR');\n $user = [];\n for($i=0; $i < 10; $i++){\n $user = new User();\n $user->setFirstname($faker->firstname());\n $user->setLastname($faker->lastname());\n $user->setEmail($faker->email());\n $user->setPassword($faker->password());\n $user->setCreatedAt(new\\DateTime());\n $user->setBirthday(new\\DateTime());\n $manager->persist($user);\n $users[]= $user;\n\n }\n\n $category =[];\n for($i=0; $i < 3; $i++){\n $category = new Category();\n $category->setTitle($faker->text(50));\n $category->setDescription($faker->text(250));\n $category->setImage($faker->imageUrl());\n $manager->persist($category);\n $categories[] = $category;\n }\n $articles = [];\n for($i=0; $i < 6; $i++){\n $article =new Article();\n $article->setTitle($faker->text(50));\n $article->setContent($faker->text(1000));\n $article->setImage($faker->imageUrl());\n $article->setCreatedAt(new\\DateTimeImmutable());\n $article->addCategory($categories[$faker->numberBetween(0,2)]);\n $article->setAuthor($users[$faker->numberBetween(0,9)]);\n $manager->persist($article);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $faker = \\Faker\\Factory::create();\n\n $category = new Category();\n $category->setName($faker->sentence());\n $category->setDescription(\n $faker->realText($maxNbChars = 150, $indexSize = 2)\n );\n $manager->persist($category);\n $user = new User();\n $user->setUsername('username');\n $user->setEmail($faker->email());\n $user->setPassword($this->encoder->encodePassword($user, 'demo'));\n $user->setToken($faker->md5());\n $user->setIsValidated($faker->boolean());\n $user->setAvatar('avatarDefault.png');\n $user->setSubscribedAT($faker->dateTime());\n $user->setRoles(['ROLE_USER']);\n $manager->persist($user);\n for ($i = 1; $i <=10; $i++) {\n $trick = new Trick();\n $trick->setUser($user);\n $trick->setCategory($category);\n $trick->setName($faker->sentence());\n $content = '<p>'.join($faker->paragraphs(3), '</p><p>').'</p><p>';\n $trick->setDescription($content);\n $trick->setCreatedAt($faker->dateTime());\n $trick->setUpdatedAt($faker->dateTime());\n $manager->persist($trick);\n for ($j=1; $j<=5; $j++) {\n $comment = new Comment();\n $comment->setTrick($trick);\n $comment->setUser($user);\n $comment->setContent($faker->paragraph());\n $comment->setCommentedAt($faker->dateTime());\n $manager->persist($comment);\n }\n for ($k=1; $k<=3; $k++) {\n $image = new Illustration();\n $image->setTrick($trick);\n $image->setName($faker->name());\n $image->setUrl(\"fixtures$k.jpeg\");\n $manager->persist($image);\n }\n for ($m=1; $m<=3; $m++) {\n $media = new Video();\n $media->setTrick($trick);\n $media->setPlatform(\"youtube\");\n $media->setUrl('<iframe width=\"853\" height=\"480\" src=\"https://www.youtube.com/embed/V9xuy-rVj9w\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>');\n $manager->persist($media);\n }\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // TODO : Lorsque les fonctions de location seront créer refaire cette fixture en prenant en compte les état des véhicule (loué ou disponible)\n\n $faker = Factory::create('fr_FR');\n\n $users = $this->userRepository->findAll();\n $vehicle = $this->vehicleRepository->findBy(['state' => true]);\n\n\n for ($i = 0; $i <= 10; $i++) {\n $rental = new Rental();\n $rental->setClient($faker->randomElement($users));\n $rental->setVehicle($faker->randomElement($vehicle));\n $rental->setStartRentalDate(new DateTime());\n $rental->setEstimatedReturnDate(new DateTime());\n $rental->setRealReturnDate(new DateTime());\n $rental->setPrice($faker->randomFloat(2, 20, 220));\n\n $manager->persist($rental);\n }\n\n $manager->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n\n for($i=0;$i<15;$i++)\n {\n $post=new Post();\n $title=$faker->sentence($nbWords=5, $variableNbWords = true);\n $post->setTitle($title)\n ->setContent($faker->text($maxNbChars = 10000));\n\n $manager->persist($post);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n \n $user = new User();\n $user->setFirstname('Matthieu')\n ->setLastname('Poncet')\n ->setEmail('matthieu.poncet@parker.com')\n ->setPassword($this->passwordHasher->hashPassword($user,'123456'))\n ->setCreatedAt(new \\DateTime($faker->date('Y-m-d h:i')))\n ->setValid(true)\n ->setRoles(['ROLE_ADMIN']);\n\n $manager->persist($user);\n\n\n for ($i=0; $i < 10; $i++) { \n $category = new Category();\n $category->setTitle($faker->sentence(3))\n ->setDescription($faker->realText(600))\n ->setPicture('https://picsum.photos/300/200?id='.uniqid())\n ->setSlug($faker->slug(4));\n\n $manager->persist($category);\n for ($j=0; $j < 10; $j++) { \n $article = new Article();\n $article->setTitle($faker->sentence(3))\n ->setSubtitle($faker->sentence(10))\n ->setContent($faker->realText(600))\n ->setCreateAt(new \\DateTime($faker->date('Y-m-d H:i')))\n ->setPublishedAt(new \\DateTime($faker->date('Y-m-d H:i')))\n ->setPicture('https://picsum.photos/300/200?id='.uniqid())\n ->setValid(true)\n ->setAuthor($user)\n ->addCategory($category)\n ->setSlug($faker->slug(4));\n \n $manager->persist($article); \n }\n\n }\n\n\n $manager->flush();\n }", "private function loadItems(ObjectManager $em, $items)\n {\n foreach ($items as $ref => $item) {\n $fixture = new AlumniExperiences();\n\n $ref_aid = $this->getReference('alumni-'.$item['aid']);\n\n $fixture\n ->setAlumni($em->merge($ref_aid))\n ->setOrganization($item['organization']);\n\n if (array_key_exists('description', $item)) {\n $fixture->setDescription($item['description']);\n }\n\n if (array_key_exists('job_position', $item)) {\n $fixture->setJobPosition($item['job_position']);\n }\n\n if (array_key_exists('year_in', $item)) {\n $fixture->setYearIn($item['year_in']);\n }\n\n if (array_key_exists('year_out', $item)) {\n $fixture->setYearOut($item['year_out']);\n }\n\n $em->persist($fixture);\n }\n $em->flush();\n }", "public function load(ObjectManager $manager)\n {\n $this->manager = $manager;\n $this->faker = Faker::create();\n\n $this->loadData($manager);\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $faker = Factory::create('fr_FR');\n\n\n for ($i = 0; $i < 8; $i++) {\n $patient = new Patient();\n\n // $chrono = 1;\n\n $patient->setFirstName($faker->firstName())\n ->setLastName($faker->lastName)\n ->setBirthdate($faker->dateTimeBetween('-30 years', '-15 years'));\n\n $user = new User();\n $user->setUsername(strtolower(substr($patient->getFirstName(), 0, 1)) . '.' . strtolower($patient->getLastName()))\n ->setPatient($patient)\n ->setPassword($this->encoder->encodePassword($user, $patient->getBirthdate()->format('Y-m-d'))); // format mot de passe 2002-07-21\n\n $manager->persist($patient);\n $manager->persist($user);\n\n /*for ($c = 0; $c < mt_rand(0, 4); $c++) {\n $exercice = new Exercice();\n $exercice->setName(strtoupper($faker->randomLetter))\n ->setNumberOf($faker->numberBetween(5, 20))\n ->setPatient($patient)\n ->setChrono($chrono);\n\n $chrono++;\n\n $manager->persist($exercice);\n }*/\n }\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $faker = \\Faker\\Factory::create();\n \n for($i=0; $i<5; $i++)\n { \n $categorie = new Categorie();\n $categorie ->setTitre ($faker->sentence())\n ->setResumer ($faker->paragraph());\n \n $manager ->persist($categorie);\n \n for($j=0; $j<10; $j++)\n {\n $article = new Article();\n $article ->setTitle($faker->sentence())\n ->setContent($faker->paragraph($nbSentences = 10, $variableNbSentences = true))\n ->setImage($faker->imageUrl($width=400, $height=200))\n ->setCreatedAt(new \\DateTime())\n ->setCategorie ($categorie);\n \n $manager->persist($article);\n \n for($k=0; $k<10; $k++)\n {\n $commentaire = new commentaire();\n $commentaire ->setAuteur($faker->userName())\n ->setCommentaire($faker->paragraph())\n ->setCreatedAt(new \\DateTime())\n ->setArticle ($article);\n\n $manager->persist($commentaire);\n\n }\n }\n }\n\n $manager->flush(); \n \n }", "protected function loadData(ObjectManager $manager)\n {\n for ($y = 0; $y < 15; $y++) {\n $this->createMany(User::class, 100, function (User $user, int $i) use ($y) {\n if ($y === 0 && $i === 0) {\n // Create default user\n $user\n ->setEmail('user@gmail.com')\n ->setFirstName('Default')\n ->setLastName('User')\n ->setAge($this->faker->numberBetween(15, 100))\n ->setSex($this->faker->randomElement(GenderEnum::getAvailableTypes()))\n ->setAboutMe($this->faker->text)\n ->setPassword($this->encoder->encodePassword($user, 'test'))\n ->setRoles(['ROLE_USER']);\n return;\n }\n\n // Create random users\n $user\n ->setEmail(($y + 1) . $i . $this->faker->email)\n ->setFirstName($this->faker->firstName)\n ->setLastName($this->faker->lastName)\n ->setAge($this->faker->numberBetween(7, 120))\n ->setSex($this->faker->randomElement(GenderEnum::getAvailableTypes()))\n ->setAboutMe($this->faker->text)\n ->setPassword($this->encoder->encodePassword($user, $user->getEmail()))\n ->setRoles(['ROLE_USER']);\n }, $y);\n\n $manager->flush();\n }\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n\n for ($i = 0; $i < 10; $i++) {\n $post = new Post();\n $post->setTitle($faker->sentence($nbWords = 2, $variableNbWords = true))\n ->setContent($faker->sentence($nbWords = 10, $variableNbWords = true))\n ->setAuthor($faker->name())\n ->setCreatedAt($faker->dateTimeBetween('-6 months'));\n\n $manager->persist($post);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Faker\\Factory::create('fr_FR');\n //users \n // on créé 10 personnes\n for ($i = 0; $i < 10; $i++) {\n $user = new Users();\n $user->setName($faker->name);\n $manager->persist($user);\n\n $question = new Questions();\n $question->setTitle($faker->title);\n $question->setContent($faker->realText);\n $question->setUser($user);\n $manager->persist($question);\n\n $answer = new Answers();\n $answer->setContent($faker->realText);\n $answer->setStatus($faker->boolean);\n $answer->setQuestion($question);\n $manager->persist($answer);\n }\n\n //answers\n $manager->flush();\n }", "public function load(ObjectManager $em)\n {\n $faker = Faker\\Factory::create('fr_FR');\n\n for ($i = 0; $i < DataParameters::NB_PRODUCT; $i++)\n {\n $product = new Product();\n $product->setName($faker->word(1, true));\n $product->setDescription($faker->sentences(7, true));\n $em->persist($product);\n\n $this->setReference('product_id_' . $i, $product);\n }\n $em->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n $content1 = new Content();\n $content1->setName(\"Test_Content_1\");\n $content1->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content1->setOrdinance(1);\n $manager->persist($content1);\n\n $content2 = new Content();\n $content2->setName(\"Test_Content_2\");\n $content2->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content2->setOrdinance(2);\n $manager->persist($content2);\n\n $content3 = new Content();\n $content3->setName(\"Test_Content_3\");\n $content3->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content3->setOrdinance(3);\n $manager->persist($content3);\n\n $content4 = new Content();\n $content4->setName(\"Test_Content_4\");\n $content4->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content4->setOrdinance(4);\n $manager->persist($content4);\n\n $content5 = new Content();\n $content5->setName(\"Test_Content_5\");\n $content5->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content5->setOrdinance(5);\n $manager->persist($content5);\n\n $manager->flush();\n }", "protected function loadData(ObjectManager $manager)\n {\n }", "public function load(ObjectManager $manager)\n {\n $date = new \\DateTime();\n\n\n for ($i = 0; $i < 20; $i++) {\n $article = new Article();\n $article->setTitle('article ' . $i);\n $article->setContent($this->generer_lipsum(300, 'words'));\n $article->setAuthor('Bibi');\n $article->setDate( $date );\n $article->setCategory('catégorie ' . mt_rand(1, 5));\n $article->setViewCount(mt_rand(1, 1000));\n\n $manager->persist($article);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 100; $i <= 105; $i++)\n {\n $jobs_sensio_labs = new Job();\n $jobs_sensio_labs->setCategory($manager->merge($this->getReference(\"category-programming\")));\n $jobs_sensio_labs->setType(\"full-time\");\n $jobs_sensio_labs->setCompany(\"Sensio Labs\" . $i);\n $jobs_sensio_labs->setLogo(\"sensio-labs.gif\");\n $jobs_sensio_labs->setUrl(\"http://www.sensiolabs.com/\");\n $jobs_sensio_labs->setPosition(\"Web Developer\");\n $jobs_sensio_labs->setLocation(\"Paris, France\");\n $jobs_sensio_labs->setDescription(\"You've already developed websites with symfony and you want to work with Open-Source technologies. You have a minimum of 3 years experience in web development with PHP or Java and you wish to participate to development of Web 2.0 sites using the best frameworks available.\");\n $jobs_sensio_labs->setHowToApply(\"Send your resume to fabien[a]sensio.com\");\n $jobs_sensio_labs->setIsPublic(true);\n $jobs_sensio_labs->setIsActivated(true);\n $jobs_sensio_labs->setEmail(\"gabriel.udr@gmail.com\");\n $jobs_sensio_labs->setExpiresAt(new \\DateTime(\"+30 days\"));\n\n $manager->persist($jobs_sensio_labs);\n }\n\n for ($i = 100; $i <= 130; $i++)\n {\n $job_extreme_sensio = new Job();\n $job_extreme_sensio->setCategory($manager->merge($this->getReference('category-design')));\n $job_extreme_sensio->setType('part-time');\n $job_extreme_sensio->setCompany('Extreme Sensio ' . $i);\n $job_extreme_sensio->setLogo('extreme-sensio.gif');\n $job_extreme_sensio->setUrl('http://www.extreme-sensio.com/');\n $job_extreme_sensio->setPosition('Web Designer');\n $job_extreme_sensio->setLocation('Paris, France');\n $job_extreme_sensio->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $job_extreme_sensio->setHowToApply('Send your resume to fabien.potencier [at] sensio.com');\n $job_extreme_sensio->setIsPublic(true);\n $job_extreme_sensio->setIsActivated(true);\n $job_extreme_sensio->setEmail('job@example.com');\n $job_extreme_sensio->setExpiresAt(new \\DateTime('+30 days'));\n\n $manager->persist($job_extreme_sensio);\n }\n\n $manager->flush();\n }", "function load(ObjectManager $manager)\n\t{\n\t\t$entities = [\n\t\t\tEntity::createDefault(1, 18, 0), // 1\n\t\t\tEntity::createDefault(2, 5, 1), // 2\n\t\t\tEntity::createDefault(6, 15, 1), // 3\n\t\t\tEntity::createDefault(16, 17, 1), // 4\n\t\t\tEntity::createDefault(3, 4, 2), // 5\n\t\t\tEntity::createDefault(7, 8, 2), // 6\n\t\t\tEntity::createDefault(9, 10, 2), // 7\n\t\t\tEntity::createDefault(11, 14, 2), // 8\n\t\t\tEntity::createDefault(12, 13, 3), // 9\n\t\t];\n\t\tforeach ($entities as $entity) {\n\t\t\t$manager->persist($entity);\n\t\t}\n\t\t$manager->flush();\n\t}", "public function load(ObjectManager $manager)\n {\n $employees = array(\n array(\"remi\", \"rebeil\", \"blabla\", \"https://www.youtube.com/watch?v=HeNURpr3vaw\"),\n array(\"christophe\", \"lacassagne\", \"blathrhe\", \"https://www.youtube.com/watch?v=Ua4XhSoEQZ0\"),\n array(\"delphine\", \"janton\", \"zdfsdf\", \"https://www.youtube.com/watch?v=DD7hm67cfbc\"),\n );\n\n foreach ($employees as $employee) {\n $employeeObj = new Employees();\n $employeeObj->setFirstName($employee[0]);\n $employeeObj->setLastName($employee[1]);\n $employeeObj->setVideoDescription($employee[2]);\n $employeeObj->setVideoUrl($employee[3]);\n\n $manager->persist($employeeObj);\n unset($employeeObj);\n }\n $manager->flush();\n $manager->clear();\n }", "public function load(ObjectManager $manager)\r\n {\r\n\r\n $faker = Faker::create();\r\n foreach (range(1,20) as $key => $value){\r\n $tag = new Tag();\r\n $tag->setNome($faker->city);\r\n $this->addCustomers($tag);\r\n $this->addCampaigns($tag);\r\n $manager->persist($tag);\r\n }\r\n\r\n $manager->flush();\r\n }", "public function load(ObjectManager $manager)\n {\n // TODO: Implement load() method.\n //load medecin\n for($i=1;$i<20;$i++){\n $medecin= new Medecin();\n $medecin->setNomComplet('medecin'.$i);\n $medecin->setMatricule('mat'.$i);\n $manager->persist($medecin);\n }\n //load patient\n for($i=1;$i<20;$i++){\n $patient= new Patient();\n $patient->setNomComplet('patient'.$i);\n $patient->setDateNaissance(new \\DateTime());\n $patient->setNumDossier('dossier'.' '.$i);\n $manager->persist($patient);\n }\n $user = new User();\n $user->setEmail('admin@gmail.com');\n $user->setUsername('admin');\n $user->setPlainPassword('admin');\n $user->setEnabled(true);\n $manager->persist($user);\n\n //events\n $schedule = new Schedule();\n $schedule->setTitle('Yoga class');\n $today = new \\DateTime();\n $endate= new \\DateTime(\"tomorrow\");\n $schedule->setStart($today);\n $schedule->setEnd($endate);\n $manager->persist($schedule);\n $schedule = new Schedule();\n $schedule->setTitle('German class');\n $tomorrow = new \\DateTime('tomorrow');\n $schedule->setStart($tomorrow);\n $schedule->setEnd($tomorrow);\n $manager->persist($schedule);\n $schedule = new Schedule();\n $schedule->setTitle('rendez vous');\n $tomorrow = new \\DateTime('tomorrow');\n $schedule->setStart($tomorrow);\n $schedule->setEnd($tomorrow);\n $manager->persist($schedule);\n\n //load crenneau medecin\n/* for($i=1;$i<20;$i++){\n $crenneauMedecin=new CreneauxMedecin();\n $crenneauMedecin->setCodeCrenneaux('creMedecin n°'.$i);\n $crenneauMedecin->setMedecin($manager->getRepository('AppBundle:Medecin')->findOneBy(array('nomComplet'=>'medecin'.$i)));\n $crenneauMedecin->setHeureDebut(new \\DateTime());\n $crenneauMedecin->setHeureFin(new \\DateTime());\n $manager->persist($crenneauMedecin);\n\n }*/\n $manager->flush();\n }", "public function createData(EntityManager $em);", "protected function createFixtures()\n {\n // Due to a dubious bug(?) in doctrine - product types need to be loaded first.\n $typeFixtures = new LoadProductTypes();\n $typeFixtures->load($this->entityManager);\n $this->productType = $this->getProductTypeRepository()->find(self::PRODUCT_TYPE_ID);\n $this->addonProductType = $this->getProductTypeRepository()->find(self::PRODUCT_TYPE_ADDON_ID);\n\n $countries = new LoadCountries();\n $countries->load($this->entityManager);\n\n $this->contactTestData = new ContactTestData($this->container);\n\n $loadCurrencies = new LoadCurrencies();\n $loadCurrencies->load($this->entityManager);\n\n $this->currency = $this->getCurrencyRepository()->findByCode($this->defaultCurrencyCode);\n\n $unitFixtures = new LoadUnits();\n $unitFixtures->load($this->entityManager);\n $this->orderUnit = $this->getProductUnitRepository()->find(self::ORDER_UNIT_ID);\n\n $this->contentUnit = $this->getProductUnitRepository()->find(self::CONTENT_UNIT_ID);\n\n $taxClasses = new LoadTaxClasses();\n $taxClasses->load($this->entityManager);\n $this->taxClass = $this->getTaxClassRepository()->find(self::TAX_CLASS_ID);\n\n $countryTaxes = new LoadCountryTaxes();\n $countryTaxes->load($this->entityManager);\n\n $collectionTypes = new LoadCollectionTypes();\n $collectionTypes->load($this->entityManager);\n\n $mediaTypes = new LoadMediaTypes();\n $mediaTypes->load($this->entityManager);\n\n $attributeTypes = new LoadAttributeTypes();\n $attributeTypes->load($this->entityManager);\n $this->attributeType = $this->getAttributeTypeRepository()->find(self::ATTRIBUTE_TYPE_ID);\n\n $statusFixtures = new LoadProductStatuses();\n $statusFixtures->load($this->entityManager);\n $this->productStatus = $this->getProductStatusRepository()->find(Status::ACTIVE);\n $this->productStatusChanged = $this->getProductStatusRepository()->find(Status::CHANGED);\n $this->productStatusImported = $this->getProductStatusRepository()->find(Status::IMPORTED);\n $this->productStatusSubmitted = $this->getProductStatusRepository()->find(Status::SUBMITTED);\n\n $deliveryStatusFixtures = new LoadDeliveryStatuses();\n $deliveryStatusFixtures->load($this->entityManager);\n }", "public function load()\n {\n $this\n ->objectManager\n ->createQuery('DELETE FROM ' . Member::class)\n ->execute()\n ;\n Fixtures::load(\n __DIR__ . '/../../fixtures/members.yml',\n $this->objectManager\n );\n }", "public function load(ObjectManager $manager)\n {\n $faker = Factory::create();\n\n foreach (['ile-mysterieuse', 'dale' ] as $bookRef) {\n $book = $this->getReference($bookRef);\n $exemplaire = new Exemplaire();\n\n $exemplaire->setLivre($book);\n\n $exemplaire->setDateAcquis($faker->dateTime)\n ->setCode($faker->ean8)\n ->setCout(5000)\n ->setEtat(\"parfait\");\n\n $exemplaire->getLivre()->addExemplaire($exemplaire);\n\n $manager->persist($exemplaire);\n $manager->persist($book);\n $manager->flush();\n\n $this->addReference(\"exemplaire-$bookRef\", $exemplaire);\n }\n\n\n }", "public function load(ObjectManager $manager) {\n for ($i = 0; $i < 2; $i++) {\n $jobFaker = Faker\\Factory::create();\n\n // Employeer\n $employeer = new Employeers();\n $employeer->setUsername(\"empleador_$i\");\n $employeer->setEmail(\"empleador_$i@cuatrovientos.org\");\n $employeer->setPassword(\"4Vientos\");\n\n $employeer->setVCIF(\"82102288A\");\n $employeer->setVName($jobFaker->company);\n $employeer->setVLogo($jobFaker->imageUrl($width = 640, $height = 480));\n $employeer->setVDescription($jobFaker->sentence);\n $employeer->setVContactName($jobFaker->name);\n $employeer->setVContactPhone($jobFaker->phoneNumber);\n $employeer->setVContactMail($jobFaker->companyEmail);\n $employeer->setVLocation($jobFaker->address);\n $employeer->setNNumberOfWorkers($jobFaker->numberBetween(0, 255));\n $employeer->setCreationUser(\"InitialFixture\");\n $employeer->setCreationDate(new \\DateTime(\"2018-6-1\"));\n $employeer->setModificationUser(\"InitialFixture\");\n $employeer->setModificationDate(new \\DateTime(\"2018-6-1\"));\n\n $manager->persist($employeer);\n\n // Poemas\n \n $poema = new poemas();\n $poema->setUser();\n $poema->setTexto($texto);\n $poema->setCategory();\n \n // Offer\n $offer = new Offers();\n $offer->setVOfferCode(\"ACTIVE\");\n $offer->setVOfferType('full-time');\n $offer->setDActivationDate(new \\DateTime(\"2019-1-1\"));\n $offer->setDDueDate(new \\DateTime(\"2019-2-$i\"));\n $offer->setVPosition(\"Developer\");\n $offer->setLtextDuties($jobFaker->paragraph);\n $offer->setLtextDescription($jobFaker->paragraph);\n $offer->setVSalaray(\"1200\");\n $offer->setLtextExperienceRequirements($jobFaker->paragraph);\n $offer->setVLocation($jobFaker->city . ', ' . $jobFaker->country);\n\n $offer->setEmployeer($employeer);\n\n $offer->setCreationUser(\"InitialFixture\");\n $offer->setCreationDate(new \\DateTime(\"2018-6-1\"));\n $offer->setModificationUser(\"InitialFixture\");\n $offer->setModificationDate(new \\DateTime(\"2018-6-1\"));\n\n $manager->persist($offer);\n }\n\n // Creating 2 FormedStudents\n for ($i = 0; $i < 2; $i++) {\n $studentFaker = Faker\\Factory::create();\n\n $formedStudent = new FormerStudents();\n $formedStudent->setUsername(\"exalumno_$i\");\n $formedStudent->setEmail(\"exalumno_$i@cuatrovientos.org\");\n $formedStudent->setPassword(\"4Vientos\");\n\n $formedStudent->setVNIF($studentFaker->randomNumber(6));\n $formedStudent->setVName($studentFaker->firstName);\n $formedStudent->setVSurnames($studentFaker->lastName);\n $formedStudent->setVAddress($studentFaker->streetAddress);\n $formedStudent->setDBirthDate($studentFaker->dateTime);\n $formedStudent->setBVehicle($studentFaker->boolean);\n\n $formedStudent->setCreationUser(\"InitialFixture\");\n $formedStudent->setCreationDate(new \\DateTime(\"2018-8-1\"));\n $formedStudent->setModificationUser(\"InitialFixture\");\n $formedStudent->setModificationDate(new \\DateTime(\"2018-6-1\"));\n $manager->persist($formedStudent);\n }\n\n \n\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n\n $faker = Faker\\Factory::create('en_US');\n\n // Creating admin user\n $admin = new User();\n $admin->setEmail('admin@gruppetto.com');\n $admin->setRoles(['ROLE_ADMIN']);\n $admin->setPassword($this->passwordEncoder->encodePassword(\n $admin,\n 'adminpassword'\n ));\n\n $manager->persist($admin);\n\n // Creating cluber user : run team\n $cluber = new User();\n $cluber->setEmail('run-team@club.com');\n $cluber->setRoles(['ROLE_CLUBER']);\n $cluber->setPassword($this->passwordEncoder->encodePassword(\n $cluber,\n 'clubpassword'\n ));\n $manager->persist($cluber);\n\n // Creating cluber user : swim team\n $cluber2 = new User();\n $cluber2->setEmail('swim-team@club.com');\n $cluber2->setRoles(['ROLE_CLUBER']);\n $cluber2->setPassword($this->passwordEncoder->encodePassword(\n $cluber2,\n 'clubpassword'\n ));\n $manager->persist($cluber2);\n\n // Fixtures for profil -(//\n $profilClub = new ProfilClub();\n $profilClub->setNameClub('Run Team');\n $profilClub->setCityClub('Lille');\n $profilClub->setLogoClub('avatar2.jpg');\n $profilClub->setDescriptionClub('Petite equipe Lilloise');\n $profilClub->addUser($cluber);\n $manager->persist($profilClub);\n\n $profilClub2 = new ProfilClub();\n $profilClub2->setNameClub('Swim Team');\n $profilClub2->setCityClub('Douai');\n $profilClub2->setLogoClub(\n 'https://image.shutterstock.com/image-vector/swimming-club-logo-design-swimmer-600w-255149764.jpg'\n );\n $profilClub2->setDescriptionClub('Club de natation');\n $profilClub2->addUser($cluber2);\n $manager->persist($profilClub2);\n\n // Fixtures for profil Solo//\n $profilSolo = new ProfilSolo();\n $profilSolo->setLastname('Doe');\n $profilSolo->setFirstname('Jonh');\n $profilSolo->setBirthdate(new DateTime(141220));\n $profilSolo->setDescription('J\\'ai perdu la mémoire ! Mais j\\'aime nager en crawl.');\n $profilSolo->setGender(0);\n $profilSolo->setAvatar('https://randomuser.me/api/portraits/men/97.jpg');\n $profilSolo->setEmergencyContactName('Pascale Dino');\n $profilSolo->setLevel(1);\n $profilSolo->setSportFrequency(2);\n $profilSolo->setPhone('0000000000');\n $profilSolo->setEmergencyPhone('0000000000');\n $profilSolo->setProfilClub($profilClub2);\n $manager->persist($profilSolo);\n\n // Fixtures for profil Solo2//\n $profilSolo2= new ProfilSolo();\n $profilSolo2->setLastname('Franz');\n $profilSolo2->setFirstname('Albert');\n $profilSolo2->setBirthdate(new DateTime(141220));\n $profilSolo2->setDescription('Je suis Albert');\n $profilSolo2->setGender(0);\n $profilSolo2->setAvatar('https://randomuser.me/api/portraits/men/97.jpg');\n $profilSolo2->setEmergencyContactName('Pascale Dino');\n $profilSolo2->setLevel(1);\n $profilSolo2->setSportFrequency(2);\n $profilSolo2->setPhone('0000000000');\n $profilSolo2->setEmergencyPhone('0000000000');\n $profilSolo2->setProfilClub($profilClub2);\n $manager->persist($profilSolo2);\n\n\n // Creating lambda user\n $user = new User();\n $user->setProfilSolo($profilSolo);\n $user->setEmail('john-doe@msn.com');\n $user->setRoles(['ROLE_USER']);\n $user->setPassword($this->passwordEncoder->encodePassword(\n $user,\n 'userpassword'\n ));\n\n \n $manager->persist($user);\n\n /* $users[] = $user;*/\n \n // Creating lambda user2\n $user2 = new User();\n $user2->setProfilSolo($profilSolo2);\n $user2->setEmail('albert@msn.com');\n $user2->setRoles(['ROLE_USER']);\n $user2->setPassword($this->passwordEncoder->encodePassword(\n $user2,\n 'userpassword'\n ));\n $manager->persist($user2);\n\n // Fixtures for sportCategory//\n $sportCategory = new SportCategory();\n $sportCategory->setNameCategory('Running');\n $manager->persist($sportCategory);\n\n // Fixtures for sport//\n $sport= new Sport();\n $sport->setSportName('Course à pied');\n $sport->setSportCategory($sportCategory);\n $manager->persist($sport);\n\n // Fixtures for event page//\n $event = new Event();\n $event->setNameEvent('Entrainement de course ');\n $event->setLevelEvent(1);\n $event->setDateEvent($faker->dateTimeThisMonth);\n $event->setTimeEvent($faker->dateTimeThisMonth);\n $event->setDescription('Courses dans la nature');\n $event->setParticipantLimit('10');\n $event->setPlaceEvent('23 place des ecoliers 59000 Lille');\n $event->setSport($sport);\n $event->setCreatorClub($profilClub);\n $manager->persist($event);\n\n // Fixtures for GeneralChatClub\n $messageClub = new GeneralChatClub();\n $messageClub->setProfilClub($profilClub2);\n $messageClub->setDateMessage(new DateTime('now'));\n $messageClub->setContentMessage('Bonjour, je suis un club de natation');\n $manager->persist($messageClub);\n\n \n //participation\n /*for ($j = 0; $j < mt_rand(0, 10); $j++) {\n $participationLike = new ParticipationLike();\n\n $participationLike->setEvent($event)\n ->setUser($faker->randomElement($users));\n $manager->persist($participationLike);\n\n\n $manager->flush();\n }*/\n\n $messageClub2 = new GeneralChatClub();\n $messageClub2->setProfilClub($profilClub);\n $messageClub2->setDateMessage(new DateTime('now'));\n $messageClub2->setContentMessage('Bonjour, je suis un club de run');\n $manager->persist($messageClub2);\n\n $messageSolo = new GeneralChatClub();\n $messageSolo->setProfilClub($profilClub2);\n $messageSolo->setProfilSolo($profilSolo);\n $messageSolo->setDateMessage(new DateTime('now'));\n $messageSolo->setContentMessage('Bonjour, je suis John.');\n $manager->persist($messageSolo);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $exampleSet = array();\n\n shuffle(self::$tweets);\n shuffle(self::$growls);\n shuffle(self::$hisses);\n\n shuffle(self::$feathersDescriptions);\n shuffle(self::$furDescriptions);\n shuffle(self::$scaleDescriptions);\n\n shuffle(self::$names);\n\n $this->loadMammals($exampleSet);\n $this->loadReptiles($exampleSet);\n $this->loadBirds($exampleSet);\n\n foreach ($exampleSet as $example)\n {\n $manager->persist($example);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $person1 = new Person();\n $person1->setPseudo('MOI')\n ->setLastname('Pikachu')\n ->setLevel(100)\n ->setGuild('Pokemon')\n ->setRank($this->getReference(RankFixtures::RANK_ONE))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_ONE));\n\n $manager->persist($person1);\n $manager->flush();\n\n $person2 = new Person();\n $person2->setPseudo('KAL-EL')\n ->setLastname('Kent')\n ->setFirstname('Clark')\n ->setLevel(90)\n ->setGuild('Alien')\n ->setRank($this->getReference(RankFixtures::RANK_TWO))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_TWO));\n\n $manager->persist($person2);\n $manager->flush();\n\n $person3 = new Person();\n $person3->setPseudo('One-PunchMan')\n ->setLastname('Saitama')\n ->setLevel(90)\n ->setGuild('Human')\n ->setRank($this->getReference(RankFixtures::RANK_TWO))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_THREE));\n\n $manager->persist($person3);\n $manager->flush();\n\n $person4 = new Person();\n $person4->setPseudo('Mugiwara')\n ->setName('Monkey.D')\n ->setFirstname('Luffy')\n ->setLevel(80)\n ->setGuild('Pirate')\n ->setRank($this->getReference(RankFixtures::RANK_FOUR))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_FOUR));\n\n $manager->persist($person4);\n $manager->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n $user = new User();\n $user\n ->setUsername('admin')\n ->setEmail('admin@test.com')\n ->setIsActive(true)\n ;\n $password = $this->encoder->encodePassword($user, '20E!xI&$Zx');\n $user->setPassword($password);\n\n $manager->persist($user);\n\n\n $user = new User();\n $user\n ->setUsername('pete')\n ->setEmail('P.C.Collingwood@shu.ac.uk')\n ->setIsActive(true)\n ;\n $password = $this->encoder->encodePassword($user, 'shuoop');\n $user->setPassword($password);\n\n $manager->persist($user);\n\n // Create some customers\n for ($i = 0; $i < 25; $i++) {\n $cust = new Customer();\n $cust\n ->setAccountRef('CUST000' . $i)\n ->setName($this->faker->company)\n ->setTelephone($this->faker->phoneNumber)\n ->setEmail($this->faker->companyEmail)\n ->setContactName($this->faker->name)\n ->setAddress($this->address())\n ;\n $manager->persist($cust);\n }\n\n // Create some vehicles\n for ($i = 0; $i < 15; $i++) {\n $vehicle = new Vehicle();\n $vehicle\n ->setRegistration(strtoupper($this->vehicleReg()))\n ->setModel(ucfirst($this->faker->word))\n ->setMake(ucfirst($this->faker->word))\n ->setVehicleType($manager->getReference(VehicleType::class, $this->vehicleTypes()[array_rand($this->vehicleTypes())]))\n ->setDepth($this->faker->randomFloat(2, 0, 100))\n ->setWidth($this->faker->randomFloat(2, 0, 100))\n ->setHeight($this->faker->randomFloat(2, 0, 100))\n ;\n $manager->persist($vehicle);\n }\n\n // Create some drivers\n for ($i = 0; $i < 15; $i++) {\n $driver = new Driver();\n $driver\n ->setName($this->faker->name)\n ->setTelephone($this->faker->phoneNumber)\n ->setEmail($this->faker->freeEmail)\n ->setTradingName($driver->getName())\n ->setAddress($this->address())\n ->setSubcontractor(false)\n ;\n $manager->persist($driver);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 0; $i < 20; $i++) {\n $article = new Article();\n $article->setTitle('product '.$i)\n ->setSlug(\"product-\".$i)\n ->setContent(\"Contenu du produit...\")\n ->setPicture(\"\")\n ->setIsPublished(true)\n ->setPublishedAt(new \\DateTime('now'))\n ->setUpdatedAt(new \\DateTime('now'))\n ;\n $manager->persist($article);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n\n $parent = new Parents();\n $parent->setPrenom(\"Soiei\");\n $parent->setNom(\"SIe\");\n $parent->setEmail(\"SIseos\");\n $parent->setAdr(\"SOskaoisa\");\n $parent->setMethodeContact(\"OISoeie\");\n $parent->setTel(\"S0Keiosk\");\n $parent->setResponsable(\"OSkes\");\n\n $parents=new ArrayCollection();\n $parents->add($parent);\n\n // create 20 products! Bam!\n for ($i = 0; $i < 3; $i++) {\n $eleve = new Eleve();\n $parent->setEleve($eleve);\n\n $eleve->setNom('NomEns '.$i);\n $eleve->setPrenom('PrenomEns '.$i);\n $eleve->setUsername('setUsername '.$i);\n $eleve->setPassword('setPassword '.$i);\n $eleve->setEmail('setEmail '.$i);\n $eleve->setAdresse('setAdresse '.$i);\n $eleve->setRoles(['ROLE_ELEVE']);\n $eleve->setImageName(\"tester.jpg\");\n $eleve->setDateNaissance(new \\DateTime());\n $eleve->setTelephone(\"2205826\".$i);\n $eleve->setSex(\"H\");\n $eleve->addParent($parent);\n\n\n $manager->persist($eleve);\n $this->addReference('eleve'.$i, $eleve);\n\n }\n\n $manager->flush();\n }", "protected function _loadFixture($fixture)\n {\n $this->db->query(file_get_contents(\n NL_TEST_DIR.\"/tests/migration/fixtures/$fixture.sql\"\n ));\n }", "public function load(ObjectManager $manager)\r\n {\r\n $disciplinas = $manager->getRepository('BackendBundle:Disciplinas')->findAll();\r\n\r\n foreach ($disciplinas as $disciplina) {\r\n $deportesTinn = new CampeonatoDisciplina();\r\n $deportesTinn->setMaximo(50); \r\n $deportesTinn->setMinimo(50);\r\n $deportesTinn->setInicio(new \\DateTime('2016-11-21'));\r\n $deportesTinn->setFin(new \\DateTime('2016-12-16'));\r\n $deportesTinn->setDisciplina($disciplina);\r\n $deportesTinn->setCampeonato($this->getReference('campeonato'));\r\n $deportesTinn->setAbierto(50);\r\n $deportesTinn->setEntrenador(1);\r\n $deportesTinn->setAsistente(1);\r\n $deportesTinn->setDelegado(1);\r\n $deportesTinn->setMedico(1);\r\n $deportesTinn->setLogistico(1);\r\n $manager->persist($deportesTinn);\r\n $manager->flush(); \r\n }\r\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $empresa1=new Empresas();\n $empresa1->setNombre(\"Vodafone\");\n $empresa1->setDireccion('C/La piruleta 34');\n $empresa1->setFechaRegistro(new \\DateTime('2019-05-04'));\n $manager->persist($empresa1);\n\n $empresa2=new Empresas();\n $empresa2->setNombre(\"Apple\");\n $empresa2->setDireccion('C/Inventada 24');\n $empresa2->setFechaRegistro(new \\DateTime('1980-03-10'));\n $manager->persist($empresa2);\n\n $empresa3=new Empresas();\n $empresa3->setNombre(\"Xiaomi\");\n $empresa3->setDireccion('C/Inexistente 1');\n $empresa3->setFechaRegistro(new \\DateTime('2010-06-12'));\n $manager->persist($empresa3);\n\n $empresa4=new Empresas();\n $empresa4->setNombre(\"Acer\");\n $empresa4->setDireccion('Avda. El Brillante 9');\n $empresa4->setFechaRegistro(new \\DateTime('2004-08-22'));\n $manager->persist($empresa4);\n\n $empresa5=new Empresas();\n $empresa5->setNombre(\"Philips\");\n $empresa5->setDireccion('C/No se 7');\n $empresa5->setFechaRegistro(new \\DateTime('1995-06-02'));\n $manager->persist($empresa5);\n\n\n $empleado1=new Empleados();\n $empleado1->setNombre('Manuel');\n $empleado1->setApellidos('Jimenez Rodriguez');\n $empleado1->setEstadoCivil('soltero');\n $empleado1->setActivo(true);\n $empleado1->setImagen(null);\n $empleado1->setEmpresa($empresa1);\n $empleado1->setNumeroHijos(0);\n $empleado1->setFechaNacimiento(new \\DateTime('2020-01-01'));\n $manager->persist($empleado1);\n\n $empleado2=new Empleados();\n $empleado2->setNombre('Gonzalo');\n $empleado2->setApellidos('Sanchez Lopez');\n $empleado2->setEstadoCivil('divorciado');\n $empleado2->setActivo(true);\n $empleado2->setImagen(null);\n $empleado2->setEmpresa($empresa1);\n $empleado2->setNumeroHijos(1);\n $empleado2->setFechaNacimiento(new \\DateTime('1940-05-10'));\n $manager->persist($empleado2);\n\n $empleado3=new Empleados();\n $empleado3->setNombre('Maria');\n $empleado3->setApellidos('Fernandez Alamo');\n $empleado3->setEstadoCivil('casado');\n $empleado3->setActivo(true);\n $empleado3->setImagen(null);\n $empleado3->setEmpresa($empresa1);\n $empleado3->setNumeroHijos(3);\n $empleado3->setFechaNacimiento(new \\DateTime('1990-01-01'));\n $manager->persist($empleado3);\n\n $empleado4=new Empleados();\n $empleado4->setNombre('Ana');\n $empleado4->setApellidos('Cabezas Rodriguez');\n $empleado4->setEstadoCivil('viudo');\n $empleado4->setActivo(true);\n $empleado4->setImagen(null);\n $empleado4->setEmpresa($empresa2);\n $empleado4->setNumeroHijos(0);\n $empleado4->setFechaNacimiento(new \\DateTime('1993-04-10'));\n $manager->persist($empleado4);\n\n $empleado5=new Empleados();\n $empleado5->setNombre('Raul');\n $empleado5->setApellidos('Prieto Martinez');\n $empleado5->setEstadoCivil('soltero');\n $empleado5->setActivo(true);\n $empleado5->setImagen(null);\n $empleado5->setEmpresa($empresa3);\n $empleado5->setNumeroHijos(0);\n $empleado5->setFechaNacimiento(new \\DateTime('2001-05-12'));\n $manager->persist($empleado5);\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $entry1 = new Entry();\n $entry1->setAvgSpeed(10.0);\n $dateInput = \"2014-01-01\";\n $date = $date = new DateTime();\n $date->setTimestamp(strtotime($dateInput));\n $entry1->setDate($date);\n $entry1->setDistance(12);\n $entry1->setTime(1.2);\n $entry1->setUserId(2);\n $manager->persist($entry1);\n\n $entry2 = new Entry();\n $entry2->setAvgSpeed(2.0);\n $dateInput = \"2013-01-01\";\n $date = $date = new DateTime();\n $date->setTimestamp(strtotime($dateInput));\n $entry2->setDate($date);\n $entry2->setDistance(10);\n $entry2->setTime(5);\n $entry2->setUserId(2);\n $manager->persist($entry2);\n\n\n print(\"Creating some entries\");\n $manager->flush();\n\n }", "public function load(ObjectManager $manager): void\n {\n for ($i = 1; $i < 16; $i++) {\n $task = new Task();\n $task\n ->setTitle('task'.$i)\n ->setContent(\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius at ligula nec sollicitudin.'\n )\n ->setCreatedAt(new DateTime())\n ;\n if ($i < 6) {\n $task->setAuthor(null);\n } elseif ($i > 5 && $i < 11) {\n $task->setAuthor(\n $this->getReference(UserFixtures::AUTHOR_REFERENCE_PREFIX.'1')\n );\n } elseif ($i > 10) {\n $task->setAuthor(\n $this->getReference(UserFixtures::AUTHOR_REFERENCE_PREFIX.'2')\n );\n }\n\n $manager->persist($task);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n /* for($i = 1; $i <= 10; $i++){\n $eleve = new Eleve();\n\n $eleve->setNom(\"Nom n° {$i} \")\n ->setPrenom(\"Prenom n° {$i} \")\n ->setDateNaissanceAt(new \\DateTime())\n ->setMoyenne($i)\n ->setAppreciation(\"Appreciation n° {$i} \")\n ;\n \n $manager->persist($eleve);\n } */\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n\n $images = [\n 'ballon.jpg',\n 'hamac.jpg',\n 'ventilo.jpg',\n 'parasol.jpg',\n 'ete.jpg',\n 'mer-ete.jpg',\n 'ete-plage.jpg'\n\n ];\n\n //Recuperation du Faker\n $generator = Factory::create('fr_FR');\n // Populateur d'Entités (se base sur /src/Entity)\n $populator = new Populator($generator, $manager);\n\n //Creation des categories\n $populator->addEntity(Category::class, 10);\n $populator->addEntity(Tag::class, 20);\n $populator->addEntity(User::class, 20);\n $populator->addEntity(Product::class, 30, [\n 'price' => function () use ($generator) {\n return $generator->randomFloat(2, 0, 9999999, 99);\n },\n 'imageName' => function() use ($images) {\n return $images[rand(0, sizeof($images)-1)];\n }\n\n\n ]);\n\n // Flush\n $populator->execute();\n }", "public function load(ObjectManager $manager)\n {\n $faker = \\Faker\\Factory::create();\n $projets = $manager->getRepository(Projet::class)->findAll();\n $devis = $manager->getRepository(Devis::class)->findAll();\n\n $facture = new Facture();\n $facture->setIdProjet( $projets[array_rand($projets)]);\n $facture->setAutresCharges($faker->randomFloat());\n $facture->setDevis($devis[array_rand($devis)]);\n $facture->setNbrHeures($faker->randomDigitNotNull);\n $facture->setNomFacture($faker->randomLetter);\n $facture->setPrixHT($faker->randomFloat());\n $facture->setPrixTTC($faker->randomFloat());\n $facture->setTauxH($faker->randomDigitNotNull);\n $manager->persist($facture);\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $p1 = new Post();\n $p1->setTitle('Donec mollis turpis orci');\n $p1->setBody('Ut molestie lectus porttitor vel. Aenean sagittis sed mi vitae suscipit. Maecenas eu odio risus. Cras ut libero in diam faucibus condimentum in sit amet sem. Nullam ac varius libero, ac suscipit nisl. Vivamus ullamcorper tortor in lacus lacinia, a porttitor quam iaculis. Vestibulum nec tincidunt sapien, nec maximus diam. Aliquam lobortis sit amet lacus sed maximus. Fusce posuere eget enim nec mollis. Nam vel leo posuere, consectetur sapien sit amet, pulvinar justo.');\n $p1->setAuthor($this->getAuthor($manager, 'David'));\n\n $p2 = new Post();\n $p2->setTitle('Sed pharetra blandit velit id laoreet');\n $p2->setBody('Nulla sodales justo eleifend ipsum efficitur vehicula. In vel pretium libero. Vestibulum dignissim tortor eu efficitur faucibus. Nullam dictum dictum orci, ut consequat mauris volutpat quis. Nam blandit porta orci, aliquet mollis elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean maximus nibh vel purus mollis, eget egestas ipsum viverra. Ut eu maximus enim, vitae luctus magna. In vitae facilisis magna. Nulla ut condimentum metus, ut condimentum odio. Etiam euismod massa id nibh scelerisque, sit amet condimentum enim malesuada.');\n $p2->setAuthor($this->getAuthor($manager, 'Eddie'));\n\n $p3 = new Post();\n $p3->setTitle('Nullam dignissim ipsum sed faucibus finibus');\n $p3->setBody('Maecenas in dui ex. Integer luctus dui metus, eu elementum elit aliquet non. Vestibulum mollis ullamcorper risus. Donec pharetra, mauris at malesuada faucibus, orci odio vehicula risus, id euismod tortor mauris sed libero. Nam libero risus, pharetra quis tortor ut, dapibus luctus dolor. Etiam consequat fermentum lectus. Phasellus id tempus purus, sed ullamcorper dolor. In id justo nibh.');\n $p3->setAuthor($this->getAuthor($manager, 'Eddie'));\n\n $manager->persist($p1);\n $manager->persist($p2);\n $manager->persist($p3);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $p1 = new Personne();\n $p1->setNom(\"Milo\");\n $manager->persist($p1);\n\n $p2 = new Personne();\n $p2->setNom(\"Tya\");\n $manager->persist($p2);\n\n $p3 = new Personne();\n $p3->setNom(\"Lili\");\n $manager->persist($p3);\n\n $continent1=new Continent();\n $continent1->setLibelle(\"Europe\");\n $manager->persist($continent1);\n\n $continent2=new Continent();\n $continent2->setLibelle(\"Asie\");\n $manager->persist($continent2);\n\n $continent3=new Continent();\n $continent3->setLibelle(\"Afrique\");\n $manager->persist($continent3);\n\n $continent4=new Continent();\n $continent4->setLibelle(\"Océanie\");\n $manager->persist($continent4);\n\n $continent5=new Continent();\n $continent5->setLibelle(\"Amérique\");\n $manager->persist($continent5);\n\n $c1 = new Famille();\n $c1 ->setDescription(\"Animaux vertébrés nourissant leurs petis avec du lait\")\n ->setLibelle(\"Mammifères\")\n ;\n $manager->persist($c1);\n\n $c2 = new Famille();\n $c2 ->setDescription(\"Animaux vertébrés qui rampent\")\n ->setLibelle(\"Reptiles\")\n ;\n $manager->persist($c2);\n\n $c3 = new Famille();\n $c3 ->setDescription(\"Animaux invertébrés du monde aquatique\")\n ->setLibelle(\"Poissons\")\n ;\n $manager->persist($c3);\n\n\n $a1= new Animal();\n $a1->setNom(\"Chien\")\n ->setDescription(\"Un animal domestique\")\n ->setImage(\"chien.png\")\n ->setPoids(10)\n ->setDangereux(false)\n ->setFamille($c1)\n ->addContinent($continent1)\n ->addContinent($continent2)\n ->addContinent($continent3)\n ->addContinent($continent4)\n ->addContinent($continent5)\n\n ;\n $manager->persist($a1);\n\n $a2= new Animal();\n $a2->setNom(\"Cochon\")\n ->setDescription(\"Un animal d'élevage\")\n ->setImage(\"cochon.png\")\n ->setPoids(300)\n ->setDangereux(false)\n ->setFamille($c1)\n ->addContinent($continent1)\n ->addContinent($continent5)\n\n\n ;\n $manager->persist($a2);\n\n $a3= new Animal();\n $a3->setNom(\"Serpent\")\n ->setDescription(\"Un animal dangereux\")\n ->setImage(\"serpent.png\")\n ->setPoids(5)\n ->setDangereux(true)\n ->setFamille($c2)\n ->addContinent($continent2)\n ->addContinent($continent3)\n ->addContinent($continent4)\n\n ;\n $manager->persist($a3);\n\n $a4= new Animal();\n $a4->setNom(\"Crocodile\")\n ->setDescription(\"Un animal très dangereux\")\n ->setImage(\"croco.png\")\n ->setPoids(500)\n ->setDangereux(true)\n ->setFamille($c2)\n ->addContinent($continent3)\n ->addContinent($continent4)\n ;\n $manager->persist($a4);\n\n $a5= new Animal();\n $a5->setNom(\"Requin\")\n ->setDescription(\"Un animal marin très dangereux\")\n ->setImage(\"requin.png\")\n ->setPoids(800)\n ->setDangereux(true)\n ->setFamille($c3)\n ->addContinent($continent4)\n ->addContinent($continent5)\n ;\n $manager->persist($a5);\n\n $d1 = new Dispose();\n $d1 ->setPersonne($p1)\n ->setAnimal($a1)\n ->setNb(30);\n $manager->persist($d1);\n\n $d2 = new Dispose();\n $d2 ->setPersonne($p1)\n ->setAnimal($a2)\n ->setNb(10);\n $manager->persist($d2);\n\n $d3 = new Dispose();\n $d3 ->setPersonne($p1)\n ->setAnimal($a3)\n ->setNb(2);\n $manager->persist($d3);\n \n $d4 = new Dispose();\n $d4 ->setPersonne($p2)\n ->setAnimal($a3)\n ->setNb(5);\n $manager->persist($d4);\n\n $d5 = new Dispose();\n $d5 ->setPersonne($p2)\n ->setAnimal($a4)\n ->setNb(2);\n $manager->persist($d5);\n\n $d6 = new Dispose();\n $d6 ->setPersonne($p3)\n ->setAnimal($a5)\n ->setNb(20);\n $manager->persist($d6);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n\n for ($i = 0; $i < 30; $i++){\n $adherent = new Adherent();\n for ($i = 0; $i < 2; $i++){\n $sexe = new Sexe();\n $sexe->setNom($faker->lastName);\n $manager->persist($sexe);\n }\n for ($j = 0; $j < 2; $j++){\n $filiere = new Filiere();\n $filiere->setNom($faker->lastName);\n $manager->persist($filiere);\n }\n for ($i = 0; $i < 5; $i++){\n $poste = new Poste();\n $poste->setNom($faker->lastName);\n $manager->persist($poste);\n }\n $adherent\n ->setNom($faker->name)\n ->setPrenom($faker->lastName)\n ->setSexe($sexe)\n ->setPoste($poste)\n ->setFiliere($filiere)\n ->setMatricule('20G0062'.$i)\n ->setMdp('password');\n $manager->persist($adherent);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $translator = $this->container->get(\"translator\");\n\n /* These are the standard data of the system */\n $standardInserts = [\n [\n 'layoutId' => 0,\n 'title' => $translator->trans('Listing'),\n 'updated' => new \\DateTime(),\n 'entered' => new \\DateTime(),\n 'status' => 'enabled',\n 'price' => 0.00,\n 'catId' => '',\n 'editable' => 'n',\n ],\n ];\n\n $repository = $manager->getRepository('ListingBundle:ListingTemplate');\n\n foreach ($standardInserts as $listingTemplateInsert) {\n $query = $repository->findOneBy([\n 'title' => $listingTemplateInsert['title'],\n ]);\n\n $listingTemplate = new ListingTemplate();\n\n /* checks if the ListingTemplate already exist so they can be updated or added */\n if ($query) {\n $listingTemplate = $query;\n }\n\n $listingTemplate->setLayoutId($listingTemplateInsert['layoutId']);\n $listingTemplate->setTitle($listingTemplateInsert['title']);\n $listingTemplate->setUpdated($listingTemplateInsert['updated']);\n $listingTemplate->setEntered($listingTemplateInsert['entered']);\n $listingTemplate->setStatus($listingTemplateInsert['status']);\n $listingTemplate->setPrice($listingTemplateInsert['price']);\n $listingTemplate->setCatId($listingTemplateInsert['catId']);\n $listingTemplate->setEditable($listingTemplateInsert['editable']);\n\n $manager->persist($listingTemplate);\n }\n\n $manager->flush();\n }", "function load(ObjectManager $manager)\n {\n\n $data = $this->getData();\n\n foreach ($data as $userData) {\n $user = new User();\n\n $user->setUsername($userData['username']);\n $user->setEmail($userData['email']);\n $user->setPlainPassword($userData['plainPassword']);\n $user->setEnabled($userData['enabled']);\n $user->setSuperAdmin($userData['superAdmin']);\n $manager->persist($user);\n $manager->flush();\n $this->setReference($userData['reference'], $user);\n }\n\n// $manager->flush();\n//\n// $admin = new User();\n// $admin->setUsername('admin');\n// $admin->setEmail('admin@mail.net');\n// $admin->setPlainPassword('admin');\n// $admin->setEnabled(true);\n// $admin->setSuperAdmin(true);\n// $manager->persist($admin);\n//\n// $user1 = new User();\n// $user1->setUsername('user1');\n// $user1->setEmail('user1@mail.net');\n// $user1->setPlainPassword('user1');\n// $user1->setEnabled(true);\n// $user1->setSuperAdmin(false);\n// $manager->persist($user1);\n//\n// $manager->flush();\n//\n// $this->setReference('user_admin', $admin);\n// $this->setReference('user_user1', $user1);\n }", "protected function getFixtures()\n {\n return array(\n // __DIR__ . '/../../Resources/fixtures/majora_entitys.yml',\n );\n }", "public function load(ObjectManager $manager)\n {\n $ushuaia = new Localidad();\n $ushuaia->setNombre('Ushuaia');\n $ushuaia->setCodigoPostal('9410');\n $rioGrande = new Localidad();\n $rioGrande->setNombre('Río Grande');\n $rioGrande->setCodigoPostal('9420');\n\n $manager->persist($ushuaia);\n $manager->persist($rioGrande);\n $manager->flush();\n\n // Los objetos $ushuaia y $riogrande pueden ser referenciados por otros\n // fixtures que tengan un orden más alto, vía 'ushuaia' y 'riogrande'.\n $this->addReference('ushuaia', $ushuaia);\n $this->addReference('riogrande', $rioGrande);\n\n }", "protected function setUp()\n {\n self::bootKernel();\n\n $this->em = static::$kernel->getContainer()\n ->get('doctrine')\n ->getManager();\n $schemaTool = new SchemaTool($this->em);\n $metadata = $this->em->getMetadataFactory()->getAllMetadata();\n\n // Drop and recreate tables for all entities\n $schemaTool->dropSchema($metadata);\n $schemaTool->createSchema($metadata);\n $users = new LoadUserData();\n $users->setContainer(static::$kernel->getContainer());\n $users->load($this->em);\n }", "public function load(ObjectManager $manager)\n {\n $seed = [];\n for ($i = 0; $i < 20; $i += 2) {\n $seed[$i] = $this->faker->dateTimeBetween('-1 month', 'yesterday');\n $seed[$i+1] = $this->faker->dateTimeInInterval($seed[$i], '+10 hours');\n }\n\n sort($seed);\n\n for ($i = 0; $i < 20; $i += 2) {\n $interval = new TimeInterval();\n /** @var Task $task */\n $task = $this->getReference('Task-' . random_int(1, 5));\n if ($task->getCreatedAt() > $seed[$i]) {\n $task->setCreatedAt($this->faker->dateTimeInInterval($seed[$i], '-2 days'));\n }\n\n $interval->setStartsAt($seed[$i])\n ->setEndsAt($seed[$i+1])\n ->setTask($task)\n ;\n\n $manager->persist($interval);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n //*\n $faker= Faker\\Factory::create();\n for ($i=0;$i<5;$i++){\n $group = new Group();\n $group->setName($faker->company);\n $group->setRoles(array($this->getRandomRole()));\n $manager->persist($group);\n }\n $manager->flush();\n //*/\n }", "public function load(ObjectManager $em)\n {\n\n /* Create lucie.ginette with teacher role and student role */\n $testUser1 = new User();\n $testUser1->setLogin(\"lucie.ginette\");\n $testUser1->setFirstName(\"Lucie\");\n $testUser1->setLastName(\"GINETTE\");\n $testUser1->setMail(\"lucie.ginette@lms.local\");\n $testUser1->setAuthType('internal');\n $testUser1->setSalt(md5(time()));\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($testUser1);\n $testUser1->setPassword($encoder->encodePassword('1234', $testUser1->getSalt()));\n $testUser1->setStudentRole(new StudentRole());\n $testUser1->setTeacherRole(new TeacherRole());\n\n /* Create marc.thomas with admin role */\n $testUser2 = new User();\n $testUser2->setLogin(\"marc.thomas\");\n $testUser2->setFirstName(\"Marc\");\n $testUser2->setLastName(\"THOMAS\");\n $testUser2->setMail(\"marc.thomas@lms.local\");\n $testUser2->setAuthType('internal');\n $testUser2->setSalt(md5(time()));\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($testUser2);\n $testUser2->setPassword($encoder->encodePassword('5678', $testUser2->getSalt()));\n $testUser2->setAdminRole(new AdminRole());\n\n /* Creation of 10 generic sample students */\n for ($i = 0; $i < 10; $i++) {\n $testUser = new User();\n $testUser->setLogin('student.' . $i);\n $testUser->setFirstName('StudentFirstName ' . $i);\n $testUser->setLastName('StudentLastName ' . $i);\n $testUser->setMail('student.' . $i . '@lms.local');\n $testUser->setAuthType('internal');\n $testUser->setSalt(md5(time()));\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($testUser);\n $testUser->setPassword($encoder->encodePassword('student' . $i, $testUser->getSalt()));\n $testUser->setStudentRole(new StudentRole());\n $em->persist($testUser);\n }\n\n $em->persist($testUser1);\n $em->persist($testUser2);\n $em->flush();\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 0; $i < 5; $i++) {\n $equipo = new Equipos();\n $equipo->setNombre('Equipo '.$i);\n $manager->persist($equipo);\n for ($x = 0; $x < 23; $x++) {\n $jugador = new Jugadores();\n $jugador->setNombre(\"Nombre \".$x);\n $jugador->setApellido(\"Apellido \".$x);\n $jugador->setEquipos($equipo);\n $manager->persist($jugador);\n }\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n // configurer la langue\n //$faker = Factory::create('fr_FR');\n //for ($p=0; $p < 3; $p++) { \n //$users = new User();\n //$harsh = $this->encoder->encodePassword($users, 'password');\n // users\n //$users->setPrenom($faker->firstname);\n //$users->setNom($faker->lastname);\n //$users->setPassword($harsh);\n //$users->setEmail($faker->email);\n //$users->setProfil($this->getReference(ProfilFixtures::PROFIL));\n //$users->setProfil($this->getReference($p));\n\n // persist\n //$manager->persist($users);\n //}\n\n //$manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // TODO: Implement load() method.\n $participant1 = new Participant();\n $participant1->setNom('BAUDRY');\n $participant1->setPrenom('Quentin');\n $participant1->setPseudo('qbaudry');\n $participant1->setTelephone('0123456789');\n $participant1->setMail('quentin@gmail.com');\n $participant1->setRoles(['ROLE_USER']);\n $participant1->setActif(false);\n $password = $this->encoder->encodePassword($participant1, '123');\n $participant1->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE1);\n $participant1->setSite($site);\n\n $participant2 = new Participant();\n $participant2->setNom('TENAUD');\n $participant2->setPrenom('Willy');\n $participant2->setPseudo('wtenaud');\n $participant2->setTelephone('0123456789');\n $participant2->setMail('willy@gmail.com');\n $participant2->setRoles(['ROLE_USER']);\n $participant2->setActif(true);\n $password = $this->encoder->encodePassword($participant2, '123');\n $participant2->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE4);\n $participant2->setSite($site);\n\n $participant3 = new Participant();\n $participant3->setNom('LELODET');\n $participant3->setPrenom('Bastien');\n $participant3->setPseudo('blelodet');\n $participant3->setTelephone('0123456789');\n $participant3->setMail('bastien@gmail.com');\n $participant3->setRoles(['ROLE_USER']);\n $participant3->setActif(true);\n $password = $this->encoder->encodePassword($participant3, '123');\n $participant3->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE3);\n $participant3->setSite($site);\n\n $participant4 = new Participant();\n $participant4->setNom('SUPER');\n $participant4->setPrenom('Admin');\n $participant4->setPseudo('admin');\n $participant4->setTelephone('0123456789');\n $participant4->setMail('admin@gmail.com');\n $participant4->setRoles(['ROLE_ADMIN']);\n $participant4->setActif(true);\n $password = $this->encoder->encodePassword($participant4, '123');\n $participant4->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE1);\n $participant4->setSite($site);\n\n $manager->persist($participant1);\n $manager->persist($participant2);\n $manager->persist($participant3);\n $manager->persist($participant4);\n\n $photo1 = new Profil();\n $photo1->setParticipant($participant1);\n $photo2 = new Profil();\n $photo2->setParticipant($participant2);\n $photo3 = new Profil();\n $photo3->setParticipant($participant3);\n $photo4 = new Profil();\n $photo4->setParticipant($participant4);\n\n $manager->persist($photo1);\n $manager->persist($photo2);\n $manager->persist($photo3);\n $manager->persist($photo4);\n\n $manager->flush();\n\n $this->addReference(self::PARTICIPANT_REFERENCE1, $participant1);\n $this->addReference(self::PARTICIPANT_REFERENCE2, $participant2);\n $this->addReference(self::PARTICIPANT_REFERENCE3, $participant3);\n $this->addReference(self::PARTICIPANT_REFERENCE4, $participant4);\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create();\n $faker->seed(2);\n\n for ($i = 0; $i < 20; $i++) {\n $user = $this->getReference('users_user' . $faker->numberBetween(1, 24));\n $article = $this->getReference('articles_article' . $faker->numberBetween(0, 19));\n \n $share = new Shares();\n $share\n ->setArticles($article)\n ->setUser($user)\n ->setSharedAt($faker->dateTimeInInterval('-10 months', '+6 months'));\n $manager->persist($share);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n for($i=1; $i<= 50; $i++){\n //génération aléatoire de date\n $timestamp = mt_rand(1, time());\n $randomDate = date('Y-m-d H:i:s', $timestamp);\n //tableau d'auteurs\n $auteurs = ['Verlaine', 'Hugo', 'Voltaire', 'Philip K Dick', 'Zola', 'Dumas', 'Molière'];\n //génération de lorem\n $content = simplexml_load_file('http://www.lipsum.com/feed/xml?amount=1&what=paras&start=0')->lipsum;\n\n $user = new User();\n if($i===1){\n $roles = ['ROLE_ADMIN', 'ROLE_USER'];\n }else{\n $roles = ['ROLE_USER'];\n }\n $user->setUsername('user' .$i);\n $user->setEmail('user'.$i.'@gmail.com');\n $user->setRoles($roles);\n $plainPwd = 'mdp';\n $mdpEncoded = $this->encoder->encodePassword($user, $plainPwd);\n $user->setPassword($mdpEncoded);\n\n\n\n\n $categorie = new Categorie();\n $categorie->setLibelle('catégorie' . $i);\n $categorie->setDescription('description' . $i);\n $categorie->setDateCreation(new \\DateTime($randomDate));\n\n $message = new Message();\n $message->setSujet('sujet' .$i);\n $message->setContenu($content);\n $message->setEmail('email' .$i);\n $message->setNom($auteurs[array_rand($auteurs)]);\n $message->setDateenvoi(new \\DateTime($randomDate));\n\n $article = new Article();\n $article->setTitle('title' .$i);\n $article->setContent($content);\n $article->setAuthor($auteurs[array_rand($auteurs)]);\n $article->setDatePubli(new \\DateTime($randomDate));\n\n\n\n $manager->persist($categorie);\n $manager->persist($message);\n $manager->persist($article);\n $manager->persist($user);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\r\n {\r\n $data = [\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Single',\r\n ],\r\n 'reference' => 'family_status_1'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Married',\r\n ],\r\n 'reference' => 'family_status_2'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Divorced',\r\n ],\r\n 'reference' => 'family_status_3'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Widowed',\r\n ],\r\n 'reference' => 'family_status_4'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'In active search',\r\n ],\r\n 'reference' => 'family_status_5'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'It\\'s Complicated',\r\n ],\r\n 'reference' => 'family_status_6'\r\n ],\r\n ];\r\n\r\n foreach ($data as $itemData) {\r\n $entity = $this->fillEntityFromArray($itemData['fields'], \\ApiBundle\\Entity\\FamilyStatuses::class);\r\n $manager->persist($entity);\r\n if(array_key_exists('reference', $itemData)){\r\n $this->addReference($itemData['reference'], $entity);\r\n }\r\n }\r\n $manager->flush();\r\n\r\n }", "public function load(ObjectManager $manager)\r\n {\r\n $suffix = 'A';\r\n for($i=0;$i<10;$i++)\r\n {\r\n $project = (new Project())\r\n ->setName('Project'.$suffix);\r\n $suffix++;\r\n\r\n $manager->persist($project);\r\n }\r\n\r\n $manager->flush();\r\n }", "public function load(ObjectManager $manager)\n {\n $actividades = $manager->createQuery('Select a FROM EquipoBundle:Actividad a')\n ->setMaxResults(20)\n ->getResult();\n\n foreach ($actividades as $actividad) {\n\n for ($j=1; $j<=5; $j++) {\n $anuncio = new Anuncio();\n\n $nombre = $this->getNombre();\n $anuncio->setNombre($nombre);\n $anuncio->setDescripcion($this->getDescripcion());\n $anuncio->setSlug(Util::slugify($nombre));\n $anuncio->setFecha(new \\DateTime('now - '.rand(1, 150).' days'));\n $anuncio->setActividad($actividad);\n\n $manager->persist($anuncio);\n\n }\n }\n $manager->flush();\n }", "public function setupFixtures()\n {\n if ($this->_fixtures === null) {\n $loadedFixtures = [];\n foreach ($this->fixtures() as $fixtureClass) {\n $loadedFixtures[$fixtureClass] = Yii::createObject($fixtureClass);\n }\n\n $this->_fixtures = $loadedFixtures;\n }\n }", "public function load(ObjectManager $om)\n {\n // auto save to db example\n // $members = Fixtures::load(__DIR__.'/members.yml', $om);\n\n $loader = new Loader();\n $members = $loader->load(__DIR__.'/members.yml');\n\n\n $manager = $this->container->get('member.manager');\n\n\n foreach ($members as $member) {\n $manager->updateMember($member, false);\n }\n\n $persister = new Doctrine($om);\n $persister->persist($members);\n }", "public function load(ObjectManager $manager)\n {\n $centers = Yaml::parseFile(__DIR__.'/centersData.yaml');\n\n // loop on 3 centers and set data\n for ($i = 0; $i < 3; $i++) {\n // Center\n $center = New Center();\n $center->setName($centers['name'][$i]);\n $center->setCode(124 + $i);\n $center->setPicture((124 + $i).'.jpg');\n $center->setDescription($centers['description'][$i]);\n\n $address = new Address();\n $address->setAddress($centers['address'][$i]);\n $address->setCity($centers['city'][$i]);\n $address->setZipCode($centers['zipCode'][$i]);\n\n $center->setAddress($address);\n\n $this->addReference(\"center\".$i, $center);\n\n $manager->persist($center);\n }\n\n $manager->flush();\n }", "function load(ObjectManager $manager)\n {\n $data = $this->getData();\n $i = 0;\n\n foreach ($data as $categoryName) {\n $category = new Category();\n $category->setTitle($categoryName);\n $manager->persist($category);\n $this->addReference('category_' . (++$i), $category);\n\n $subData = $this->getData($i);\n $j = 0;\n foreach ($subData as $subcategoryName) {\n $subCategory = new Category();\n $subCategory->setTitle($subcategoryName);\n $subCategory->setParent($category);\n $manager->persist($subCategory);\n $this->addReference('category_' . $i . '_' . (++$j), $subCategory);\n }\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n \t$admin = (new User('admin'))\n \t\t\t\t->setPlainPassword('123')\n \t\t\t\t->addRole(User::ROLE_ADMIN);\n// $tokenAdmin = $JWTTokenManager->create($admin);\n\n \t$customer = (new User('customer'))\n \t\t\t\t->setPlainPassword('123')\n \t\t\t\t->addRole(User::ROLE_CUSTOMER);\n// $tokenCustomer = $JWTTokenManager->create($customer);\n\n \t$manager->persist($admin);\n \t$manager->persist($customer);\n\n $coffeesData = [\n ['name' => 'ristretto', 'intensity' => 10, 'price' => 3, 'stock' => 20],\n ['name' => 'cubita', 'intensity' => 6, 'price' => 2, 'stock' => 50],\n ['name' => 'bustelo', 'intensity' => 9, 'price' => 6, 'stock' => 5],\n ['name' => 'serrano', 'intensity' => 10, 'price' => 3, 'stock' => 10]\n ];\n\n foreach ($coffeesData as $key => $value) {\n $coffee = (new Coffee())\n ->setName($value['name'])\n ->setIntensity($value['intensity'])\n ->setTextPrice($value['price'])\n ->setStock($value['stock']);\n $manager->persist($coffee);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $dbmanager)\n {\n $employee1 = Employee::createUser(\"johndoe\", \"password123\", \"John Doe\", \"johndoe@test.com\", \"123-456-7890\");\n $employee2 = Employee::createUser(\"janedoe\", \"password123\", \"Jane Doe\", \"janedoe@test.com\", null);\n $employee3 = Employee::createUser(\"billybob\", \"password123\", \"Billy Bob\", \"billybob@test.com\", \"198-765-4321\");\n $employee4 = Employee::createUser(\"kevinbacon\", \"password123\", \"Kevin Bacon\", \"kevinbacon@test.com\", \"534-765-6524\");\n $employee5 = Employee::createUser(\"jamesbond\", \"password123\", \"James Bond\", \"jamesbond@test.com\", \"432-007-2353\");\n\n $dbmanager->persist($employee1);\n $dbmanager->persist($employee2);\n $dbmanager->persist($employee3);\n $dbmanager->persist($employee4);\n $dbmanager->persist($employee5);\n\n # Create a bunch of managers\n $manager1 = Manager::createUser(\"randyrhoads\", \"password123\", \"Randy Roads\", \"randyrhoads@test.com\", \"333-231-4432\");\n $manager2 = Manager::createUser(\"dansmith\", \"password123\", \"Dan Smith\", null, \"883-233-4441\");\n\n $dbmanager->persist($manager1);\n $dbmanager->persist($manager2);\n\n # Create a bunch of shifts\n $begin = new \\DateTime('2017-10-01 08:00:00');\n $end = new \\DateTime('2017-11-01 08:00:00');\n\n # A shift for every day inbetween the above dates\n $interval = new \\DateInterval('P1D');\n $daterange = new \\DatePeriod($begin, $interval ,$end);\n\n $managers = [$manager1, $manager2];\n $employees = [$employee1, $employee2, $employee3, $employee4, $employee5, null];\n\n # Create three shifts for each day with random employees and random managers.\n # The null value in the employee list is to allow for empty shifts\n foreach($daterange as $date){\n $shiftEmployeesKeys = array_rand($employees, 3);\n $shiftManagerKey = array_rand($managers);\n\n foreach ($shiftEmployeesKeys as $employeeKey) {\n $startDateTime = clone $date;\n $endDateTime = clone $date;\n $endDateTime->modify('+8 hours');\n\n $shift = new Shift();\n $shift->setStartTime($startDateTime);\n $shift->setEndTime($endDateTime);\n $shift->setBreak(0.5);\n $shift->setEmployee($employees[$employeeKey]);\n $shift->setManager($managers[$shiftManagerKey]);\n $dbmanager->persist($shift);\n }\n }\n\n $dbmanager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // projects\n $preorder = new Project();\n $preorder->setName('preorder.it');\n $preorder->setSlug('preorder-it');\n $preorder->setUrl('http://preorder.it');\n $preorder->setDate(new \\DateTime('now'));\n $preorder->setDescription('Press-releases and reviews of the latest electronic novelties. The possibility to leave a pre-order.');\n $preorder->setUsers('<dl><dt>art-director and designer</dt><dd>Oleg Ulasyuk</dd></dl>');\n $preorder->setOnFrontPage(0);\n $preorder->setOrdernum(0);\n $preorder->addCategory($manager->merge($this->getReference('category-development')));\n $manager->persist($preorder);\n\n $eprice = new Project();\n $eprice->setName('eprice.kz');\n $eprice->setSlug('eprice-kz');\n $eprice->setUrl('http://eprice.kz');\n $eprice->setDate(new \\DateTime('now'));\n $eprice->setDescription('Comparison of the prices of mobile phones, computers, monitors, audio and video in Kazakhstan');\n $eprice->setOnFrontPage(1);\n $eprice->setOrdernum(1);\n $eprice->addCategory($manager->merge($this->getReference('category-development')));\n $manager->persist($eprice);\n\n $manager->flush();\n\n $this->addReference('project-preorder', $preorder);\n $this->addReference('project-eprice', $eprice);\n\n for ($i = 0; $i < 16; $i++) {\n $example = new Project();\n $example->setName('example.com_' . $i);\n $example->setSlug('example-com_' . $i);\n $example->setUrl('http://example.com');\n $example->setDate(new \\DateTime('now'));\n $example->setDescription('As described in RFC 2606, we maintain a number of domains such as EXAMPLE.COM and EXAMPLE.ORG for documentation purposes. These domains may be used as illustrative examples in documents without prior coordination with us. They are not available for registration.');\n $example->setOnFrontPage(0);\n $example->setOrdernum(2 + $i);\n $example->addCategory($manager->merge($this->getReference('category-development')));\n $manager->persist($example);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $categories = $this->categoryRepository->findAll();\n $type = $this->typeRepository->findAll();\n\n for($i = 1; $i < 40; $i++){\n $product = new Product();\n $name = 'product' . $i;\n\n $product->setPrice(rand(3, 50));\n $product->setName($name);\n $product->setCategory($categories[array_rand($categories)]);\n $product->setSlug($this->slugify->slugify($name));\n $product->setDescription('whatever' . $i);\n $product->setProductType($type[array_rand($type)]);\n\n $manager->persist($product);\n }\n $manager->flush();\n }", "public function loadFixtures($path) : void\n {\n /** @var EntityManager $em */\n $em = $this->getApplicationServiceLocator()->get(EntityManager::class);\n $em->getConnection()->exec('SET foreign_key_checks = 0');\n $loader = new Loader();\n $loader->loadFromDirectory($path);\n $purger = new ORMPurger($em);\n $purger->setPurgeMode(ORMPurger::PURGE_MODE_TRUNCATE);\n $executor = new ORMExecutor($em, $purger);\n $executor->execute($loader->getFixtures());\n $em->getConnection()->exec('SET foreign_key_checks = 1');\n }", "public static function loadFixture()\n {\n //include __DIR__ .'/../_files/customer.php';\n include __DIR__ .'/../_files/order_fee_variation.php';\n\n }", "public function setUp()\n {\n $this->fixtures('articles');\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n // Créer 2 Catégories\n $category1 = (new Category())->setLabel(\"fruit\");\n $category2 = (new Category())->setLabel(\"exotic\");\n //setProduct\n $manager->persist($category1, $category2);\n\n // Créer 1 Images\n $picture = new Picture();\n $picture\n ->setUrl(\"https://dummyimage.com/200x100.png\")\n ->setDescription(\"iezfj\");\n $manager->persist($picture);\n \n // Créer 3 Produits\n $products = [\n \"Banana\" => 3,\n \"Apple\" => 2,\n \"Grapes\"=> 4\n ];\n\n $productEntity = [];\n\n foreach ($products as $k => $v) {\n $fruit = new Product();\n $fruit\n ->setTitle($k)\n ->setPrice($v)\n ->setRef(\"773894\")\n ->setDescription(\"tasty fruit\")\n ->setInStock(true)\n ->setStockQuantiy(42)\n ->setCategory($category1)\n ->addPicture($picture);\n \n $productEntity[] = $fruit;\n $manager->persist($fruit);\n }\n\n // Créer 1 Utilisateur\n $user = new User();\n $user\n ->setEmail(\"banana@jokes.com\")\n ->setPassword(\"zeiopjJIO%ZEOIJ\")\n ->setCreatedAt(new \\DateTime())\n ->setFirstName(\"Joe\")\n ->setLastName(\"Crazy\");\n $manager->persist($user);\n \n // Créer 2 Lignes de commandes\n $orderLine = new OrderLine();\n $orderLine\n ->setQuantity(34);\n $manager->persist($orderLine);\n \n // Créer 1 Commande\n $order = new Order();\n $order\n ->setCreatedAt(new \\DateTime())\n ->setShippingAt(new \\DateTime(\"2021-08-19\"))\n ->setTotal(42,2)\n ->setValid(false)\n ->addOrderLine($orderLine)\n ->setUser($user);\n\n $manager->persist($order);\n\n\n //////\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n// $pegawai1 = new Pegawai();\n// $pegawai1->setNama('Pegawai 1');\n// $pegawai1->setUser(NewUserFixtures::USER_SUPER_ADMIN);\n// $pegawai1->setTempatLahir('Jakarta');\n// $pegawai1->setTanggalLahir(new DateTimeImmutable());\n// $pegawai1->setJenisKelamin(JenisKelaminFixtures::LAKI);\n// $pegawai1->setAgama(AgamaFixtures::AGAMA_1);\n// $pegawai1->setNik('9999999999999999');\n// $pegawai1->setNip9('999999999');\n// $pegawai1->setNip18('999999999999999999');\n// $manager->persist($pegawai1);\n//\n// $manager->flush();\n//\n// $this->addReference(self::PEGAWAI_1, $pegawai1);\n }", "public function load(ObjectManager $manager)\n {\n // Url\n $url = \"https://my.api.mockaroo.com/json_users_with_avatar.json\";\n // Appel de la fonction de récupération des données\n $datas = $this->makeRequest( $url );\n\n\n // Ensuite on interprète le jeu de données\n foreach ( $datas as $data )\n {\n // Nouvelle instance d'Actor\n $actor = new Actor();\n\n // Charger les données\n $actor->setFirstname( $data['firstname'] )\n ->setLastname( $data['lastname'] )\n ->setAge( $data['age'] )\n ->setImage( $data['image'] )\n ->setBiography( $data['biography'] );\n\n // Persistance en base\n $manager->persist( $actor );\n }\n\n // Méthode 2 : à la main\n // Nouvelle instance d'Actor\n $actor = new Actor();\n\n // Charger les données\n $actor->setFirstname( \"Pascal\" )\n ->setLastname( \"CALVAT\" )\n ->setAge( \"50\" )\n ->setImage( \"https://robohash.org/nostrumnonaut.jpg?size=50x50&set=set1\" )\n ->setBiography( \"Formation Symfony\" );\n\n // Persistance en base\n $manager->persist( $actor );\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $propriete = new propriete(); \n $propriete->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete->setNomPropriete(\"villa bonheur\");\n $propriete->setTypepropriete(\"Appartement\");\n \n $propriete2 = new propriete(); \n $propriete2->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete2->setNomPropriete(\"villa\");\n $propriete2->setTypepropriete(\"Maison\");\n \n $propriete3 = new propriete(); \n $propriete3->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete3->setNomPropriete(\"villa bonheur\");\n $propriete3->setTypepropriete(\"Villa\");\n \n $propriete4 = new propriete(); \n $propriete4->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete4->setNomPropriete(\"villa\");\n $propriete4->setTypepropriete(\"Villa\");\n \n /*GESTION DES CLES */\n $propriete->setAdresse($this->getReference('user_adrPropriete'));\n $propriete->setProprietaire($this->getReference('loca_proprio'));\n \n $propriete2->setAdresse($this->getReference('user_adrPropriete2'));\n $propriete2->setProprietaire($this->getReference('loca_proprio2'));\n \n $propriete3->setAdresse($this->getReference('user_adrPropriete'));\n $propriete3->setProprietaire($this->getReference('loca_proprio'));\n \n $propriete4->setAdresse($this->getReference('user_adrPropriete'));\n $propriete4->setProprietaire($this->getReference('loca_proprio2'));\n \n $manager->persist($propriete);$manager->persist($propriete2);\n $manager->persist($propriete3);$manager->persist($propriete4);\n $manager->flush();\n \n $this->addReference('loca_propriete', $propriete);\n $this->addReference('loca_propriete2', $propriete2);\n $this->addReference('loca_propriete3', $propriete3);\n $this->addReference('loca_propriete4', $propriete4);\n }", "public function load(ObjectManager $manager)\r\n {\r\n\r\n /**\r\n * Database `hackathon2019`\r\n */\r\n\r\n /** new user @fr */\r\n\r\n $user = new User();\r\n $user->setMail('francois0roger@gmail.com');\r\n $user->setMd5Password(md5('test'));\r\n $user->setNom('Roger');\r\n $user->setPrenom('Francois');\r\n $user->setPrivilege(1);\r\n\r\n $manager->persist($user);\r\n\r\n $manager->flush();\r\n\r\n /* `hackathon2019`.`regions` */\r\n $regions = array(\r\n array('ville_nom_simple' => 'saint genis pouilly','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'peronnas','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'miribel','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'divonne les bains','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lagnieu','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'amberieu en bugey','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ferney voltaire','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'viriat','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'oyonnax','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montluel','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'belley','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'jassans riottier','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meximieux','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'prevessin moens','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'trevoux','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bellegarde sur valserine','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg en bresse','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint denis les bourg','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gex','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'soissons','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chauny','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'laon','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'tergnier','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hirson','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'guise','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chateau thierry','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint quentin','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'villers cotterets','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bohain en vermandois','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'gauchy','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'domerat','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'yzeure','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gannat','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montlucon','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bellerive sur allier','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint pourcain sur sioule','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vichy','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'commentry','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cusset','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'moulins','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chateau arnoux saint auban','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'oraison','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sisteron','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'manosque','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'digne les bains','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'embrun','ville_departement' => '05','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gap','ville_departement' => '05','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'briancon','ville_departement' => '05','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la gaude','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vence','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'grasse','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'peymeinade','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'beausoleil','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquefort les pins','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'biot','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'villefranche sur mer','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'valbonne','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vallauris','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'contes','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mouans sartoux','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'antibes','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cannes','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'villeneuve loubet','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pegomas','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mougins','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le cannet','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carros','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la trinite','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cagnes sur mer','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'menton','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint laurent du var','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'nice','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquebrune cap martin','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la colle sur loup','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mandelieu la napoule','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint peray','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le teil','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'guilherand granges','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'privas','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tournon sur rhone','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annonay','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg saint andeol','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'aubenas','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'givet','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'nouzonville','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'charleville mezieres','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'revin','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rethel','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bogny sur meuse','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sedan','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint girons','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'foix','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lavelanet','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pamiers','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint julien les villas','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'la chapelle saint luc','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sainte savine','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'nogent sur seine','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'romilly sur seine','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint andre les vergers','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bar sur aube','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'troyes','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'carcassonne','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelnaudary','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'limoux','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'narbonne','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'sigean','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'port la nouvelle','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lezignan corbieres','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'trebes','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'coursan','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'luc la primaube','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'onet le chateau','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'rodez','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint affrique','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'millau','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villefranche de rouergue','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'decazeville','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la roque d antheron','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cassis','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'senas','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint remy de provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'eguilles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'istres','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'noves','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'aix en provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'allauch','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la fare les oliviers','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint cannat','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bouc bel air','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'peypin','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la bouilladisse','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint victoret','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'salon de provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'marseille','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'port saint louis du rhone','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le puy sainte reparade','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'chateaurenard','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mallemort','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cabries','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint chamas','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint mitre les remparts','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'rognac','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'plan de cuques','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'arles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'venelles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'aubagne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'martigues','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'port de bouc','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gignac la nerthe','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vitrolles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'tarascon','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'septemes les vallons','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sausset les pins','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'miramas','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'fuveau','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquevaire','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'fos sur mer','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'meyreuil','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'les pennes mirabeau','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pelissanne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la ciotat','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la penne sur huveaune','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'trets','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gemenos','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carry le rouet','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint martin de crau','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'ensues la redonne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'marignane','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'simiane collongue','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'lancon provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'lambesc','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carnoux en provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'eyguieres','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'velaux','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gardanne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'berre l etang','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'auriol','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'chateauneuf les martigues','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'blainville sur orne','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'ouistreham','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'vire','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'ifs','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'conde sur noireau','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'colombelles','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'lisieux','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'falaise','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bayeux','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'mondeville','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'herouville saint clair','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'caen','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'dives sur mer','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'honfleur','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'aurillac','ville_departement' => '15','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint flour','ville_departement' => '15','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'arpajon sur cere','ville_departement' => '15','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'soyaux','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la couronne','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint yrieix sur charente','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gond pontouvre','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ruelle sur touvre','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cognac','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'angouleme','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'champniers','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'l isle d espagnac','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint pierre d oleron','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'surgeres','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'perigny','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saintes','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'nieul sur mer','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saujon','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la rochelle','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aytre','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'royan','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'dompierre sur mer','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint jean d angely','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'marennes','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'tonnay charente','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'rochefort','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lagord','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chatelaillon plage','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'puilboreau','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint doulchard','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint amand montrond','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vierzon','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'mehun sur yevre','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint florent sur cher','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'bourges','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'aubigny sur nere','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'tulle','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ussel','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'malemort sur correze','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'brive la gaillarde','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'quetigny','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montbard','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'nuits saint georges','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chenove','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'beaune','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'dijon','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chatillon sur seine','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'fontaine les dijon','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'talant','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'marsannay la cote','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'genlis','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'auxonne','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint apollinaire','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chevigny saint sauveur','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'longvic','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'ploufragan','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'perros guirec','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'paimpol','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'loudeac','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint brieuc','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guingamp','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pordic','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lannion','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'langueux','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'tregueux','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'dinan','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lamballe','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pledran','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plerin','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'gueret','ville_departement' => '23','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la souterraine','ville_departement' => '23','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'boulazac','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'coulounieix chamiers','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'perigueux','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'sarlat la caneda','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bergerac','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'trelissac','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'montpon menesterol','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint astier','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'terrasson lavilledieu','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'morteau','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'bethoncourt','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'valentigney','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'pontarlier','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'seloncourt','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'baume les dames','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montbeliard','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'audincourt','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'besancon','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'nyons','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'romans sur isere','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'valence','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'crest','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'livron sur drome','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montelimar','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tain l hermitage','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint rambert d albon','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg les valence','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'loriol sur drome','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint paul trois chateaux','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'portes les valence','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'donzere','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pierrelatte','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg de peage','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chabeuil','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gisors','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'louviers','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bernay','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'pont audemer','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'vernon','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'les andelys','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'val de reuil','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'gaillon','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'evreux','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'verneuil sur avre','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'epernon','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'luce','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chartres','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'dreux','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vernouillet','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateaudun','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'mainvilliers','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'nogent le rotrou','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'luisant','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'le relecq kerhuon','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guilers','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lannilis','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'briec','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'quimperle','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plougastel daoulas','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint pol de leon','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plouguerneau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'fouesnant','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'scaer','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chateaulin','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pont l abbe','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guipavas','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint renan','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'concarneau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'gouesnou','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lesneven','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'landivisiau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'tregunc','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'crozon','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plabennec','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'morlaix','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plouzane','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'rosporden','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'bannalec','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ergue gaberic','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'quimper','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'penmarch','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'douarnenez','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'landerneau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'moelan sur mer','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploneour lanvern','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'carhaix plouguer','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'brest','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploudalmezeau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'le grau du roi','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'roquemaure','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'beaucaire','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aigues mortes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'manduel','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'les angles','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pont saint esprit','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'rochefort du gard','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la grand combe','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint gilles','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'nimes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bagnols sur ceze','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'milhaud','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'uzes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'marguerittes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ales','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vauvert','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villeneuve les avignon','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint christol les ales','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bellegarde','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bouillargues','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'laudun l ardoise','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'beauzelle','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint gaudens','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'leguevin','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'colomiers','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'muret','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint lys','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ramonville saint agne','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cornebarrieu','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fenouillet','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castanet tolosan','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'tournefeuille','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'portet sur garonne','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelginest','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la salvetat saint gilles','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villemur sur tarn','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pibrac','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'blagnac','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'toulouse','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'frouzins','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'auterive','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'escalquens','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'seysses','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aussonne','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villeneuve tolosane','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint jean','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aucamville','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'l union','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelnau d estretefonds','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint orens de gameville','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fonsorbes','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cugnaux','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'balma','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint alban','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'launaguet','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'plaisance du touch','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'revel','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'grenade','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fronton','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'l isle jourdain','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'auch','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'condom','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fleurance','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint jean d illac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le bouscat','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'libourne','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'floirac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'langon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gradignan','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'coutras','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'biganos','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bordeaux','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'begles','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'parempuyre','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'audenge','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bassens','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint aubin de medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le haillan','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lesparre medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la teste de buch','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'eysines','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'pauillac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'arcachon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gujan mestras','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint loubes','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'andernos les bains','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint medard en jalles','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le teich','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'blanquefort','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'artigues pres bordeaux','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ares','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bruges','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le pian medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'martignas sur jalle','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lormont','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'carbon blanc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'villenave d ornon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mios','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cestas','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ambares et lagrave','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'leognan','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'talence','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'pessac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lanton','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'izon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'merignac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le taillan medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cenon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'salles','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lege cap ferret','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint andre de cubzac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mauguio','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'perols','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelnau le lez','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fabregues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'baillargues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'marsillargues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bedarieux','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lattes','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint georges d orques','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'agde','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'beziers','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'balaruc les bains','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'meze','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'sete','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint jean de vedas','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lodeve','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint clement de riviere','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'clapiers','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pezenas','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'gignac','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint gely du fesc','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pignan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castries','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'frontignan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'marseillan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'le cres','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'montpellier','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villeneuve les maguelone','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'serignan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vendargues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cournonterral','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lunel','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'grabels','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la grande motte','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vias','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'juvignac','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'clermont l herault','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'gigean','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'palavas les flots','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bain de bretagne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'rennes','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'redon','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint malo','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'dinard','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'cancale','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint gregoire','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'vern sur seiche','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'combourg','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'liffre','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'montfort sur meu','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'janze','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'bruz','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'thorigne fouillard','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'betton','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'fougeres','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'noyal chatillon sur seiche','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'vitre','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pleurtuit','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pace','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'le rheu','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint jacques de la lande','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'noyal sur vilaine','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guichen','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chantepie','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'cesson sevigne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chartres de bretagne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chateaugiron','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'melesse','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'acigne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'mordelles','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chateaubourg','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'deols','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'issoudun','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateauroux','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'le poinconnet','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'argenton sur creuse','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'le blanc','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'blere','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint cyr sur loire','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'ballan mire','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'amboise','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'loches','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chinon','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chambray les tours','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'tours','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint pierre des corps','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'joue les tours','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'monts','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateau renault','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'montlouis sur loire','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint avertin','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'fondettes','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'veigne','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'la riche','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'voiron','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le peage de roussillon','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint martin d heres','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meylan','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'charvieu chavagneux','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la verpilliere','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vizille','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la tour du pin','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'roussillon','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint ismier','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'fontaine','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'echirolles','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'les avenieres','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'grenoble','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'varces allieres et risset','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'domene','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourgoin jallieu','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint martin le vinoux','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la tronche','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tignieu jameyzieu','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le pont de claix','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint egreve','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint martin d uriage','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint marcellin','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'rives','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'moirans','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint maurice l exil','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villefontaine','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint quentin fallavier','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pont eveque','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sassenage','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la mure','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'l isle d abeau','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gieres','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villard bonnot','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tullins','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'crolles','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'voreppe','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'seyssins','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'claix','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vif','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'seyssinet pariset','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vienne','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pontcharra','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'eybens','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint claude','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'morez','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'dole','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'lons le saunier','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'champagnole','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'aire sur l adour','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'parentis en born','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mimizan','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'biscarrosse','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'dax','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'capbreton','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint pierre du mont','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'tarnos','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mont de marsan','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'soustons','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint paul les dax','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint vincent de tyrosse','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'romorantin lanthenay','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vineuil','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vendome','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'salbris','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'blois','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'mer','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'rive de gier','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'firminy','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint genest lerpt','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint galmier','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la talaudiere','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'unieux','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'veauche','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sorbiers','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montbrison','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint etienne','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint jean bonnefonds','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sury le comtal','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'andrezieux boutheon','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le chambon feugerolles','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chazelles sur lyon','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le coteau','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint chamond','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint just saint rambert','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la grand croix','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint priest en jarez','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'mably','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la ricamarie','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'roche la moliere','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villars','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'roanne','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'feurs','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'riorges','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'monistrol sur loire','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'brioude','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'aurec sur loire','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sainte sigolene','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le puy en velay','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'yssingeaux','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sainte pazanne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'carquefou','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint herblain','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'vallet','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'donges','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'blain','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pornic','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'suce sur erdre','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'le pouliguen','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'montoir de bretagne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'basse goulaine','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'le loroux bottereau','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'trignac','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'thouare sur loire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint andre des eaux','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bouguenais','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les sorinieres','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint sebastien sur loire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'savenay','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'herbignac','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pont saint martin','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'treillieres','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la montagne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'coueron','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'orvault','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'sautron','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'clisson','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'machecoul','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pontchateau','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint etienne de montluc','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint julien de concelles','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pornichet','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'vertou','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'nantes','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'sainte luce sur loire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'reze','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chateaubriant','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint philbert de grand lieu','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'heric','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bouaye','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'guerande','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'ancenis','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'nort sur erdre','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint brevin les pins','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'vigneux de bretagne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la baule escoublac','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la chapelle sur erdre','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint nazaire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'haute goulaine','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'amilly','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'la ferte saint aubin','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'briare','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint jean de braye','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'gien','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'villemandeur','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'beaugency','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'pithiviers','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'montargis','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'meung sur loire','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chalette sur loing','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'la chapelle saint mesmin','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'fleury les aubrais','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'checy','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'malesherbes','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saran','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'sully sur loire','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint jean de la ruelle','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint pryve saint mesmin','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint jean le blanc','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'ingre','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint denis en val','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'orleans','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateauneuf sur loire','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'olivet','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'figeac','ville_departement' => '46','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cahors','ville_departement' => '46','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bon encontre','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'tonneins','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'agen','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'villeneuve sur lot','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'boe','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le passage','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'marmande','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'sainte livrade sur lot','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'fumel','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'nerac','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mende','ville_departement' => '48','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'chemille','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'cholet','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'beaupreau','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'angers','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'beaufort en vallee','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'montreuil juigne','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'trelaze','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint barthelemy d anjou','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'avrille','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'segre','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chalonnes sur loire','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bouchemaine','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'doue la fontaine','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les ponts de ce','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'longue jumelles','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saumur','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'murs erigne','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint macaire en mauges','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'equeurdreville hainneville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'avranches','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'tourlaville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'granville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'coutances','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'carentan','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'querqueville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'cherbourg octeville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'saint lo','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'valognes','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'la glacerie','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'betheny','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'reims','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'epernay','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'vitry le francois','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'chalons en champagne','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'cormontreuil','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sezanne','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'tinqueux','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'fismes','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint memmie','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'chaumont','ville_departement' => '52','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'langres','ville_departement' => '52','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint dizier','ville_departement' => '52','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'chateau gontier','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'change','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'ernee','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint berthevin','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'mayenne','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'evron','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bonchamp les laval','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'laval','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'joeuf','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'tomblaine','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'malzeville','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mont saint martin','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'laneuveville devant nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint nicolas de port','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'jarville la malgrange','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'jarny','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'villerupt','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'frouard','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'longwy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint max','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'pompey','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'ludres','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'longuyon','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'pont a mousson','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'champigneulles','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'briey','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'heillecourt','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'luneville','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'essey les nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'seichamps','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'maxeville','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'vandoeuvre les nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'neuves maisons','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'dombasle sur meurthe','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'toul','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'villers les nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'liverdun','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'homecourt','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'laxou','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'verdun','ville_departement' => '55','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'commercy','ville_departement' => '55','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bar le duc','ville_departement' => '55','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'auray','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'questembert','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'queven','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'theix','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'sarzeau','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pontivy','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lorient','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'vannes','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'arradon','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'sene','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'caudan','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lanester','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'hennebont','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'languidic','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploeren','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploemeur','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'larmor plage','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plouay','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guidel','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploermel','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'inzinzac lochrist','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guer','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'brech','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pluvigner','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'baud','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint ave','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'kervignac','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'behren les forbach','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'marly','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'stiring wendel','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'yutz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'florange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'amneville','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mondelange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'uckange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'forbach','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'woippy','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'moulins les metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'freyming merlebach','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'l hopital','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hombourg haut','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hayange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'talange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'fameck','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'petite rosselle','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'guenange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'thionville','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sarrebourg','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hagondange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'terville','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'moyeuvre grande','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'faulquemont','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bitche','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'maizieres les metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rombas','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'farebersviller','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint avold','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hettange grande','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sarreguemines','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'audun le tiche','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'marange silvange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'montigny les metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'algrange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'creutzwald','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'decize','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'cosne cours sur loire','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'varennes vauzelles','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'la charite sur loire','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'nevers','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'waziers','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'conde sur l escaut','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sainghin en weppes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roubaix','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wattrelos','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'villeneuve d ascq','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'trith saint leger','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roncq','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bauvin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fourmies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lille','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marquette lez lille','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mons en baroeul','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wattignies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sin le noble','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aniche','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la bassee','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loos','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fresnes sur escaut','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'le cateau cambresis','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'halluin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roost warendin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bourbourg','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'valenciennes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la madeleine','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loon plage','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wormhout','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'louvroil','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lys lez lannoy','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'quesnoy sur deule','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'perenchies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint saulve','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'santes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hazebrouck','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'onnaing','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'templeuve','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bruay sur l escaut','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'houplines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'vieux conde','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lesquin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'gravelines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hautmont','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aulnoye aymeries','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint andre lez lille','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'quievrechain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'maubeuge','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'merville','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'tourcoing','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'caudry','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'neuville en ferrain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'jeumont','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lallaing','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'coudekerque branche','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'annoeullin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fenain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'croix','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'anzin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'comines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marly','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'pecquencourt','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ronchin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bondues','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dunkerque','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'douchy les mines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ferriere la grande','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'escaudain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'flines lez raches','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint amand les eaux','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'douai','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'orchies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wallers','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'grand fort philippe','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'nieppe','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la gorgue','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'armentieres','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wasquehal','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mouvaux','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'seclin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lambersart','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bailleul','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cambrai','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marcq en baroeul','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'estaires','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lambres lez douai','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'denain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hem','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la chapelle d armentieres','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aulnoy lez valenciennes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'raismes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'leers','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cuincy','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'haubourdin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'flers en escrebieux','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'grande synthe','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'teteghem','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'faches thumesnil','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wambrechies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'somain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cappelle la grande','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'feignies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ostricourt','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'linselles','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'auby','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dechy','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wavrin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beuvrages','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'compiegne','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chambly','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'nogent sur oise','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mouy','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'meru','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint just en chaussee','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'senlis','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noyon','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'creil','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'crepy en valois','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'gouvieux','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'pont sainte maxence','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'margny les compiegne','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beauvais','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lamorlaye','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'liancourt','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'villers saint paul','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'montataire','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chantilly','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'clermont','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'flers','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'argentan','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'alencon','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'l aigle','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'la ferte mace','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'marquise','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'divion','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'grenay','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mericourt','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint etienne au mont','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'oignies','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marck','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lievin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'auchel','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'henin beaumont','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'guines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hersin coupigny','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint omer','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'harnes','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wingles','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'rouvroy','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cucq','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'arras','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'desvres','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'oye plage','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sallaumines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noyelles sous lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noeux les mines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'montigny en gohelle','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marles les mines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'coulogne','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'annezin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beuvry','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dainville','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loison sous lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'arques','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'calais','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wimereux','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'boulogne sur mer','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'etaples','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'libercourt','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lillers','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bethune','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'isbergues','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'le touquet paris plage','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint pol sur ternoise','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'courcelles les lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'leforest','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'carvin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loos en gohelle','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aire sur la lys','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'le portel','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'barlin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bully les mines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bruay la buissiere','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dourges','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'avion','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'outreau','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'courrieres','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noyelles godault','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint laurent blangy','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'billy montigny','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'douvrin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fouquieres les lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mazingarbe','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'longuenesse','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'blendecques','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'vendin le vieil','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'houdain','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beaurains','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'berck','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint martin boulogne','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sains en gohelle','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'achicourt','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'calonne ricouart','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'pont du chateau','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cournon d auvergne','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ambert','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'clermont ferrand','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'issoire','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ceyrat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lempdes','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chamalieres','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thiers','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lezoux','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cebazat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gerzat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'riom','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'aubiere','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'beaumont','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chatel guyon','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'romagnat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'boucau','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mourenx','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'hendaye','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lescar','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'pau','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'oloron sainte marie','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'hasparren','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lons','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cambo les bains','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bayonne','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'biarritz','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'urrugne','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'jurancon','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bidart','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ciboure','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'anglet','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gan','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint pee sur nivelle','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ustaritz','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'orthez','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint jean de luz','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'billere','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aureilhan','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lannemezan','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'tarbes','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vic en bigorre','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bagneres de bigorre','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lourdes','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cabestany','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bompas','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint cyprien','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ille sur tet','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint esteve','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'argeles sur mer','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'elne','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint laurent de la salanque','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'rivesaltes','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'thuir','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ceret','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'le boulou','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pia','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'canet en roussillon','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'prades','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'le soler','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'toulouges','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'perpignan','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ostwald','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mundolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wasselonne','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'molsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'barr','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'eckbolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'obernai','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saverne','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'strasbourg','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'benfeld','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bischwiller','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'vendenheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'geispolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bischheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'schiltigheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'reichshoffen','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'souffelweyersheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'illkirch graffenstaden','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'selestat','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hoenheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'erstein','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'brumath','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'la wantzenau','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'fegersheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'haguenau','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mutzig','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'lingolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wissembourg','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wittelsheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'colmar','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'altkirch','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'kingersheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint louis','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wintzenheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'illzach','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wittenheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sainte marie aux mines','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'cernay','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'thann','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'huningue','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'ensisheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'soultz haut rhin','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'riedisheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'brunstatt','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'pfastatt','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sausheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rixheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'lutterbach','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'guebwiller','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mulhouse','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'oullins','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'neuville sur saone','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'grigny','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'venissieux','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'jonage','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villefranche sur saone','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tassin la demi lune','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'mions','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'corbas','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gleize','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'caluire et cuire','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'irigny','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chaponost','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lentilly','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint fons','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint genis laval','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'amplepuis','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint symphorien d ozon','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lyon','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint priest','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'brindas','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'genas','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vaulx en velin','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'belleville','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chassieu','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'craponne','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint bonnet de mure','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villeurbanne','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pierre benite','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'fontaines sur saone','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'francheville','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'brignais','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ternay','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meyzieu','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'l arbresle','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint cyr au mont d or','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'anse','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bron','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'rillieux la pape','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la mulatiere','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ecully','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'decines charpieu','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'dardilly','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint didier au mont d or','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'feyzin','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tarare','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'mornant','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'givors','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sainte foy les lyon','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lure','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'vesoul','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'luxeuil les bains','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'gray','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'hericourt','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint vallier','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'louhans','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'tournus','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint remy','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montchanin','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'le creusot','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'digoin','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montceau les mines','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'charnay les macon','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chagny','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'paray le monial','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'macon','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chalon sur saone','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'gueugnon','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'blanzy','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint marcel','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chatenoy le royal','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'autun','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'bourbon lancy','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'le mans','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'mamers','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'change','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'allonnes','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'sable sur sarthe','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'coulaines','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la ferte bernard','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la fleche','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'arnage','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'aix les bains','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'albertville','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint jean de maurienne','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la ravoire','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chambery','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'challes les eaux','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint alban leysse','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la motte servolex','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ugine','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg saint maurice','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cognin','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la roche sur foron','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'seynod','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annecy','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'marnaz','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sciez','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thyez','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'evian les bains','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meythet','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thones','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ville la grand','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bonneville','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'passy','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint jorioz','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thonon les bains','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annecy le vieux','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cran gevrier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint pierre en faucigny','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'reignier esery','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gaillard','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sallanches','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'rumilly','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'poisy','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annemasse','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chamonix mont blanc','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vetraz monthoux','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'marignier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'scionzier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'publier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cranves sales','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint gervais les bains','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'faverges','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint julien en genevois','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cluses','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ambilly','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'paris','ville_departement' => '75','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pierre les elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'octeville sur mer','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le treport','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'cleon','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le petit quevilly','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'gournay en bray','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'oissel','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'eu','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'darnetal','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'yvetot','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'grand couronne','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le grand quevilly','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bois guillaume','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'barentin','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'harfleur','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le trait','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'saint etienne du rouvray','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'deville les rouen','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'malaunay','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'maromme','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'notre dame de gravenchon','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'franqueville saint pierre','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'notre dame de bondeville','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bihorel','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'rouen','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'mont saint aignan','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bonsecours','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'dieppe','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'montivilliers','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'sotteville les rouen','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'petit couronne','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'pavilly','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'saint aubin les elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'caudebec les elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'lillebonne','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'sainte adresse','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le mesnil esnard','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'fecamp','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'gonfreville l orcher','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'canteleu','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bolbec','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le havre','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'emerainville','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nangis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'avon','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nanteuil les meaux','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magny le hongre','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lieusaint','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gretz armainvilliers','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint thibault des vignes','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'moissy cramayel','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vert saint denis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lagny sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pierre les nemours','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'claye souilly','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bois le roi','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'champs sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'esbly','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chelles','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'torcy','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dammarie les lys','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'roissy en brie','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontainebleau','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'meaux','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nemours','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'brie comte robert','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'othis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaires sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montereau fault yonne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bailly romainvilliers','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'combs la ville','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pontault combault','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dammartin en goele','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'coulommiers','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'champagne sur seine','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaux le penil','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cesson','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ozoir la ferriere','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'tournan en brie','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisiel','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'souppes sur loing','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lognes','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'provins','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la ferte sous jouarre','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'thorigny sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bussy saint georges','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay tresigny','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nandy','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'melun','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'savigny le temple','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'serris','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le mee sur seine','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint fargeau ponthierry','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pathus','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mitry mory','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montevrain','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeparisis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courtry','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lesigny','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chanteloup les vignes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chambourcy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'meulan en yvelines','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rambouillet','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montesson','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le vesinet','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maisons laffitte','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maurepas','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'houilles','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les mureaux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sartrouville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la verriere','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'croissy sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bois d arcy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'triel sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'acheres','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'carrieres sous poissy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint nom la breteche','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'poissy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les essarts le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marly le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'carrieres sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'verneuil sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'andresy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epone','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'plaisir','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magny les hameaux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mantes la ville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gargenville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rosny sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint cyr l ecole','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'versailles','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'guyancourt','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'buc','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chatou','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'trappes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vernouillet','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay le fleury','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le chesnay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'beynes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bougival','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'louveciennes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magnanville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maule','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'conflans sainte honorine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mantes la jolie','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint germain en laye','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'aubergenville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'voisins le bretonneux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les clayes sous bois','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le pecq','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le perray en yvelines','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villepreux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montigny le bretonneux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisy le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'elancourt','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'jouy en josas','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'viroflay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villennes sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'orgeval','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'limay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'jouars pontchartrain','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le mesnil le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chevreuse','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la celle saint cloud','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'velizy villacoublay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le mesnil saint denis','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint remy les chevreuse','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint arnoult en yvelines','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'parthenay','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'niort','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chauray','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint maixent l ecole','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aiffres','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la creche','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bressuire','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'thouars','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'nueil les aubiers','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mauleon','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'doullens','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'peronne','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'montdidier','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roye','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'abbeville','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ham','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'longueau','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'corbie','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'amiens','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'albert','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'albi','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'gaillac','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint juery','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'mazamet','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lavaur','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'graulhet','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aussillon','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint sulpice','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'labruguiere','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'carmaux','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castres','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelsarrasin','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'valence','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'moissac','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'caussade','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'montech','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'montauban','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'sollies toucas','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cogolin','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la londe les maures','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sainte maxime','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sollies pont','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint cyr sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cavalaire sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la garde','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'puget sur argens','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sanary sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'hyeres','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la valette du var','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'ollioules','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint maximin la sainte baume','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'lorgues','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'les arcs','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquebrune sur argens','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le pradet','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bormes les mimosas','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carqueiranne','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'six fours les plages','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vidauban','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gareoult','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'draguignan','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'montauroux','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'trans en provence','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le muy','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'frejus','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cuers','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la crau','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le lavandou','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'toulon','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le beausset','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la cadiere d azur','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'brignoles','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint raphael','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le luc','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint tropez','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pierrefeu du var','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la farlede','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint mandrier sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bandol','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la seyne sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bedarrides','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le pontet','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cavaillon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vedene','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'morieres les avignon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pernes les fontaines','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sarrians','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sorgues','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'l isle sur la sorgue','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'valreas','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carpentras','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'courthezon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'entraigues sur la sorgue','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mazan','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bollene','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'monteux','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'orange','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'avignon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pertuis','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le thor','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'apt','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vaison la romaine','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'talmont saint hilaire','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'le poire sur vie','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chateau d olonne','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint jean de monts','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'fontenay le comte','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'olonne sur mer','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pouzauges','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'challans','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'lucon','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les sables d olonne','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la roche sur yon','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint gilles croix de vie','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chantonnay','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'mortagne sur sevre','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint hilaire de riez','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les herbiers','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'aizenay','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'montmorillon','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'buxerolles','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'jaunay clan','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'naintre','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'poitiers','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'loudun','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint benoit','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chatellerault','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'migne auxances','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chauvigny','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'isle','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint junien','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'feytiat','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'limoges','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint yrieix la perche','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aixe sur vienne','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ambazac','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'couzeix','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'panazol','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le palais sur vienne','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'vittel','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'epinal','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'golbey','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'thaon les vosges','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'raon l etape','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'gerardmer','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mirecourt','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint die des vosges','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'remiremont','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rambervillers','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'neufchateau','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'tonnerre','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'villeneuve sur yonne','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'avallon','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'migennes','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'sens','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'joigny','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'auxerre','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'belfort','ville_departement' => '90','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'delle','ville_departement' => '90','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'brunoy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villebon sur yvette','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'evry','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dourdan','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'draveil','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mennecy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'grigny','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'wissous','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ris orangis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bures sur yvette','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'palaiseau','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'arpajon','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epinay sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'boussy saint antoine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la ville du bois','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'verrieres le buisson','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'crosne','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'longpont sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint michel sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pierre du perray','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ballancourt sur essonne','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vigneux sur seine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courcouronnes','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'etrechy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saintry sur seine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montlhery','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fleury merogis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'quincy sous senart','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'igny','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'viry chatillon','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'etampes','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'corbeil essonnes','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'orsay','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'massy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'yerres','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'paray vieille poste','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint germain les arpajon','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gif sur yvette','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'morangis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chilly mazarin','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epinay sous senart','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les ulis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'athis mons','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'soisy sur seine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lisses','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marcoussis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'linas','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'morsang sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'juvisy sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montgeron','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bretigny sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villemoisson sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bondoufle','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'egly','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint germain les corbeil','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'itteville','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'breuillet','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lardy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sainte genevieve des bois','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'savigny sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'limours','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'longjumeau','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'neuilly sur seine','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chatillon','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bois colombes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'puteaux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'clamart','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'meudon','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'issy les moulineaux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaucresson','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rueil malmaison','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'antony','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le plessis robinson','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'levallois perret','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'boulogne billancourt','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'asnieres sur seine','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'colombes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay aux roses','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'garches','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeneuve la garenne','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courbevoie','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montrouge','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chatenay malabry','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'clichy','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vanves','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ville d avray','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'suresnes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sevres','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sceaux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chaville','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la garenne colombes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gennevilliers','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nanterre','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint cloud','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'malakoff','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bagneux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bourg la reine','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le bourget','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bagnolet','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la courneuve','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les pavillons sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sevran','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villemomble','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montreuil','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'livry gargan','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'aulnay sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dugny','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villetaneuse','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le raincy','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint denis','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les lilas','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'clichy sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisy le grand','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'romainville','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'aubervilliers','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisy le sec','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villepinte','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bobigny','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pierrefitte sur seine','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'tremblay en france','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaujours','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montfermeil','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'l ile saint denis','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le pre saint gervais','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'stains','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pantin','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'neuilly plaisance','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rosny sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint ouen','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gournay sur marne','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bondy','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epinay sur seine','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'neuilly sur marne','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'drancy','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le blanc mesnil','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gagny','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay sous bois','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'l hay les roses','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'limeil brevannes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'alfortville','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le plessis trevise','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'choisy le roi','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint mande','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fresnes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villiers sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le kremlin bicetre','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'boissy saint leger','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la queue en brie','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ormesson sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'arcueil','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marolles en brie','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villecresnes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le perreux sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'valenton','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nogent sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cachan','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint maur des fosses','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rungis','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'thiais','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sucy en brie','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vincennes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'charenton le pont','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint maurice','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bry sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bonneuil sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'joinville le pont','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ablon sur seine','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gentilly','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villejuif','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vitry sur seine','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chevilly larue','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chennevieres sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'champigny sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ivry sur seine','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maisons alfort','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'orly','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeneuve le roi','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeneuve saint georges','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'creteil','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'osny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cergy','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ezanville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'jouy le moutier','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magny en vexin','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'domont','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montmorency','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pontoise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaureal','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marly la ville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'groslay','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'menucourt','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'herblay','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ermont','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'auvers sur oise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint brice sous foret','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'goussainville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pierrelaye','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'franconville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'louvres','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gonesse','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'deuil la barre','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bezons','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courdimanche','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint gratien','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'taverny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bessancourt','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'beaumont sur oise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cormeilles en parisis','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bouffemont','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sannois','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ecouen','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint prix','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint leu la foret','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint ouen l aumone','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'persan','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'l isle adam','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'garges les gonesse','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montmagny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montigny les cormeilles','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'eaubonne','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'parmain','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'argenteuil','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le plessis bouchard','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villiers le bel','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'eragny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sarcelles','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mery sur oise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'soisy sous montmorency','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'beauchamp','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'enghien les bains','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'arnouville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fosses','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ajaccio','ville_departement' => '2A','name' => 'Corse'),\r\n array('ville_nom_simple' => 'porto vecchio','ville_departement' => '2A','name' => 'Corse'),\r\n array('ville_nom_simple' => 'corte','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'bastia','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'biguglia','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'borgo','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'calvi','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'les abymes','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'baie mahault','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'baillif','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'basse terre','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'pigeon','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'capesterre belle eau','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'gourbeyre','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'grand bourg','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'le gosier','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'goyave','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'lamentin','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'morne a l eau','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'le moule','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'petit bourg','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'petit canal','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'pointe a pitre','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'pointe noire','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'port louis','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st claude','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st francois','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'ste anne','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'ste rose','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'trois rivieres','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'vieux habitants','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'le diamant','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'ducos','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'fort de france','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le francois','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'gros morne','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le lamentin','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le lorrain','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le marin','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le morne rouge','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'riviere pilote','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'riviere salee','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le robert','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'st esprit','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'st joseph','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'ste luce','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'ste marie','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'shoelcher','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'la trinite','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'les trois ilets','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le vauclin','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'cayenne','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'kourou','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'macouria tonate','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'mana','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'matoury','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'remire montjoly','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'st laurent du maroni','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'maripasoula','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'grand santi','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'apatou','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'les avirons','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'bras panon','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'entre deux','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'l etang sale','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'petite ile','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'la plaine des palmistes','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'le port','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'la possession','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st andre','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st benoit','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste clotilde','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st joseph','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st leu','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st louis','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st paul','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ravine des cabris','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st philippe','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste marie','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste rose','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste suzanne','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'salazie','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'le tampon','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'les trois bassins','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'cilaos','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'bandraboua','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'bandrele','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'boueni','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'chiconi','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'chirongui','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'dembeni','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'dzaoudzi','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'koungou','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'mamoudzou','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'mtsamboro','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'm tsangamouji','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'ouangani','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'pamandzi','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'sada','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'tsingoni','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'st barthelemy','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st martin','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st pierre et miquelon','ville_departement' => '975','name' => 'Collectivités d\\'Outre-Mer')\r\n );\r\n\r\n\r\n foreach ($regions as $region_data) {\r\n\r\n $bool = false;\r\n $all_region = $manager->getRepository(Region::class)->findBy(['name' => $region_data['name']]);\r\n $departement = new Departement();\r\n $departement->setName($region_data['ville_departement']);\r\n foreach ($all_region as $a_region) {\r\n $departement->setRegion($a_region);\r\n $bool = true;\r\n }\r\n\r\n if (!$bool) {\r\n $region = new Region();\r\n $region->setName($region_data['name']);\r\n $departement->setRegion($region);\r\n }\r\n\r\n $manager->persist($departement);\r\n $manager->flush();\r\n }\r\n\r\n $method = 'GET';\r\n\r\n\r\n $url = 'https://api.ozae.com/gnw/articles?date=20180101__20190320&key=f287095e988e47c0804e92fd513b9843&edition=fr-fr&query=accident';\r\n $data = null;\r\n $curl = curl_init();\r\n\r\n switch ($method) {\r\n case \"POST\":\r\n curl_setopt($curl, CURLOPT_POST, 1);\r\n\r\n if ($data)\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\r\n break;\r\n\r\n case \"PUT\":\r\n curl_setopt($curl, CURLOPT_PUT, 1);\r\n break;\r\n default:\r\n if ($data)\r\n $url = sprintf(\"%s?%s\", $url, http_build_query($data));\r\n }\r\n\r\n // Optional Authentication:\r\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\r\n curl_setopt($curl, CURLOPT_USERPWD, \"username:password\");\r\n\r\n curl_setopt($curl, CURLOPT_URL, $url);\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n $result = curl_exec($curl);\r\n\r\n curl_close($curl);\r\n\r\n $result = json_decode($result);\r\n\r\n foreach ($result->articles as $key => $aResult) {\r\n $date = new \\DateTime('2017/1/1');\r\n $date_first_seen = new \\DateTime($aResult->date_first_seen);\r\n $date_last_seen = new \\DateTime($aResult->date_last_seen);\r\n $categories = array();\r\n\r\n $article = new Article();\r\n $html_content = $this->callAPI($aResult->id,'test');\r\n $tags = array(\r\n 'moto',\r\n 'motocyclisme',\r\n 'scooter',\r\n 'circulation',\r\n 'jeep',\r\n 'fourgon',\r\n 'conducteur',\r\n 'chauffeur',\r\n 'voiture',\r\n 'vélo',\r\n 'automobile',\r\n 'avion',\r\n 'véhicule',\r\n 'train',\r\n 'bicyclette',\r\n );\r\n foreach ($tags as $tag) {\r\n if (strpos($html_content, $tag) !== false) {\r\n array_push($categories, $tag);\r\n }\r\n }\r\n $gravite = array();\r\n if (count($categories) !== 0) {\r\n $tags = array(\r\n 'mort',\r\n 'décès',\r\n 'drame',\r\n 'tragédie',\r\n 'dramatique',\r\n 'tragique',\r\n 'trépas',\r\n 'tué',\r\n 'décédé',\r\n 'blessé',\r\n 'grave',\r\n 'sans conséquence',\r\n );\r\n foreach ($tags as $tag) {\r\n if (strpos($html_content, $tag) !== false) {\r\n array_push($gravite, $tag);\r\n }\r\n }\r\n\r\n $tags = array(\r\n 'soirée alcoolisée',\r\n 'minuit',\r\n 'stupéfiant',\r\n 'drogue',\r\n 'cannabis',\r\n );\r\n $causes = array();\r\n foreach ($tags as $tag) {\r\n if (strpos($html_content, 'négatif') === false) {\r\n if (strpos($html_content, $tag) !== false) {\r\n array_push($causes, $tag);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (count($categories) !== 0) {\r\n $article->setName($aResult->name);\r\n $article->setAuthor('John doe');\r\n $article->setArticleScore($aResult->article_score);\r\n $article->setContentHtml($html_content);\r\n $article->setDateFirstSeen($date_first_seen);\r\n $article->setDateLastSeen($date_last_seen);\r\n $article->setImgUri($aResult->img_uri);\r\n $article->setNewsonfire(true);\r\n $article->setShowInterval($date);\r\n $article->setSocialScore($aResult->social_score);\r\n $article->setUrl($aResult->url);\r\n $article->setSocialSpeedSph($aResult->social_speed_sph);\r\n $article->setCategories($categories);\r\n $article->setCauses($causes);\r\n $article->setGravite($gravite);\r\n $all_departement = $manager->getRepository(Departement::class)->findAll();\r\n $added_departement= array();\r\n foreach ($all_departement as $departement) {\r\n if ( (strpos($html_content, $departement->getName()) !== false) ) {\r\n if(!in_array($departement->getName(),$added_departement)) {\r\n array_push($added_departement, $departement->getName());\r\n $article->addDepartement($departement);\r\n $article->addRegion($departement->getRegion());\r\n }\r\n }\r\n }\r\n $manager->persist($article);\r\n }\r\n }\r\n\r\n $manager->flush();\r\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n // admin\n $admin = new User();\n $admin->setLogin('admin');\n $admin->setRoles(['ROLE_ADMIN']);\n $password = $this->encoder->encodePassword($admin, 'Admin_test');\n $admin->setPassword($password);\n $manager->persist($admin);\n $manager->flush();\n\n //utilisateur\n\n $user = new User();\n $user->setLogin('user');\n //$user = setRoles('ROLE_USER');\n $password = $this->encoder->encodePassword($user, 'User_test');\n $user->setPassword($password);\n $manager->persist($user);\n $manager->flush();\n\n // Faker\n\n // $faker = Faker\\Factory::create();\n // echo $faker->name;\n\n // pays\n\n if (($paysFile = fopen(__DIR__ . \"/../../data/ListeDePays.csv\", \"r\")) !== FALSE) {\n while (($data = fgetcsv($paysFile)) !== FALSE) {\n $pays = new Pays();\n $pays->setNom($data[0]);\n $manager->persist($pays);\n }\n\n fclose($paysFile);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n // Projet 1\n $projet = new Projets();\n $projet ->setNom(\"Cadexconseil\");\n $projet ->setLien(\"\");\n $projet ->setDescription(\"\");\n $manager->persist($projet);\n\n // Comppetences\n $skill = new Comppetences();\n $skill ->setNom(\"HTML\");\n $skill ->setType(\"langage\");\n $manager->persist($skill);\n \n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $book1 = new Book([\n 'isbn' => 9780132350884,\n 'title' => 'Clean Code: A Handbook of Agile Software Craftsmanship.',\n 'author' => 'Uncle Bob',\n 'description' => 'Clean Code is divided into three parts. The first describes the principles, patterns, and practices of writing clean code. The second part consists of several case studies of increasing complexity. Each case study is an exercise in cleaning up code—of transforming a code base that has some problems into one that is sound and efficient. The third part is the payoff: a single chapter containing a list of heuristics and “smells” gathered while creating the case studies. The result is a knowledge base that describes the way we think when we write, read, and clean code.',\n 'available' => false,\n ]);\n\n $book2 = new Book([\n 'isbn' => 9780135974445,\n 'title' => 'Agile Software Development: Principles, Patterns, and Practices.',\n 'author' => 'Uncle Bob',\n 'description' => 'Written by a software developer for software developers, this book is a unique collection of the latest software development methods. The author includes OOD, UML, Design Patterns, Agile and XP methods with a detailed description of a complete software design for reusable programs in C++ and Java. Using a practical, problem-solving approach, it shows how to develop an object-oriented application—from the early stages of analysis, through the low-level design and into the implementation. Walks readers through the designer\\'s thoughts — showing the errors, blind alleys, and creative insights that occur throughout the software design process. The book covers: Statics and Dynamics; Principles of Class Design; Complexity Management; Principles of Package Design; Analysis and Design; Patterns and Paradigm Crossings.',\n 'available' => true,\n ]);\n\n $manager->persist($book1);\n $manager->persist($book2);\n\n $this->addReference('book1', $book1);\n $this->addReference('book2', $book2);\n\n $manager->flush();\n }" ]
[ "0.7679375", "0.7595607", "0.7548666", "0.7404691", "0.7331613", "0.727661", "0.7206886", "0.7035208", "0.70090604", "0.6956272", "0.6910011", "0.68890536", "0.685312", "0.6845403", "0.68398637", "0.682337", "0.6822801", "0.6818304", "0.6747987", "0.6747564", "0.67143613", "0.67123795", "0.6684148", "0.66787875", "0.66677123", "0.66629595", "0.66574687", "0.6653655", "0.6649049", "0.6634128", "0.66336155", "0.6611043", "0.6605563", "0.65710425", "0.65689296", "0.65622145", "0.65565705", "0.6555641", "0.65435827", "0.65137714", "0.6482422", "0.64751345", "0.64714664", "0.64683795", "0.6414458", "0.6410557", "0.6410308", "0.63881487", "0.6383829", "0.6373849", "0.63583404", "0.6355334", "0.6335262", "0.631924", "0.6314224", "0.6305864", "0.6297401", "0.6295885", "0.6290285", "0.6285913", "0.6279371", "0.6269964", "0.62659186", "0.62651354", "0.6252448", "0.62489724", "0.6242643", "0.6235231", "0.6230493", "0.6227573", "0.62274635", "0.6223916", "0.622109", "0.62180376", "0.61973137", "0.61901796", "0.6187674", "0.6183077", "0.6175988", "0.61658645", "0.61562246", "0.6155219", "0.6151186", "0.614772", "0.61329985", "0.6120072", "0.6115829", "0.61120343", "0.61077833", "0.6102324", "0.61012983", "0.6099655", "0.6097389", "0.6089896", "0.6074458", "0.60740525", "0.60708576", "0.6067432", "0.60659003", "0.60632193" ]
0.62138045
74
Run the database seeds.
public function run() { DB::table('workspaces')->insert([ [ 'workspace_title' => 'Our First Workspace' ] , [ 'workspace_title' => 'Our Second Workspace' ] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => 'simpleadressemail@mail.com', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"admin@admin.com\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => 'prosales@researchmobile.co',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => 'movil@researchmobile.co',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => 'programmerlemar@gmail.com',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => 'qwerty@gmail.com',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> 'admin@example.com',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => 'briedis@aa.bb',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => 'briedis2@aa.bb',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => 'admin@admin.com',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'alice@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'bob@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'papesambandour@hotmail.com',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => 'rognales@gmail.com',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => 'sonic21danger@gmail.com',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'abada@gmail.com',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','abada@gmail.com')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => 'eddyjaair@gmail.com']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => 'barbozagonzalesjose@gmail.com',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'russell@gmail.com',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => 'bitfumes@gmail.com',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => 'paul@gmail.com',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => 'pkw@pkw.com',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'izzanniroshlei@gmail.com',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'aina@gmail.com',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'sab@gmail.com',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => 'pedrito@juase.com',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'hienphan18112015@gmail.com', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'haphan@gmail.com', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Get the Spatial Extent
public function getSpatialExtent() { return $this->spatialExtent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getXMaxExtent() {}", "public function getEllipsoid() {\n\n\t\t\treturn $this->_ellipsoid;\n\t\t}", "function get_extent($ows_srs = '', $where = '') {\n\t\tif ($where == '') {\n\t\t\t$where = $this->get_id_condition(array($this->get($this->identifier)));\n\t\t}\n\t\t$epsg_codes = explode(' ', trim(preg_replace('~[EPSGepsg: ]+~', ' ', $ows_srs)));\n\t\t$extents = array();\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\tST_XMin(ST_EXTENT(\" . $this->geom_column . \")) AS minx,\n\t\t\t\tST_YMin(ST_EXTENT(\" . $this->geom_column . \")) AS miny,\n\t\t\t\tST_XMax(ST_EXTENT(\" . $this->geom_column . \")) AS maxx,\n\t\t\t\tST_YMax(ST_EXTENT(\" . $this->geom_column . \")) AS maxy\n\t\t\tFROM\n\t\t\t\t\" . $this->schema . '.' . $this->tableName . \"\n\t\t\tWHERE\n\t\t\t\t\" . $where . \"\n\t\t\";\n\t\t#echo $sql; exit;\n\t\t$this->debug->show('get_extent sql: ' . $sql, false);\n\t\t$query = pg_query($this->database->dbConn, $sql);\n\t\t$this->extent = pg_fetch_assoc($query);\n\n\t\tforeach ($epsg_codes AS $epsg_code) {\n\t\t\tif ($epsg_code != '') {\n\t\t\t\t$geom_column = 'ST_Transform(' . $this->geom_column . ', ' . $epsg_code . ')';\n\t\t\t\t$sql = \"\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tST_XMin(ST_EXTENT(\" . $geom_column . \")) AS minx,\n\t\t\t\t\t\tST_YMin(ST_EXTENT(\" . $geom_column . \")) AS miny,\n\t\t\t\t\t\tST_XMax(ST_EXTENT(\" . $geom_column . \")) AS maxx,\n\t\t\t\t\t\tST_YMax(ST_EXTENT(\" . $geom_column . \")) AS maxy\n\t\t\t\t\tFROM\n\t\t\t\t\t\t\" . $this->schema . '.' . $this->tableName . \"\n\t\t\t\t\tWHERE\n\t\t\t\t\t\t\" . $where . \"\n\t\t\t\t\";\n\t\t\t\t$sqls[] = $sql;\n\t\t\t\t$this->debug->show('get_extent sql: ' . $sql, false);\n\t\t\t\t$query = pg_query($this->database->dbConn, $sql);\n\t\t\t\t$this->extents[$epsg_code] = pg_fetch_assoc($query);\n\t\t\t}\n\t\t}\n\t\treturn $this->extent;\n\t}", "private function _setMapExtent()\n {\n $ext = explode(',', $this->bbox_map);\n if (isset($this->projection) && $this->projection != $this->projection_map) {\n $origProjObj = ms_newProjectionObj(self::getProjection($this->projection_map));\n $newProjObj = ms_newProjectionObj(self::getProjection($this->default_projection));\n\n $poPoint1 = ms_newPointObj();\n $poPoint1->setXY($ext[0], $ext[1]);\n\n $poPoint2 = ms_newPointObj();\n $poPoint2->setXY($ext[2], $ext[3]);\n\n $poPoint1->project($origProjObj, $newProjObj);\n $poPoint2->project($origProjObj, $newProjObj);\n\n $ext[0] = $poPoint1->x;\n $ext[1] = $poPoint1->y;\n $ext[2] = $poPoint2->x;\n $ext[3] = $poPoint2->y;\n\n if ($poPoint1->x < $this->max_extent[0]\n || $poPoint1->y < $this->max_extent[1]\n || $poPoint2->x > $this->max_extent[2]\n || $poPoint2->y > $this->max_extent[3]\n || $poPoint1->x > $poPoint2->x\n || $poPoint1->y > $poPoint2->y\n ) {\n $ext[0] = $this->max_extent[0];\n $ext[1] = $this->max_extent[1];\n $ext[2] = $this->max_extent[2];\n $ext[3] = $this->max_extent[3];\n }\n }\n\n $ext0 = (min($ext[0], $ext[2]) == $ext[0]) ? $ext[0] : $ext[2];\n $ext2 = (max($ext[0], $ext[2]) == $ext[2]) ? $ext[2] : $ext[0];\n $ext1 = (min($ext[1], $ext[3]) == $ext[1]) ? $ext[1] : $ext[3];\n $ext3 = (max($ext[1], $ext[3]) == $ext[3]) ? $ext[3] : $ext[1];\n\n // Set the padding correction factors because final extent produced after draw() is off from setExtent\n $cellsize = max(($ext2 - $ext0)/($this->image_size[0]-1), ($ext3 - $ext1)/($this->image_size[1]-1));\n\n if ($cellsize > 0) {\n $ox = max((($this->image_size[0]-1) - ($ext2 - $ext0)/$cellsize)/2, 0);\n $oy = max((($this->image_size[1]-1) - ($ext3 - $ext1)/$cellsize)/2, 0);\n $this->ox_pad = $ox*$cellsize;\n $this->oy_pad = $oy*$cellsize;\n }\n\n $this->map_obj->setExtent($ext0, $ext1, $ext2, $ext3);\n }", "public function getLocationExt()\n {\n return $this->client->makeRequest('LocationExt', 'GET');\n }", "function getExtremaCoords($lat, $lon, $dist){\n if(!$lat || !$lon){\n return NULL;\n }\n\n $dist = abs($dist);\n\n $deltaLat = $dist / 111.1;\n $deltaLon = $dist / (deg2rad(1) * 6371 * cos(deg2rad($lat) )) ;\n\n return array('minLat'=>$lat - $deltaLat, 'maxLat'=>$lat + $deltaLat, 'minLon'=>$lon - $deltaLon, 'maxLon'=>$lon + $deltaLon);\n }", "public function getLowerOpticalPointSize() {}", "function MaxLatitude() {\n return $GLOBALS[\"maxLat\"];\n }", "public function get_minCorner()\r\n\t{\r\n\t\t$returnValue = new vector3;\r\n\t\t$returnValue->x = $this->position->x - $this->extent->x/2;\r\n\t\t$returnValue->y = $this->position->y - $this->extent->y/2;\r\n\t\t$returnValue->z = $this->position->z - $this->extent->z/2;\r\n\r\n\t\treturn $returnValue;\r\n\t}", "public function getCoordinates();", "public function getGeometry()\n {\n return $this->geometry;\n }", "public function x() {\n return $this->coords[0];\n }", "public function getXHeight() {}", "public function getXHeight() {}", "public function getUpperOpticalPointSize() {}", "function getWorldHeight();", "public function getBoundingBox() {}", "public function getGeo() {\n return $this->get(self::GEO);\n }", "public function getCoords()\n\t{\n\t\treturn $this->coords;\n\t}", "public function getXMax() {}", "public function getXMax() {}", "public function getSurface() {\r\n return 6 * $this -> lato * $this -> lato;\r\n }", "public function getMaxLat() {\n return $this->maxLat;\n }", "private function getSpatialExtent($bboxes)\n {\n if (count($bboxes) === 0 || !isset($bboxes[0])) {\n return null;\n }\n\n /*\n * Empty geometry is allowed in GeoJSON\n */\n $bbox = $bboxes[0];\n for ($i = 1, $ii = count($bboxes); $i < $ii; $i++) {\n if (isset($bboxes[$i])) {\n $bbox = array(\n min($bbox[0], $bboxes[$i][0]),\n min($bbox[1], $bboxes[$i][1]),\n max($bbox[2], $bboxes[$i][2]),\n max($bbox[3], $bboxes[$i][3]),\n );\n }\n }\n\n return $bbox;\n }", "public function getCoordinates()\n {\n return $this->coordinates;\n }", "public function getLateralSurface() {\n return parent::getCircumference() * $this->getHeight();\n }", "function getExt() {\n\t\treturn $this->_Ext;\n\t}", "public function getE()\n {\n $es = $this->getES();\n\n return sqrt($es);\n }", "public function northeast()\n {\n return new Point($this->north, $this->east);\n }", "public function getLatLngTopLeft(): LatLng\n {\n return $this->latLngTopLeft;\n }", "public function getRealPart(): float\n {\n return $this->realPart;\n }", "public function getExtendposList(){\n return $this->_get(3);\n }", "public function getSuperscriptXSize() {}", "public function getCoord(){\n return $this->coord;\n }", "public static function getWindowPosition() : \\raylib\\Vector2 {}", "public function getGeoCoordinateX()\n {\n return $this->geo_coordinate_x;\n }", "public function getXCoordinate()\n {\n return $this->getValueOfN() * cos(\\deg2rad($this->latitude)) * cos(deg2rad($this->longitude));\n }", "public function getImaginaryPart(): float\n {\n return $this->imaginaryPart;\n }", "public function getGeo()\n {\n return $this->geo;\n }", "public abstract function getOrigin(): Point;", "function RD2WGS84($x, $y){\n\n $dX = ($x - 155000) * pow(10,-5);\n $dY = ($y - 463000) * pow(10,-5);\n\n $SomN = (3235.65389 * $dY) + (-32.58297 * pow($dX,2)) + (-0.2475 * pow($dY,2)) + (-0.84978 * pow($dX,2) * $dY) + (-0.0655 * pow($dY,3)) + (-0.01709 * pow($dX,2) * pow($dY,2)) + (-0.00738 * $dX) + (0.0053 * pow($dX,4)) + (-0.00039 * pow($dX,2) * pow($dY,3)) + (0.00033 * pow($dX,4) * $dY) + (-0.00012 * $dX * $dY);\n $SomE = (5260.52916 * $dX) + (105.94684 * $dX * $dY) + (2.45656 * $dX * pow($dY,2)) + (-0.81885 * pow($dX,3)) + (0.05594 * $dX * pow($dY,3)) + (-0.05607 * pow($dX,3) * $dY) + (0.01199 * $dY) + (-0.00256 * pow($dX,3) * pow($dY,2)) + (0.00128 * $dX * pow($dY,4)) + (0.00022 * pow($dY,2)) + (-0.00022 * pow($dX,2)) + (0.00026 * pow($dX,5));\n\n $lat = 52.15517 + ($SomN / 3600);\n $lon = 5.387206 + ($SomE / 3600);\n \n return(Array($lat, $lon));\n }", "function getWorldWidth();", "public function getLatitude(): float;", "public function getSuperscriptYSize() {}", "function get_position( )\n\t{\n\t\treturn $this->latdeg.\";\".$this->londeg;\n\t}", "public function getSpGeometryArray() {\n if ($this->getSpGeometry()) {\n $json['type'] = $this->getSpGeometry()->getType();\n $json['coordinates'] = $this->getSpGeometry()->toArray();\n\n return $json;\n }\n\n return NULL;\n }", "function MinLatitude() {\n return $GLOBALS[\"minLat\"];\n }", "function MaxLongitude() {\n return $GLOBALS[\"maxLong\"];\n }", "public function getGeographyData()\n {\n return $this->geography_data;\n }", "public function getCoordinate()\n {\n return $this->coordinate;\n }", "public function getES()\n {\n // Calculate from a and b, if b has been supplied.\n if (isset($this->b)) {\n $a2 = $this->a * $this->a;\n $b = $this->b;\n $b2 = $this->b * $this->b;\n\n return ($a2 - $b2) / $a2;\n } else {\n // Otherwise use f.\n // FIXME: F will be infinite for a sphere. Can we use RF?\n $f = $this->getF();\n\n return (2 * $f) - ($f * $f);\n }\n }", "public function getCoordinates()\n\t{\n\t\tif (!empty($this->_coordinates)) {\n\t\t\treturn $this->_coordinates;\n\t\t} else {\n\t\t\t$errorMsg = 'getCoordinates called before coordinates values have been set';\n\t\t\tthrow new Exception($errorMsg);\n\t\t}\n\t}", "private function getExtensionPath() {\n\t\treturn t3lib_extMgm::extRelPath($this->extKey);\n\t}", "function getDimension()\n {\n return $this->m_dimension;\n }", "public function getLocationX()\n {\n return $this->locationX;\n }", "abstract public function getExtremePosition(bool $bGetMax, $location): int;", "public function getCoordinates(): array\n {\n return $this->coordinates;\n }", "public function getLongitude(): float;", "public function getLatLngBottomLeft(): LatLng\n {\n return $this->latLngBottomLeft;\n }", "public function southeast()\n {\n return new Point($this->south, $this->east);\n }", "private function getXposition()\n {\n return $this->getPositionInstance()->getXposition();\n }", "public function getLatitude()\n {\n return $this->get('Latitude');\n }", "public function toWGS84()\n {\n $gkProjection = new GaussKreugerProjection();\n $gkProjection->swedish_params($this->getProjectionString($this->projection));\n $lat_lon = $gkProjection->grid_to_geodetic($this->latitude, $this->longitude);\n\n $newPos = new WGS84Position($lat_lon[0], $lat_lon[1]);\n\n return $newPos;\n }", "public function getBounds();", "function MinLongitude() {\n return $GLOBALS[\"minLong\"];\n }", "public function getLat();", "public function getXp()\n {\n return $this->xp;\n }", "public function calcMediumPoint()\n {\n $lat=0;\n $lng=0;\n $i=0;\n \n if($this->len()==0)\n {\n return false;\n }\n \n foreach ($this->list as $point)\n {\n $i++;\n $angles=$point->getAngleCoordinates();\n $lat+=$angles['lat'];\n $lng+=$angles['lng'];\n }\n \n \n $point=new Point($lat/$i, $lng/$i);\n return $point;\n }", "public function getMapCropTopLeft(): XY\n {\n return $this->mapCropTopLeft;\n }", "function getDistance() {\n\t\treturn $this->dist2loc;\n\t}", "public function getImageZoom() {\n\t\treturn $this->imageZoom;\n\t}", "public function getCoordinate() {\n return $this->coordinate;\n }", "public function getBounds()\n {\n return $this->bounds;\n }", "public function GetXEnd(){\n return $this->w-$this->rMargin;\n }", "public function getCoordinate() {\n\n return $this->coordinate;\n }", "public function getProjection()\n {\n return $this->_projection;\n }", "public function getPositionUnits() {\r\n return $this->positionUnits;\r\n }", "public function getLng();", "public function getDimensions() {}", "public function setXMaxExtent($xMaxExtent) {}", "public function fetchBBOX() {\r\n $row = $this->db->query(\"SELECT ST_X(geom)-0.0001 AS w, ST_X(geom)+0.0001 AS e, ST_YMIN(geom)-0.0001 AS s, ST_YMAX(geom)+0.0001 AS n FROM {$this->table} WHERE id=?\", array($this->id) )->row();\r\n $row->w = (float) $row->w;\r\n $row->s = (float) $row->s;\r\n $row->e = (float) $row->e;\r\n $row->n = (float) $row->n;\r\n return $row;\r\n}", "public function getMapCropBottomRight(): XY\n {\n return $this->mapCropBottomRight;\n }", "public function getFull()\n {\n return $this->full;\n }", "public function getFull()\n {\n return $this->full;\n }", "public function getH() {\n return $this->x;\n }", "public function getLatLng() {\n return $point = $this->getLat().','.$this->getLng();\n }", "public function getProjection()\n {\n return $this->projection;\n }", "abstract public function coordinates();", "public function getE() {}", "public function getMagnitude(): float {\n return sqrt($this->x ** 2 + $this->y ** 2);\n }", "public function getMaxLng() {\n return $this->maxLng;\n }", "function getFloat()\r\n\t{\r\n\t\treturn array('lat' => $this->nLat, 'lon' => $this->nLon);\r\n\t}", "public function getSubscriptXSize() {}", "public function get_embeddable_markers() {\n return $this->get_supported_extensions();\n }", "public function getAbsoluteSize();", "public function getEffectiveZoom() {\n return $this->effectiveZoom;\n }", "public function fetchBBOX() {\r\n $row = $this->db->query(\"SELECT ST_XMIN(geom) AS w, ST_XMAX(geom) AS e, ST_YMIN(geom) AS s, ST_YMAX(geom) AS n FROM {$this->table} WHERE id=?\", array($this->id) )->row();\r\n $row->w = (float) $row->w;\r\n $row->s = (float) $row->s;\r\n $row->e = (float) $row->e;\r\n $row->n = (float) $row->n;\r\n return $row;\r\n}", "public function getResolution();", "public function getEntitiesInUse()\n {\n switch ($this->workMode) {\n case \"contributor\":\n return $this->contributorEntities;\n\n case \"production\":\n return $this->productionEntities;\n\n default:\n return null;\n }\n }", "public function setSpatialExtent(Toponym $spatialExtent)\n {\n $this->spatialExtent = $spatialExtent;\n }" ]
[ "0.656002", "0.6146702", "0.6144042", "0.5741954", "0.56009835", "0.53928083", "0.53810906", "0.53459406", "0.53264177", "0.5280215", "0.51829547", "0.51199245", "0.5109464", "0.51089275", "0.5108727", "0.51013064", "0.5067016", "0.50585246", "0.5018513", "0.5013091", "0.5013091", "0.5003389", "0.49988532", "0.49986494", "0.49911967", "0.4990058", "0.49532524", "0.49467587", "0.49313018", "0.49008137", "0.48652673", "0.4845402", "0.4844791", "0.4842882", "0.4839554", "0.48095977", "0.4809349", "0.4806403", "0.4802271", "0.4801584", "0.47939184", "0.4790392", "0.47773919", "0.47756872", "0.47459087", "0.4741421", "0.47344998", "0.4721149", "0.47088927", "0.47049353", "0.47028306", "0.4700093", "0.46980977", "0.46939018", "0.4692078", "0.4680546", "0.4658989", "0.46476725", "0.46401715", "0.46388927", "0.463798", "0.4634376", "0.46334827", "0.46302307", "0.46291086", "0.462469", "0.46244308", "0.4623428", "0.46206748", "0.46098697", "0.46056908", "0.45999503", "0.45914552", "0.45828435", "0.45646578", "0.45643148", "0.45586947", "0.45572698", "0.45535475", "0.45525375", "0.4547151", "0.4540885", "0.45402497", "0.45402497", "0.45395875", "0.4538585", "0.4536146", "0.45342517", "0.45265847", "0.45255905", "0.45187595", "0.45169118", "0.45091188", "0.4485462", "0.44789737", "0.44732618", "0.44723633", "0.44702482", "0.4460608", "0.44557106" ]
0.77231216
0
Sets the Spatial Extent
public function setSpatialExtent(Toponym $spatialExtent) { $this->spatialExtent = $spatialExtent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setXMaxExtent($xMaxExtent) {}", "public function getSpatialExtent()\n {\n return $this->spatialExtent;\n }", "public function getXMaxExtent() {}", "private function _setMapExtent()\n {\n $ext = explode(',', $this->bbox_map);\n if (isset($this->projection) && $this->projection != $this->projection_map) {\n $origProjObj = ms_newProjectionObj(self::getProjection($this->projection_map));\n $newProjObj = ms_newProjectionObj(self::getProjection($this->default_projection));\n\n $poPoint1 = ms_newPointObj();\n $poPoint1->setXY($ext[0], $ext[1]);\n\n $poPoint2 = ms_newPointObj();\n $poPoint2->setXY($ext[2], $ext[3]);\n\n $poPoint1->project($origProjObj, $newProjObj);\n $poPoint2->project($origProjObj, $newProjObj);\n\n $ext[0] = $poPoint1->x;\n $ext[1] = $poPoint1->y;\n $ext[2] = $poPoint2->x;\n $ext[3] = $poPoint2->y;\n\n if ($poPoint1->x < $this->max_extent[0]\n || $poPoint1->y < $this->max_extent[1]\n || $poPoint2->x > $this->max_extent[2]\n || $poPoint2->y > $this->max_extent[3]\n || $poPoint1->x > $poPoint2->x\n || $poPoint1->y > $poPoint2->y\n ) {\n $ext[0] = $this->max_extent[0];\n $ext[1] = $this->max_extent[1];\n $ext[2] = $this->max_extent[2];\n $ext[3] = $this->max_extent[3];\n }\n }\n\n $ext0 = (min($ext[0], $ext[2]) == $ext[0]) ? $ext[0] : $ext[2];\n $ext2 = (max($ext[0], $ext[2]) == $ext[2]) ? $ext[2] : $ext[0];\n $ext1 = (min($ext[1], $ext[3]) == $ext[1]) ? $ext[1] : $ext[3];\n $ext3 = (max($ext[1], $ext[3]) == $ext[3]) ? $ext[3] : $ext[1];\n\n // Set the padding correction factors because final extent produced after draw() is off from setExtent\n $cellsize = max(($ext2 - $ext0)/($this->image_size[0]-1), ($ext3 - $ext1)/($this->image_size[1]-1));\n\n if ($cellsize > 0) {\n $ox = max((($this->image_size[0]-1) - ($ext2 - $ext0)/$cellsize)/2, 0);\n $oy = max((($this->image_size[1]-1) - ($ext3 - $ext1)/$cellsize)/2, 0);\n $this->ox_pad = $ox*$cellsize;\n $this->oy_pad = $oy*$cellsize;\n }\n\n $this->map_obj->setExtent($ext0, $ext1, $ext2, $ext3);\n }", "public function setMaxExtent($extent = array())\n {\n $extent = explode(',', $extent);\n $this->max_extent = $extent;\n return $this;\n }", "function _setExtrema(& $plot)\n {\n }", "function _set_new_x($size)\r\n {\r\n $this->new_x = $size;\r\n }", "public function setXMax($xMax) {}", "function _set_img_x($size)\r\n {\r\n $this->img_x = $size;\r\n }", "protected function _setLimits() {\n\n\n\n $north = $this->_point->getRelativePoint($this->_radius, '0', $this->_unit);\n $south = $this->_point->getRelativePoint($this->_radius, '180', $this->_unit);\n\n $this->_limits['n'] = $north->lat;\n $this->_limits['s'] = $south->lat;\n\n $radDist = $this->_radius / Earth::radius($this->_unit);\n $minLat = deg2rad($this->_limits['s']);\n $maxLat = deg2rad($this->_limits['n']);\n $radLon = $this->_point->longitudeToRad();\n //if ($minLat > deg2rad(-90) && $maxLat < deg2rad(90)) {\n $deltaLon = asin(sin($radDist) / cos($this->_point->latitudeToRad()));\n $minLon = $radLon - $deltaLon;\n if ($minLon < deg2rad(-180)) {\n $minLon += 2 * pi();\n }\n $maxLon = $radLon + $deltaLon;\n if ($maxLon > deg2rad(180)){\n $maxLon -= 2 * pi();\n }\n //}\n //\n $this->_limits['w'] = rad2deg($minLon);\n $this->_limits['e'] = rad2deg($maxLon);\n }", "function setExt($inExt) {\n\t\tif ( $inExt !== $this->_Ext ) {\n\t\t\t$this->_Ext = $inExt;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "public function fitExtentToFeatures($margin = 5)\n {\n //create lists of all x and y coordinates\n $xCoordinates = array();\n $yCoordinates = array();\n foreach ($this->features as $feature) {\n foreach ($feature['geometry']['coordinates'] as $coordinates) {\n foreach ($coordinates as $coordinate) {\n array_push($xCoordinates, $coordinate[0]);\n array_push($yCoordinates, $coordinate[1]);\n }\n }\n }\n\n $minX = min($xCoordinates);\n $minY = min($yCoordinates);\n $maxX = max($xCoordinates);\n $maxY = max($yCoordinates);\n\n //set extent\n $this->extentWidth = ($maxX - $minX);\n $this->extentHeight = ($maxY - $minY);\n\n //set center\n $this->centerX = $minX + $this->extentWidth / 2;\n $this->centerY = $minY + $this->extentHeight / 2;\n\n //add margin\n $this->extentWidth *= (1 + $margin / 100);\n $this->extentHeight *= (1 + $margin / 100);\n\n }", "public function fixSpatial()\n \t{\n \t}", "public function fixSpatial()\n \t{\n \t}", "public function fixSpatial()\r\n \t{\r\n \t}", "function SetXY($x,$y)\n\t\t{\n\t\t\t$this->SetY($y);\n\t\t\t$this->SetX($x);\n\t\t}", "function _set_new_y($size)\r\n {\r\n $this->new_y = $size;\r\n }", "public function setLlx($llx) {}", "public function setX($x){\n $this->x = $x;\n }", "function setCoords($a_coords)\n\t{\n\t\t$this->coords = $a_coords;\n\t}", "public function extent(SizeInterface $size, PointInterface $start = null, ColorInterface $color = null);", "public function setPlanetSize($size) {\n list ($x, $y) = explode(' ', $size);\n \n $this->maxX = $x;\n $this->maxY = $y;\n }", "function SetValidExtensions($Ext) {\n\t\t\t$V = array();\n\t\t\t// Reinicializamos el vector\n\t\t\t$this->ExtenValidas = array();\n\t\t\tif (gettype($Ext) == \"array\") {\n\t\t\t\t$this->ExtenValidas = $Ext;\n\t\t\t} else {\n\t\t\t\t$V = explode(',', $Ext);\n\t\t\t\t// Recorremo el archivo para no permitir \n\t\t\t\t// files sin extension\n\t\t\t\tforeach ($V as $Val) {\n\t\t\t\t\tif ($Val != '') {\n\t\t\t\t\t\tarray_push($this->ExtenValidas, $Val);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->ToLowerArrayExtensions();\n\t\t}", "public function setExt($ext)\n {\n if ($ext) {\n $this->env['EXT'] = '.' . ltrim($ext, '.');\n } else {\n $this->env['EXT'] = '';\n }\n\n return $this;\n }", "public function getEllipsoid() {\n\n\t\t\treturn $this->_ellipsoid;\n\t\t}", "public function setResolution()\n\t{\n\t\t$args=func_get_args();\n\n\t\tif(count($args)==0 or count($args)>2) return;\n\n\t\t$this->resizeFlag=true;\n\n\t\t$this->width=$args[0];\n\t\t$this->height=$args[1];\n\n\t}", "public function setX($x);", "function get_extent($ows_srs = '', $where = '') {\n\t\tif ($where == '') {\n\t\t\t$where = $this->get_id_condition(array($this->get($this->identifier)));\n\t\t}\n\t\t$epsg_codes = explode(' ', trim(preg_replace('~[EPSGepsg: ]+~', ' ', $ows_srs)));\n\t\t$extents = array();\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\tST_XMin(ST_EXTENT(\" . $this->geom_column . \")) AS minx,\n\t\t\t\tST_YMin(ST_EXTENT(\" . $this->geom_column . \")) AS miny,\n\t\t\t\tST_XMax(ST_EXTENT(\" . $this->geom_column . \")) AS maxx,\n\t\t\t\tST_YMax(ST_EXTENT(\" . $this->geom_column . \")) AS maxy\n\t\t\tFROM\n\t\t\t\t\" . $this->schema . '.' . $this->tableName . \"\n\t\t\tWHERE\n\t\t\t\t\" . $where . \"\n\t\t\";\n\t\t#echo $sql; exit;\n\t\t$this->debug->show('get_extent sql: ' . $sql, false);\n\t\t$query = pg_query($this->database->dbConn, $sql);\n\t\t$this->extent = pg_fetch_assoc($query);\n\n\t\tforeach ($epsg_codes AS $epsg_code) {\n\t\t\tif ($epsg_code != '') {\n\t\t\t\t$geom_column = 'ST_Transform(' . $this->geom_column . ', ' . $epsg_code . ')';\n\t\t\t\t$sql = \"\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tST_XMin(ST_EXTENT(\" . $geom_column . \")) AS minx,\n\t\t\t\t\t\tST_YMin(ST_EXTENT(\" . $geom_column . \")) AS miny,\n\t\t\t\t\t\tST_XMax(ST_EXTENT(\" . $geom_column . \")) AS maxx,\n\t\t\t\t\t\tST_YMax(ST_EXTENT(\" . $geom_column . \")) AS maxy\n\t\t\t\t\tFROM\n\t\t\t\t\t\t\" . $this->schema . '.' . $this->tableName . \"\n\t\t\t\t\tWHERE\n\t\t\t\t\t\t\" . $where . \"\n\t\t\t\t\";\n\t\t\t\t$sqls[] = $sql;\n\t\t\t\t$this->debug->show('get_extent sql: ' . $sql, false);\n\t\t\t\t$query = pg_query($this->database->dbConn, $sql);\n\t\t\t\t$this->extents[$epsg_code] = pg_fetch_assoc($query);\n\t\t\t}\n\t\t}\n\t\treturn $this->extent;\n\t}", "public function setPosition($x, $y, $unit = null);", "public function setZoom($value) {\n\t}", "public function setX($x) {}", "public function setExtension($name, $baseVersion, $extensionLevel) {}", "public function setExtension($ext)\n {\n if (!empty($ext)){\n $this->extension = $ext;\n }\n }", "public function deplacerEn($dx,$dy)\r\n {\r\n $this->setX($dx);\r\n $this->setY($dy);\r\n }", "public function setExposureDenominator(?float $value): void {\n $this->getBackingStore()->set('exposureDenominator', $value);\n }", "public static function setFileExt($fileExt)\n {\n static::$fileExt = $fileExt;\n }", "public function setFocalLength(?float $value): void {\n $this->getBackingStore()->set('focalLength', $value);\n }", "public function setBound()\n {\n $args = func_get_args();\n\n if (isset($args[0]) && ($args[0] instanceof Bound)) {\n $this->bound = $args[0];\n } elseif ((isset($args[0]) && ($args[0] instanceof Coordinate))\n && (isset($args[1]) && ($args[1] instanceof Coordinate))\n ) {\n $this->bound->setSouthWest($args[0]);\n $this->bound->setNorthEast($args[1]);\n } elseif ((isset($args[0]) && is_numeric($args[0]))\n && (isset($args[1]) && is_numeric($args[1]))\n && (isset($args[2]) && is_numeric($args[2]))\n && (isset($args[3]) && is_numeric($args[3]))\n ) {\n $this->bound->setSouthWest(new Coordinate($args[0], $args[1]));\n $this->bound->setNorthEast(new Coordinate($args[2], $args[3]));\n\n if (isset($args[4]) && is_bool($args[4])) {\n $this->bound->getSouthWest()->setNoWrap($args[4]);\n }\n\n if (isset($args[5]) && is_bool($args[5])) {\n $this->bound->getNorthEast()->setNoWrap($args[5]);\n }\n } elseif (!isset($args[0])) {\n $this->bound->setSouthWest(null);\n $this->bound->setNorthEast(null);\n } else {\n throw MapException::invalidBound();\n }\n }", "public function testLargerValueSet()\n {\n $this->grid100x100->setPoint(2, 2, 10);\n }", "public function setPx(string $px) {\n $this->px = $px;\n }", "function set_template_ext($ext = NULL)\n\t{\n\t\t//make sure the extension starts with a .\n\t\tif (strpos( $ext, '.' ) !== 0)\n\t\t\t$ext = '.'.$ext;\n\t\t\n\t\t$this->template_ext = $ext;\n\t}", "function _set_img_y($size)\r\n {\r\n $this->img_y = $size;\r\n }", "private function setPosition($x, $y = null)\n {\n\n if (is_array($x) && $y === null) {\n $this->getPositionInstance()->setPosition($x[0], $x[1]);\n } else {\n $this->getPositionInstance()->setPosition($x[0], $y[1]);\n }\n }", "function _set_treated_expedition_extrafield($idexpe, $shipmentEntity) {\n\tglobal $db, $user, $conf;\n\n\t$sql = \"select entity from \".MAIN_DB_PREFIX.\"expedition where rowid =\".$idexpe;\n\t$re = $db->query($sql);\n $obj = $db->fetch_object($re);\n\n // var_dump($obj->entity);\n\n // var_dump($conf->entity,$shipmentEntity);\n\t$backEntity = $conf->entity;\n\n\t$conf->entity = $obj->entity;\n\n\n\t$currentExp = new Expedition($db);\n\t$res = $currentExp->fetch(intval($idexpe));\n\n\n\n // var_dump($conf->entity, $res, $idexpe);exit();\n\n\t$extra = new ExtraFields($db);\n\t$resultExtra = $extra->fetch_name_optionals_label($currentExp->table_element);\n\t//var_dump($resultExtra);exit();\n\tif($resultExtra) {\n\t\t$currentExp->array_options['options_customer_treated_shipment'] = 1;\n\t\t$currentExp->updateExtraField('customer_treated_shipment');\n\t}else {\n\t\tdol_syslog(__METHOD__.' $resultExtra='.var_export($resultExtra,true), LOG_ERR);\n\t}\n\n\t$conf->entity = $backEntity;\n //var_dump($conf->entity);exit();\n}", "public function setX($ord)\r\n {\r\n $this->x=$ord;\r\n }", "public function setEntity( $entity )\n {\n\n $this->setEntityWbfsysEntityTag( $entity );\n\n }", "public function setBoundaries()\n {\n }", "public function scale($s_)\n\t{\n\t\t$this->setX( $this->x*$s_ );\n\t\t$this->setY( $this->y*$s_ );\n\t}", "function setExtensionsPath($value)\r\n\t\t{\r\n\t\t\t$this->_extensionsPath = $value;\r\n\t\t}", "public function setPathExt($path)\n {\n // Strip the extension from the path.\n if (substr($path, -1) !== '/' && ($pos = strrpos($path, '.')) !== false) {\n $ext = substr($path, $pos);\n $path = substr($path, 0, $pos);\n $this->env['EXT'] = $ext;\n } else {\n $this->env['EXT'] = '';\n }\n $this->env['PATH_INFO'] = $path;\n return $this;\n }", "public function setFitMode($fitMode) {}", "public function setPositionUnits($value) {\r\n if ($this->positionUnits != $value) {\r\n $this->positionUnits = $value;\r\n $this->invalidate();\r\n }\r\n }", "protected function getExtConf() {\n\t\t$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]);\n\t\tif (!empty ($extConf)) {\n\t\t\t$this->extConf = $extConf;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setSize($size) {\n $this->_size = $size;\n }", "public function setParamExtendBasic()\r\n {\r\n\t\treturn $this->setParamExtend(PARAM_KERNEL_PATH_PARAM_EXTEND_BASIC);\r\n\t}", "public function setXMin($xMin) {}", "public function setYMax($yMax) {}", "public function setCenter()\n {\n $args = func_get_args();\n\n if (isset($args[0]) && ($args[0] instanceof Coordinate)) {\n $this->center = $args[0];\n } elseif ((isset($args[0]) && is_numeric($args[0])) && (isset($args[1]) && is_numeric($args[1]))) {\n $this->center->setLatitude($args[0]);\n $this->center->setLongitude($args[1]);\n\n if (isset($args[2]) && is_bool($args[2])) {\n $this->center->setNoWrap($args[2]);\n }\n } else {\n throw MapException::invalidCenter();\n }\n }", "public function setSize($size){\n $this->game->setGridSize($size);\n }", "public function setCoordinate()\n {\n $args = func_get_args();\n\n if (isset($args[0]) && ($args[0] instanceof Coordinate)) {\n $this->coordinate = $args[0];\n } elseif ((isset($args[0]) && is_numeric($args[0])) && (isset($args[1]) && is_numeric($args[1]))) {\n if (!$this->hasCoordinate()) {\n $this->coordinate = new Coordinate();\n }\n\n $this->coordinate->setLatitude($args[0]);\n $this->coordinate->setLongitude($args[1]);\n\n if (isset($args[2]) && is_bool($args[2])) {\n $this->coordinate->setNoWrap($args[2]);\n }\n } elseif (!isset($args[0])) {\n $this->coordinate = null;\n } else {\n throw GeocodingException::invalidGeocoderRequestCoordinate();\n }\n\n return $this;\n }", "private function scaleX() : void\n\t{\n\t\t$this->domain = abs($this->rangeXLow) + abs($this->rangeXHigh);\n\n\t\t$this->scaleX = ((float)$this->sizeX / $this->domain);\n\t\t$this->originX = $this->sizeX >> 1;\n\t\t\n\t}", "public function enableElevation(bool $bElevation = true) : void\r\n {\r\n $this->bElevation = $bElevation;\r\n }", "private function _saveExt() {\r\n\r\n }", "public function setDimensions($width, $height) {}", "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "public function setSize($width,$height) \n {\n $this->width = $width;\n $this->height = $height;\n }", "private function _addOmittedCanvasDimension() {\n\t\t$sourceWidth = $this->params['sourceWidth'];\n\t\t$sourceHeight = $this->params['sourceHeight'];\n\t\t$sourceRatio = $sourceWidth / $sourceHeight;\n\n\t\tif (\n\t\t\tempty($this->params['w']) &&\n\t\t\tempty($this->params['h'])\n\t\t) {\n\t\t\t$this->params['w'] = $sourceWidth;\n\t\t\t$this->params['h'] = $sourceHeight;\n\t\t} elseif (empty($this->params['h'])) {\n\t\t\tif (\n\t\t\t\t!$this->params['grow'] &&\n\t\t\t\t$this->params['w'] > $sourceWidth\n\t\t\t) {\n\t\t\t\t$this->params['h'] = $sourceHeight;\n\t\t\t} else {\n\t\t\t\t$this->params['h'] = $this->params['w'] / $sourceRatio;\n\t\t\t}\n\t\t} elseif (empty($this->params['w'])) {\n\t\t\tif (\n\t\t\t\t!$this->params['grow'] &&\n\t\t\t\t$this->params['h'] > $sourceHeight\n\t\t\t) {\n\t\t\t\t$this->params['w'] = $sourceWidth;\n\t\t\t} else {\n\t\t\t\t$this->params['w'] = $this->params['h'] * $sourceRatio;\n\t\t\t}\n\t\t}\n\t}", "public function setSoftEdges($size)\n {\n if ($size !== null) {\n $softEdges['size'] = (string) $this->getExcelPointsWidth($size);\n }\n }", "function setMode($mode){\n\t\t//Switches the operating mode of\n\t\t//'ScaleTool'.\n\n\t\tif($mode == 'fit' || $mode == 'fill')\n\t\t\t$this->mode = $mode;\n\t}", "protected function SetGridDimensions()\n {\n $this->g_height = $this->height - $this->pad_top - $this->pad_bottom;\n $this->g_width = $this->width - $this->pad_left - $this->pad_right;\n }", "public function setPoint(int $x, int $y ) : void\n\t{\n\t\tif($x > $this->rangeXHigh)\n\t\t\t$this->rangeXHigh = $x;\n\t\telseif ($x < $this->rangeXLow) \n\t\t\t$this->rangeXLow = $x;\n\n\t\tif($y > $this->rangeYHigh)\n\t\t\t$this->rangeYHigh = $y;\n\t\telseif ($y < $this->rangeYLow) \n\t\t\t$this->rangeYLow = $y;\n\n\t\t$this->xValues[] = $x;\n\t\t$this->yValues[] = $y;\n\n\t}", "public function setX(float $x): self\n\t{\n\t\t$this->x = $x;\n\t\treturn $this;\n\t}", "public function coordenadasOrigen($x,$y){\r\n\t\t$this->x_punto_origen=$x;\r\n\t\t$this->y_punto_origen=$y;\r\n\t}", "public function coordenadasOrigen($x,$y){\r\n\t\t$this->x_punto_origen=$x;\r\n\t\t$this->y_punto_origen=$y;\r\n\t}", "public function adjustMaxMin() {\r\n $tmp = new FloatRange();\r\n $this->calcMinMax($tmp);\r\n $this->minimumvalue = $tmp->min;\r\n $this->maximumvalue = $tmp->max;\r\n $this->iMaximum = $this->maximumvalue;\r\n $this->iMinimum = $this->minimumvalue;\r\n $this->internalCalcRange();\r\n }", "public function setMaxZoom($zoom) {\n $this->maxZoom = $zoom;\n }", "function setSize($size)\n {\n $this->size = $size;\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function setMaxPoints($value) {}", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function setExtensionAttributes(\n \\Magento\\Directory\\Api\\Data\\RegionInformationExtensionInterface $extensionAttributes\n );", "public function setExtensions(array $arExt){\n\t\t$this->arExt = $arExt;\n\t\t$this->arExt = array_map(function($item){\n\t\t\treturn toUpper($item);\n\t\t}, $this->arExt);\n\t}", "public function setSize($size)\n {\n $this->size = $size;\n }", "public function setCoordinates($x, $y, $z)\n {\n $this->longitude = rad2deg(atan($y / $x));\n\n $this->latitude = rad2deg(atan($z * sin(deg2rad($this->longitude)) / ((1 - pow($this->getValueOfSquareEccentricity(), 2)) * $y)));\n }", "public function getServerExt($name)\n {\n }", "public function getLocationExt()\n {\n return $this->client->makeRequest('LocationExt', 'GET');\n }", "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public function getSuperscriptXSize() {}", "public function setExtension($ext);", "private function _setMapSize()\n {\n $this->map_obj->setSize($this->image_size[0], $this->image_size[1]);\n if ($this->_isResize()) {\n $this->map_obj->setSize($this->_download_factor*$this->image_size[0], $this->_download_factor*$this->image_size[1]);\n }\n }", "public function setExtended() {\n /* first cut out regular and unwanted fields */\n $excludeExtended = $this->controller->getProperty('excludeExtended','');\n $excludeExtended = explode(',',$excludeExtended);\n $profileFields = $this->profile->toArray();\n $userFields = $this->user->toArray();\n $extended = array();\n $fields = $this->dictionary->toArray();\n $fields = $this->filterAllowedFields($fields);\n $userGroupField = $this->controller->getProperty('usergroupsField','');\n foreach ($fields as $field => $value) {\n if (!isset($profileFields[$field])\n && !isset($userFields[$field])\n && $field != 'password_confirm'\n && $field != 'passwordconfirm'\n && $field != $userGroupField\n && !in_array($field,$excludeExtended)\n ) {\n $extended[$field] = $value;\n }\n }\n /* now set extended data */\n $this->profile->set('extended',$extended);\n }", "public function setElUnit($elUnit) {\n $this->cElUnit = $elUnit;\n \n }", "function setSize($w=0,$h=0){\r\n $this->width = $w;\r\n $this->heigth=$h;\r\n }", "function setAdmin() {\n\t\t$this->_extension_high = \"\";\n\t\t$this->_extension_low = \"\";\n\t\t$this->_deptname = \"\";\n\t\t$this->_sections = array(\"*\");\n\t}", "function MaxLatitude() {\n return $GLOBALS[\"maxLat\"];\n }", "public function setSizeField($width='800', $height='600') {\n\n $this->sizeField['width'] = $width;\n $this->sizeField['height'] = $height;\n $this->gridObject = new SimpleXMLElement(\n '<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\"\n \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n width=\"'.$width.'\" height=\"'.$height.'\"></svg>'\n );\n \n return $this;\n }", "public function setBound()\n {\n $args = func_get_args();\n\n if (isset($args[0]) && ($args[0] instanceof Bound)) {\n $this->bound = $args[0];\n } elseif ((isset($args[0]) && ($args[0] instanceof Coordinate))\n && (isset($args[1]) && ($args[1] instanceof Coordinate))\n ) {\n if (!$this->hasBound()) {\n $this->bound = new Bound();\n }\n\n $this->bound->setSouthWest($args[0]);\n $this->bound->setNorthEast($args[1]);\n } elseif ((isset($args[0]) && is_numeric($args[0]))\n && (isset($args[1]) && is_numeric($args[1]))\n && (isset($args[2]) && is_numeric($args[2]))\n && (isset($args[3]) && is_numeric($args[3]))\n ) {\n if (!$this->hasBound()) {\n $this->bound = new Bound();\n }\n\n $this->bound->setSouthWest(new Coordinate($args[0], $args[1]));\n $this->bound->setNorthEast(new Coordinate($args[2], $args[3]));\n\n if (isset($args[4]) && is_bool($args[4])) {\n $this->bound->getSouthWest()->setNoWrap($args[4]);\n }\n\n if (isset($args[5]) && is_bool($args[5])) {\n $this->bound->getNorthEast()->setNoWrap($args[5]);\n }\n } elseif (!isset($args[0])) {\n $this->bound = null;\n } else {\n throw GeocodingException::invalidGeocoderRequestBound();\n }\n }", "public function setEffector(Effector $eft) : void\n {\n $this->eft = $eft;\n }", "protected function normalize(): void\n {\n $coordinate = new BaseCoordinate(array(0, $this->value));\n $latitude = (float)$coordinate->getLongitude();\n\n $this->value = $latitude;\n }" ]
[ "0.61918503", "0.5776229", "0.57497567", "0.5675774", "0.5590067", "0.5438381", "0.50675434", "0.5047495", "0.4938353", "0.48829028", "0.4805554", "0.46839035", "0.46595216", "0.46595216", "0.46530724", "0.45876282", "0.45320445", "0.44987565", "0.4478509", "0.4449143", "0.4444852", "0.44422162", "0.4441709", "0.4427776", "0.44193876", "0.43785727", "0.43763503", "0.43505985", "0.4342285", "0.43316248", "0.4294333", "0.42820686", "0.42365888", "0.42271763", "0.42139584", "0.4209129", "0.42005172", "0.4183221", "0.41811767", "0.41613272", "0.4154477", "0.41540506", "0.41493955", "0.4148861", "0.41454715", "0.4137088", "0.41362056", "0.41264614", "0.41237843", "0.41178557", "0.41136697", "0.41096342", "0.408933", "0.40774146", "0.40767103", "0.4074033", "0.4072126", "0.4066357", "0.40662843", "0.4062464", "0.40574154", "0.40423632", "0.4040882", "0.4035857", "0.4033559", "0.40333962", "0.4030099", "0.40290588", "0.40279222", "0.4027212", "0.4026882", "0.4020398", "0.4017082", "0.4017082", "0.40013057", "0.39983645", "0.39916945", "0.39874187", "0.39874187", "0.39833316", "0.39819023", "0.3979792", "0.3973089", "0.3967391", "0.39648205", "0.39622703", "0.3960935", "0.39601466", "0.39456996", "0.3944822", "0.39447019", "0.39427108", "0.39396387", "0.39347765", "0.3932381", "0.39204162", "0.39141268", "0.3902755", "0.38995352", "0.38954067" ]
0.6344547
0
Gets the resetScope Commaseparated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark Removing the watermark causes the service to reevaluate all the users again, rather than just processing changes.QuarantineState Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Azure portal. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs.
public function getResetScope() { if (array_key_exists("resetScope", $this->_propDict)) { if (is_a($this->_propDict["resetScope"], "\Beta\Microsoft\Graph\Model\SynchronizationJobRestartScope") || is_null($this->_propDict["resetScope"])) { return $this->_propDict["resetScope"]; } else { $this->_propDict["resetScope"] = new SynchronizationJobRestartScope($this->_propDict["resetScope"]); return $this->_propDict["resetScope"]; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setResetScope($val)\n {\n $this->_propDict[\"resetScope\"] = $val;\n return $this;\n }", "public function resetScope();", "public function clearScope() {\n\t\treturn $this->setScope( \"\" );\n\t}", "public function resetScope( $scope = \"\" ) {\n\t\treturn $this->setScope( $scope );\n\t}", "public function reset()\n {\n return $this->sendCommand('RSET', 'RSET', 250);\n }", "public function getDefaultScope()\n {\n return $this->_defaultScope;\n }", "public function getReset()\n {\n return $this->get(self::_RESET);\n }", "public function getReset()\n {\n return $this->get(self::_RESET);\n }", "public function getResetValue()\n {\n return null;\n }", "function ResetCmd() {\n\t\tglobal $scholarship_package;\n\n\t\t// Get reset command\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t\t// Reset master/detail keys\n\t\t\tif (strtolower($sCmd) == \"resetall\") {\n\t\t\t\t$scholarship_package->getCurrentMasterTable = \"\"; // Clear master table\n\t\t\t\t$scholarship_package->setMasterFilter(\"\"); // Clear master filter\n\t\t\t\t$this->sDbMasterFilter = \"\";\n\t\t\t\t$scholarship_package->setDetailFilter(\"\"); // Clear detail filter\n\t\t\t\t$this->sDbDetailFilter = \"\";\n\t\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->setSessionValue(\"\");\n\t\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->setSessionValue(\"\");\n\t\t\t}\n\n\t\t\t// Reset sorting order\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$scholarship_package->setSessionOrderBy($sOrderBy);\n\t\t\t\t$scholarship_package->scholarship_package_id->setSort(\"\");\n\t\t\t\t$scholarship_package->start_date->setSort(\"\");\n\t\t\t\t$scholarship_package->end_date->setSort(\"\");\n\t\t\t\t$scholarship_package->status->setSort(\"\");\n\t\t\t\t$scholarship_package->annual_amount->setSort(\"\");\n\t\t\t\t$scholarship_package->grant_package_grant_package_id->setSort(\"\");\n\t\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->setSort(\"\");\n\t\t\t\t$scholarship_package->scholarship_type->setSort(\"\");\n\t\t\t\t$scholarship_package->scholarship_type_scholarship_type->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->lStartRec = 1;\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "function ResetCmd() {\r\n\r\n\t\t// Check if reset command\r\n\t\tif (substr($this->Command,0,5) == \"reset\") {\r\n\r\n\t\t\t// Reset master/detail keys\r\n\t\t\tif ($this->Command == \"resetall\") {\r\n\t\t\t\t$this->setCurrentMasterTable(\"\"); // Clear master table\r\n\t\t\t\t$this->DbMasterFilter = \"\";\r\n\t\t\t\t$this->DbDetailFilter = \"\";\r\n\t\t\t\t$this->domain_id->setSessionValue(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif ($this->Command == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$this->identries->setSort(\"\");\r\n\t\t\t\t$this->titulo->setSort(\"\");\r\n\t\t\t\t$this->id->setSort(\"\");\r\n\t\t\t\t$this->islive->setSort(\"\");\r\n\t\t\t\t$this->tool_id->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function ResetCmd() {\r\n\r\n\t\t// Check if reset command\r\n\t\tif (substr($this->Command,0,5) == \"reset\") {\r\n\r\n\t\t\t// Reset search criteria\r\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\r\n\t\t\t\t$this->ResetSearchParms();\r\n\r\n\t\t\t// Reset master/detail keys\r\n\t\t\tif ($this->Command == \"resetall\") {\r\n\t\t\t\t$this->setCurrentMasterTable(\"\"); // Clear master table\r\n\t\t\t\t$this->DbMasterFilter = \"\";\r\n\t\t\t\t$this->DbDetailFilter = \"\";\r\n\t\t\t\t$this->id_grupo->setSessionValue(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif ($this->Command == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$this->created_time->setSort(\"\");\r\n\t\t\t\t$this->message->setSort(\"\");\r\n\t\t\t\t$this->link->setSort(\"\");\r\n\t\t\t\t$this->type->setSort(\"\");\r\n\t\t\t\t$this->caption->setSort(\"\");\r\n\t\t\t\t$this->description->setSort(\"\");\r\n\t\t\t\t$this->name->setSort(\"\");\r\n\t\t\t\t$this->source->setSort(\"\");\r\n\t\t\t\t$this->from->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->setSessionOrderByList($sOrderBy);\n\t\t\t\t$this->fecha_tamizaje->setSort(\"\");\n\t\t\t\t$this->id_centro->setSort(\"\");\n\t\t\t\t$this->apellidopaterno->setSort(\"\");\n\t\t\t\t$this->apellidomaterno->setSort(\"\");\n\t\t\t\t$this->nombre->setSort(\"\");\n\t\t\t\t$this->ci->setSort(\"\");\n\t\t\t\t$this->fecha_nacimiento->setSort(\"\");\n\t\t\t\t$this->dias->setSort(\"\");\n\t\t\t\t$this->semanas->setSort(\"\");\n\t\t\t\t$this->meses->setSort(\"\");\n\t\t\t\t$this->sexo->setSort(\"\");\n\t\t\t\t$this->discapacidad->setSort(\"\");\n\t\t\t\t$this->id_tipodiscapacidad->setSort(\"\");\n\t\t\t\t$this->resultado->setSort(\"\");\n\t\t\t\t$this->resultadotamizaje->setSort(\"\");\n\t\t\t\t$this->tapon->setSort(\"\");\n\t\t\t\t$this->tipo->setSort(\"\");\n\t\t\t\t$this->repetirprueba->setSort(\"\");\n\t\t\t\t$this->observaciones->setSort(\"\");\n\t\t\t\t$this->id_apoderado->setSort(\"\");\n\t\t\t\t$this->id_referencia->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->nombre_contacto->setSort(\"\");\n\t\t\t\t$this->name->setSort(\"\");\n\t\t\t\t$this->lastname->setSort(\"\");\n\t\t\t\t$this->_email->setSort(\"\");\n\t\t\t\t$this->address->setSort(\"\");\n\t\t\t\t$this->phone->setSort(\"\");\n\t\t\t\t$this->cell->setSort(\"\");\n\t\t\t\t$this->created_at->setSort(\"\");\n\t\t\t\t$this->id_sucursal->setSort(\"\");\n\t\t\t\t$this->tipoinmueble->setSort(\"\");\n\t\t\t\t$this->tipovehiculo->setSort(\"\");\n\t\t\t\t$this->tipomaquinaria->setSort(\"\");\n\t\t\t\t$this->tipomercaderia->setSort(\"\");\n\t\t\t\t$this->tipoespecial->setSort(\"\");\n\t\t\t\t$this->email_contacto->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function ResetCmd() {\r\n\r\n\t\t// Check if reset command\r\n\t\tif (substr($this->Command,0,5) == \"reset\") {\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif ($this->Command == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$this->RazonSocial->setSort(\"\");\r\n\t\t\t\t$this->NombreContacto->setSort(\"\");\r\n\t\t\t\t$this->Poblacion->setSort(\"\");\r\n\t\t\t\t$this->Id_Estado->setSort(\"\");\r\n\t\t\t\t$this->Telefonos->setSort(\"\");\r\n\t\t\t\t$this->Celular->setSort(\"\");\r\n\t\t\t\t$this->Maneja_Papeleta->setSort(\"\");\r\n\t\t\t\t$this->Maneja_Activacion_Movi->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "public function getScope(): ?string\n {\n return $this->scope;\n }", "public function getScope(): ?string\n {\n return $this->scope;\n }", "abstract public function getReset();", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->tgl->setSort(\"\");\n\t\t\t\t$this->no_spp->setSort(\"\");\n\t\t\t\t$this->jns_spp->setSort(\"\");\n\t\t\t\t$this->kd_mata->setSort(\"\");\n\t\t\t\t$this->urai->setSort(\"\");\n\t\t\t\t$this->jmlh->setSort(\"\");\n\t\t\t\t$this->jmlh1->setSort(\"\");\n\t\t\t\t$this->jmlh2->setSort(\"\");\n\t\t\t\t$this->jmlh3->setSort(\"\");\n\t\t\t\t$this->jmlh4->setSort(\"\");\n\t\t\t\t$this->nm_perus->setSort(\"\");\n\t\t\t\t$this->alamat->setSort(\"\");\n\t\t\t\t$this->npwp->setSort(\"\");\n\t\t\t\t$this->pimpinan->setSort(\"\");\n\t\t\t\t$this->bank->setSort(\"\");\n\t\t\t\t$this->rek->setSort(\"\");\n\t\t\t\t$this->nospm->setSort(\"\");\n\t\t\t\t$this->tglspm->setSort(\"\");\n\t\t\t\t$this->ppn->setSort(\"\");\n\t\t\t\t$this->ps21->setSort(\"\");\n\t\t\t\t$this->ps22->setSort(\"\");\n\t\t\t\t$this->ps23->setSort(\"\");\n\t\t\t\t$this->ps4->setSort(\"\");\n\t\t\t\t$this->kodespm->setSort(\"\");\n\t\t\t\t$this->nambud->setSort(\"\");\n\t\t\t\t$this->nppk->setSort(\"\");\n\t\t\t\t$this->nipppk->setSort(\"\");\n\t\t\t\t$this->prog->setSort(\"\");\n\t\t\t\t$this->prog1->setSort(\"\");\n\t\t\t\t$this->bayar->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "public function reset()\n {\n $cart = $this->getService()->getSessionCart();\n\n return $this->getService()->resetCart($cart);\n }", "public function getScope()\n {\n $code = Mage::app()->getRequest()->getParam('store');\n $code_w = Mage::app()->getRequest()->getParam('website');\n if ($code != '') {\n $store_id = Mage::getModel('core/store')->load($code)->getId();\n } else if ($code_w != '') {\n $website_id = Mage::getModel('core/website')->load($code)->getId();\n $store_id = Mage::app()->getWebsite($website_id)->getDefaultStore()->getId();\n } else {\n $store_id = 0;\n }\n\n if ($code == '' && $code_w == '') {\n $data['scope'] = 'default';\n $data['scope_id'] = 0;\n } else if (isset($website_id)) {\n $data['scope'] = 'websites';\n $data['scope_id'] = $website_id;\n } else if (isset($store_id)) {\n $data['scope'] = 'stores';\n $data['scope_id'] = $store_id;\n } else {\n $data['scope'] = 'default';\n $data['scope_id'] = 0;\n }\n\n return $data;\n }", "public function forceReset() {\r\n if (GEAR_DEV && GearSection::truncate() && GearOption::truncate()){\r\n return self::resetInit();\r\n }\r\n }", "function ResetCmd() {\r\n\t\tglobal $fs_multijoin_v;\r\n\r\n\t\t// Get reset command\r\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\r\n\t\t\t$sCmd = $_GET[\"cmd\"];\r\n\r\n\t\t\t// Reset search criteria\r\n\t\t\tif (strtolower($sCmd) == \"reset\" || strtolower($sCmd) == \"resetall\")\r\n\t\t\t\t$this->ResetSearchParms();\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$fs_multijoin_v->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$fs_multijoin_v->id->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->mount->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->path->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->parent->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->deprecated->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->name->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->snapshot->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->tapebackup->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->diskbackup->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->type->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->CONTACT->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->CONTACT2->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->RESCOMP->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->lStartRec = 1;\r\n\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t}\r\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->id->setSort(\"\");\n\t\t\t\t$this->detail_jenis_spp->setSort(\"\");\n\t\t\t\t$this->no_spp->setSort(\"\");\n\t\t\t\t$this->tgl_spp->setSort(\"\");\n\t\t\t\t$this->keterangan->setSort(\"\");\n\t\t\t\t$this->no_spm->setSort(\"\");\n\t\t\t\t$this->tgl_spm->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->tanggal->setSort(\"\");\n\t\t\t\t$this->auc_number->setSort(\"\");\n\t\t\t\t$this->start_bid->setSort(\"\");\n\t\t\t\t$this->close_bid->setSort(\"\");\n\t\t\t\t$this->lot_number->setSort(\"\");\n\t\t\t\t$this->chop->setSort(\"\");\n\t\t\t\t$this->grade->setSort(\"\");\n\t\t\t\t$this->estate->setSort(\"\");\n\t\t\t\t$this->sack->setSort(\"\");\n\t\t\t\t$this->netto->setSort(\"\");\n\t\t\t\t$this->open_bid->setSort(\"\");\n\t\t\t\t$this->highest_bid->setSort(\"\");\n\t\t\t\t$this->auction_status->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::customer_id] = null;\n $this->values[self::auth_token] = null;\n $this->values[self::wholesaler_id] = null;\n $this->values[self::order_id] = null;\n $this->values[self::quality] = null;\n $this->values[self::delivery] = null;\n $this->values[self::comment] = null;\n }", "public function requestReset($fieldId, $scope)\n {\n $field = $this->Manager->resetField($fieldId, $scope);\n\n return $field;\n }", "public function reset()\n {\n $this->values[self::_OPEN_PANEL] = null;\n $this->values[self::_QUERY_OPPO] = null;\n $this->values[self::_START_BAT] = null;\n $this->values[self::_END_BAT] = null;\n $this->values[self::_RESET] = null;\n $this->values[self::_DRAW_REWARD] = null;\n }", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->userlevelid->setSort(\"\");\n\t\t\t\t$this->userlevelname->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::_OWNER] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_TYPE_ID] = null;\n $this->values[self::_TEAM] = array();\n $this->values[self::_STATE] = null;\n $this->values[self::_STATE_END_TS] = null;\n $this->values[self::_PRODUCE_SPEED] = null;\n $this->values[self::_STORAGE] = null;\n }", "protected function getDefaultScopes()\n {\n return isset($this->scope) ? $this->scope : [];\n }", "protected function getDefaultScopes()\n {\n return isset($this->scope) ? $this->scope : [];\n }", "public function flushScope()\n\t{\n\t\t$success = function_exists('apply_filters') ? apply_filters('cache_flush_all', null, $this) : null;\n\t\t$success = $success === null ? $this->_call('del', array($this->_scope())) : $success;\n\t\t\n\t\treturn $success;\n\t}", "public function reset()\n {\n $this->values[self::STATUS] = null;\n $this->values[self::ERRORS] = array();\n $this->values[self::VALIDATOR_REVISION] = self::$fields[self::VALIDATOR_REVISION]['default'];\n $this->values[self::SPEC_FILE_REVISION] = self::$fields[self::SPEC_FILE_REVISION]['default'];\n $this->values[self::TRANSFORMER_VERSION] = self::$fields[self::TRANSFORMER_VERSION]['default'];\n $this->values[self::TYPE_IDENTIFIER] = array();\n $this->values[self::VALUE_SET_PROVISIONS] = array();\n $this->values[self::VALUE_SET_REQUIREMENTS] = array();\n }", "public function disableDefaultScope() {\n $this->_disabled = true;\n return $this->Owner;\n }", "function ResetCmd() {\r\n\t\tglobal $rekeningju;\r\n\r\n\t\t// Get reset command\r\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\r\n\t\t\t$sCmd = $_GET[\"cmd\"];\r\n\r\n\t\t\t// Reset master/detail keys\r\n\t\t\tif (strtolower($sCmd) == \"resetall\") {\r\n\t\t\t\t$rekeningju->setCurrentMasterTable(\"\"); // Clear master table\r\n\t\t\t\t$this->DbMasterFilter = \"\";\r\n\t\t\t\t$this->DbDetailFilter = \"\";\r\n\t\t\t\t$rekeningju->kode_otomatis_master->setSessionValue(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$rekeningju->setSessionOrderBy($sOrderBy);\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "public function reset()\n {\n $this->values[self::TASK_ID] = null;\n $this->values[self::TASK_STATE] = null;\n $this->values[self::DEPAND_TASK_ID] = null;\n $this->values[self::DEPAND_TASK_NAME] = null;\n $this->values[self::FREEZED] = null;\n $this->values[self::VALID] = null;\n $this->values[self::PAUSE] = null;\n $this->values[self::ERR] = null;\n $this->values[self::SUCCESS_SUBTASK] = null;\n $this->values[self::FAILED_SUBTASK] = null;\n $this->values[self::DOING_SUBTASK] = null;\n $this->values[self::UNDO_SUBTASK] = null;\n $this->values[self::IGNORE_DOING_SUBTASK] = null;\n $this->values[self::IGNORE_FAILED_SUBTASK] = null;\n }", "public function reset()\n {\n $this->values[self::PHONE] = null;\n $this->values[self::PASSWORD] = null;\n $this->values[self::EQUIPMENT] = null;\n $this->values[self::LOGIN_TYPE] = null;\n }", "public function getScope(): ?TermGroupScope {\n $val = $this->getBackingStore()->get('scope');\n if (is_null($val) || $val instanceof TermGroupScope) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'scope'\");\n }", "public function reset()\n {\n $this->values[self::TRANSACTION_ID] = null;\n $this->values[self::EVENTS] = [];\n $this->values[self::REQUIRE_MASTER] = null;\n }", "public function reset()\n {\n $this->values[self::RET] = null;\n $this->values[self::CMDLIST] = null;\n $this->values[self::CONTINUEFLAG] = null;\n $this->values[self::SYNC_KEY] = null;\n $this->values[self::STATUS] = null;\n $this->values[self::ONLINEVERSION] = null;\n $this->values[self::SVRTIME] = null;\n }", "public function getScope() {\n\t\treturn $this->scope;\n\t}", "function ResetCmd() {\n\tglobal $sDbMasterFilter, $sDbDetailFilter, $nStartRec, $sOrderBy;\n\tglobal $dpp_proveedores;\n\n\t// Get reset cmd\n\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t// Reset search criteria\n\t\tif (strtolower($sCmd) == \"reset\" || strtolower($sCmd) == \"resetall\") {\n\t\t\tResetSearchParms();\n\t\t}\n\n\t\t// Reset Sort Criteria\n\t\tif (strtolower($sCmd) == \"resetsort\") {\n\t\t\t$sOrderBy = \"\";\n\t\t\t$dpp_proveedores->setSessionOrderBy($sOrderBy);\n\t\t\t$dpp_proveedores->provee_id->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_rut->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_dig->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_cat_juri->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_nombre->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_paterno->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_materno->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_dir->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_fono->setSort(\"\");\n\t\t}\n\n\t\t// Reset start position\n\t\t$nStartRec = 1;\n\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t}\n}", "public function getScope()\n {\n return $this->scope;\n }", "public function getScope()\n {\n return $this->scope;\n }", "public function getScope()\n {\n return $this->scope;\n }", "public function getScope()\n {\n return $this->scope;\n }", "public function getScope()\n {\n return $this->scope;\n }", "public function getScope()\n {\n return $this->scope;\n }", "public function getScope()\n {\n return $this->scope;\n }", "public function reset()\n {\n $this->values[self::APP_NAME] = null;\n $this->values[self::SVR_NAME] = null;\n $this->values[self::SVR_POOL] = null;\n $this->values[self::TASK_CMD] = null;\n $this->values[self::TASK_ID] = null;\n $this->values[self::SUBTASK_ID] = null;\n $this->values[self::CMD_ID] = null;\n }", "public function reset()\n {\n $this->values[self::_OPEN_PANEL] = null;\n $this->values[self::_APPLY_OPPO] = null;\n $this->values[self::_START_BATTLE] = null;\n $this->values[self::_END_BATTLE] = null;\n $this->values[self::_SET_LINEUP] = null;\n $this->values[self::_QUERY_RECORDS] = null;\n $this->values[self::_QUERY_REPLAY] = null;\n $this->values[self::_QUERY_RANKBORAD] = null;\n $this->values[self::_QUERY_OPPO] = null;\n $this->values[self::_CLEAR_BATTLE_CD] = null;\n $this->values[self::_DRAW_RANK_REWARD] = null;\n $this->values[self::_BUY_BATTLE_CHANCE] = null;\n }", "public function getScope() {\n\t\treturn $this->_scope;\n\t}", "public function getDefaultScopes()\n {\n return $this->scopeRepository->findBy(['isDefault' => true]);\n }", "protected function _scope()\n\t{\n\t\treturn $this->_meta['scope'];\n\t}", "public function getDeviceScopeId()\n {\n if (array_key_exists(\"deviceScopeId\", $this->_propDict)) {\n return $this->_propDict[\"deviceScopeId\"];\n } else {\n return null;\n }\n }", "public function defaultScope()\n {\n $scope=array();\n\n \n return $scope;\n }", "function reset(){\n for( $x=count($this->ctx)-1; $x>=1; $x-- ){ // skip _ROOT_\n if( isset($this->ctx[$x]['_scope_']) ){\n $this->ctx[$x]['_scope_'] = array();\n return;\n }\n }\n }", "public function getSettingScope()\n {\n if (array_key_exists(\"settingScope\", $this->_propDict)) {\n if (is_a($this->_propDict[\"settingScope\"], \"\\Beta\\Microsoft\\Graph\\Model\\GroupPolicySettingScope\") || is_null($this->_propDict[\"settingScope\"])) {\n return $this->_propDict[\"settingScope\"];\n } else {\n $this->_propDict[\"settingScope\"] = new GroupPolicySettingScope($this->_propDict[\"settingScope\"]);\n return $this->_propDict[\"settingScope\"];\n }\n }\n return null;\n }", "function ResetCmd()\n{\n\n\t// Get Reset command\n\tif (strlen(@$_GET[\"cmd\"]) > 0) {\n\t\t$sCmd = @$_GET[\"cmd\"];\n\t\tif (strtolower($sCmd) == \"reset\") { // Reset search criteria\n\t\t\tResetSearch();\n\t\t} elseif (strtolower($sCmd) == \"resetall\") { // Reset search criteria and session vars\n\t\t\tResetSearch();\n\t\t} elseif (strtolower($sCmd) == \"resetsort\") { // Reset sort criteria\n\t\t\t$sOrderBy = \"\";\n\t\t\t$_SESSION[ewSessionTblOrderBy] = $sOrderBy;\n\t\t\tif (@$_SESSION[ewSessionTblSort . \"_x_cod_material\"] <> \"\") { $_SESSION[ewSessionTblSort . \"_x_cod_material\"] = \"\"; }\n\t\t\tif (@$_SESSION[ewSessionTblSort . \"_x_descripcion\"] <> \"\") { $_SESSION[ewSessionTblSort . \"_x_descripcion\"] = \"\"; }\n\t\t\tif (@$_SESSION[ewSessionTblSort . \"_x_unidad\"] <> \"\") { $_SESSION[ewSessionTblSort . \"_x_unidad\"] = \"\"; }\n\t\t}\n\n\t\t// Reset start position (Reset command)\n\t\t$nStartRec = 1;\n\t\t$_SESSION[ewSessionTblStartRec] = $nStartRec;\n\t}\n}", "public function getScope();", "public function getScope();", "public function reset()\n {\n return $this->authService->reset(\n request()->input('email'),\n request()->input('token'),\n request()->input('password')\n );\n }", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->id->setSort(\"\");\n\t\t\t\t$this->name->setSort(\"\");\n\t\t\t\t$this->_email->setSort(\"\");\n\t\t\t\t$this->companyname->setSort(\"\");\n\t\t\t\t$this->servicetime->setSort(\"\");\n\t\t\t\t$this->country->setSort(\"\");\n\t\t\t\t$this->phone->setSort(\"\");\n\t\t\t\t$this->skype->setSort(\"\");\n\t\t\t\t$this->website->setSort(\"\");\n\t\t\t\t$this->linkedin->setSort(\"\");\n\t\t\t\t$this->facebook->setSort(\"\");\n\t\t\t\t$this->twitter->setSort(\"\");\n\t\t\t\t$this->active_code->setSort(\"\");\n\t\t\t\t$this->identification->setSort(\"\");\n\t\t\t\t$this->link_expired->setSort(\"\");\n\t\t\t\t$this->isactive->setSort(\"\");\n\t\t\t\t$this->google->setSort(\"\");\n\t\t\t\t$this->instagram->setSort(\"\");\n\t\t\t\t$this->account_type->setSort(\"\");\n\t\t\t\t$this->logo->setSort(\"\");\n\t\t\t\t$this->profilepic->setSort(\"\");\n\t\t\t\t$this->mailref->setSort(\"\");\n\t\t\t\t$this->deleted->setSort(\"\");\n\t\t\t\t$this->deletefeedback->setSort(\"\");\n\t\t\t\t$this->account_id->setSort(\"\");\n\t\t\t\t$this->start_date->setSort(\"\");\n\t\t\t\t$this->end_date->setSort(\"\");\n\t\t\t\t$this->year_moth->setSort(\"\");\n\t\t\t\t$this->registerdate->setSort(\"\");\n\t\t\t\t$this->login_type->setSort(\"\");\n\t\t\t\t$this->accountstatus->setSort(\"\");\n\t\t\t\t$this->ispay->setSort(\"\");\n\t\t\t\t$this->profilelink->setSort(\"\");\n\t\t\t\t$this->source->setSort(\"\");\n\t\t\t\t$this->agree->setSort(\"\");\n\t\t\t\t$this->balance->setSort(\"\");\n\t\t\t\t$this->job_title->setSort(\"\");\n\t\t\t\t$this->projects->setSort(\"\");\n\t\t\t\t$this->opportunities->setSort(\"\");\n\t\t\t\t$this->isconsaltant->setSort(\"\");\n\t\t\t\t$this->isagent->setSort(\"\");\n\t\t\t\t$this->isinvestor->setSort(\"\");\n\t\t\t\t$this->isbusinessman->setSort(\"\");\n\t\t\t\t$this->isprovider->setSort(\"\");\n\t\t\t\t$this->isproductowner->setSort(\"\");\n\t\t\t\t$this->states->setSort(\"\");\n\t\t\t\t$this->cities->setSort(\"\");\n\t\t\t\t$this->offers->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "public function getScope()\n {\n return $this->_scope;\n }", "public function reset()\n {\n $this->values[self::WTLOGINREQBUFF] = null;\n $this->values[self::WTLOGINIMGREQI] = null;\n $this->values[self::WXVERIFYCODERE] = null;\n $this->values[self::CLIDBENCRYPTKE] = null;\n $this->values[self::CLIDBENCRYPTINFO] = null;\n $this->values[self::AUTHREQFLAG] = null;\n $this->values[self::AUTHTICKET] = null;\n }", "public function reset()\n {\n $this->values[self::_RANK] = null;\n $this->values[self::_LEFT_COUNT] = null;\n $this->values[self::_LAST_BT_TIME] = null;\n $this->values[self::_BUY_TIMES] = null;\n $this->values[self::_LINEUP] = array();\n $this->values[self::_GS] = null;\n $this->values[self::_OPPOS] = array();\n }", "public static function getScope()\n {\n return self::$scope;\n }", "public function reset()\n {\n $this->values[self::pending_pay] = null;\n $this->values[self::pending_shipped] = null;\n $this->values[self::pending_received] = null;\n $this->values[self::user_received] = null;\n $this->values[self::to_share] = null;\n }", "public function reset()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_RESET, $payload);\n }", "public function reset()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_RESET, $payload);\n }", "public function reset() {\n return $this->_reset();\n }", "public function getResetDefaultValue()\n {\n return $this->_resetDefaultValue;\n }", "public function defaultScope()\n {\n return array(\n 'order' => $this->getTableAlias(false, false) . '.is_sticky DESC, ' . $this->getTableAlias(false, false) . '.created DESC, ' . $this->getTableAlias(false, false) . '.subject',\n );\n }", "public function reset()\n {\n $this->values[self::payment_method] = null;\n $this->values[self::wechat_pay] = null;\n $this->values[self::alipay_express] = null;\n $this->values[self::order_id] = array();\n $this->values[self::order] = array();\n }", "public static function reset(): void\n {\n self::$defined = null;\n self::$isChannel = false;\n }", "public function clearAccessToken()\n {\n return LocalSetting::getInstance()->create(\n 'token',\n null,\n \\Chamilo\\Application\\Calendar\\Extension\\Google\\Manager::context()\n );\n }", "public function setDefaultScope($defaultScope);", "public function reset()\n {\n $this->values[self::_LADDER_NOTIFY] = null;\n $this->values[self::_NEW_MAIL] = null;\n $this->values[self::_GUILD_CHAT] = null;\n $this->values[self::_ACTIVITY_NOTIFY] = null;\n $this->values[self::_ACTIVITY_REWARD] = null;\n $this->values[self::_RELEASE_HEROES] = array();\n $this->values[self::_EXCAV_RECORD] = null;\n $this->values[self::_GUILD_DROP] = null;\n $this->values[self::_PERSONAL_CHAT] = null;\n $this->values[self::_SPLITABLE_HEROES] = null;\n }", "public function getDefaultScope($client_id = null)\n\t{\n//\t\t$stmt->execute(array('is_default' => true));\n//\n//\t\tif ($result = $stmt->fetchAll(\\PDO::FETCH_ASSOC)) {\n//\t\t\t$defaultScope = array_map(function ($row) {\n//\t\t\t\treturn $row['scope'];\n//\t\t\t}, $result);\n//\n//\t\t\treturn implode(' ', $defaultScope);\n//\t\t}\n//\n//\t\treturn null;\n\n\t\t//TODO: Needs mongodb implementation.\n\t\tthrow new \\Exception('getDefaultScope() for the MongoDB driver is currently unimplemented.');\n\t}", "public function getAccessTokenScope(): ?array;", "function ResetCmd() {\n\t\tglobal $patient_detail;\n\n\t\t// Get reset cmd\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t\t// Reset sort criteria\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$patient_detail->setSessionOrderBy($sOrderBy);\n\t\t\t\t$patient_detail->DetailNo->setSort(\"\");\n\t\t\t\t$patient_detail->StudyID->setSort(\"\");\n\t\t\t\t$patient_detail->PatientID->setSort(\"\");\n\t\t\t\t$patient_detail->StudyDate->setSort(\"\");\n\t\t\t\t$patient_detail->StudyTime->setSort(\"\");\n\t\t\t\t$patient_detail->Modality->setSort(\"\");\n\t\t\t\t$patient_detail->BodyPartExamined->setSort(\"\");\n\t\t\t\t$patient_detail->ProtocolName->setSort(\"\");\n\t\t\t\t$patient_detail->Status->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->lStartRec = 1;\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::system] = null;\n $this->values[self::platform] = null;\n $this->values[self::channel] = null;\n $this->values[self::version] = null;\n }", "public function getScope(): ?AccessReviewScope {\n $val = $this->getBackingStore()->get('scope');\n if (is_null($val) || $val instanceof AccessReviewScope) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'scope'\");\n }", "public function resetToEmptyContext();", "public static function reset() {\n\t\tself::$_cache = array (\n\t\t\t'environment' => 'sandbox',\n\t\t\t'business_name' => '',\n\t\t\t'cancel_url' => '',\n\t\t\t'return_url' => '',\n\t\t\t'notify_url' => '',\n\t\t\t'currency' => 'USD',\n\t\t\t'username' => '',\n\t\t\t'password' => '',\n\t\t\t'signature' => '',\n\t\t\t'incontext_url' => 'yes',\n\t\t\t'mobile_url' => 'no',\n\t\t\t'locale_code' => 'US', // A special form of the locale for PayPal's mixed handling (i.e. expects 2 character for some locales and 5 for others. Full list here: https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/)\n\t\t\t);\n\t}", "public function reset()\n {\n $this->values[self::RMB] = null;\n $this->values[self::CHARGE_SUM] = null;\n $this->values[self::HEROES] = array();\n $this->values[self::RECHARGE_LIMIT] = array();\n $this->values[self::_MONTH_CARD] = array();\n }", "public static function getScope() {\n\t\treturn self::getPathParams()['scope'];\n\t}", "public function getResetKey()\n {\n return $this->reset_key;\n }", "public function reset()\n {\n $this->values[self::_ACQUIRE] = array();\n }", "public function popScope()\n {\n array_shift($this->scopeParameters);\n $scope = array_shift($this->scopes);\n\n // mark as previous\n array_unshift($this->previousScopes, $scope);\n return $scope;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_LAST_AUTO_REFRESH_TIME] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_LAST_MANUAL_REFRESH_TIME] = null;\n $this->values[self::_TODAY_TIMES] = null;\n $this->values[self::_CURRENT_GOODS] = array();\n }", "public function reset()\n {\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_DAILYJOB] = null;\n }", "static public function getScope()\r\n {\r\n return self::$_scope;\r\n }", "public function reset()\n {\n $this->values[self::_STATUS] = null;\n $this->values[self::_FREQUENCY] = null;\n $this->values[self::_LAST_LOGIN_DATE] = null;\n }", "public function isReset()\n {\n return $this->reset;\n }", "public function reset()\n {\n $this->values[self::BOXID] = null;\n $this->values[self::DRAFTID] = null;\n $this->values[self::TOBOXID] = null;\n $this->values[self::TODEPARTMENTID] = null;\n $this->values[self::DOCUMENTSIGNATURES] = array();\n $this->values[self::PROXYBOXID] = null;\n $this->values[self::PROXYDEPARTMENTID] = null;\n }", "public function reset()\n {\n $this->values[self::RULES_PATH] = null;\n $this->values[self::VALIDATOR_REVISION] = self::$fields[self::VALIDATOR_REVISION]['default'];\n $this->values[self::SPEC_FILE_REVISION] = self::$fields[self::SPEC_FILE_REVISION]['default'];\n }", "public function defaultScope() {\n return array(\n 'order' => $this->getTableAlias(false, false) . '.name'\n );\n }", "public function reset()\n {\n $this->values[self::SHIPMENTRECEIPTDATE] = null;\n $this->values[self::ATTORNEY] = null;\n $this->values[self::ACCEPTEDBY] = null;\n $this->values[self::RECEIVEDBY] = null;\n $this->values[self::SIGNER] = null;\n $this->values[self::ADDITIONALINFO] = null;\n }" ]
[ "0.60317045", "0.59770143", "0.5657273", "0.5417517", "0.53189784", "0.5219315", "0.51204807", "0.51204807", "0.500786", "0.5004437", "0.4996305", "0.49777296", "0.49391225", "0.49126333", "0.49054348", "0.4900894", "0.4900894", "0.48733798", "0.48562425", "0.48533636", "0.48338115", "0.47711655", "0.47708985", "0.4744058", "0.4736934", "0.47365022", "0.47349098", "0.46985805", "0.46949998", "0.4687232", "0.4659275", "0.4659275", "0.4650647", "0.4642787", "0.46415603", "0.46411282", "0.46312717", "0.46244812", "0.46182236", "0.46149936", "0.46134692", "0.46037078", "0.4564838", "0.45624673", "0.45624673", "0.45624673", "0.45624673", "0.45624673", "0.45624673", "0.45624673", "0.4558212", "0.45437658", "0.45302907", "0.45300606", "0.45222637", "0.45199087", "0.4519571", "0.45137447", "0.45101994", "0.45081133", "0.450442", "0.450442", "0.4497248", "0.44836652", "0.4473184", "0.4469989", "0.4467031", "0.44599584", "0.44556886", "0.44309947", "0.44309947", "0.4426803", "0.44237047", "0.44236502", "0.44171563", "0.44160813", "0.44144806", "0.44120562", "0.43976104", "0.4393209", "0.438188", "0.4380346", "0.43801656", "0.43718055", "0.4369025", "0.4366569", "0.4362069", "0.4362046", "0.43588305", "0.43488416", "0.43407318", "0.43319166", "0.4326792", "0.43258724", "0.4318977", "0.4316201", "0.43082142", "0.43074512", "0.4298767", "0.42946252" ]
0.7001636
0
Sets the resetScope Commaseparated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark Removing the watermark causes the service to reevaluate all the users again, rather than just processing changes.QuarantineState Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Azure portal. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs.
public function setResetScope($val) { $this->_propDict["resetScope"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetScope();", "public function getResetScope()\n {\n if (array_key_exists(\"resetScope\", $this->_propDict)) {\n if (is_a($this->_propDict[\"resetScope\"], \"\\Beta\\Microsoft\\Graph\\Model\\SynchronizationJobRestartScope\") || is_null($this->_propDict[\"resetScope\"])) {\n return $this->_propDict[\"resetScope\"];\n } else {\n $this->_propDict[\"resetScope\"] = new SynchronizationJobRestartScope($this->_propDict[\"resetScope\"]);\n return $this->_propDict[\"resetScope\"];\n }\n }\n return null;\n }", "function ResetCmd() {\n\t\tglobal $scholarship_package;\n\n\t\t// Get reset command\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t\t// Reset master/detail keys\n\t\t\tif (strtolower($sCmd) == \"resetall\") {\n\t\t\t\t$scholarship_package->getCurrentMasterTable = \"\"; // Clear master table\n\t\t\t\t$scholarship_package->setMasterFilter(\"\"); // Clear master filter\n\t\t\t\t$this->sDbMasterFilter = \"\";\n\t\t\t\t$scholarship_package->setDetailFilter(\"\"); // Clear detail filter\n\t\t\t\t$this->sDbDetailFilter = \"\";\n\t\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->setSessionValue(\"\");\n\t\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->setSessionValue(\"\");\n\t\t\t}\n\n\t\t\t// Reset sorting order\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$scholarship_package->setSessionOrderBy($sOrderBy);\n\t\t\t\t$scholarship_package->scholarship_package_id->setSort(\"\");\n\t\t\t\t$scholarship_package->start_date->setSort(\"\");\n\t\t\t\t$scholarship_package->end_date->setSort(\"\");\n\t\t\t\t$scholarship_package->status->setSort(\"\");\n\t\t\t\t$scholarship_package->annual_amount->setSort(\"\");\n\t\t\t\t$scholarship_package->grant_package_grant_package_id->setSort(\"\");\n\t\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->setSort(\"\");\n\t\t\t\t$scholarship_package->scholarship_type->setSort(\"\");\n\t\t\t\t$scholarship_package->scholarship_type_scholarship_type->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->lStartRec = 1;\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function resetScope( $scope = \"\" ) {\n\t\treturn $this->setScope( $scope );\n\t}", "public function reset()\n {\n $this->values[self::customer_id] = null;\n $this->values[self::auth_token] = null;\n $this->values[self::wholesaler_id] = null;\n $this->values[self::order_id] = null;\n $this->values[self::quality] = null;\n $this->values[self::delivery] = null;\n $this->values[self::comment] = null;\n }", "public function reset()\n {\n $this->values[self::APP_NAME] = null;\n $this->values[self::SVR_NAME] = null;\n $this->values[self::SVR_POOL] = null;\n $this->values[self::TASK_CMD] = null;\n $this->values[self::TASK_ID] = null;\n $this->values[self::SUBTASK_ID] = null;\n $this->values[self::CMD_ID] = null;\n }", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->nombre_contacto->setSort(\"\");\n\t\t\t\t$this->name->setSort(\"\");\n\t\t\t\t$this->lastname->setSort(\"\");\n\t\t\t\t$this->_email->setSort(\"\");\n\t\t\t\t$this->address->setSort(\"\");\n\t\t\t\t$this->phone->setSort(\"\");\n\t\t\t\t$this->cell->setSort(\"\");\n\t\t\t\t$this->created_at->setSort(\"\");\n\t\t\t\t$this->id_sucursal->setSort(\"\");\n\t\t\t\t$this->tipoinmueble->setSort(\"\");\n\t\t\t\t$this->tipovehiculo->setSort(\"\");\n\t\t\t\t$this->tipomaquinaria->setSort(\"\");\n\t\t\t\t$this->tipomercaderia->setSort(\"\");\n\t\t\t\t$this->tipoespecial->setSort(\"\");\n\t\t\t\t$this->email_contacto->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function ResetCmd() {\r\n\r\n\t\t// Check if reset command\r\n\t\tif (substr($this->Command,0,5) == \"reset\") {\r\n\r\n\t\t\t// Reset master/detail keys\r\n\t\t\tif ($this->Command == \"resetall\") {\r\n\t\t\t\t$this->setCurrentMasterTable(\"\"); // Clear master table\r\n\t\t\t\t$this->DbMasterFilter = \"\";\r\n\t\t\t\t$this->DbDetailFilter = \"\";\r\n\t\t\t\t$this->domain_id->setSessionValue(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif ($this->Command == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$this->identries->setSort(\"\");\r\n\t\t\t\t$this->titulo->setSort(\"\");\r\n\t\t\t\t$this->id->setSort(\"\");\r\n\t\t\t\t$this->islive->setSort(\"\");\r\n\t\t\t\t$this->tool_id->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function ResetCmd() {\r\n\r\n\t\t// Check if reset command\r\n\t\tif (substr($this->Command,0,5) == \"reset\") {\r\n\r\n\t\t\t// Reset search criteria\r\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\r\n\t\t\t\t$this->ResetSearchParms();\r\n\r\n\t\t\t// Reset master/detail keys\r\n\t\t\tif ($this->Command == \"resetall\") {\r\n\t\t\t\t$this->setCurrentMasterTable(\"\"); // Clear master table\r\n\t\t\t\t$this->DbMasterFilter = \"\";\r\n\t\t\t\t$this->DbDetailFilter = \"\";\r\n\t\t\t\t$this->id_grupo->setSessionValue(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif ($this->Command == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$this->created_time->setSort(\"\");\r\n\t\t\t\t$this->message->setSort(\"\");\r\n\t\t\t\t$this->link->setSort(\"\");\r\n\t\t\t\t$this->type->setSort(\"\");\r\n\t\t\t\t$this->caption->setSort(\"\");\r\n\t\t\t\t$this->description->setSort(\"\");\r\n\t\t\t\t$this->name->setSort(\"\");\r\n\t\t\t\t$this->source->setSort(\"\");\r\n\t\t\t\t$this->from->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->setSessionOrderByList($sOrderBy);\n\t\t\t\t$this->fecha_tamizaje->setSort(\"\");\n\t\t\t\t$this->id_centro->setSort(\"\");\n\t\t\t\t$this->apellidopaterno->setSort(\"\");\n\t\t\t\t$this->apellidomaterno->setSort(\"\");\n\t\t\t\t$this->nombre->setSort(\"\");\n\t\t\t\t$this->ci->setSort(\"\");\n\t\t\t\t$this->fecha_nacimiento->setSort(\"\");\n\t\t\t\t$this->dias->setSort(\"\");\n\t\t\t\t$this->semanas->setSort(\"\");\n\t\t\t\t$this->meses->setSort(\"\");\n\t\t\t\t$this->sexo->setSort(\"\");\n\t\t\t\t$this->discapacidad->setSort(\"\");\n\t\t\t\t$this->id_tipodiscapacidad->setSort(\"\");\n\t\t\t\t$this->resultado->setSort(\"\");\n\t\t\t\t$this->resultadotamizaje->setSort(\"\");\n\t\t\t\t$this->tapon->setSort(\"\");\n\t\t\t\t$this->tipo->setSort(\"\");\n\t\t\t\t$this->repetirprueba->setSort(\"\");\n\t\t\t\t$this->observaciones->setSort(\"\");\n\t\t\t\t$this->id_apoderado->setSort(\"\");\n\t\t\t\t$this->id_referencia->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->tgl->setSort(\"\");\n\t\t\t\t$this->no_spp->setSort(\"\");\n\t\t\t\t$this->jns_spp->setSort(\"\");\n\t\t\t\t$this->kd_mata->setSort(\"\");\n\t\t\t\t$this->urai->setSort(\"\");\n\t\t\t\t$this->jmlh->setSort(\"\");\n\t\t\t\t$this->jmlh1->setSort(\"\");\n\t\t\t\t$this->jmlh2->setSort(\"\");\n\t\t\t\t$this->jmlh3->setSort(\"\");\n\t\t\t\t$this->jmlh4->setSort(\"\");\n\t\t\t\t$this->nm_perus->setSort(\"\");\n\t\t\t\t$this->alamat->setSort(\"\");\n\t\t\t\t$this->npwp->setSort(\"\");\n\t\t\t\t$this->pimpinan->setSort(\"\");\n\t\t\t\t$this->bank->setSort(\"\");\n\t\t\t\t$this->rek->setSort(\"\");\n\t\t\t\t$this->nospm->setSort(\"\");\n\t\t\t\t$this->tglspm->setSort(\"\");\n\t\t\t\t$this->ppn->setSort(\"\");\n\t\t\t\t$this->ps21->setSort(\"\");\n\t\t\t\t$this->ps22->setSort(\"\");\n\t\t\t\t$this->ps23->setSort(\"\");\n\t\t\t\t$this->ps4->setSort(\"\");\n\t\t\t\t$this->kodespm->setSort(\"\");\n\t\t\t\t$this->nambud->setSort(\"\");\n\t\t\t\t$this->nppk->setSort(\"\");\n\t\t\t\t$this->nipppk->setSort(\"\");\n\t\t\t\t$this->prog->setSort(\"\");\n\t\t\t\t$this->prog1->setSort(\"\");\n\t\t\t\t$this->bayar->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "protected function reset(): void\n {\n $this->bot = null;\n $this->client = null;\n $this->device = null;\n $this->os = null;\n $this->brand = '';\n $this->model = '';\n $this->parsed = false;\n }", "function ResetCmd() {\r\n\r\n\t\t// Check if reset command\r\n\t\tif (substr($this->Command,0,5) == \"reset\") {\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif ($this->Command == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$this->RazonSocial->setSort(\"\");\r\n\t\t\t\t$this->NombreContacto->setSort(\"\");\r\n\t\t\t\t$this->Poblacion->setSort(\"\");\r\n\t\t\t\t$this->Id_Estado->setSort(\"\");\r\n\t\t\t\t$this->Telefonos->setSort(\"\");\r\n\t\t\t\t$this->Celular->setSort(\"\");\r\n\t\t\t\t$this->Maneja_Papeleta->setSort(\"\");\r\n\t\t\t\t$this->Maneja_Activacion_Movi->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "public function reset()\n {\n $this->values[self::PHONE] = null;\n $this->values[self::PASSWORD] = null;\n $this->values[self::EQUIPMENT] = null;\n $this->values[self::LOGIN_TYPE] = null;\n }", "public function reset()\n {\n $this->values[self::TRANSACTION_ID] = null;\n $this->values[self::EVENTS] = [];\n $this->values[self::REQUIRE_MASTER] = null;\n }", "public function reset()\n {\n $this->values[self::_OPEN_PANEL] = null;\n $this->values[self::_QUERY_OPPO] = null;\n $this->values[self::_START_BAT] = null;\n $this->values[self::_END_BAT] = null;\n $this->values[self::_RESET] = null;\n $this->values[self::_DRAW_REWARD] = null;\n }", "public function reset(){}", "function ResetCmd() {\r\n\t\tglobal $fs_multijoin_v;\r\n\r\n\t\t// Get reset command\r\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\r\n\t\t\t$sCmd = $_GET[\"cmd\"];\r\n\r\n\t\t\t// Reset search criteria\r\n\t\t\tif (strtolower($sCmd) == \"reset\" || strtolower($sCmd) == \"resetall\")\r\n\t\t\t\t$this->ResetSearchParms();\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$fs_multijoin_v->setSessionOrderBy($sOrderBy);\r\n\t\t\t\t$fs_multijoin_v->id->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->mount->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->path->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->parent->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->deprecated->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->name->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->snapshot->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->tapebackup->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->diskbackup->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->type->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->CONTACT->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->CONTACT2->setSort(\"\");\r\n\t\t\t\t$fs_multijoin_v->RESCOMP->setSort(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->lStartRec = 1;\r\n\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t}\r\n\t}", "public function reset()\n {\n $this->values[self::RET] = null;\n $this->values[self::CMDLIST] = null;\n $this->values[self::CONTINUEFLAG] = null;\n $this->values[self::SYNC_KEY] = null;\n $this->values[self::STATUS] = null;\n $this->values[self::ONLINEVERSION] = null;\n $this->values[self::SVRTIME] = null;\n }", "public function reset()\n {\n $this->values[self::STATUS] = null;\n $this->values[self::ERRORS] = array();\n $this->values[self::VALIDATOR_REVISION] = self::$fields[self::VALIDATOR_REVISION]['default'];\n $this->values[self::SPEC_FILE_REVISION] = self::$fields[self::SPEC_FILE_REVISION]['default'];\n $this->values[self::TRANSFORMER_VERSION] = self::$fields[self::TRANSFORMER_VERSION]['default'];\n $this->values[self::TYPE_IDENTIFIER] = array();\n $this->values[self::VALUE_SET_PROVISIONS] = array();\n $this->values[self::VALUE_SET_REQUIREMENTS] = array();\n }", "public function reset()\n {\n $this->values[self::_OWNER] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_TYPE_ID] = null;\n $this->values[self::_TEAM] = array();\n $this->values[self::_STATE] = null;\n $this->values[self::_STATE_END_TS] = null;\n $this->values[self::_PRODUCE_SPEED] = null;\n $this->values[self::_STORAGE] = null;\n }", "public function reset(): void;", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->id->setSort(\"\");\n\t\t\t\t$this->detail_jenis_spp->setSort(\"\");\n\t\t\t\t$this->no_spp->setSort(\"\");\n\t\t\t\t$this->tgl_spp->setSort(\"\");\n\t\t\t\t$this->keterangan->setSort(\"\");\n\t\t\t\t$this->no_spm->setSort(\"\");\n\t\t\t\t$this->tgl_spm->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->tanggal->setSort(\"\");\n\t\t\t\t$this->auc_number->setSort(\"\");\n\t\t\t\t$this->start_bid->setSort(\"\");\n\t\t\t\t$this->close_bid->setSort(\"\");\n\t\t\t\t$this->lot_number->setSort(\"\");\n\t\t\t\t$this->chop->setSort(\"\");\n\t\t\t\t$this->grade->setSort(\"\");\n\t\t\t\t$this->estate->setSort(\"\");\n\t\t\t\t$this->sack->setSort(\"\");\n\t\t\t\t$this->netto->setSort(\"\");\n\t\t\t\t$this->open_bid->setSort(\"\");\n\t\t\t\t$this->highest_bid->setSort(\"\");\n\t\t\t\t$this->auction_status->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "public function reset()\n {\n return $this->sendCommand('RSET', 'RSET', 250);\n }", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset();", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "public function reset() {}", "function ResetCmd() {\n\n\t\t// Check if reset command\n\t\tif (substr($this->Command,0,5) == \"reset\") {\n\n\t\t\t// Reset search criteria\n\t\t\tif ($this->Command == \"reset\" || $this->Command == \"resetall\")\n\t\t\t\t$this->ResetSearchParms();\n\n\t\t\t// Reset sorting order\n\t\t\tif ($this->Command == \"resetsort\") {\n\t\t\t\t$sOrderBy = \"\";\n\t\t\t\t$this->setSessionOrderBy($sOrderBy);\n\t\t\t\t$this->userlevelid->setSort(\"\");\n\t\t\t\t$this->userlevelname->setSort(\"\");\n\t\t\t}\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::payment_method] = null;\n $this->values[self::wechat_pay] = null;\n $this->values[self::alipay_express] = null;\n $this->values[self::order_id] = array();\n $this->values[self::order] = array();\n }", "public function resetToEmptyContext();", "public function reset()\n {\n $this->values[self::_CURRENT_RAID_ID] = null;\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_STAGE_PASS] = null;\n $this->values[self::_IS_CAN_JUMP] = null;\n }", "public function reset()\n {\n $this->values[self::system] = null;\n $this->values[self::platform] = null;\n $this->values[self::channel] = null;\n $this->values[self::version] = null;\n }", "public function reset()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_RESET, $payload);\n }", "public function reset()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_RESET, $payload);\n }", "public function reset(): void\n {\n $this->activationKey = null;\n $this->dateOfBirth = null;\n $this->lpaReferenceNumber = null;\n }", "function ResetCmd() {\r\n\t\tglobal $rekeningju;\r\n\r\n\t\t// Get reset command\r\n\t\tif (@$_GET[\"cmd\"] <> \"\") {\r\n\t\t\t$sCmd = $_GET[\"cmd\"];\r\n\r\n\t\t\t// Reset master/detail keys\r\n\t\t\tif (strtolower($sCmd) == \"resetall\") {\r\n\t\t\t\t$rekeningju->setCurrentMasterTable(\"\"); // Clear master table\r\n\t\t\t\t$this->DbMasterFilter = \"\";\r\n\t\t\t\t$this->DbDetailFilter = \"\";\r\n\t\t\t\t$rekeningju->kode_otomatis_master->setSessionValue(\"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Reset sorting order\r\n\t\t\tif (strtolower($sCmd) == \"resetsort\") {\r\n\t\t\t\t$sOrderBy = \"\";\r\n\t\t\t\t$rekeningju->setSessionOrderBy($sOrderBy);\r\n\t\t\t}\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "public function reset()\n {\n $this->values[self::RULES_PATH] = null;\n $this->values[self::VALIDATOR_REVISION] = self::$fields[self::VALIDATOR_REVISION]['default'];\n $this->values[self::SPEC_FILE_REVISION] = self::$fields[self::SPEC_FILE_REVISION]['default'];\n }", "public function reset() {\n\t\tforeach (array_reverse($this->_callStack) as $call) {\n\t\t\tcall_user_func_array(array($this, \"_reset\" . ucfirst($call['method'])), $call['arguments']);\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::RMB] = null;\n $this->values[self::CHARGE_SUM] = null;\n $this->values[self::HEROES] = array();\n $this->values[self::RECHARGE_LIMIT] = array();\n $this->values[self::_MONTH_CARD] = array();\n }", "public function reset()\n {\n }", "public function resetInput(){\n $this->userId = null;\n $this->name = null;\n $this->role = null;\n }", "public function reset()\n {\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_DAILYJOB] = null;\n }", "public function reset()\n {\n $this->values[self::pending_pay] = null;\n $this->values[self::pending_shipped] = null;\n $this->values[self::pending_received] = null;\n $this->values[self::user_received] = null;\n $this->values[self::to_share] = null;\n }", "public function reset()\n {\n $this->values[self::WTLOGINREQBUFF] = null;\n $this->values[self::WTLOGINIMGREQI] = null;\n $this->values[self::WXVERIFYCODERE] = null;\n $this->values[self::CLIDBENCRYPTKE] = null;\n $this->values[self::CLIDBENCRYPTINFO] = null;\n $this->values[self::AUTHREQFLAG] = null;\n $this->values[self::AUTHTICKET] = null;\n }", "function ResetCmd() {\n\tglobal $sDbMasterFilter, $sDbDetailFilter, $nStartRec, $sOrderBy;\n\tglobal $dpp_proveedores;\n\n\t// Get reset cmd\n\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t// Reset search criteria\n\t\tif (strtolower($sCmd) == \"reset\" || strtolower($sCmd) == \"resetall\") {\n\t\t\tResetSearchParms();\n\t\t}\n\n\t\t// Reset Sort Criteria\n\t\tif (strtolower($sCmd) == \"resetsort\") {\n\t\t\t$sOrderBy = \"\";\n\t\t\t$dpp_proveedores->setSessionOrderBy($sOrderBy);\n\t\t\t$dpp_proveedores->provee_id->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_rut->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_dig->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_cat_juri->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_nombre->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_paterno->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_materno->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_dir->setSort(\"\");\n\t\t\t$dpp_proveedores->provee_fono->setSort(\"\");\n\t\t}\n\n\t\t// Reset start position\n\t\t$nStartRec = 1;\n\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t}\n}", "protected function reset(): void\n {\n }", "public function forceReset() {\r\n if (GEAR_DEV && GearSection::truncate() && GearOption::truncate()){\r\n return self::resetInit();\r\n }\r\n }", "public function reset()\n {\n }", "public function reset(): void\n {\n $this->set([]);\n }", "public function reset()\n {\n $this->values[self::_STAGE_ID] = null;\n $this->values[self::_DPS_RANK] = array();\n $this->values[self::_FIRST_PASS] = null;\n $this->values[self::_FAST_PASS] = null;\n }", "abstract public function reset();", "abstract public function reset();", "abstract public function reset();", "public function reset()\r\n {\r\n }", "public function reset()\n {\n $this->values[self::_SKILL_LEVELUP_CHANCE] = null;\n $this->values[self::_SKILL_LEVELUP_CD] = null;\n $this->values[self::_RESET_TIMES] = null;\n $this->values[self::_LAST_RESET_DATE] = null;\n }", "public function reset()\n {\n $this->values[self::_RANK] = null;\n $this->values[self::_LEFT_COUNT] = null;\n $this->values[self::_LAST_BT_TIME] = null;\n $this->values[self::_BUY_TIMES] = null;\n $this->values[self::_LINEUP] = array();\n $this->values[self::_GS] = null;\n $this->values[self::_OPPOS] = array();\n }", "public function reset()\n {\n $this->values[self::_STATUS] = null;\n $this->values[self::_FREQUENCY] = null;\n $this->values[self::_LAST_LOGIN_DATE] = null;\n }", "public function reset()\n {\n $this->values[self::TASK_ID] = null;\n $this->values[self::TASK_STATE] = null;\n $this->values[self::DEPAND_TASK_ID] = null;\n $this->values[self::DEPAND_TASK_NAME] = null;\n $this->values[self::FREEZED] = null;\n $this->values[self::VALID] = null;\n $this->values[self::PAUSE] = null;\n $this->values[self::ERR] = null;\n $this->values[self::SUCCESS_SUBTASK] = null;\n $this->values[self::FAILED_SUBTASK] = null;\n $this->values[self::DOING_SUBTASK] = null;\n $this->values[self::UNDO_SUBTASK] = null;\n $this->values[self::IGNORE_DOING_SUBTASK] = null;\n $this->values[self::IGNORE_FAILED_SUBTASK] = null;\n }", "function reset()\n {\n }", "public function reset()\n {\n $this->values[self::_LINE] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_STATUS] = null;\n $this->values[self::_TASK_TARGET] = null;\n }", "public function reset() {\n $this->values[self::ERROR] = null;\n $this->values[self::LINE_INFO_LIST] = array();\n $this->values[self::TICKET_ORDER_INFO] = null;\n }", "public function reset()\n {\n $this->values[self::_LADDER_NOTIFY] = null;\n $this->values[self::_NEW_MAIL] = null;\n $this->values[self::_GUILD_CHAT] = null;\n $this->values[self::_ACTIVITY_NOTIFY] = null;\n $this->values[self::_ACTIVITY_REWARD] = null;\n $this->values[self::_RELEASE_HEROES] = array();\n $this->values[self::_EXCAV_RECORD] = null;\n $this->values[self::_GUILD_DROP] = null;\n $this->values[self::_PERSONAL_CHAT] = null;\n $this->values[self::_SPLITABLE_HEROES] = null;\n }", "public function reset($ensure = false);", "public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_APPLY_REWARDS] = array();\n $this->values[self::_STAGE_OLD_PROGRESS] = null;\n $this->values[self::_JOIN_TIMES] = null;\n $this->values[self::_BREAK_HISTORY] = null;\n }", "protected function resetSynchronised()\n {\n /*\n * Lists\n */\n\n /** @var $lists Laposta_Connect_Model_Mysql4_List_Collection */\n $lists = Mage::getModel('lapostaconnect/list')->getCollection();\n\n /** @var $list Laposta_Connect_Model_List */\n foreach ($lists as $list) {\n $list->setLapostaId('');\n $list->setWebhookToken('');\n $list->setSyncTime(null);\n }\n\n $lists->save();\n\n Mage::helper('lapostaconnect')->log('Lists reset OK.');\n\n /*\n * Fields\n */\n\n $fields = Mage::getModel('lapostaconnect/field')->getCollection();\n\n /** @var $field Laposta_Connect_Model_Field */\n foreach ($fields as $field) {\n $field->setLapostaId('');\n $field->setLapostaTag('');\n $field->setSyncTime(null);\n }\n\n $fields->save();\n\n Mage::helper('lapostaconnect')->log('Fields reset OK.');\n\n /*\n * Subscribers\n */\n\n /** @var $subscribers Laposta_Connect_Model_Mysql4_Subscriber_Collection */\n $subscribers = Mage::getModel('lapostaconnect/subscriber')->getCollection();\n\n /** @var $subscriber Laposta_Connect_Model_Subscriber */\n foreach ($subscribers as $subscriber) {\n $subscriber->setLapostaId('');\n $subscriber->setSyncTime(null);\n }\n\n $subscribers->save();\n\n Mage::helper('lapostaconnect')->log('Subscribers reset OK.');\n }", "public function reset()\n {\n $this->values[self::BOXID] = null;\n $this->values[self::DRAFTID] = null;\n $this->values[self::TOBOXID] = null;\n $this->values[self::TODEPARTMENTID] = null;\n $this->values[self::DOCUMENTSIGNATURES] = array();\n $this->values[self::PROXYBOXID] = null;\n $this->values[self::PROXYDEPARTMENTID] = null;\n }", "public function reset()\n {\n $this->values[self::NAME] = null;\n $this->values[self::VALUE] = array();\n $this->values[self::OPTIONS] = null;\n $this->values[self::RESERVED_RANGE] = array();\n $this->values[self::RESERVED_NAME] = array();\n }", "public function reset()\n {\n $this->values[self::_MONEY] = null;\n $this->values[self::_DIAMOND] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HEROES] = array();\n $this->values[self::_MONTH_CARD] = null;\n }", "public function reset()\n {\n // clear cache\n $this->pdc->del_prefix('portal.module.realmstatus');\n }", "public function reset()\n {\n $this->values[self::_ACQUIRE] = array();\n }", "public function reset()\n {\n $this->values[self::_CHANNEL] = null;\n $this->values[self::_CHAT_ID] = null;\n $this->values[self::_ACCESSORY] = null;\n }", "public function reset()\n {\n $this->values[self::_LAST_RESET_TIME] = null;\n $this->values[self::_TODAY_FREE_SWEEP_TIMES] = null;\n }", "public static function reset() {\n\t\tself::$_cache = array (\n\t\t\t'environment' => 'sandbox',\n\t\t\t'business_name' => '',\n\t\t\t'cancel_url' => '',\n\t\t\t'return_url' => '',\n\t\t\t'notify_url' => '',\n\t\t\t'currency' => 'USD',\n\t\t\t'username' => '',\n\t\t\t'password' => '',\n\t\t\t'signature' => '',\n\t\t\t'incontext_url' => 'yes',\n\t\t\t'mobile_url' => 'no',\n\t\t\t'locale_code' => 'US', // A special form of the locale for PayPal's mixed handling (i.e. expects 2 character for some locales and 5 for others. Full list here: https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/)\n\t\t\t);\n\t}", "public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }", "public function reset()\n {\n $this->values[self::_MAIL_CFG_ID] = null;\n $this->values[self::_PARAMS] = array();\n }", "public function reset()\n {\n $this->values[self::NAME] = null;\n $this->values[self::EMAIL] = null;\n $this->values[self::PHONEDA] = array();\n }", "function reset()\n {\n $this->mBlockHandles = array();\n $this->mBlockKeys = array();\n $this->mGlobalAssignArray = array();\n }", "public function reset(): void\n {\n \\Cart::clear();\n }", "public function reset()\n {\n $this->requestParameters = [];\n }", "public function reset()\n {\n $this->values[self::GROUP_ID] = null;\n $this->values[self::SENDER_KEY] = null;\n }" ]
[ "0.66243935", "0.5526338", "0.54949266", "0.5478734", "0.54654765", "0.5439408", "0.5411321", "0.5401528", "0.5397505", "0.53872716", "0.53807586", "0.53563887", "0.53481585", "0.53404605", "0.5316328", "0.5301394", "0.5295413", "0.5277159", "0.527493", "0.5266425", "0.52624875", "0.5261906", "0.52431035", "0.522301", "0.52034426", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.5197064", "0.51946855", "0.51946855", "0.51946855", "0.519327", "0.519327", "0.519327", "0.519327", "0.519327", "0.519327", "0.519327", "0.51702386", "0.5161237", "0.51399934", "0.51268464", "0.51237565", "0.51202744", "0.51202744", "0.5118273", "0.51132035", "0.5112877", "0.5112074", "0.50917965", "0.5085558", "0.5081452", "0.5073332", "0.5060812", "0.50585335", "0.50544655", "0.5052513", "0.5050725", "0.50456744", "0.50447303", "0.50296193", "0.5023564", "0.5023564", "0.5023564", "0.5017177", "0.50035244", "0.50009185", "0.4998664", "0.49948785", "0.49884754", "0.49825177", "0.49809453", "0.49805617", "0.49684736", "0.49618044", "0.49568844", "0.49513504", "0.49408764", "0.49376467", "0.49244204", "0.4914775", "0.4911074", "0.49092016", "0.49087417", "0.49070954", "0.49025843", "0.4900785", "0.48996484", "0.48962852", "0.4887642", "0.4881459" ]
0.6173403
1
Seed the application's database.
public function run() { // $this->call(UsersTableSeeder::class); factory(App\Model\DoctorModel::class,20)->create(); factory(App\User::class,20)->create(); factory(App\Model\PotencyModel::class,100)->create(); factory(App\Model\YogaListModel::class,10)->create(); factory(App\Model\PhysiotherapylistModel::class,10)->create(); factory(App\Model\TherapyDiseaseModel::class,10)->create(); // factory(App\Model\OpdModel::class,1000)->create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');// <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t}\n\t}", "protected function seedDB()\n {\n $ans = $this->ask('Seed your database?: ', 'y');\n\n // Check if the answer is true\n if (preg_match('/^y/', $ans))\n {\n $this->call('db:seed');\n $this->comment('');\n $this->comment('Database successfully seeded.');\n $this->comment('=====================================');\n echo \"Your app is now ready!\";\n }\n }", "protected function seedDatabase(): void\n {\n $this->seedProductCategories();\n $this->seedProducts();\n }", "public function setupDatabase()\n {\n Artisan::call('migrate:refresh');\n Artisan::call('db:seed');\n\n self::$setupDatabase = false;\n }", "public function run()\n {\n $this->seed('FormsMenuItemsTableSeeder');\n $this->seed('FormsDataTypesTableSeeder');\n $this->seed('FormsDataRowsTableSeeder');\n $this->seed('FormsPermissionsTableSeeder');\n $this->seed('FormsSettingsTableSeeder');\n $this->seed('FormsTableSeeder');\n }", "public function run()\n {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"\\n--- Seeding ---\\n\", TRUE));\n\n if (App::environment('production')) {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- ERROR: Seeding in Production is prohibited ---\\n\", TRUE));\n return;\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(ConfigContentsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n if (defined('STDERR')) fwrite(STDERR, print_r(\"Set FOREIGN_KEY_CHECKS=1 --- DONE\\n\", TRUE));\n\n // \\Artisan::call('command:regenerate-user-feeds');\n\n \\Cache::flush();\n\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- End Seeding ---\\n\\n\", TRUE));\n }", "protected function setupDatabase()\n {\n $this->call('migrate');\n $this->call('db:seed');\n\n $this->info('Database migrated and seeded.');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function seedDatabase(): void\n {\n echo \"Running seeds\";\n\n // Folder where all the seeds are.\n $folder = __DIR__ . '/../seeds/';\n\n // Scan all files/folders inside database.\n $files = \\scandir($folder);\n\n $seeders = [];\n foreach ($files as $key => $file) {\n\n // All files that don't start with a dot.\n if ($file[0] !== '.') {\n\n // Load the file.\n require_once $folder . $file;\n\n // We have to call the migrations after because\n // some seeds are dependant from other seeds.\n $seeders[] = explode('.', $file)[0];\n }\n }\n\n // Run all seeds.\n foreach ($seeders as $seeder) {\n (new $seeder)->run();\n }\n }", "protected function seedDatabase()\n {\n //$this->app->make('db')->table(static::TABLE_NAME)->delete();\n\n TestExtendedModel::create([\n 'unique_field' => '999',\n 'second_field' => null,\n 'name' => 'unchanged',\n 'active' => true,\n 'hidden' => 'invisible',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1234567',\n 'second_field' => '434',\n 'name' => 'random name',\n 'active' => false,\n 'hidden' => 'cannot see me',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1337',\n 'second_field' => '12345',\n 'name' => 'special name',\n 'active' => true,\n 'hidden' => 'where has it gone?',\n ]);\n }", "public function initDatabase()\n {\n $this->call('migrate');\n\n $userModel = config('admin.database.users_model');\n\n if ($userModel::count() == 0) {\n $this->call('db:seed', ['--class' => AdminSeeder::class]);\n }\n }", "public function run ()\n {\n if (App::environment() === 'production') {\n exit('Seed should be run only in development/debug environment.');\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('role_user')->truncate();\n\n // Root user\n $user = User::find(1);\n $user->assignRole('owner');\n\n $user = User::find(2);\n $user->assignRole('admin');\n\n $user = User::find(3);\n $user->assignRole('admin');\n\n $user = User::find(4);\n $user->assignRole('moderator');\n\n $user = User::find(5);\n $user->assignRole('moderator');\n \n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n\n $this->call(AccounttypeSeeder::class);\n $this->call(AppUserTableSeeder::class);\n $this->call(AppEmailUserTableSeeder::class);\n\n\n $this->call(CountryTableSeeder::class);\n $this->call(CityTableSeeder::class);\n\n\n $this->call(PostTypeTableSeeder::class);\n $this->call(PostSubTypeTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(AppPostSolvedTableSeeder::class);\n\n\n $this->call(AppCommentTypeTableSeeder::class);\n // $this->call(AppCommentTableSeeder::class);\n // $this->call(AppSubCommentTableSeeder::class);\n\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::table('password_resets')->truncate();\n DB::table('domains')->truncate();\n DB::table('folders')->truncate();\n DB::table('bookmarks')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->seedUserAccount('jpearson@ec4p.com');\n $this->seedUserAccount('jgpearson1@gmail.com');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n // $this->call(UsersTableSeeder::class);\n /* Schema::dropIfExists('employees');\n Schema::dropIfExists('users');\n Schema::dropIfExists('requests');\n Schema::dropIfExists('requeststatus');*/\n User::truncate();\n InstallRequest::truncate();\n RequestStatus::truncate();\n\n $cantidadEmployyes = 20;\n $cantidadUsers = 20;\n $cantidadRequestStatus = 3;\n $cantidadRequests = 200;\n\n factory(User::class, $cantidadUsers)->create();\n factory(RequestStatus::class, $cantidadRequestStatus)->create();\n factory(InstallRequest::class, $cantidadRequests)->create();\n }", "public function run()\n {\n Model::unguard();\n foreach (glob(__DIR__ . '/seeds/*.php') as $filename) {\n require_once($filename);\n }\n // $this->call(UserTableSeeder::class);\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// $this->call('CustomerTableSeeder');\n $this->call('PhotoTableSeeder');\n// $this->call('ProductTableSeeder');\n// $this->call('StaffTableSeeder');\n// $this->call('PasswordResetsTableSeeder');\n// $this->call('UsersTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('EmployeesTableSeeder');\n $this->call('InventoryTransactionTypesTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrderDetailsStatusTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('InvoicesTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrdersStatusTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n\n $this->call('OrdersTaxStatusTableSeeder');\n $this->call('PrivilegesTableSeeder');\n $this->call('EmployeePrivilegesTableSeeder');\n $this->call('ProductsTableSeeder');\n $this->call('InventoryTransactionsTableSeeder');\n $this->call('PurchaseOrderDetailsTableSeeder');\n\n $this->call('PurchaseOrderStatusTableSeeder');\n $this->call('PurchaseOrdersTableSeeder');\n $this->call('SalesReportsTableSeeder');\n $this->call('ShippersTableSeeder');\n $this->call('StringsTableSeeder');\n $this->call('SuppliersTableSeeder');\n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n }", "public function run()\n\t{\n $this->cleanDatabase();\n\n Eloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('CartsTableSeeder');\n $this->call('StoreTableSeeder');\n $this->call('AdvertisementsTableSeeder');\n \n\t}", "public function run()\n {\n \tDB::table('seeds')->truncate();\n\n $seeds = array(\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_18_2013',\n ),\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_20_2013',\n ),\n );\n\n // Uncomment the below to run the seeder\n DB::table('seeds')->insert($seeds);\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "protected function setUp(): void\n {\n $db = new DB;\n\n $db->addConnection([\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n ]);\n\n $db->bootEloquent();\n $db->setAsGlobal();\n\n $this->createSchema();\n }", "public function run()\n {\n //$this->call('UserTableSeeder');\n //$this->call('ProjectTableSeeder');\n //$this->call('TaskTableSeeder');\n\n /**\n * Prepare seeding\n */\n $faker = Faker::create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Model::unguard();\n\n /**\n * Seeding user table\n */\n App\\User::truncate();\n factory(App\\User::class)->create([\n 'name' => 'KCK',\n 'email' => 'chrud66@example.com',\n 'password' => bcrypt('password')\n ]);\n\n /*factory(App\\User::class, 9)->create();\n $this->command->info('users table seeded');*/\n\n /**\n * Seeding roles table\n */\n Spatie\\Permission\\Models\\Role::truncate();\n DB::table('model_has_roles')->truncate();\n $superAdminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '최고 관리자'\n ]);\n $adminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '관리자'\n ]);\n $regularRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '정회원'\n ]);\n $associateRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '준회원'\n ]);\n\n App\\User::where('email', '!=', 'chrud66@example.com')->get()->map(function ($user) use ($regularRole) {\n $user->assignRole($regularRole);\n });\n\n App\\User::whereEmail('chrud66@example.com')->get()->map(function ($user) use ($superAdminRole) {\n $user->assignRole($superAdminRole);\n });\n $this->command->info('roles table seeded');\n\n /**\n * Seeding articles table\n */\n App\\Article::truncate();\n $users = App\\User::all();\n\n $users->each(function ($user) use ($faker) {\n $user->articles()->save(\n factory(App\\Article::class)->make()\n );\n });\n $this->command->info('articles table seeded');\n\n /**\n * Seeding comments table\n */\n App\\Comment::truncate();\n $articles = App\\Article::all();\n\n $articles->each(function ($article) use ($faker, $users) {\n for ($i = 0; $i < 10; $i++) {\n $article->comments()->save(\n factory(App\\Comment::class)->make([\n 'author_id' => $faker->randomElement($users->pluck('id')->toArray()),\n //'parent_id' => $article->id\n ])\n );\n };\n });\n $this->command->info('comments table seeded');\n\n /**\n * Seeding tags table\n */\n App\\Tag::truncate();\n DB::table('article_tag')->truncate();\n $articles->each(function ($article) use ($faker) {\n $article->tags()->save(\n factory(App\\Tag::class)->make()\n );\n });\n $this->command->info('tags table seeded');\n\n /**\n * Seeding attachments table\n */\n App\\Attachment::truncate();\n if (!File::isDirectory(attachment_path())) {\n File::deleteDirectory(attachment_path(), true);\n }\n\n $articles->each(function ($article) use ($faker) {\n $article->attachments()->save(\n factory(App\\Attachment::class)->make()\n );\n });\n\n //$files = App\\Attachment::pluck('name');\n\n if (!File::isDirectory(attachment_path())) {\n File::makeDirectory(attachment_path(), 777, true);\n }\n\n /*\n foreach ($files as $file) {\n File::put(attachment_path($file), '');\n }\n */\n\n $this->command->info('attachments table seeded');\n\n /**\n * Close seeding\n */\n Model::reguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(CountriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n\n factory(Group::class)->create();\n factory(Contact::class, 5000)->create();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('AdminTableSeeder');\n\t\t// $this->call('UserTableSeeder');\n\t\t// $this->call('MenuTableSeeder');\n\t\t// $this->call('ProductTableSeeder');\n\t\t// $this->call('CategoryTableSeeder');\n\t\t// $this->call('OptionTableSeeder');\n\t\t// $this->call('OptionGroupTableSeeder');\n\t\t// $this->call('TypeTableSeeder');\n\t\t// $this->call('LayoutTableSeeder');\n\t\t// $this->call('LayoutDetailTableSeeder');\n\t\t// $this->call('BannerTableSeeder');\n\t\t// $this->call('ConfigureTableSeeder');\n\t\t// $this->call('PageTableSeeder');\n\t\t// $this->call('ImageTableSeeder');\n\t\t// $this->call('ImageableTableSeeder');\n\t\t// ======== new Seed =======\n\t\t$this->call('AdminsTableSeeder');\n\t\t$this->call('BannersTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('ConfiguresTableSeeder');\n\t\t$this->call('ImageablesTableSeeder');\n\t\t$this->call('ImagesTableSeeder');\n\t\t$this->call('LayoutsTableSeeder');\n\t\t$this->call('LayoutDetailsTableSeeder');\n\t\t$this->call('MenusTableSeeder');\n\t\t$this->call('OptionablesTableSeeder');\n\t\t$this->call('OptionsTableSeeder');\n\t\t$this->call('OptionGroupsTableSeeder');\n\t\t$this->call('PagesTableSeeder');\n\t\t$this->call('PriceBreaksTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('ProductsCategoriesTableSeeder');\n\t\t$this->call('SizeListsTableSeeder');\n\t\t$this->call('TypesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ContactsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('PermissionRoleTableSeeder');\n\t\t$this->call('AssignedRolesTableSeeder');\n\t\t$this->call('OrdersTableSeeder');\n\t\t$this->call('OrderDetailsTableSeeder');\n\t\tCache::flush();\n\t\t// BackgroundProcess::copyFromVI();\n\t}", "public function run()\n {\n Model::unguard();\n\n User::create([\n 'email' => 'admin@example.org',\n 'name' => 'admin',\n 'password' => Hash::make('1234'),\n 'email_verified_at' => Carbon::now()\n ]);\n\n factory(User::class, 200)->create();\n\n // $this->call(\"OthersTableSeeder\");\n }", "public function run()\n {\n $this->seedRegularUsers();\n $this->seedAdminUser();\n }", "public function run()\n {\n if (\\App::environment() === 'local') {\n\n // Delete existing data\n\n\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // Truncate all tables, except migrations\n $tables = array_except(DB::select('SHOW TABLES'), ['migrations']);\n foreach ($tables as $table) {\n $tables_in_database = \"Tables_in_\" . Config::get('database.connections.mysql.database');\n DB::table($table->$tables_in_database)->truncate();\n }\n\n // supposed to only apply to a single connection and reset it's self\n // but I like to explicitly undo what I've done for clarity\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n //get roles\n $this->call('AccountSeeder');\n $this->call('CountrySeeder');\n $this->call('StateSeeder');\n $this->call('CitySeeder');\n $this->call('OptionSeeder');\n $this->call('TagSeeder');\n $this->call('PrintTemplateSeeder');\n $this->call('SettingsSeeder');\n\n\n\n if(empty($web_installer)) {\n $admin = Sentinel::registerAndActivate(array(\n 'email' => 'admin@crm.com',\n 'password' => \"admin\",\n 'first_name' => 'Admin',\n 'last_name' => 'Doe',\n ));\n $admin->user_id = $admin->id;\n $admin->save();\n\n $adminRole = Sentinel::findRoleById(1);\n $adminRole->users()->attach($admin);\n }\n else {\n $admin = Sentinel::findById(1);\n }\n\n //add dummy staff and customer\n $staff = Sentinel::registerAndActivate(array(\n 'email' => 'staff@crm.com',\n 'password' => \"staff\",\n 'first_name' => 'Staff',\n 'last_name' => 'Doe',\n ));\n $admin->users()->save($staff);\n\n foreach ($this->getPermissions() as $permission) {\n $staff->addPermission($permission);\n }\n $staff->save();\n\n $customer = Sentinel::registerAndActivate(array(\n 'email' => 'customer@crm.com',\n 'password' => \"customer\",\n 'first_name' => 'Customer',\n 'last_name' => 'Doe',\n ));\n Customer::create(array('user_id' => $customer->id, 'belong_user_id' => $staff->id));\n $staff->users()->save($customer);\n\n //add respective roles\n\n $staffRole = Sentinel::findRoleById(2);\n $staffRole->users()->attach($staff);\n $customerRole = Sentinel::findRoleById(3);\n $customerRole->users()->attach($customer);\n\n\n\n DB::table('sales_teams')->truncate();\n DB::table('opportunities')->truncate();\n\n //Delete existing seeded users except the first 4 users\n User::where('id', '>', 3)->get()->each(function ($user) {\n $user->forceDelete();\n });\n\n //Get the default ADMIN\n $user = User::find(1);\n $staffRole = Sentinel::getRoleRepository()->findByName('staff');\n $customerRole = Sentinel::getRoleRepository()->findByName('customer');\n\n //Seed Sales teams for default ADMIN\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($user->id, $j, $user);\n $this->createOpportunity($user, $user->id, $j);\n }\n\n\n //Get the default STAFF\n $staff = User::find(2);\n $this->createSalesTeam($staff->id, 1, $staff);\n $this->createSalesTeam($staff->id, 2, $staff);\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $staff->id, $j);\n }\n\n foreach (range(1, 3) as $i) {\n $staff = $this->createStaff($i);\n $user->users()->save($staff);\n $staffRole->users()->attach($staff);\n\n $customer = $this->createCustomer($i);\n $staff->users()->save($customer);\n $customerRole->users()->attach($customer);\n $customer->customer()->save(factory(\\App\\Models\\Customer::class)->make());\n\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 5) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $i, $j);\n }\n\n }\n\n //finally call it installation is finished\n file_put_contents(storage_path('installed'), 'Welcome to LCRM');\n }\n }", "public function run()\n {\n if (env('DB_DATABASE') == 'connection') {\n Connection::create([\n \"ruc\" => \"12312312312\",\n \"basedata\" => \"nbdata2018_1\",\n ]);\n \n Connection::create([\n \"ruc\" => \"12312312315\",\n \"basedata\" => \"nbdata2018_2\",\n ]);\n \n $this->call(ConnectionTableSeeder::class);\n } else {\n $this->call(AppSeeder::class);\n }\n }", "public function setupDatabase()\n {\n exec('rm ' . storage_path() . '/testdb.sqlite');\n exec('cp ' . 'database/database.sqlite ' . storage_path() . '/testdb.sqlite');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n # truncates tables before seeding\n foreach ($this->toTruncate as $table) {\n DB::table($table)->delete();\n }\n\n factory(App\\Models\\Product::class, 25)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Post::truncate();\n Comment::truncate();\n // CommentReply::truncate();\n \n\n\n factory(User::class,10)->create();\n factory(Post::class,20)->create();\n factory(Comment::class,30)->create();\n // factory(CommentReply::class,30)->create();\n }", "public function run()\n\t{\n \n Eloquent::unguard();\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\t$this->call('UserTableSeeder');\n\t $this->call('LayerTableSeeder');\n $this->call('UserLevelTableSeeder');\n $this->call('RoleUserTableSeeder');\n $this->call('RoleLayerTableSeeder');\n $this->call('BookmarkTableSeeder');\n \n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n DB::statement('SET foreign_key_checks = 0');\n DB::table('topics')->truncate();\n\n factory(\\App\\Topic::class, 100)->create();\n // ->each(function($topic) {\n\n // // Seed para a relação com group\n // $topic->group()->save(factory(App\\Group::class)->make());\n\n // // Seed para a relação com topicMessages\n // $topic->topicMessages()->save(factory(App\\TopicMessage::class)->make());\n\n // // Seed para a relação com user\n // $topic->user()->save(factory(App\\User::class)->make());\n // });\n \n DB::statement('SET foreign_key_checks = 1');\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n Categoria::truncate();\n Atractivo::truncate();\n Galeria::truncate();\n User::truncate();\n\n $this->call(CategoriasTableSeeder::class);\n $this->call(AtractivosTableSeeder::class);\n $this->call(GaleriasTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n }", "public function run(Faker $faker)\n {\n Schema::disableForeignKeyConstraints();\n DB::table('users')->insert([\n 'name' => $faker->name(),\n 'email' => 'admin@admin.com',\n 'password' => Hash::make('12345678'),\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n\t $this->call(CategoryTableSeed::class);\n\t $this->call(ProductTableSeed::class);\n\t $this->call(UserTableSeed::class);\n }", "public function run()\n {\n $this->cleanDatabase();\n\n factory(User::class, 50)->create();\n factory(Document::class, 30)->create();\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n \t// DB::table('webapps')->delete();\n\n $webapps = array(\n\n );\n\n // Uncomment the below to run the seeder\n // DB::table('webapps')->insert($webapps);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $tables = array(\n 'users',\n 'companies',\n 'stands',\n 'events',\n 'visitors',\n 'api_keys'\n );\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n }\n\n foreach ($tables as $table) {\n DB::table($table)->truncate();\n }\n\n $this->call(UsersTableSeeder::class);\n $this->call(EventsTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(StandsTableSeeder::class);\n $this->call(VisitorsTableSeeder::class);\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n $clear = $this->command->confirm('Wil je de database leegmaken? (Dit haalt alle DATA weg)');\n\n if ($clear):\n $this->command->callSilent('migrate:refresh');\n $this->command->info('Database Cleared, starting seeding');\n endif;\n\n $this->call([\n SeedSeeder::class,\n RoleSeeder::class,\n UserSeeder::class,\n // BoardgameSeeder::class,\n BoardgamesTableSeeder::class,\n StatusSeeder::class,\n TournamentSeeder::class,\n AchievementsSeeder::class,\n TournamentUsersSeeder::class,\n ]);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n $this->call(PaisSeeder::class);\n $this->call(DepartamentoSeeder::class);\n $this->call(MunicipioSeeder::class);\n $this->call(PersonaSeeder::class);\n }", "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n\n DB::table('events')->truncate();\n \n Event::create([\n 'id' => 1,\n 'name' => 'Spot Registration For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n Event::create([\n 'id' => 2,\n 'name' => 'Spot Screening For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'screen',\n 'formId'\t\t=> 1,\n ]);\n \n Event::create([\n 'id' => 3,\n 'name' => 'Spot Registration For Skin Cancer',\n 'cancerId' => 2,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n\n Event::create([\n 'id' => 3,\n 'name' => 'Registration cum Screening camp for Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addWeeks(1),\n 'eventType'\t\t=> 'register_screen',\n 'formId'\t\t=> 1,\n ]);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Para que no verifique el control de claves foráneas al hacer el truncate haremos:\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n\t\t// Primero hacemos un truncate de las tablas para que no se estén agregando datos\n\t\t// cada vez que ejecutamos el seeder.\n\t\t//Foto::truncate();\n\t\t//Album::truncate();\n\t\t//Usuario::truncate();\n DB::table('users')->delete();\n DB::table('ciudades')->delete();\n DB::table('tiendas')->delete();\n DB::table('ofertas')->delete();\n DB::table('ventas')->delete();\n\n\n\t\t// Es importante el orden de llamada.\n\t\t$this->call('UserSeeder');\n $this->call('CiudadSeeder');\n\t\t$this->call('TiendaSeeder');\n $this->call('OfertaSeeder');\n $this->call('VentaSeeder');\n }", "public function run()\n {\n $this->call(\\Database\\Seeders\\GroupByRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\SingleIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\MultiIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\JoinFiveTablesSeeder::class);\n\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// // 試しに一回流す\n// $data = $this->makeData(0, 'userFactory', 1);\n// DB::table('users')->insert($data);\n// $data = $this->makeData(0, 'userDetailFactory', 1);\n// DB::table('user_details')->insert($data);\n//\n// // $this->call(UsersTableSeeder::class);\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userFactory', 2500);\n// DB::table('users')->insert($data);\n// }\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userDetailFactory', 2500);\n// DB::table('user_details')->insert($data);\n// }\n }", "public function run()\n {\n $this->truncateTables([\n 'users',\n 'categories',\n 'types',\n 'courses',\n 'classrooms',\n 'contents',\n 'companies',\n ]);\n\n $this->call(CompanyTableSeeder::class);\n $this->call(TypeTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(CoursesTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n $this->call(ContentTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(ClassroomTableSeeder::class);\n $this->call(TestTableSeeder::class);\n $this->call(BankTableSeeder::class);\n\n\n // factory(\\App\\User::class, 50)\n // ->create()\n // ->each(function ($user) {\n // // $user->companies()->save();\n // $company = \\App\\Company::inRandomOrder()->first();\n // $user->companies()->attach($company->id);\n // $user->assignRole(['participante']);\n // });\n /*\n factory(\\App\\User::class, 50)\n ->create()\n ->each(function ($user) {\n $user->assignRole(['participante']);\n });*/\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Question::truncate();\n Option::truncate();\n// Answer::truncate();\n Quiz::truncate();\n QuizQuestion::truncate();\n\n //for admin\n $admin = factory(User::class)->create([\n 'name' => 'Admin',\n 'email' => 'admin@mail.com',\n 'is_admin' => 1,\n ]);\n\n //for user\n $user = factory(User::class)->create([\n 'name' => 'User',\n 'email' => 'user@mail.com',\n ]);\n\n factory(Question::class, 100)->create()->each(function ($question) {\n factory(Option::class, mt_rand(2, 4))->create([\n 'question_id' => $question->id,\n ]);\n });\n\n factory(Quiz::class, 10)->create()->each(function ($quiz) {\n\n factory(QuizQuestion::class, mt_rand(5, 10))->create();\n });\n\n\n }", "public function run()\n {\n $this->call([\n SiteSettingsSeeder::class,\n LaratrustSeeder::class,\n CountrySeeder::class,\n GovernorateSeeder::class,\n FaqSeeder::class,\n SitePageSeeder::class,\n UsersSeeder::class,\n ]);\n\n Country::whereiso(\"EG\")->update(['enable_shipping' => true]);\n\n factory(User::class, 400)->create();\n\n Category::create([\n 'en' => [\n 'name' => \"cake tools\"\n ]\n ]);\n\n Category::create([\n 'en' => [\n 'name' => \"Party Supplies\"\n ]\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ProductSeeder::class\n ]);\n }", "public function run()\n {\n $this->call(PermissionsTableSeeder::class);\n\n if (App::environment('local')) {\n $this->call(FakeUsersTableSeeder::class);\n $this->call(FakeArticlesTableSeeder::class);\n $this->call(FakeEventsTableSeeder::class);\n }\n }", "public function run()\n {\n Model::unguard();\n\n $this->call(CategoryTypesTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(AccountTypesTableSeeder::class);\n $this->call(TransactionTypesTableSeeder::class);\n\n if (App::environment() !== 'production') {\n $this->call(UserTableSeeder::class);\n $this->call(AccountBudgetTableSeeder::class);\n $this->call(TransactionTableSeeder::class);\n }\n\n Model::reguard();\n }", "public function run()\n {\n User::truncate();\n Product::truncate();\n User::forceCreate([\n 'name' => 'foo',\n 'email' => 'foo@foo.com',\n 'password' => bcrypt('password'),\n ]);\n factory(User::class, 5)->create();\n factory(Product::class, 5)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n {\n $this->call([UsersTableSeeder::class]);\n $this->call([ContratosTableSeeder::class]);\n $this->call([UsuariosTableSeeder::class]);\n $this->call([UnidadesTableSeeder::class]);\n $this->call([AtestadosTableSeeder::class]);\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n\n // DB::table('locations')->insert([\n // 'id' => 1,\n // 'name' => 'Default',\n // 'name' => 'district',\n // 'district_id' => 1,\n // 'province_id' => 1,\n // ]);\n }", "public function run()\n {\n $data = include env('DATA_SEED');\n\n \\Illuminate\\Support\\Facades\\DB::table('endpoints')->insert((array)$data);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('admins')->truncate();\n\n for ($i = 0; $i < 10; $i++)\n {\n $faker = Factory::create('en_US');\n $values = [\n 'name' => $faker->userName,\n 'email' => $faker->freeEmail,\n 'password' => bcrypt($faker->password),\n 'phone' => $faker->phoneNumber,\n 'status' => random_int(0,1)\n ];\n admin::create($values);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::beginTransaction();\n// $this->seed();\n DB::commit();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n \\DB::table('provinces')->delete();\n \\DB::table('cities')->delete();\n \\DB::table('districts')->delete();\n // import provinces and cities from sql file\n $sqlFile = app_path() . '/../database/raw/administrative_indonesia_without_districts.sql';\n DB::unprepared(file_get_contents($sqlFile));\n $this->command->info('Successfully seed Provinces and Cities!');\n\n // import districts with latitude and longitude from csv file\n $csvFile = app_path() . '/../database/raw/administrative_indonesia_districts_with_lat_lng.csv';\n $districts = $this->csvToArray($csvFile);\n // check if lat lng exists\n foreach ($districts as $i => $d) {\n if ($d['latitude'] == '') $districts[$i]['latitude'] = 0;\n if ($d['longitude'] == '') $districts[$i]['longitude'] = 0;\n }\n // insert it\n $insert = District::insert($districts);\n if ($insert) $this->command->info('Successfully seed Districts!');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RegionsTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(SubDistrictsTableSeeder::class);\n $this->call(PostcodesTableSeeder::class);\n\n if (env('APP_ENV') !== 'production') {\n // Wipe up 5 churches, and each church has 5 cells, and each cell has 20 members associated with.\n // In other word, we wipe up 500 church members.\n for ($i = 0; $i < 2; $i++) {\n $church = factory(\\App\\Models\\Church::class)->create();\n\n $church->areas()->saveMany(factory(\\App\\Models\\Area::class, 2)->create([\n 'church_id' => $church->id\n ])->each(function($area) {\n $area->cells()->saveMany(factory(\\App\\Models\\Cell::class, 2)->create([\n 'area_id' => $area->id\n ])->each(function($cell) {\n $cell->members()->saveMany(factory(App\\Models\\Member::class, 10)->create([\n 'cell_id' => $cell\n ]));\n }));\n }));\n }\n }\n }", "public function run()\n {\n User::create([\n 'name' => 'Regynald',\n 'email' => 'correo@correo.com',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n ]);\n\n User::create([\n 'name' => 'Leonardo',\n 'email' => 'correo2@correo.com',\n 'password' => Hash::make('123456789')\n ]);\n\n // seed sin model\n /* DB::table('users')->insert([\n 'name' => 'Regynald',\n 'email' => 'correo@correo.com',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]); */\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->environmentPath = env('APP_ENV') === 'production' ||\n env('APP_ENV') === 'qa' ||\n env('APP_ENV') === 'integration' ?\n 'Production':\n 'local';\n //disable FK\n Model::unguard();\n DB::statement(\"SET session_replication_role = 'replica';\");\n\n // $this->call(HrEmployeeTableSeeder::class);\n $this->call(\"Modules\\HR\\Database\\Seeders\\\\$this->environmentPath\\HrEmployeePosTableSeeder\");\n // $this->call(HrEmployeePresetsDiscountTableSeeder::class);\n\n // Enable FK\n DB::statement(\"SET session_replication_role = 'origin';\");\n Model::reguard();\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "protected static function seed()\n {\n foreach (self::fetch('database/seeds', false) as $file) {\n Bus::need($file);\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $faker = F::create('App\\Proovedores');\n for($i=0; $i < 10; $i++){\n DB::table('users')->insert([\n 'usuario' => $i,\n 'password' => $i,\n 'email' => $faker->email,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Delete all records.\n DB::table('users')->delete();\n // Reset AUTO_INCREMENT.\n DB::table('users')->truncate();\n\n // Dev user.\n App\\Models\\User::create([\n 'email' => 'peterwong.brisbane@gmail.com',\n 'password' => '$2y$10$t6q81nz.XrMrh20NHDvxUu/szwHBwgzPd.01e8uuP0qVy0mPa6H/e',\n 'first_name' => 'L5',\n 'last_name' => 'App',\n 'username' => 'l5-app',\n 'is_email_verified' => 1,\n ]);\n\n // Dummy users.\n TestDummy::times(10)->create('App\\Models\\User');\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // We did this for test purposes. Shouldn't be doing this for production\n $password = Hash::make('123456');\n\n User::create([\n 'name' => 'Administrator',\n 'email' => 'admin@lig.com',\n 'password' => $password,\n ]);\n }", "public function run()\n {\n Model::unguard();\n \n factory('App\\User','admin')->create();\n factory('App\\Evento',100)->create();\n //factory('App\\User','miembro',10)->create();\n factory('App\\Telefono',13)->create();\n factory('App\\Notificacion',10)->create();\n factory('App\\Rubro',10)->create();\n factory('App\\Tecnologia',10)->create();\n factory('App\\Cultivo',10)->create();\n factory('App\\Etapa',10)->create();\n factory('App\\Variedad',10)->create();\n factory('App\\Caracteristica',10)->create();\n factory('App\\Practica',30)->create();\n factory('App\\Tag',15)->create();\n // $this->call(PracticaTableSeeder::class);\n $this->call(TrTableSeeder::class);\n $this->call(MesTableSeeder::class);\n $this->call(SemanasTableSeeder::class);\n $this->call(PsTableSeeder::class);\n $this->call(MsTableSeeder::class);\n $this->call(CeTableSeeder::class);\n $this->call(CvTableSeeder::class);\n $this->call(PtSeeder::class);\n \n\n Model::unguard();\n }", "public function run() {\n $this->call(UserSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(CreateAdminUserSeeder::class);\n // $this->call(PhoneSeeder::class);\n // $this->call(AddressSeeder::class);\n\n $this->call(ContactFormSeeder::class);\n //$this->call(ContactSeeder::class);\n\n User::factory()->count(20)->create()->each(function ($user) {\n // Seed the relation with one address\n $address = Address::factory()->make();\n $user->address()->save($address);\n\n // Seed the relation with one phone\n $phone = Phone::factory()->make();\n $user->phone()->save($phone);\n\n // Seed the relation with 15 contacts\n $contact = Contact::factory()->count(25)->make();\n $user->contacts()->saveMany($contact);\n });\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Activity::truncate();\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n $this->call(UserTableSeeder::class);\n $this->call(ActivityTableSeeder::class);\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n DB::table('category_product')->truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n\n $usersQuentity = 1000;\n $categoriesQuentity = 30;\n $productsQuentity = 1000;\n $transactionsQuentity = 1000;\n\n factory(\\App\\User::class, $usersQuentity)->create();\n factory(\\App\\Category::class, $categoriesQuentity)->create();\n factory(\\App\\Product::class, $productsQuentity)->create()->each(\n function ($product){\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class, $transactionsQuentity)->create();\n\n }", "public function run()\n {\n Eloquent::unguard();\n \n $this->call('AdminMemberTableSeeder');\n $this->call('BankInfoTableSeeder');\n $this->call('LocationLookUpTableSeeder');\n $this->call('OrderStatusTableSeeder');\n $this->call('AdminRoleTableSeeder');\n\n }", "public static function setUpBeforeClass()\n {\n parent::setUpBeforeClass();\n $app = require __DIR__ . '/../../bootstrap/app.php';\n /** @var \\Pterodactyl\\Console\\Kernel $kernel */\n $kernel = $app->make(Kernel::class);\n $kernel->bootstrap();\n $kernel->call('migrate:fresh');\n\n \\Artisan::call('db:seed');\n }", "public function run()\n {\n Model::unguard();\n\n if( !User::where('email', 'nbpalomino@gmail.com')->count() ) {\n User::create([\n 'nombre'=>'Nick'\n ,'apellidos'=>'Palomino'\n ,'email'=>'nbpalomino@gmail.com'\n ,'password'=> Hash::make('1234567u')\n ,'celular'=>'966463589'\n ]);\n }\n\n $this->call('CategoriaTableSeeder');\n $this->call('WhateverSeeder');\n $this->call('ProductTableSeeder');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n Model::unguard();\n\n $this->command->info('seed start!');\n\n // 省市县\n $this->call('RegionTableSeeder');\n // 用户、角色\n $this->call('UserTableSeeder');\n // 权限\n $this->call('PurviewTableSeeder');\n // 博文分类\n $this->call('CategoryTableSeeder');\n // 博文、评论、标签\n $this->call('ArticleTableSeeder');\n // 心情\n $this->call('MoodTableSeeder');\n // 留言\n $this->call('MessageTableSeeder');\n // 文件\n $this->call('StorageTableSeeder');\n\n $this->command->info('seed end!');\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n {\n $this->call(RolesDatabaseSeeder::class);\n $this->call(UsersDatabaseSeeder::class);\n $this->call(LocalesDatabaseSeeder::class);\n $this->call(MainDatabaseSeeder::class);\n }", "public function run()\n {\n\n Schema::disableForeignKeyConstraints(); //in order to execute truncate before seeding\n\n $this->call(UsersTableSeeder::class);\n $this->call(PostCategoriesSeeder::class);\n $this->call(TagsSeeder::class);\n $this->call(PostsSeeder::class);\n\n Schema::enableForeignKeyConstraints();\n\n\n }", "public function run()\n {\n // DB::table('users')->insert([\n // ['id'=>1, 'email'=>'nhat','password'=>bcrypt(1234), 'lever'=>0]\n // ]);\n // $this->call(UsersTableSeeder::class);\n // $this->call(CatTableSeeder::class);\n // $this->call(TypeTableSeeder::class);\n // $this->call(AppTableSeeder::class);\n // $this->call(GameTableSeeder::class);\n \n \n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n $this->seedUsers();\n $this->seedAdmins();\n $this->seedMeals();\n\n $this->seedOrder();\n $this->seedOrderlist();\n\n $this->seedReload();\n }", "public function run()\n\t{\n\t\t//composer require fzaninotto/faker\n\t\t\n\t\t$this->call(populateAllSeeder::class);\n\t\t\n\t}", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n Model::unguard();\n\n $faker =Faker\\Factory::create();\n\n // $this->call(UserTableSeeder::class);\n\n $this->seedTasks($faker);\n $this->seedTags($faker);\n\n Model::reguard($faker);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n $this->call([\n CountriesSeeder::class,\n ProvincesSeeder::class,\n SettingsSeeder::class,\n AdminsTableSeeder::class,\n ]);\n }" ]
[ "0.8064933", "0.7848158", "0.7674873", "0.724396", "0.7216743", "0.7132209", "0.70970356", "0.70752203", "0.704928", "0.699208", "0.6987078", "0.69839287", "0.6966499", "0.68990964", "0.6868679", "0.68468624", "0.68307716", "0.68206114", "0.6803113", "0.6803113", "0.6801801", "0.6789746", "0.6788733", "0.6788008", "0.6786291", "0.67765796", "0.67742485", "0.677106", "0.67651874", "0.6761959", "0.675823", "0.67337847", "0.6733437", "0.67295784", "0.67290515", "0.6724652", "0.67226326", "0.6722267", "0.6721339", "0.6715842", "0.67070943", "0.67060536", "0.67031103", "0.6702514", "0.6702361", "0.67017967", "0.6695973", "0.6693496", "0.66868156", "0.66837406", "0.6678434", "0.66755766", "0.66726524", "0.666599", "0.664943", "0.6640641", "0.663921", "0.66387916", "0.6636016", "0.6633116", "0.6629787", "0.6627134", "0.6625862", "0.661699", "0.66093796", "0.6602538", "0.65996546", "0.659914", "0.6596484", "0.6596383", "0.65922767", "0.65922284", "0.65913564", "0.65889347", "0.65812707", "0.65811145", "0.6579546", "0.6578819", "0.6575912", "0.65749073", "0.6574314", "0.657148", "0.65696406", "0.6568972", "0.65624833", "0.6560332", "0.6559092", "0.6557491", "0.65555155", "0.6554255", "0.65509576", "0.6548099", "0.65479296", "0.6545845", "0.65443295", "0.65434265", "0.65432936", "0.654295", "0.65426385", "0.6541781", "0.6539325" ]
0.0
-1
Class constructor, destructor etc ... Constructor.
public function __construct() { // Nothing here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __constructor(){}", "final private function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t\t// within the class.\n\t\t(object)$this->db = new dbHelper();\n\t\t(object)$this->user = new User();\n\t\t(object)$this->patient = new Patient();\n\t\t(object)$this->enc = new Encounter();\n\t\treturn;\n\t}", "final private function __construct() {\n\t\t\t}", "final private function __construct(){\r\r\n\t}", "final private function __construct() {}", "final private function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "final private function __construct()\n {\n }", "final private function __construct()\n {\n }", "final private function __construct()\n {\n }", "function _construct(){ }", "function _construct() {\n \t\n\t\t\n\t}", "private function __construct() {\n \n trace('***** Creating new '.__CLASS__.' object. *****');\n \n }", "private function __construct()\t{}", "final function __construct() { \n\t}", "public function fn_construct_class() {\n\t}", "private function __construct()\r\n {}", "private function __construct()\r\n\t\t{\r\n\r\n\t\t\t/* Do Nothing */\r\n\r\n\t\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "private function __construct() {\n\t\t}", "function __construct(){\n\t\t// nowt much...\n\t}", "private final function __construct() {}", "private function __construct()\r\r\n\t{\r\r\n\t}", "private function __construct () {}", "private function __construct() {\r\n\t\r\n\t}", "private function __construct()\r\n\t{\r\n\t}", "private function __construct( )\n {\n\t}", "public function __construct() {\n\t\t// Nothing to do.\n\t}", "private function __construct()\n\t{\n\t\t\n\t}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.8026452", "0.7735951", "0.77308506", "0.76857394", "0.76559484", "0.7567421", "0.7567421", "0.7559963", "0.7559963", "0.7559963", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7556137", "0.7553363", "0.7553363", "0.75513905", "0.7464262", "0.7430106", "0.7421349", "0.7419714", "0.74182504", "0.7413486", "0.74026066", "0.74000233", "0.7398868", "0.739647", "0.73936516", "0.7392521", "0.73868346", "0.73867136", "0.7379324", "0.73758805", "0.7367126", "0.7360845", "0.73536986", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827", "0.7347827" ]
0.0
-1
Returns the instance of the chosen asset group.
public static function group($name = 'default') { if(!isset(static::$groups[$name])) { static::$groups[$name] = new static(); } return static::$groups[$name]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get($group);", "public function getGroupObject() {\n return $this->groups[0];\n }", "public function getByKey( $groupKey ) {\n\t\t$instance = new \\Maven\\Core\\Domain\\VariationGroup();\n\n\t\tif ( ! $groupKey ) {\n\t\t\tthrow new \\Maven\\Exceptions\\MissingParameterException( 'Group key: is required' );\n\t\t}\n\n\t\t$row = $this->getRowBy( 'group_key', $groupKey, '%s' );\n\n\t\tif ( $row ) {\n\t\t\t$this->fillObject( $instance, $row );\n\t\t}\n\n\t\treturn $instance;\n\t}", "public static function instance() {\n\t\tif (self::$instance === null) {\n\t\t\t// Return the current group if initiated already\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\t// Return the instance\n\t\treturn self::$instance;\n\t}", "function getGroup()\n {\n return Factory::create('group', $this->_gid);\n }", "public static function getAsset() {\n if (Asset::$asset == null) {\n Asset::$asset = new Asset();\n }\n return Asset::$asset;\n }", "public function getAsset()\n {\n return $this->hasOne(Asset::className(), ['id' => 'asset_id']);\n }", "public function getGroup ()\n {\n return $this->getObject();\n }", "function getGroup() {\n \n return null;\n \n }", "public function getAsset()\n {\n return $this->hasOne(Asset::className(), ['asset_id' => 'asset_id']);\n }", "function getScriptByGroup($group) {\n \t$files = $this->getLatestVersionScripts();\n\n \tif(is_foreachable($files)) {\n \t foreach($files as $file) {\n \t require_once $file;\n \t $basename = basename($file);\n \t \n \t $class_name = substr($basename, 0, strpos($basename, '.'));\n \t \n \t $script = new $class_name($this);\n \t \n \t if($script->getGroup() == $group) {\n \t return $script;\n \t } // if\n \t } // foreach\n \t} // if\n \t\n \treturn null;\n }", "public function getGroup() {\n\t\tif (empty($this->group)) {\n\t\t\t$this->group = $this->groupsTable->findById($this->groupId);\n\t\t}\n\t\treturn $this->group;\n\t}", "public function getAsset()\n {\n if ($this->asset === null) {\n $this->asset = AssetFacade::find($this->getAssetId());\n }\n\n return $this->asset;\n }", "protected function _getAssetName()\n\t{\n\t\t$k = $this->_tbl_key;\n\t\treturn 'com_groups.group.' . (int) $this->$k;\n\t}", "public function getGroup(): GroupInterface;", "public function group($group)\n\t{\n\t\tif(in_array($group, array('styles', 'scripts')))\n\t\t{\n\t\t\t$this->group = $group;\n\n\t\t\treturn $this;\n\t\t}\n\n\t\tthrow new Exception('Unrecognized asset group could not be set in Basset.');\n\t}", "public function getComponent()\n {\n return $this->hasOne(Asset::className(), ['id' => 'component_id']);\n }", "function &getGroup() {\n\t\treturn $this->Group;\n\t}", "public function getGroup()\n {\n return $this->hasOne(ScrtGroup::className(), ['group_id' => 'group_id']);\n }", "public function show(Group $group)\n {\n return new GroupResource($group);\n }", "public function getGroup()\n {\n return $this->group;\n }", "public function getGroup()\n {\n return $this->group;\n }", "public function getGroup()\n {\n return $this->group;\n }", "public function getGroup()\n {\n return $this->group;\n }", "public function getGroup()\n {\n return $this->group;\n }", "public function getGroup()\n {\n return $this->group;\n }", "public function getGroup() {\n return $this->group;\n }", "public static function group()\n {\n return static::$group;\n }", "public static function group()\n {\n return static::$group;\n }", "function getGroup() {\n\n\tglobal $db;\n\treturn $db->getGroup ( $GLOBALS [\"targetId\"] );\n\n}", "public function getAssetGuest()\n {\n return Asset::getAssets($this->command_guest_id, Asset::ASSETABLE_TEAM, NULL, true);\n }", "public function group($group)\n {\n if (is_numeric($group)) {\n return $this->groupModel->find((int) $group);\n }\n\n return $this->groupModel->where('name', $group)->first();\n }", "protected function GetGroup() {\r\n\t\t\treturn $this->group;\r\n\t\t}", "public function get( $id ) {\n\n\t\t$instance = new \\Maven\\Core\\Domain\\VariationGroup();\n\n\t\tif ( ! $id ) {\n\t\t\tthrow new \\Maven\\Exceptions\\MissingParameterException( 'Id: is required' );\n\t\t}\n\n\t\t$row = $this->getRowById( $id );\n\n\t\tif ( ! $row ) {\n\t\t\tthrow new \\Maven\\Exceptions\\NotFoundException();\n\t\t}\n\n\n\t\t$this->fillObject( $instance, $row );\n\n\t\treturn $instance;\n\t}", "public function getById($group_id)\n {\n return $this->getQuery()->eq('id', $group_id)->findOne();\n }", "public function getEavGroup() {\n return $this->objectManager->get ( 'Magento\\Eav\\Model\\Entity\\Attribute\\Group' )->getCollection ();\n }", "public function get($_groupId)\n {\n $this->checkRight('VIEW_ACCOUNTS');\n \n $group = GroupbaseGroup::getInstance()->getGroupById($_groupId);\n\n return $group;\n }", "public function getAttributeGroupToEditProperty()\n {\n return AttributeGroup::find($this->editGroupId);\n }", "public function get_group_element($group)\n {\n $description = strip_tags($group->get_fully_qualified_name() . ' [' . $group->get_code() . ']');\n \n return new AdvancedElementFinderElement(\n PlatformGroupEntity::ENTITY_TYPE . '_' . $group->get_id(), \n 'type type_group', \n $group->get_name(), \n $description, \n AdvancedElementFinderElement::TYPE_SELECTABLE_AND_FILTER);\n }", "public function choice_group() {\n return $this->group;\n }", "public function asset()\n {\n return $this->belongsTo(Asset::class, 'asset_id', 'id');\n }", "public function findById($group_id);", "protected function find($name, $group)\n\t{\n\t\t$asset = $this->assets[$group][$name];\n\n\t\tif(!parse_url($asset['file'], PHP_URL_SCHEME))\n\t\t{\n\t\t\tif(!file_exists($path = ($asset['source'] . DS . $asset['file'])))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$asset['file'] = $asset['source'] . '/' . $asset['file'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$asset['external'] = $this->assets[$group][$name]['external'] = true;\n\t\t}\n\n\t\treturn $asset;\n\t}", "public function getGroup()\n\t{\n\t return $this->groupService->getGroup($this->ownerid);\n\t}", "public abstract function getGroup();", "public function getGroup()\n {\n $this->getParam('group');\n }", "public function getGroup() {\n \tif(count($this->groups))\n \t return $this->groups[0]->getName();\n \telse\n \t return null;\n }", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getRandomAccount()\n {\n if (!$this->is_group) {\n return $this;\n }\n\n return $this->accounts()->inRandomOrder()->first();\n }", "abstract public function get_instance();", "public function getAsset($id)\n\t{\n\t\treturn $this->getResourceChildObject('assets', $id);\n\t}", "public function model()\n {\n return AttributeGroup::class;\n }", "public function assetObject()\n {\n return $this->belongsTo('App\\Asset', 'assetID');\n }", "public function model()\n {\n return Group::class;\n }", "public static function instance() {\n\t\tif ( ! isset( self::$instance ) ) {\n\t\t\tself::$instance = new CTRS_Groups;\n\t\t\tself::$instance->setup_actions();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public function getAsset()\r\n\t{\r\n\t\treturn Yii::app()->assetManager->publish(YiiBase::getPathOfAlias('application.modules.dashboard.assets'), true, -1, YII_DEBUG);\r\n\t}", "public function findByName($group_name);", "public function getGroup()\n {\n $this->group = null;\n\n if ($this->exists === true) {\n } else {\n return;\n }\n\n if ($this->is_file === true) {\n } else {\n return;\n }\n\n $this->group = $this->temp_files[$this->path]->group;\n\n return;\n }", "public function getGroup() {\n\t\t$ids = $this->getGroupIds();\n\t\treturn MessageGroups::getGroup( $ids[0] );\n\t}", "public function getGroup()\n {\n return $this->hasOne(Group::class, ['id' => 'group_id']);\n }", "public function getAssetById($id)\n\t{\n\t\treturn craft()->elements->getElementById($id, ElementType::Asset);\n\t}", "public function getGroup($groupId);", "public function getBrand()\n\t{\n\t\t$Brand = new Product_Brand();\n\t\treturn $Brand->findItem( array( 'Id = '.$this->Brand ) );\n\t}", "public static function getGroup(){\n\t\treturn FW_DAO_UserGroup::getInstance();\n\t}", "public function Get_ModelGroup()\r\n\t{\r\n\t\treturn $this->_modelGroup;\r\n\t}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('sfGuardGroup');\n }", "public function getGroup();", "public function getGroup();", "public function getGroup();", "public function meta(): Group;", "public static function getInstance()\n {\n return Doctrine_Core::getTable('vjGuardADGroupPermission');\n }", "public function show(Group $group)\n {\n return Group::find($group)->first();\n // return view('groups.show');\n }", "public function model()\n {\n return \\App\\Models\\Group::class;\n }", "public function addGroup( Group $g ) : Asset\n {\n if( $g == NULL )\n {\n throw new e\\NullAssetException( S_SPAN . c\\M::NULL_GROUP . E_SPAN );\n }\n \n $group_name = $g->getName();\n \n if( isset( $this->getProperty()->applicableGroups ) )\n $group_string = $this->getProperty()->applicableGroups;\n else\n $group_string = \"\";\n \n $group_array = explode( ';', $group_string );\n \n if( !in_array( $group_name, $group_array ) )\n {\n $group_array[] = $group_name;\n }\n \n $group_string = implode( ';', $group_array );\n $this->getProperty()->applicableGroups = $group_string;\n return $this;\n }", "public function getGroup()\n {\n //Note: group parts are not \"named\" so it's all or nothing\n return $this->_get('_group');\n }", "public function __get($name)\n\t{\n\t switch ($name) {\n\t case 'group':\n\t if (!isset($this->group)) {\n\t $this->group = (object) API_USERGROUPS::getRecordById($this->groupid);\n\t }\n\t \n\t return $this->group;\n\t \n\t break;\n\t }\n\t}", "public function addGroup( Group $g ) : Asset\n {\n if( $g == NULL )\n {\n throw new e\\NullAssetException( \n S_SPAN . c\\M::NULL_GROUP . E_SPAN );\n }\n \n $group_name = $g->getName();\n \n if( isset( $this->getProperty()->applicableGroups ) )\n $group_string = $this->getProperty()->applicableGroups;\n else\n $group_string = \"\";\n \n $group_array = explode( ';', $group_string );\n \n if( !in_array( $group_name, $group_array ) )\n {\n $group_array[] = $group_name;\n }\n \n $group_string = implode( ';', $group_array );\n $this->getProperty()->applicableGroups = $group_string;\n return $this;\n }", "public function show(Group $group)\n {\n return $this->showOne($group);\n }", "public function group()\n\t{\n\t\t$group = \\Hubzero\\User\\Group::getInstance($this->get('owned_by_group'));\n\t\tif (!$group)\n\t\t{\n\t\t\t$group = new \\Hubzero\\User\\Group;\n\t\t}\n\t\treturn $group;\n\t}", "function assetTypeInName( $asset_type_name )\n {\n\n $q = Doctrine_Query::create ()\n ->from ( 'AssetType at' )\n ->where ( 'at.asset_type_name = ?' , $asset_type_name );\n\n return $q->fetchOne();\n }", "public function show(Group $group)\n {\n if ($group->private)\n return response()->json(['message' => 'Group cannot be accessed'], 403);\n\n return GroupResource::make($group);\n }", "public function group()\n {\n return null;\n }", "public static function getInstance()\n {\n if (!isset(self::$instance))\n {\n self::$instance = new ZtonepageAssets();\n }\n if (isset(self::$instance))\n {\n return self::$instance;\n }\n }", "public function getAttributeGroup($id)\n { \n if (\\Gate::allows('isAdminOrMerchant')) { \n \n return AttributeGroup::latest()->where('merchant_id',Auth::user()->userable_id)->where('id',$id)->first();\n } \n }", "function get_this_group($grp_id)\n{\n\t$db=new db_util();\n\t$query_string=\"SELECT * FROM vm_group WHERE v_group_id=$grp_id\";\n\t$result=$db->query($query_string);\n\treturn $result;\n}", "public static function get_instance() {\n\n if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Envira_Gallery_Metaboxes ) ) {\n self::$instance = new Envira_Gallery_Metaboxes();\n }\n\n return self::$instance;\n\n }", "public function setAssetGroupClass($assetGroupClass)\n {\n $this->assetGroupClass = $assetGroupClass;\n return $this;\n }", "public function show(Group $group)\n {\n $this->authorize('view', [Group::class, $group]);\n $group->modality;\n $group->formationProgram->formationProgramType;\n $group->learners;\n return $group;\n }", "protected function getAssetFactory() {\n if ($this->assetFactory === null) {\n $this->assetFactory = new AssetFactory($this->cachePath());\n $this->assetFactory->setFilterManager($this->getFilterManager());\n }\n return $this->assetFactory;\n }", "public function getGroup()\n {\n return $this->isJavascript() ? 'javascripts' : 'stylesheets';\n }", "public function FheGroup()\n\t{\n\t\treturn FheGroup::Load($this->FheGroup);\n\t}", "public function getGroup(): ContentEntityInterface;", "public function getRootAsset()\n {\n if ($this->rootAsset === null) {\n return $this;\n } else {\n return $this->rootAsset;\n }\n }", "public function group()\n {\n return $this->belongsTo(GroupModel::class);\n }", "public function removeGroup( Group $g ) : Asset\n {\n if( $g == NULL )\n {\n throw new e\\NullAssetException( \n S_SPAN . c\\M::NULL_GROUP . E_SPAN );\n }\n \n $group_name = $g->getName();\n \n if( isset( $this->getProperty()->applicableGroups ) )\n $group_string = $this->getProperty()->applicableGroups;\n else\n $group_string = \"\";\n \n $group_array = explode( ';', $group_string );\n \n if( in_array( $group_name, $group_array ) )\n {\n $temp = array();\n foreach( $group_array as $group )\n {\n if( $group != $group_name )\n {\n $temp[] = $group;\n }\n }\n $group_array = $temp;\n }\n $group_string = implode( ';', $group_array );\n $this->getProperty()->applicableGroups = $group_string;\n\n return $this;\n }", "private function _getTagGroup()\n {\n $tagGroupId = $this->_getTagGroupId();\n\n if ($tagGroupId !== false) {\n return Craft::$app->getTags()->getTagGroupByUid($tagGroupId);\n }\n\n return null;\n }", "public function currentGroup();", "public static function getInstance()\n {\n return Doctrine_Core::getTable('FeeGroup');\n }" ]
[ "0.6001415", "0.5985476", "0.59822315", "0.59308803", "0.5914828", "0.585078", "0.57255477", "0.57007337", "0.5684216", "0.5676485", "0.5625231", "0.5621887", "0.55907273", "0.55509394", "0.5521845", "0.5511939", "0.53898287", "0.5342662", "0.53323954", "0.53300154", "0.5317542", "0.5317542", "0.5317542", "0.5317542", "0.5317542", "0.5317542", "0.53166074", "0.5309604", "0.5309604", "0.5309473", "0.528406", "0.5275613", "0.526828", "0.5266528", "0.5265078", "0.52579486", "0.52464247", "0.5246279", "0.52460146", "0.5209897", "0.51994157", "0.51869756", "0.51762015", "0.5155027", "0.51364434", "0.5126262", "0.5115519", "0.5113204", "0.5113204", "0.5113204", "0.5113204", "0.5110673", "0.5107016", "0.5103862", "0.5098913", "0.5096033", "0.50903195", "0.50687784", "0.5052492", "0.504204", "0.5031582", "0.50310993", "0.4996647", "0.49794322", "0.49491468", "0.49431425", "0.49325433", "0.49272168", "0.4926219", "0.49195293", "0.49195293", "0.49195293", "0.4913335", "0.49042007", "0.48951602", "0.4894439", "0.48862478", "0.4883104", "0.48792702", "0.48640028", "0.48503727", "0.48503533", "0.48426443", "0.48415124", "0.48390207", "0.48364055", "0.4835016", "0.483459", "0.4831308", "0.4825452", "0.48216552", "0.48171887", "0.48148912", "0.4813952", "0.48105633", "0.47965804", "0.47911742", "0.4790015", "0.47850937", "0.47651505", "0.4764829" ]
0.0
-1
Class methods Returns the path or URL of the assets.
public static function location() { static $location; if($location === null) { $location = Config::get('mako.asset_location'); } return $location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function assetsPath()\n {\n return asset(config('onion_engine.options.public_assets_path')).'/';\n }", "public static function assets(){\n return self::adapterURI().\"assets/\";\n }", "public function getAssetsPath()\n\t{\n\t\treturn dirname(__FILE__) . '/assets';\n\t}", "function get_assets_path() {\n return \"http://\" . $_SERVER['HTTP_HOST'] . '/' . ROOT_PATH . '/assets/';\n }", "public function assets_url() {\n\t\t\treturn get_template_directory_uri() . '/assets/';\n\t\t}", "function asset_url() {\n return url(\"/\");\n }", "public static function get_asset_path(): string {\n\t\treturn plugin_dir_url( dirname( __DIR__ ) );\n\t}", "public function getAssetsUrl()\n\t{\n\t\treturn Yii::app()->getAssetManager()->publish($this->getAssetsPath());\n\t}", "public function getBaseAssetsUri()\n {\n return $this->paths->getBaseAssetsUri();\n }", "protected function getAssetsPath() {\n return Yii::app()->assetManager->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'assets');\n }", "public function getAssetPath()\n {\n return WEB_PUBLIC_THEME . '/' . $this->directory;\n }", "public function getAssetsUrl()\n\t{\n\t\tif ($this->_assetsUrl === null) {\n\t\t\t$assetsPath = $this->getBasePath() . DIRECTORY_SEPARATOR . 'assets';\n\t\t\t$this->_assetsUrl = app()->getAssetManager()->publish($assetsPath);\n\t\t\tif ($this->debug===true) {\n\t\t\t\t$this->_assetsUrl = app()->getAssetManager()->publish($assetsPath, false, -1, true);\n\t\t\t} else {\n\t\t\t\t$this->_assetsUrl = app()->getAssetManager()->publish($assetsPath);\n\t\t\t}\n\t\t}\n\t\treturn $this->_assetsUrl;\n\t}", "protected function assetPath() {\n if (isset($this->config['assetPath']))\n {\n return $this->config['assetPath'];\n }\n return realpath('./assets');\n }", "public function getAssets();", "public function getAssets();", "protected function getAssetsUrl()\n {\n if (isset($this->_assetsUrl))\n return $this->_assetsUrl;\n else\n {\n $assetsPath = Yii::getPathOfAlias('labScript');\n $assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, YII_DEBUG);\n return $this->_assetsUrl = $assetsUrl;\n }\n }", "function asset($path = '')\n {\n \treturn (!empty($path)) ? BASE_URL . $path : BASE_URL ; \n }", "function assets_url( $path = '' ) {\n\n\treturn home_url( 'Cece/Assets/' . $path );\n\n}", "private function _getAssetsUrl()\n\t{\n\t\tif( $this->_assetsUrl===null )\n\t\t{\n\t\t\t$assetsPath = Yii::getPathOfAlias('ext.widgets.countupload.assets');\n\n\t\t\t// We need to republish the assets if debug mode is enabled.\n\t\t\tif( $this->debug===true )\n\t\t\t\t$this->_assetsUrl = Yii::app()->getAssetManager()->publish($assetsPath, false, -1, true);\n\t\t\telse\n\t\t\t\t$this->_assetsUrl = Yii::app()->getAssetManager()->publish($assetsPath);\n\t\t}\n\t\treturn $this->_assetsUrl;\n\t}", "protected function getAssetsUrl()\n {\n if (!isset($this->_assetsUrl)) {\n //$assetPath = Yii::getPathOfAlias($this->assetPathAlias);\n //if (!$assetPath) {\n // throw new CException(\"Asset path alias $this->assetPathAlias could not be resolved\");\n //}\n $assetPath = $this->assetPath;\n $this->_assetsUrl = Yii::app()->assetManager->publish($assetPath, false, -1, $this->forceCopyAssets);\n }\n return $this->_assetsUrl;\n }", "function assets_url($path='') {\n\t\tif (substr($path, 0) == '/') {\n\t\t\treturn base_url().\"assets\".$path;\n\t\t} else {\n\t\t\treturn base_url().\"assets/\".$path;\n\t\t}\n\t}", "protected function assetUrl() {\n if (isset($this->config['assetUrl']))\n {\n return $this->config['assetUrl'];\n }\n\n return '/assets';\n }", "static function asset_path($source)\n {\n if ($source) {\n $decoded_source = json_decode($source);\n if ($url = $decoded_source->url) {\n // if $url then the file is stored on the cloud \n return $url;\n } else {\n // else it is on the local storage ( generating the URL dynamically in this case so if the\n // the admin changes his Domain or base URL the assets will still work)\n $replace = preg_replace('/.*\\/storage/', '', $decoded_source->path);\n $url = asset('/storage' . $replace);\n return $url;\n }\n }\n }", "function getAssets();", "public function getAssets()\n {\n\n }", "public function getAssetsUrl()\n\t{\n\t\tif($this->_assetsUrl===null)\n\t\t{\n\t\t\t$this->_assetsUrl=Yii::app()->getAssetManager()->publish(\n\t\t\t\tYii::getPathOfAlias('application.modules.'.$this->moduleName.'.assets'),\n\t\t\t\tfalse,\n\t\t\t\t-1,\n\t\t\t\tYII_DEBUG\n\t\t\t);\n\t\t}\n\n\t\treturn $this->_assetsUrl;\n\t}", "function asset($path) {\n echo getAbsolutePath() . \"public/$path\";\n}", "public function asset(): string\n {\n if (is_null($this->rootPath)) {\n\n $partials = explode('/', $this->fullPath);\n\n return array_pop($partials);\n\n }\n\n return substr($this->fullPath, strlen(rtrim($this->rootPath, '/')) + 1);\n }", "public function getFullPath()\n {\n return sfAssetsLibraryTools::getMediaDir(true) . $this->getRelativePath();\n }", "function assets($type = null, $file = null)\n {\n // Make sure the path on config file end with '/'\n $assets_path = ends_with(config_item('assets_path'), '/')\n ? config_item('assets_path')\n : config_item('assets_path') . '/';\n if (is_null($type)) {\n // return the URL of original assets_path\n return base_url() . $assets_path;\n }\n // $file variable is fullfil\n if (!is_null($file)) {\n // $file variable is not empty string\n if ($type != '') {\n $path = ends_with(config_item($type . '_path'), '/')\n ? config_item($type . '_path')\n : config_item($type . '_path') . '/';\n }\n // $file is empty string\n else {\n $path = $assets_path;\n }\n }\n // return the URL of type_path\n return base_url() . $path . $file;\n }", "public function getBaseAssetsDir()\n {\n return $this->paths->getBaseAssetsDir();\n }", "public function getThemeAssetsUri()\n {\n return $this->paths->getThemeAssetsUri();\n }", "public static function assets()\n {\n return static::instance();\n }", "public function getResourcePath();", "function asset_url(){\n return base_url().'assets/';\n}", "public function getFullPath()\n {\n $assetstore = $this->get('assetstore');\n\n return $assetstore->getPath().'/'.$this->getPath();\n }", "function asset_url( ?string $path = null ): string\n {\n return Asset::url( '/', $path );\n }", "public function getAsset()\r\n\t{\r\n\t\treturn Yii::app()->assetManager->publish(YiiBase::getPathOfAlias('application.modules.dashboard.assets'), true, -1, YII_DEBUG);\r\n\t}", "public function getPathAssets($append = ''){\n\t\treturn $this->paths['assets'].$append;\n\t}", "function assets( $type = 'css', $file = 'component.css' ) {\n\t\t\t\treturn implode( '/', array(\n\t\t\t\t\t\ttrim( $this->url, '/' ),\n\t\t\t\t\t\ttrim( $this->assets_dir, '/' ),\n\t\t\t\t\t\ttrim( $type, '/' ),\n\t\t\t\t\t\ttrim( $file, '/' )\n\t\t\t\t\t) );\n\t\t\t}", "public function path()\n {\n if (in_array($this->object->extension(), ['html', 'twig', 'md'])) {\n return $this->object->getViewPath();\n } else {\n return $this->object->getAssetPath();\n }\n }", "public function getSrcPath()\n {\n return $this->getSettingArray()[\"src_path\"];\n }", "public function assets()\r\n {\r\n return $this->httpRequest(\"v2/assets\");\r\n }", "public function functional_asset_path() {\n\n\t\t$log_path = WP_CONTENT_DIR . '/uploads/nginx-helper/';\n\n\t\treturn apply_filters( 'nginx_asset_path', $log_path );\n\n\t}", "public function getAssetBasePath()\n {\n return $this->assetBasePath;\n }", "public function getPath(): string\n {\n return asset('storage/upload/'.$this->path);\n }", "public static function get_skin_assets_path() {\n if( self::is_skin_active() ) {\n return get_template_directory_uri() . '/skins/' . self::$skin_name . '/assets';\n } else {\n return get_template_directory_uri() . '/assets/';\n }\n }", "public function getBaseAssetPath()\n {\n if( isset( $this->getProperty()->baseAssetPath ) )\n return $this->getProperty()->baseAssetPath;\n return NULL;\n }", "public function assetsDir(): string\n {\n return $this->root.'/www';\n }", "public function getTag()\n {\n return 'assets';\n }", "function admin_asset(string $path = ''): string\n {\n return Admin::app()->asset($path);\n }", "public function getResourcesPath()\n {\n return $this->createPath($this->sourcePath, 'Asar', 'Resources');\n }", "public function get_assets() \n {\n return $this->assets;\n }", "function _asset_url(string $path = '') {\n\t\treturn asset(config('asset.directory')) . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n\t}", "public static function dashboardAssetsPath()\n {\n return asset(config('onion_engine.options.public_assets_path').'dashboard/assets').'/';\n }", "function asset($url = '')\n{\n return ASSET . $url;\n}", "public static function asset(string $path): string\n {\n /*\n to DOOOO\n viewNamespaceToPath => /images/prova.png\n viewNamespaceToDir => c:\\var\\wwww\\test\\images\\prova.png\n viewNamespaceToAsset => http://example.com/images/prova.png\n */\n // dddx(\\Module::asset('blog:img/logo.img')); //localhost/modules/blog/img/logo.img\n\n if (Str::startsWith($path, 'https://')) {\n return $path;\n }\n if (Str::startsWith($path, 'http://')) {\n return $path;\n }\n\n if (File::exists(public_path($path))) {\n return $path;\n }\n\n if (Str::startsWith($path, '/theme/pub')) {\n $path = 'pub_theme::'.Str::after($path, '/theme/pub');\n }\n\n if (Str::startsWith($path, 'theme/pub')) {\n $path = 'pub_theme::'.Str::after($path, 'theme/pub');\n }\n\n $ns = Str::before($path, '::');\n $ns_after = Str::after($path, '::');\n if ($ns === $path) {\n $ns = inAdmin() ? 'adm_theme' : 'pub_theme';\n }\n\n $ns_after0 = Str::before($ns_after, '/');\n $ns_after1 = Str::after($ns_after, '/');\n $ns_after = str_replace('.', '/', $ns_after0).'/'.$ns_after1;\n\n if (Str::startsWith($ns_after, '/')) {\n $ns_after = Str::after($ns_after, '/');\n }\n if (\\in_array($ns, ['pub_theme', 'adm_theme'], true)) {\n $theme = config('xra.'.$ns);\n\n $filename_from = self::fixPath(base_path('Themes/'.$theme.'/Resources/'.$ns_after));\n // $filename_from = Str::replace('/Resources//', '/Resources/', $filename_from);\n $asset = 'themes/'.$theme.'/'.$ns_after;\n $filename_to = self::fixPath(public_path($asset));\n $asset = Str::replace(url(''), '', asset($asset));\n\n if (! File::exists($filename_to)) {\n if (! File::exists(\\dirname($filename_to))) {\n File::makeDirectory(\\dirname($filename_to), 0755, true, true);\n }\n try {\n File::copy($filename_from, $filename_to);\n } catch (\\Exception $e) {\n throw new \\Exception('message:['.$e->getMessage().']\n path :['.$path.']\n file from ['.$filename_from.']\n file to ['.$filename_to.']');\n }\n }\n Assert::string($asset, 'wip');\n\n return $asset;\n }\n\n $module_path = Module::getModulePath($ns);\n if (Str::endsWith($module_path, '/')) {\n $module_path = Str::beforeLast($module_path, '/');\n }\n $filename_from = self::fixPath($module_path.'/Resources/'.$ns_after);\n $asset = 'assets/'.$ns.'/'.$ns_after;\n $filename_to = self::fixPath(public_path($asset));\n $asset = Str::replace(url(''), '', asset($asset));\n if (! File::exists($filename_from)) {\n throw new \\Exception('file ['.$filename_from.'] not Exists , path ['.$path.']');\n }\n\n // dddx(app()->environment());// local\n if (! File::exists($filename_to) || 'production' !== app()->environment()) {\n if (! File::exists(\\dirname($filename_to))) {\n File::makeDirectory(\\dirname($filename_to), 0755, true, true);\n }\n // 105 If condition is always true.\n // if (File::exists($filename_from)) {\n File::copy($filename_from, $filename_to);\n // }\n }\n Assert::string($asset, 'wip');\n\n return $asset;\n\n // return asset(self::viewNamespaceToAsset($path));\n }", "protected function getAssets() { return array(); }", "function assets_path($path = '')\n {\n return phanda()->assetsPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n }", "public function getName()\n {\n return 'assets';\n }", "public function getName()\n {\n return 'assets';\n }", "public function url()\n {\n return Storage::url($this->path);\n }", "public function Assets($file,$type){\n echo $this->url().'/assets/'.$type.'/'.trim($file, '/');\n }", "public function assetPath($path = '')\n\t{\n\t\treturn $this['path.asset'].ltrim($path, '/');\n\t}", "public function getResource();", "public function getResource();", "public function getResource();", "public function getResource();", "public function getResource();", "public function getResource();", "public function getAssetFolder()\n {\n return $this->config()->asset_folder;\n }", "public function getAssetFolder()\n {\n return $this->config()->asset_folder;\n }", "public function getAbsoluteSrc();", "static function asset($path)\n {\n return Assets::src($path);\n }", "public function getAssetPath()\n {\n $url_frags = parse_url($_SERVER['REQUEST_URI']);\n \n if (!array_key_exists('path', $url_frags)) {\n return false;\n }\n\n $file_name = basename($url_frags['path']);\n \n if (!preg_match('/^(.+)\\.([a-z]+)$/', $file_name)) {\n return false;\n }\n\n // this is the path after the common path prefix\n $path_everything_after = substr(\n $url_frags['path'],\n strpos($url_frags['path'], $this->common_path_prefix)\n );\n\n $file_name = $this->actual_path.'/'.$path_everything_after;\n if (file_exists($file_name)) {\n return $file_name;\n }\n return false;\n }", "public function getAssets()\n {\n return $this->assets;\n }", "function asset( $path ) {\n\n\t\tif ( ! $this->mix ) {\n\t\t\t$file = $this->path( 'public/mix-manifest.json' );\n\t\t\t$this->mix = (array) json_decode( file_get_contents( $file ), true );\n\t\t}\n\n\t\t// Make sure to trim any slashes from the front of the path.\n\t\t$path = '/' . ltrim( $path, '/' );\n\n\t\tif ( $this->mix && isset( $this->mix[ $path ] ) ) {\n\t\t\t$path = $this->mix[ $path ];\n\t\t}\n\n\t\treturn $this->uri( 'public' . $path );\n\t}", "public static function get_asset_dir() {\n\n\t\tglobal $_llms_tests_bootstrap;\n\t\treturn $_llms_tests_bootstrap->assets_dir;\n\n\t}", "function asset($name) {\n $url;\n\n if (config('mode') === 'development') {\n $url = config('asset_url') . $name;\n } else {\n $url = config('app_url') . $name;\n }\n\n return $url;\n}", "public function load_assets() {}", "public function resolveAssetPath($url);", "public function getPath() {\n return str_replace(Storage::disk('public')->url(''), '', $this->url);\n }", "public function get_assets_handler() {\n\t\treturn $this->assets_handler;\n\t}", "public function assetURL($asset) {\n\t\treturn self::$config['APP_DIR'] . self::$config['ASSETS_DIR'] . $asset;\n\t}", "function asset_path($filename, $dir)\n{\n\n $site = base_url();\n $mode = \"\";\n\n /*\n * cache invalidation removed for js css libraries\n */\n\n if (is_null($dir)) {\n $final_url = $mode . $filename;\n return $final_url;\n }\n\n if (ENVIRONMENT == 'development') {\n $mode = 'dist/' . $dir . '/';\n return $mode . $filename;\n } else if (ENVIRONMENT == 'production') {\n $mode = 'public/' . $dir . '/';\n }\n\n $final_url = $mode . $filename . '?v='.getUIVersion();\n\n return $final_url;\n\n}", "private static function assets()\n {\n $files = ['Assets'];\n $folder = static::$root.'Resources'.'/';\n\n self::call($files, $folder);\n }", "public function assets() {\n\t\tif ($this->assetsLoaded) {\n\t\t\treturn '';\n\t\t}\n\t\t$this->assetsLoaded = true;\n\t\treturn ''.\n\t\t\t$this->Html->script($this->assetsPath . 'bootstrap-typeahead.js', $this->assetsOptions);\n\t}", "public static function getTestAssetFilePath() {\n\t\t$filePath = self::getTestFilePath().DIRECTORY_SEPARATOR.'assets';\n\t\treturn $filePath;\n\t}", "public function assetPath($asset) {\n\t\treturn self::$config['APP_ROOT'] . self::$config['ASSETS_DIR'] . $asset;\n\t}", "public function getAssetPath($type)\n {\n $src = $this->get('src', Config::get('theming.theme'));\n $path = '/' . $type . '/' . Str::ensureRight($src, '.' . $type);\n $manifest = $this->getManifest()->get($path);\n return $this->themeUrl($manifest ? $manifest : $path);\n }", "public function getAssets()\n {\n return $this->getService('assets');\n }", "function admin_asset($assets, $secure = false)\n {\n return asset(\"modules/Admin/Assets/\" . $assets, $secure);\n }", "protected function getPathToModuleWebAssets(): string\n {\n return $this->requestStack->getCurrentRequest()->getBasePath() . '/modules/zikulacontent/';\n }", "function assets_url( $path, $file, $scheme = null, $is_network = false )\n {\n // Preparation\n $route = preg_replace( '/\\\\\\\\/', '/', $file );\n $url = apply_filters(\n 'asset_base_url',\n rtrim( $is_network ? network_home_url( '/', $scheme ) : home_url( '/', $scheme ), '/' )\n );\n // Polylang support\n if ( function_exists( 'pll_current_language' ) ) {\n $lang = pll_current_language( 'slug' );\n if ( strpos( $url, '/' . $lang ) !== false && $lang !== false )\n $url = str_replace( '/' . $lang, '', $url );\n }\n // WPML support\n if ( function_exists( 'icl_object_id' ) && defined( 'ICL_LANGUAGE_CODE' ) ) {\n $url = preg_replace( '#([a-z])/' . ICL_LANGUAGE_CODE . '#', '\\\\1', $url );\n }\n // Clean base path\n $route = preg_replace( '/.+?(?=wp-content)/', '', $route );\n // Clean project relative path\n $route = preg_replace( '/\\/app[\\/\\\\\\\\A-Za-z0-9\\.\\-]+/', '', $route );\n $route = preg_replace( '/\\/assets[\\/\\\\\\\\A-Za-z0-9\\.\\-]+/', '', $route );\n $route = preg_replace( '/\\/vendor[\\/\\\\\\\\A-Za-z0-9\\.\\-]+/', '', $route );\n return $url.'/'.apply_filters( 'app_route', $route ).'/assets/'.$path;\n }", "function Assets() {\r\n\t\t\treturn $this->QueryPublic( 'Assets' );\r\n\t\t}", "public function Asset($params)\n {\n if (gettype($params) == \"string\") {\n $params = [$params];\n }\n $filename = $params[0];\n $Link = $this->_machine->plugin(\"Link\");\n return $Link->Get($this->_prefixDir . \"/assets/\" . $filename);\n }", "function asset($name = null)\n {\n $document = explode('/', rtrim(app('http.request')->uri, \"/\"));\n $document = end($document);\n\n $defaultPath = $document === 'public' ? 'assets/' : 'public/assets/';\n\n $packpage = new \\Anonym\\Assets\\VersionPackpage('', '%f', $defaultPath);\n return $name !== null ? $packpage->getUrl($name) : $defaultPath;\n }", "function get_static_image_path($file = NULL)\n {\n return get_static_asset($file, 'images/'); \n }", "public function getPath(){\n\t\treturn \\GO::view()->getPath().'themes/'.$this->getName().'/';\n\t}", "public function getUrl()\n {\n return $this->storage()->url(\n $this->getFilepath().DIRECTORY_SEPARATOR.$this->filename\n );\n }" ]
[ "0.8014667", "0.7971951", "0.79334813", "0.7910596", "0.78772837", "0.7733774", "0.771759", "0.76256555", "0.7616967", "0.75247186", "0.7461235", "0.7436727", "0.74168605", "0.7382739", "0.7382739", "0.7315301", "0.7310076", "0.73092633", "0.72476083", "0.7233127", "0.7231266", "0.72188056", "0.71942437", "0.7186871", "0.71834195", "0.71268725", "0.70704806", "0.7049005", "0.70245725", "0.702395", "0.70133173", "0.6977305", "0.6938471", "0.6906029", "0.6905221", "0.68842185", "0.68817204", "0.6868918", "0.6866082", "0.68622154", "0.6856319", "0.68367004", "0.68200815", "0.68059313", "0.67984605", "0.67811483", "0.6748277", "0.6747913", "0.673556", "0.6726299", "0.6721214", "0.67082304", "0.6686076", "0.66852355", "0.668376", "0.6644046", "0.66437006", "0.66373986", "0.6625521", "0.6625323", "0.6625323", "0.66154116", "0.6610888", "0.6594802", "0.6588264", "0.6588264", "0.6588264", "0.6588264", "0.6588264", "0.6588264", "0.6560179", "0.6560179", "0.65559185", "0.6552167", "0.6549707", "0.65473896", "0.65239984", "0.65211844", "0.6505366", "0.64960665", "0.6490624", "0.6490008", "0.64888173", "0.6444413", "0.6435219", "0.6421268", "0.6419842", "0.64125407", "0.6396909", "0.63812935", "0.63808835", "0.63780504", "0.6372197", "0.63674426", "0.6365312", "0.6358582", "0.63426554", "0.63345355", "0.6314925", "0.6314218" ]
0.67176074
51
Get one or all CSS assets.
protected function css($name = null) { if($name === null) { $css = array(); foreach($this->css as $key => $value) { $css[] = $this->css($key); } return implode("\n", $css); } if(!isset($this->css[$name])) { return null; } return HTML::tag('link', $this->css[$name]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_assets() {\n\t\treturn [\n\t\t\tnew StyleAsset(\n\t\t\t\tself::CSS_HANDLE,\n\t\t\t\tself::CSS_URI\n\t\t\t),\n\t\t];\n\t}", "public function getCss()\n {\n $result = $this->_css;\n foreach ($this->_packages as $package) {\n $config = $this->getConfig($package);\n if (!empty($config['css'])) {\n foreach ($config['css'] as $item) {\n $result[] = $item;\n }\n }\n }\n return $result;\n }", "public function getAllCSS()\n {\n return $this->css;\n }", "public static function getCss() {\n return self::get('_css', array());\n }", "function _asset_css_all(string $pack = '') {\n\t\treturn Asset::setThemePack($pack)->getCssAll();\n\t}", "public function getCss();", "public function getCss();", "function findCssFiles();", "public function css()\n {\n $assets = array();\n foreach (Config::get('ImageUpload::assets.css') as $file) {\n $assets[] = new FileAsset(public_path($this->assetPath.'css/'.$file));\n }\n $css = new AssetCollection($assets, array(\n new CssMinFilter(),\n ));\n\n $response = Response::make($css->dump(), 200);\n $response->header('Content-Type', 'text/css');\n return $response;\n }", "public function getCSS()\n\t{\n\t\t$css = array();\n\t\treturn $css;\n\t}", "public function styles() {\n $styles = array();\n if (\\File::isDirectory(public_path('assets/fontello/css'))) {\n foreach (glob(public_path('assets/fontello/css/') . '*', GLOB_BRACE) as $path) {\n $file = explode('/', $path);\n $styles[] = \\HTML::style('public/assets/fontello/css/' . end($file));\n }\n\n return join(\"\\n\", $styles);\n }\n }", "public function get_css_files()\n\t{\n\t\treturn $this->_css_files;\n\t}", "function happys_getCssAssets() {\n\t \t $filepath = glob(\"wp-content/themes/happys/css/app-v*.css\");\n\t\t $filename = basename($filepath[count($filepath) - 1]).PHP_EOL;\n\t \t echo $filename;\n }", "static public function getCSS() {\n\t\treturn self::$css;\n\t}", "private function load_css () {\n $buffer = '';\n if (count($this->css_files)) {\n foreach ($this->css_files as $file) {\n $file = explode('/', $file);\n // TODO: use $this->config->item('modules_locations') for modules path\n $file = 'application/modules/'.$file[0].'/views/'.$this->get_skin().'/skin/'.implode('/',array_slice($file, 1));\n $buffer .= \"\\n\".'<link rel=\"stylesheet\" href=\"'.base_url($file).'\">';\n }\n return $buffer.\"\\n\";\n } else {\n return \"\\n\";\n }\n }", "function _asset_css(array $files = [], string $pack = '') {\n\t\treturn Asset::setThemePack($pack)->getCss($files);\n\t}", "function get_the_css_urls() {\n\n md_get_the_css_urls();\n \n }", "protected function loadCss() {}", "public function getCssFiles(): array\n {\n return $this->cssFiles;\n }", "function css($file)\n {\n return assets('css', $file);\n }", "function getAssets();", "public function automaticCss()\n \t{\n \t\t$css = array();\n \t\tif (isset($this->pluginPath)) {\n\t \t\t\n\t \t\t# CSS Plugin Path\n\t\t\t$css_path_plugin = $this->pluginPath . $this->constant['webroot'] . DS . $this->constant['cssBaseUrl'];\n\t\t\tif (is_file($css_path_plugin . $this->controller . '.css')) {\n\t\t \t$css[] = $this->plugin.'.'.$this->controller;\n\t\t \t}\n\n\t\t \tif (is_file($css_path_plugin . $this->controller . DS . $this->action . '.css')) {\n\t\t \t$css[] = $this->plugin.'.'.$this->controller . '/' . $this->action;\n\t\t \t}\n \t\t}\n \t\t\n \t\t$css_path = $this->constant['www_root'] . $this->constant['cssBaseUrl'];\n \t\tif (is_file($css_path . $this->controller . '.css')) {\n\t \t$css[] = $this->controller;\n\t\t}\n\n\t \tif (is_file($css_path . $this->controller . DS . $this->action . '.css')) {\n\t \t$css[] = $this->controller . DS . $this->action;\n\t\t}\n\t\treturn $this->css($css);\n \t}", "public function getCSSFiles() {\n //je krijgt op het einde .. en . terug, deze mag je niet opnemen in je links\n $cssFiles = scandir(\"css\", 1);\n \n return $cssFiles;\n }", "function allLoadCss($path){\n \n $diretorio = dir($path);\n\n while($arquivo = $diretorio -> read()){\n //verifica apenas as extenções do css \n if(strpos($arquivo, '.css')!==FALSE)\n echo (\"<link rel='stylesheet' href='\".BARRA.url_base.BARRA.$path.$arquivo.\"' type='text/css' />\\n\");\n }\n $diretorio -> close();\n\n }", "protected function _getFromCSS()\n {\n // styles to apply\n $styles = array();\n\n // list of the selectors to get in the CSS files\n $getit = array();\n\n // get the list of the selectors of each tags\n $lst = array();\n $lst[] = $this->value['id_lst'];\n for ($i=count($this->table)-1; $i>=0; $i--) {\n $lst[] = $this->table[$i]['id_lst'];\n }\n\n // foreach selectors in the CSS files, verify if it match with the list of selectors\n foreach ($this->cssKeys as $key => $num) {\n if ($this->_getReccursiveStyle($key, $lst)) {\n $getit[$key] = $num;\n }\n }\n\n // if we have selectors\n if (count($getit)) {\n // get them, but in the definition order, because of priority\n asort($getit);\n foreach ($getit as $key => $val) $styles = array_merge($styles, $this->css[$key]);\n }\n\n return $styles;\n }", "function stylesheets() {\n $sheets = func_get_args();\n foreach($this->included_stylesheets as $name) $sheets[] = $name;\n return $this->context->stylesheet_links($sheets, $this->base_url().\"/stylesheets\");\n }", "public function getAssets();", "public function getAssets();", "function Assets() {\r\n\t\t\treturn $this->QueryPublic( 'Assets' );\r\n\t\t}", "public static function assets()\n {\n return static::instance();\n }", "public function get_css_common()\n {\n return array\n (\n \"lgwebapp.css\"\n );\n }", "function GetStylesheetes()\n{\n $isMobile = check_user_agent('mobile') === false && @$_GET['screen'] != 'mobile' ? false :true;\n $append = $isMobile ? '.mobile.css':'.css';\n $stylesheets = GetTheDataArray(array('theme','stylesheet'));\n $returnData = '';\n foreach($stylesheets as $key => $style)\n {\n $file = '';\n if($key == 'core') {\n //include core stylesheet and decide if mobile stylesheet should be used\n if(check_user_agent('mobile') === false && @$_GET['screen'] != 'mobile')\n {\n $style = $style['primary'];\n\n } else {\n $style = $style['mobile'];\n\n }\n\n $httpFile = base_url().'theme/'.THEMESELECTED.'/css/'.$style;\n $file = THEMEPATH.THEMESELECTED.'/css/'.$style;\n //including files from project data css folder configured in projectconfig.php\n } elseif($key == 'include'){\n foreach($style as $st)\n {\n $httpFile = base_url().'project/'.PROJECT.'/data/css/'.$st.$append;\n $file = PROJECTROOT.PROJECT.'/data/css/'.$st.$append;\n }\n\n }\n\n if(file_exists($file))\n {\n $returnData .= '<link rel=\"stylesheet\" href=\"'.$httpFile.'\"/>';\n }\n\n }\n //adding include files depending on what device is being used\n foreach($stylesheets['core']['includes'] as $includes)\n {\n $returnData .= '<link rel=\"stylesheet\" href=\"'.base_url().'theme/'.THEMESELECTED.'/css/includes/'.$includes.$append.'\"/>';\n }\n //adding animation files\n if(iteraxcontroller::Instance()->it->data['theme']['animations'] === true)\n {\n foreach($stylesheets['animations'] as $includes)\n {\n $returnData .= '<link rel=\"stylesheet\" href=\"'.base_url().'theme/'.THEMESELECTED.'/css/animation/'.$includes.'\"/>';\n }\n }\n\n\n return $returnData;\n}", "public function load_css($https = false)\n {\n return $this->load(\"css\", $https);\n }", "function get_css_files_media_array();", "public function assets()\r\n {\r\n return $this->httpRequest(\"v2/assets\");\r\n }", "public function getStylesheets()\n {\n return array('/cpCmsPlugin/css/widget.css' => 'all');\n }", "public function css()\n {\n $dir = new \\Ninja\\Directory(NINJA_DOCROOT . 'public/');\n /**\n * @var $files \\Ninja\\File[]\n */\n $files = $dir->scanRecursive(\"*.css\");\n\n echo \"\\nMinifying Css Files...\\n\";\n foreach($files as $sourceFile)\n {\n // Skip all foo.#.js (e.g foo.52.js) which are files from a previous build\n if (is_numeric(substr($sourceFile->getName(true), strrpos($sourceFile->getName(true), '.') + 1)))\n continue;\n\n /**\n * @var $destFile \\Ninja\\File\n */\n $destFile = $sourceFile->getParent()->ensureFile($sourceFile->getName(true) . '.' . self::REVISION . '.' . $sourceFile->getExtension());\n\n $destFile->write(\\Minify_Css::process($sourceFile->read()));\n echo ' ' . $sourceFile->getPath() . \"\\n\";\n\n unset($sourceFile);\n }\n }", "function readStyles() { $this->ParseCSSFile();\n return $this->_stylelist; }", "public function read_css() {\r\n\t\t// 1. wir müssen wissen, welche Thema zZ. aktiv ist.\r\n\t\t$cssfile = $this->get_cssfile_name();\r\n\t\t// 2. den Inhalt der CSS-Datei auslesen\r\n\t\t$csscont = $this->read_cssfile($cssfile);\r\n\t\treturn $csscont;\r\n\t}", "public function assets_css() {\n \n $data = '<link rel=\"stylesheet\" type=\"text/css\" href=\"//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/fullcalendar.min.css?ver=' . MD_VER . '\" media=\"all\"/> ';\n $data .= \"\\n\";\n $data .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . base_url() . 'assets/apps/dashboard/styles/css/dashboard.css?ver=' . MD_VER . '\" media=\"all\"/> ';\n $data .= \"\\n\";\n \n if ( $this->css_urls_widgets ) {\n \n foreach ( $this->css_urls_widgets as $url ) {\n \n $data .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $url . '?ver=' . MD_VER . '\" media=\"all\"/> ';\n $data .= \"\\n\"; \n \n }\n \n }\n \n return $data;\n \n }", "public function getCss()\n {\n return $this->data(self::CSS);\n }", "private function _getResourceCss()\n {\n return array(\n '../libs/css/plugins/validationEngine.jquery.css'\n );\n }", "public function getCssPath();", "function get_css_files() {\n\t$csslist = array();\n\n\t// List pfSense files, then any BETA files followed by any user-contributed files\n\t$cssfiles = glob(\"/usr/local/www/css/*.css\");\n\n\tif (is_array($cssfiles)) {\n\t\tarsort($cssfiles);\n\t\t$usrcss = $pfscss = $betacss = array();\n\n\t\tforeach ($cssfiles as $css) {\n\t\t\t// Don't display any login/logo page related CSS files\n\t\t\tif (strpos($css, \"login\") == 0 &&\n\t\t\t strpos($css, \"logo\") == 0) {\n\t\t\t\tif (strpos($css, \"BETA\") != 0) {\n\t\t\t\t\tarray_push($betacss, $css);\n\t\t\t\t} else if (strpos($css, \"pfSense\") != 0) {\n\t\t\t\t\tarray_push($pfscss, $css);\n\t\t\t\t} else {\n\t\t\t\t\tarray_push($usrcss, $css);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$css = array_merge($pfscss, $betacss, $usrcss);\n\n\t\tforeach ($css as $file) {\n\t\t\t$file = basename($file);\n\t\t\t$csslist[$file] = pathinfo($file, PATHINFO_FILENAME);\n\t\t}\n\t}\n\treturn $csslist;\n}", "public function get_assets_all()\n {\n return $this->assets;\n }", "public function configAction()\n {\n $styles = array_map(function ($fn) {\n return basename($fn, '.css');\n }, glob(App::locator()->get('highlight:assets/styles').'/*.css'));\n\n return compact('styles');\n }", "private function getStylesheets() {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes = $theme_handler->listInfo();\n $names = $themes[$name]->info['name'];\n $path = DRUPAL_ROOT . '/' . $theme\n ->getPath();\n $stylesheete = $path . '/css/' . $name . '.' . 'ckeditor.css';\n $default_stylesheet = drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/samples/assets/sample.css';\n\n if (file_exists($stylesheete)) {\n $stylesheet_options = [$stylesheete => $names];\n } elseif (!file_exists($stylesheete)) {\n $stylesheet_options = [$default_stylesheet => $names];\n }\n return $stylesheet_options ;\n }\n }", "public static function css() {\r\n\t\t\t$s = '';\r\n\t\t\tforeach(func_get_args() as $css) {\r\n\t\t\t\t$file = WEB_ROOT . '/' . $css;\r\n\t\t\t\tif(!file_exists($file)) {\r\n\t\t\t\t\tABPF::logger()->error(\"CSS file $file doesn't exist!\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$v = filemtime($file);\r\n\t\t\t\t$s .= sprintf('<link rel=\"stylesheet\" type=\"text/css\" href=\"%s/%s?v=%d\" />', BASE_URL, $css, $v);\r\n\t\t\t}\r\n\t\t\treturn $s;\r\n\t\t}", "public static function mergeCSS()\n {\n if ((class_exists('Kohana') AND Kohana::$environment !== Kohana::PRODUCTION) OR\n (!file_exists('cache'.DIRECTORY_SEPARATOR.'css')))\n {\n return static::renderCSS();\n }\n\n $content = '';\n $files = '';\n\n sort(static::$_css);\n\n foreach (static::$_css as $src)\n {\n if (in_array($src, static::$_cssNoMerge)) continue;\n\n $files .= $src.PHP_EOL;\n }\n\n $fileName = 'style'.md5($files).'.css';\n $path = 'cache'.DIRECTORY_SEPARATOR.'css'.DIRECTORY_SEPARATOR.$fileName;\n\n if (!file_exists($path))\n {\n foreach (static::$_css as $src)\n {\n if (in_array($src, static::$_cssNoMerge)) continue;\n\n try\n {\n $content .= file_get_contents($src).PHP_EOL.PHP_EOL.'/* --- */'.PHP_EOL.PHP_EOL;\n }\n catch (Exception $e) {}\n }\n\n file_put_contents($path, $content);\n }\n\n //return PHP_EOL.HTML::style(URL::site('cache/css/'.$fileName)).static::_renderCSS(static::$_cssNoMerge);\n //return PHP_EOL.HTML::style(URL::site('cache/css/'.$fileName.'?'.date('Y-m-d'))).static::_renderCSS(static::$_cssNoMerge);\n return PHP_EOL.HTML::style(URL::site('cache/css/'.$fileName.'?'.static::$buildVersion)).static::_renderCSS(static::$_cssNoMerge);\n }", "function loadCSS() {\n\t\t$first = true;\n\t\t$cssPart = '';\n\t\tforeach( $this->conf->css->file as $file ) {\n\t\t\tif( ! $first ) {\n\t\t\t\t$cssPart .= chr( 9 );\n\t\t\t}\n\t\t\t$cssPart .= '<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"';\n\t\t\t$cssPart .= $this->conf->path->baseUrl . $this->conf->path->css . $file;\n\t\t\t$cssPart .= '\" />' . chr( 10 );\n\t\t\t$first = false;\n\t\t}\n\t\t\n\t\tif( count( $this->additionalCSS ) >= 1 ) {\n\t\t\tforeach( $this->additionalCSS as $key => $value ) {\n\t\t\t\t$cssPart .= '<style type=\"text/css\">' . chr( 10 );\n\t\t\t\t$cssPart .= $value . chr( 10 );\n\t\t\t\t$cssPart .= '</style>' . chr( 10 );\n\t\t\t}\n\t\t\n\t\t}\n\t\treturn $cssPart;\n\t}", "function stylesheets($dirs)\n{\n echo assets($dirs, '<link rel=\"stylesheet\" href=\"{link}\">');\n}", "function src_inc_list_css(string $assets_url, array $files) : string {\n $source = \"\";\n\n //Process the list of files\n foreach($files as $file){\n $source .= src_inc_css($assets_url.$file).\"\\n\\t\\t\";\n }\n\n return $source;\n}", "public function getAutoLoadCss()\n\t{\n\t\treturn $this->autoLoadCss;\n\t}", "public function get_stylesheet_css()\n {\n }", "private function loadCss($dir)\n {\n $css = [];\n if(file_exists($dir.'objavi.css')){\n $css[] = file_get_contents($dir.'objavi.css');\n }\n if(file_exists($dir.'css/extra.css')){\n $css[] = file_get_contents($dir.'css/extra.css');\n }\n\n return $css;\n }", "function getStyles () {\n return array(\"template.css\");\n }", "public static function enteteCSS() {\r\n foreach (Page::getInstance()->css as $link) {\r\n ?>\r\n <link type=\"text/css\" rel=\"stylesheet\" href=\"<?php echo $link; ?>\" />\r\n <?php\r\n }\r\n }", "public static function getExternalStylesheets()\n\t{\n\t\t$stylesheets = new \\DomDocument('1.0', 'utf-8');\n\t\t$stylesheets->appendChild($root = $stylesheets->createElement('stylesheets'));\n\t\tforeach (self::$externalStylesheets as $asset)\n\t\t{\n\t\t\t$root->appendChild($external = $stylesheets->createElement('stylesheet'));\n\t\t\t$external->setAttribute('href', $asset->path);\n\t\t\tif (isset($asset->media) && $asset->media)\n\t\t\t{\n\t\t\t\t$external->setAttribute('media', $asset->media);\n\t\t\t}\n\t\t}\n\t\treturn $stylesheets;\n\t}", "private function getStylesheet() {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes[$name] = DRUPAL_ROOT . '/' . $theme\n ->getPath();\n if (file_exists($themes[$name])) {\n $stylesheet = $themes[$name] . '/css/' . $name . '.' . 'ckeditor.css';\n }\n else {\n $stylesheet = drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/samples/assets/sample.css';\n }\n }\n $stylesheet_options = $stylesheet;\n return $stylesheet_options;\n }\n }", "static public function getCssContent($file)\n {\n // Don't try to parse empty (or non-existing) files\n if (empty($file)) return null;\n\n // Skip files that have already been included\n static $files = array();\n if (in_array($file, $files)) {\n return null;\n } else {\n $files[] = $file;\n }\n\n // Initialize the buffer\n $buffer = @file_get_contents($file);\n if (empty($buffer)) return null;\n\n // Initialize the basepath\n $basefile = ScriptMergeHelper::getFileUrl($file, false);\n\n // Follow all @import rules\n if (ScriptMergeHelper::getParams()->get('follow_imports', 1) == 1) {\n if (preg_match_all('/@import\\ url\\((.*)\\);/i', $buffer, $matches)) {\n foreach ($matches[1] as $index => $match) {\n\n // Strip quotes\n $match = str_replace('\\'', '', $match);\n $match = str_replace('\"', '', $match);\n\n $importFile = ScriptMergeHelper::getFilePath($match, $file);\n if (empty($importFile) && strstr($importFile, '/') == false) $importFile = dirname($file).'/'.$match;\n $importBuffer = ScriptMergeHelper::getCssContent($importFile);\n\n if (!empty($importBuffer)) {\n $buffer = str_replace($matches[0][$index], \"\\n\".$importBuffer.\"\\n\", $buffer);\n } else {\n $buffer = \"\\n/* ScriptMerge error: CSS import of $importFile returned empty */\\n\\n\".$buffer;\n }\n }\n }\n }\n\n // Replace all relative paths with absolute paths\n if (preg_match_all('/url\\(([^\\(]+)\\)/i', $buffer, $url_matches)) {\n foreach ($url_matches[1] as $url_index => $url_match) {\n\n // Strip quotes\n $url_match = str_replace('\\'', '', $url_match);\n $url_match = str_replace('\"', '', $url_match);\n\n // Skip CSS-stylesheets which need to be followed differently anyway\n if (strstr($url_match, '.css')) continue;\n\n // Skip URLs and data-URIs\n if (preg_match('/^(http|https):\\/\\//', $url_match)) continue;\n if (preg_match('/^\\/\\//', $url_match)) continue;\n if (preg_match('/^data\\:/', $url_match)) continue;\n\n // Normalize this path\n $url_match_path = ScriptMergeHelper::getFilePath($url_match, $file);\n if (empty($url_match_path) && strstr($url_match, '/') == false) $url_match_path = dirname($file).'/'.$url_match;\n if (!empty($url_match_path)) $url_match = ScriptMergeHelper::getFileUrl($url_match_path);\n \n // Include data-URIs in CSS as well\n if (ScriptMergeHelper::getParams()->get('data_uris', 0) == 1) {\n $imageContent = ScriptMergeHelper::getDataUri($url_match_path);\n if (!empty($imageContent)) {\n $url_match = $imageContent;\n }\n }\n\n $buffer = str_replace($url_matches[0][$url_index], 'url('.$url_match.')', $buffer);\n }\n }\n\n // Detect PNG-images and try to replace them with WebP-images\n if (preg_match_all('/([a-zA-Z0-9\\-\\_\\/]+)\\.(png|jpg|jpeg)/i', $buffer, $matches)) {\n foreach ($matches[0] as $index => $image) {\n $webp = ScriptMergeHelper::getWebpImage($image);\n if ($webp != false && !empty($webp)) {\n $buffer = str_replace($image, $webp, $buffer);\n } \n }\n }\n\n // If compression is enabled\n $compress_css = ScriptMergeHelper::getParams()->get('compress_css', 0);\n if ($compress_css > 0) {\n\n switch ($compress_css) {\n\n case 1: \n $buffer = preg_replace('#[\\r\\n\\t\\s]+//[^\\n\\r]+#', ' ', $buffer);\n $buffer = preg_replace('/[\\r\\n\\t\\s]+/s', ' ', $buffer);\n $buffer = preg_replace('#/\\*.*?\\*/#', '', $buffer);\n $buffer = preg_replace('/[\\s]*([\\{\\},;:])[\\s]*/', '\\1', $buffer);\n $buffer = preg_replace('/^\\s+/', '', $buffer);\n $buffer .= \"\\n\";\n break;\n\n case 2:\n // Compress the CSS-code\n $cssMin = JPATH_SITE.'/components/com_scriptmerge/lib/cssmin.php';\n if(file_exists($cssMin)) include_once $cssMin;\n if(class_exists('CssMin')) {\n $buffer = CssMin::minify($buffer);\n }\n break;\n\n case 0:\n default:\n break;\n }\n\n // If compression is disabled\n } else { \n\n // Append the filename to the CSS-code\n if(ScriptMergeHelper::getParams()->get('use_comments', 1)) {\n $start = \"/* [start] ScriptMerge CSS-stylesheet: $basefile */\\n\\n\";\n $end = \"/* [end] ScriptMerge CSS-stylesheet: $basefile */\\n\\n\";\n $buffer = $start.$buffer.\"\\n\".$end;\n }\n }\n\n return $buffer;\n }", "public function getAssets()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('assets');\n }", "function css($args) {\n\t\t//Determine the current theme location\n\t\t$theme_location = $this->theme_location;\n\t\t$file_location = $theme_location . '/static/css/' . implode('/', $args);\n\t\t// Maybe check for a less file to compile and compile it\n\t\t$this->less_check($file_location);\n\n\n\t\tif (file_exists($file_location)) {\n\t\t\theader(\"Content-Type: text/css\");\n\t\t\theader(\"X-Content-Type-Options: nosniff\");\n\t\t\theader(\"Access-Control-Allow-Origin:*\");\n\t\t\theader('Cache-Control:public, max-age=30672000');\n\n\t\t\techo file_get_contents($file_location);\n\t\t\tdie();\n\t\t} else {\n\t\t\t$this->_404();\n\t\t\tdie();\n\t\t}\n\t}", "public function getStyleSheets()\n {\n return $this->style_sheets;\n }", "private function parseCSS(){\n\t\t// collect all unique values from the arrays in $links\n\t\t$css_links = array();\n\t\tforeach ($this->links as $key => $paths) {\n\t\t\tforeach ($paths as $key => $value) {\n\t\t\t\t$css_links[] = $value;\n\t\t\t}\n\t\t}\n\t\t$css_links = array_unique($css_links);\n\t\tsort($css_links);\n\t\t// loop through all values look for files\n\t\tforeach ($css_links as $value) {\n\t\t\tif(count(explode('.', $value)) > 1){\n\t\t\t\t$temp = explode('.', $value);\n\t\t\t\t$qry = false;\n\t\t\t\t// if a file is found, see if it has a querystring\n\t\t\t\tforeach ($temp as $key => $css) {\n\t\t\t\t\tif(count(explode('?', $css)) > 1){\n\t\t\t\t\t\t$temp[$key] = explode('?', $css);\n\t\t\t\t\t\t$qry = $key;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if it has a query string, remove it\n\t\t\t\tif($qry){\n\t\t\t\t\t$type = $temp[$qry][0];\n\t\t\t\t// otherwise, just grab the extension\n\t\t\t\t} else {\n\t\t\t\t\t$type = count($temp);\n\t\t\t\t\t$type = $temp[$type-1];\n\t\t\t\t}\n\t\t\t\t// check if the file extension is css\n\t\t\t\tif($type === 'css'){\n\t\t\t\t\t// ensure path to file exists\n\t\t\t\t\t$path = 'http://'.$this->url.$value;\n\t\t\t\t\tif(@file_get_contents($path)){\n\t\t\t\t\t\t// add file to $visited\n\t\t\t\t\t\t$this->visited[] = $value;\n\t\t\t\t\t\t// set current path for relativePathFiX()\n\t\t\t\t\t\t$dir = explode('/', $value);\n\t\t\t\t\t\tarray_pop($dir);\n\t\t\t\t\t\t$this->current_path = implode('/', $dir).'/';\n\t\t\t\t\t\t// open the file to start parsing\n\t\t\t\t\t\t$file = file_get_contents($path);\n\t\t\t\t\t\t$imgs = array();\n\t\t\t\t\t\t// find all occurrences of the url() method used to include images\n\t\t\t\t\t\tpreg_match_all(\"%.*url\\('*(.*)[^\\?]*\\).*\\)*%\", $file, $matches);\n\t\t\t\t\t\t// loop through occurrences\n\t\t\t\t\t\tforeach ($matches[1] as $key => $img) {\n\t\t\t\t\t\t\t// check if a query string is attached to the image (used to prevent caching)\n\t\t\t\t\t\t\tif(count(explode('?', $img)) > 1){\n\t\t\t\t\t\t\t\t// if there is, remove it and fix the path\n\t\t\t\t\t\t\t\t$temp = explode('?', $img);\n\t\t\t\t\t\t\t\t$imgs[] = $this->relativePathFix($temp[0]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// if there isn't a query string, make sure to remove the closing bracket\n\t\t\t\t\t\t\t\t$temp = explode(')', $img);\n\t\t\t\t\t\t\t\t$imgs[] = $this->relativePathFix($temp[0]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if images were found, add them to $links\n\t\t\t\t\t\tif(count($imgs) > 0){\n\t\t\t\t\t\t\t$this->links[$value] = $imgs;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private function _getCSSIncludes () {\n $ret = array();\n foreach ($this->_styles as $stylesheet => $included) {\n if (!$included) {\n $this->_styles[$stylesheet] = true;\n array_push($ret, self::CSS_PATH . $stylesheet);\n }\n }\n\n return $ret;\n }", "public function css()\n {\n return $this->css;\n }", "protected function getStylesheets()\n {\n $stylesheets = parent::getStylesheets();\n $stylesheets[] = 'styles/css/minimal/minimal.css';\n return $stylesheets;\n }", "public function styles() {\n\t\t$styles = array(\n\t\t\tarray(\n\t\t\t\t'handle' => 'static_content_styles_css',\n\t\t\t\t'src' => $this->get_base_url() . '/css/static_content_styles.css',\n\t\t\t\t'version' => $this->_version,\n\t\t\t\t'enqueue' => array(\n\t\t\t\t\tarray( 'field_types' => array( 'staticcontent' ) )\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\treturn array_merge( parent::styles(), $styles );\n\t}", "function get_static_css_path($file = NULL)\n {\n return get_static_asset($file, 'css/'); \n }", "public function css(){\n if (func_num_args() > 0){\n for ($i = 0; $i < func_num_args(); $i++){\n $arg = func_get_arg($i); // Fatal error: func_get_arg(): Can't be used as a function parameter\n if (preg_match('/^(.+)\\[(.+)\\]$/', $arg, $matches)){\n $filename = $matches[1];\n $media = $matches[2];\n } else {\n $filename = $arg;\n $media = 'screen,projection';\n }\n \n array_push($this->css, $this->stylesheet_tag($filename, $media));\n }\n }\n \n return join($this->css, \"\\n\");\n }", "public function getCss($link)\n {\n $cssLinks = [];\n $content = file_get_contents($link);\n\n if (preg_match_all('/(@import) (url)\\(\\\"([^)]+)\\\"\\)/', $content, $matches)) {\n if (isset($matches[3])) {\n foreach ($matches[3] as $match) {\n $cssLinks[] =$this->getFullLink($link, $match);\n }\n }\n }\n\n if (preg_match_all('/<link.+href=[\\'\"]([^\\'\"]+)[\\'\"].*>/', $content, $matches)) {\n if (isset($matches[1])) {\n foreach ($matches[1] as $match) {\n if (!preg_match('/\\.(xml|ico)$/', $match)) {\n $cssLinks[] = $this->getFullLink($link, $match);\n }\n }\n }\n }\n\n return [$content, $cssLinks];\n }", "function theme_css($uri, $tag=true)\n{\n\t$path_css = theme_url(assets_dir('css').'/'.$uri);\n\treturn _css($path_css,$tag);\n}", "public function getAssets()\n {\n\n }", "public function getDynamicCss(){\r\n\t\t$db = new RevSliderDB();\r\n\r\n\t\t$styles = $db->fetch(RevSliderGlobals::$table_css);\r\n\t\t$styles = RevSliderCssParser::parseDbArrayToCss($styles, \"\\n\");\r\n\r\n\t\treturn $styles;\r\n\t}", "function cssFiles($cssFile = false) {\n\t\n\tif ($cssFile) $this->cssFiles[] = $cssFile;\n\telse return $this->cssFiles;\n }", "protected function getAssets() { return array(); }", "public function getAssets()\n {\n return $this->assets;\n }", "protected function getContentCssFileNames() {}", "public function splitCssBundles()\n {\n return $this->splitBundles(\n 'css',\n $this->createPath('public/css'),\n $this->filters['css']\n );\n }", "public function loadAssets()\r\n {\r\n $this->app->document->addStylesheet('elements:imagebox/assets/css/edit.css');\r\n return parent::loadAssets();\r\n }", "function css($file = NULL, $cdn = NULL, $attrs = '')\n {\n return get_instance()->theme->css($file, $cdn, $attrs);\n }", "public function getAssets()\n {\n return $this->getService('assets');\n }", "public static function css();", "public function getCssSources(): string\n {\n return '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n . $this->uri\n . 'bower_components/jquery-ui/themes/ui-lightness/jquery-ui.min.css\" />'\n . '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n . $this->uri\n . 'bower_components/jquery-ui/themes/ui-lightness/theme.css\" />'\n . '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n . $this->uri\n . 'themes/default/style.css\" />';\n }", "private static function assets()\n {\n $files = ['Assets'];\n $folder = static::$root.'Resources'.'/';\n\n self::call($files, $folder);\n }", "protected function getAssets()\n {\n if( ! $assets = $this->getHtml()->find('video, img, iframe, a'))\n {\n throw new Exception('No assets found in content!');\n }\n\n return $assets;\n }", "public function css() {\r\r\n\r\r\n // $scss = new scssc();\r\r\n // $scss->setImportPaths(\"css/\");\r\r\n // $scss->setFormatter(\"scss_formatter_compressed\");\r\r\n // $dir = $_SERVER['DOCUMENT_ROOT'].\"/css/\";\r\r\n // $server = new scss_server($dir, $this->config->config['cache_path'].'resources', $scss);\r\r\n // $server->serve('', $name);\r\r\n\r\r\n $scss = new scssc();\r\r\n $scss->setFormatter(\"scss_formatter_compressed\");\r\r\n\r\r\n $source = '';\r\r\n $cache_path = $this->config->config['cache_path'].'resources';\r\r\n $file_cache = $cache_path.'/styles.css';\r\r\n\r\r\n $mtime_cache = (file_exists($file_cache)) ? filemtime($file_cache) : 0;\r\r\n $mtime_files = 0;\r\r\n\r\r\n foreach($this->config->config['css_site'] as $file) {\r\r\n if(pathinfo($file, PATHINFO_EXTENSION) === 'scss') {\r\r\n\r\r\n $scss->last_modified = filemtime($file);\r\r\n $scss->compile('@import \"'.$file.'\"');\r\r\n if($mtime_files < $scss->last_modified) {\r\r\n $mtime_files =$scss->last_modified;\r\r\n }\r\r\n\r\r\n } else {\r\r\n if($mtime_files < filemtime($file)) {\r\r\n $mtime_files = filemtime($file);\r\r\n }\r\r\n }\r\r\n }\r\r\n\r\r\n if($mtime_cache > $mtime_files) {\r\r\n header(\"Content-Type: text/css\");\r\r\n $lastModified = gmdate('D, d M Y H:i:s', $mtime_cache) . ' GMT';\r\r\n header('Last-Modified: ' . $lastModified);\r\r\n echo file_get_contents($file_cache);\r\r\n\r\r\n return;\r\r\n }\r\r\n\r\r\n $t = @date('r');\r\r\n\r\r\n foreach($this->config->config['css_site'] as $file) {\r\r\n if(pathinfo($file, PATHINFO_EXTENSION) === 'scss') {\r\r\n $source .= $scss->compile('@import \"'.$file.'\"');\r\r\n } else {\r\r\n $source .= $scss->compile(file_get_contents($file));\r\r\n }\r\r\n }\r\r\n\r\r\n $source = \"/* generated by trivy on \".@date('r').\" */\\n\\n\" . $source;\r\r\n\r\r\n $file = fopen($file_cache, 'w+');\r\r\n fwrite($file, $source);\r\r\n fclose($file);\r\r\n $mtime_cache = filemtime($file_cache);\r\r\n\r\r\n header(\"Content-Type: text/css\");\r\r\n $lastModified = gmdate('D, d M Y H:i:s', $mtime_cache) . ' GMT';\r\r\n header('Last-Modified: ' . $lastModified);\r\r\n echo $source;\r\r\n }", "static public function css($files, $path = null)\n {\n $output = null;\n\n if ( !is_array($files) )\n $files = array($files);\n\n if ( $path === null )\n $path = 'globals/views/css';\n \n $path = (URL_REWRITING) ? ROOT.$path : $path;\n\n foreach ( $files as $file )\n {\n $output .= '<link rel=\"stylesheet\" type=\"text/css\" '.\n\t'href=\"'.$path.'/'.$file.'.css\" />';\n }\n\n return $output;\n }", "function load_css($load_css) {\n if (isset($load_css) && is_array($load_css)) {\n $css_files = '';\n foreach ($load_css as $files) {\n $css_files .= '<link type=\"text/css\" rel=\"stylesheet\" href=\"' . base_url() . 'css/' . $files . '\" />';\n }\n return $css_files;\n }\n}", "public function getAssets(): array {\n\t\treturn $this->assets;\n\t}", "public function getPluginAssets() {\n\t\t$event = $this->Controller->Event->trigger('requireJavascriptToLoad', $this->Controller->params);\n\t\tif (isset($event['requireJavascriptToLoad']['Assets'])) {\n\t\t\t$libs['Assets'] = $event['requireJavascriptToLoad']['Assets'];\n\t\t\t$event['requireJavascriptToLoad'] = $libs + $event['requireJavascriptToLoad'];\n\t\t}\n\n\t\tif (is_array($event) && !empty($event)) {\n\t\t\t$this->Controller->addJs(current($event));\n\t\t}\n\n\t\t$libs = array();\n\t\t$event = $this->Controller->Event->trigger('requireCssToLoad', $this->Controller->params);\n\t\tif (isset($event['requireCssToLoad']['Libs'])) {\n\t\t\t$libs['Libs'] = $event['requireCssToLoad']['Libs'];\n\t\t\t$event['requireCssToLoad'] = $libs + $event['requireCssToLoad'];\n\t\t}\n\n\t\tif (is_array($event) && !empty($event)) {\n\t\t\t$this->Controller->addCss(current($event));\n\t\t}\n\t}", "public static function get_resources() {\n if (self::$resource_list === NULL) {\n $base = self::$base_url;\n if (!self::$js_path) {\n self::$js_path = $base . 'media/js/';\n }\n elseif (substr(self::$js_path, -1) != \"/\") {\n // Ensure a trailing slash.\n self::$js_path .= \"/\";\n }\n if (!self::$css_path) {\n self::$css_path = $base . 'media/css/';\n }\n elseif (substr(self::$css_path, -1) != '/') {\n // Ensure a trailing slash.\n self::$css_path .= \"/\";\n }\n global $indicia_theme, $indicia_theme_path;\n if (!isset($indicia_theme)) {\n // Use default theme if page does not specify it's own.\n $indicia_theme = 'default';\n }\n if (!isset($indicia_theme_path)) {\n // Use default theme path if page does not specify it's own.\n $indicia_theme_path = preg_replace('/css\\/$/', 'themes/', self::$css_path);\n }\n // Ensure a trailing slash.\n if (substr($indicia_theme_path, -1) !== '/') {\n $indicia_theme_path .= '/';\n }\n self::$resource_list = [\n 'indiciaFns' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"indicia.functions.js\"],\n ],\n 'jquery' => [\n 'javascript' => [\n self::$js_path . 'jquery.js',\n self::$js_path . 'ie_vml_sizzlepatch_2.js',\n ],\n ],\n 'datepicker' => [\n 'deps' => ['jquery_cookie'],\n 'javascript' => [\n self::$js_path . 'indicia.datepicker.js',\n self::$js_path . 'date.polyfill/better-dom/dist/better-dom.min.js',\n self::$js_path . 'date.polyfill/better-dateinput-polyfill/dist/better-dateinput-polyfill.min.js',\n ]\n ],\n 'sortable' => [\n 'javascript' => ['https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.js'],\n ],\n 'openlayers' => [\n 'javascript' => [\n self::$js_path . (function_exists('iform_openlayers_get_file') ? iform_openlayers_get_file() : 'OpenLayers.js'),\n self::$js_path . 'proj4js.js',\n self::$js_path . 'proj4defs.js',\n self::$js_path . 'lang/en.js',\n ],\n ],\n 'graticule' => [\n 'deps' => ['openlayers'],\n 'javascript' => [self::$js_path . 'indiciaGraticule.js'],\n ],\n 'clearLayer' => [\n 'deps' => ['openlayers'],\n 'javascript' => [self::$js_path . 'clearLayer.js'],\n ],\n 'hoverControl' => [\n 'deps' => ['openlayers'],\n 'javascript' => [self::$js_path . 'hoverControl.js'],\n ],\n 'addrowtogrid' => [\n 'deps' => ['validation'],\n 'javascript' => [self::$js_path . \"addRowToGrid.js\"],\n ],\n 'speciesFilterPopup' => [\n 'deps' => ['addrowtogrid'],\n 'javascript' => [self::$js_path . \"speciesFilterPopup.js\"],\n ],\n 'indiciaMapPanel' => [\n 'deps' => ['jquery', 'openlayers', 'jquery_ui', 'jquery_cookie', 'hoverControl'],\n 'javascript' => [self::$js_path . \"jquery.indiciaMapPanel.js\"],\n ],\n 'indiciaMapEdit' => [\n 'deps' => ['indiciaMap'],\n 'javascript' => [self::$js_path . \"jquery.indiciaMap.edit.js\"],\n ],\n 'postcode_search' => [\n 'javascript' => [self::$js_path . \"postcode_search.js\"],\n ],\n 'locationFinder' => [\n 'deps' => ['indiciaMapEdit'],\n 'javascript' => [self::$js_path . \"jquery.indiciaMap.edit.locationFinder.js\"],\n ],\n 'createPersonalSites' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"createPersonalSites.js\"],\n ],\n 'autocomplete' => [\n 'deps' => ['jquery'],\n 'stylesheets' => [self::$css_path . \"jquery.autocomplete.css\"],\n 'javascript' => [self::$js_path . \"jquery.autocomplete.js\"],\n ],\n 'addNewTaxon' => [\n 'javascript' => [self::$js_path . \"addNewTaxon.js\"],\n ],\n 'import' => [\n 'javascript' => [self::$js_path . \"import.js\"],\n ],\n 'indicia_locks' => [\n 'deps' => ['jquery_cookie', 'json'],\n 'javascript' => [self::$js_path . \"indicia.locks.js\"],\n ],\n 'jquery_cookie' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"jquery.cookie.js\"],\n ],\n 'jquery_ui' => [\n 'deps' => ['jquery'],\n 'stylesheets' => [\n self::$css_path . 'jquery-ui.min.css',\n \"$indicia_theme_path$indicia_theme/jquery-ui.theme.min.css\",\n ],\n 'javascript' => [\n self::$js_path . 'jquery-ui.min.js',\n self::$js_path . 'jquery-ui.effects.js',\n ]\n ],\n 'jquery_ui_fr' => [\n 'deps' => ['jquery_ui'],\n 'javascript' => [self::$js_path . \"jquery.ui.datepicker-fr.js\"]\n ],\n 'jquery_form' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"jquery.form.min.js\"],\n ],\n 'reportPicker' => [\n 'deps' => ['treeview', 'fancybox'],\n 'javascript' => [self::$js_path . \"reportPicker.js\"],\n ],\n 'treeview' => ['deps' => ['jquery'], 'stylesheets' => [self::$css_path.\"jquery.treeview.css\"], 'javascript' => [self::$js_path.\"jquery.treeview.js\"]],\n 'treeview_async' => ['deps' => ['treeview'], 'javascript' => [self::$js_path.\"jquery.treeview.async.js\", self::$js_path.\"jquery.treeview.edit.js\"]],\n 'googlemaps' => [\n 'javascript' => [\"https://maps.google.com/maps/api/js?v=3\" . (empty(self::$google_maps_api_key) ? '' : '&key=' . self::$google_maps_api_key)],\n ],\n 'fancybox' => [\n 'deps' => ['jquery'],\n 'stylesheets' => [self::$js_path . 'fancybox/dist/jquery.fancybox.min.css'],\n 'javascript' => [self::$js_path . 'fancybox/dist/jquery.fancybox.min.js'],\n ],\n 'treeBrowser' => [\n 'deps' => ['jquery', 'jquery_ui'],\n 'javascript' => [self::$js_path . 'jquery.treebrowser.js']\n ],\n 'defaultStylesheet' => [\n 'deps' => [''],\n 'stylesheets' => [\n self::$css_path . 'default_site.css',\n self::$css_path . 'theme-generic.css'\n ],\n 'javascript' => []\n ],\n 'validation' => [\n 'deps' => ['jquery'],\n 'javascript' => [\n self::$js_path . 'jquery.metadata.js',\n self::$js_path . 'jquery.validate.js',\n self::$js_path . 'additional-methods.js',\n ],\n ],\n 'plupload' => [\n 'deps' => ['jquery_ui', 'fancybox'],\n 'javascript' => [\n self::$js_path . 'jquery.uploader.js',\n self::$js_path . 'plupload/js/plupload.full.min.js',\n ]\n ],\n 'uploader' => [\n 'deps' => ['jquery', 'dmUploader'],\n 'javascript' => [\n self::$js_path . 'uploader.js',\n ],\n ],\n 'dmUploader' => [\n 'stylesheets' => [\n self::$js_path . 'uploader/dist/css/jquery.dm-uploader.min.css',\n ],\n 'javascript' => [\n self::$js_path . 'uploader/dist/js/jquery.dm-uploader.min.js',\n ]\n ],\n 'jqplot' => [\n 'stylesheets' => [self::$js_path . 'jqplot/jquery.jqplot.min.css'],\n 'javascript' => [\n self::$js_path . 'jqplot/jquery.jqplot.min.js',\n '[IE]' . self::$js_path . 'jqplot/excanvas.js'\n ],\n ],\n 'jqplot_bar' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.barRenderer.js',\n ],\n ],\n 'jqplot_pie' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.pieRenderer.js',\n ],\n ],\n 'jqplot_category_axis_renderer' => [\n 'javascript' => [self::$js_path . 'jqplot/plugins/jqplot.categoryAxisRenderer.js'],\n ],\n 'jqplot_canvas_axis_label_renderer' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.canvasTextRenderer.js',\n self::$js_path . 'jqplot/plugins/jqplot.canvasAxisLabelRenderer.js',\n ],\n ],\n 'jqplot_trendline' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.trendline.js',\n ],\n ],\n 'reportgrid' => [\n 'deps' => ['jquery_ui', 'jquery_cookie'],\n 'javascript' => [\n self::$js_path . 'jquery.reportgrid.js',\n ]\n ],\n 'reportfilters' => [\n 'deps' => ['reportgrid'],\n 'stylesheets' => [self::$css_path . 'report-filters.css'],\n 'javascript' => [self::$js_path . 'reportFilters.js'],\n ],\n 'tabs' => [\n 'deps' => ['jquery_ui'],\n 'javascript' => [self::$js_path . 'tabs.js'],\n ],\n 'wizardprogress' => [\n 'deps' => ['tabs'],\n 'stylesheets' => [self::$css_path . 'wizard_progress.css']\n ],\n 'spatialReports' => [\n 'javascript' => [self::$js_path . 'spatialReports.js'],\n ],\n 'jsonwidget' => [\n 'deps' => ['jquery'],\n 'javascript' => [\n self::$js_path . 'jsonwidget/jsonedit.js',\n self::$js_path . 'jquery.jsonwidget.js',\n ],\n 'stylesheets' => [self::$css_path . 'jsonwidget.css'],\n ],\n 'timeentry' => [\n 'javascript' => [self::$js_path . 'jquery.timeentry.min.js'],\n ],\n 'verification' => [\n 'javascript' => [self::$js_path . 'verification.js'],\n ],\n 'control_speciesmap_controls' => [\n 'deps' => [\n 'jquery',\n 'openlayers',\n 'addrowtogrid',\n 'validation',\n ],\n 'javascript' => [\n self::$js_path . 'controls/speciesmap_controls.js',\n ],\n ],\n 'complexAttrGrid' => [\n 'javascript' => [self::$js_path . 'complexAttrGrid.js'],\n ],\n 'footable' => [\n 'stylesheets' => [self::$js_path . 'footable/css/footable.core.min.css'],\n // Note, the minified version not used as it does not contain bugfixes.\n // 'javascript' => [self::$js_path.'footable/dist/footable.min.js']\n 'javascript' => [self::$js_path . 'footable/js/footable.js'],\n 'deps' => ['jquery'],\n ],\n 'footableSort' => [\n 'javascript' => [self::$js_path . 'footable/dist/footable.sort.min.js'],\n 'deps' => ['footable'],\n ],\n 'footableFilter' => [\n 'javascript' => [self::$js_path . 'footable/dist/footable.filter.min.js'],\n 'deps' => ['footable'],\n ],\n 'indiciaFootableReport' => [\n 'javascript' => [self::$js_path . 'jquery.indiciaFootableReport.js'],\n 'deps' => ['footable'],\n ],\n 'indiciaFootableChecklist' => [\n 'stylesheets' => [self::$css_path . 'jquery.indiciaFootableChecklist.css'],\n 'javascript' => [self::$js_path . 'jquery.indiciaFootableChecklist.js'],\n 'deps' => ['footable']\n ],\n 'html2pdf' => [\n 'javascript' => [\n self::$js_path . 'html2pdf/dist/html2pdf.bundle.min.js',\n ],\n ],\n 'review_input' => [\n 'javascript' => [self::$js_path . 'jquery.reviewInput.js'],\n ],\n 'sub_list' => [\n 'javascript' => [self::$js_path . 'sub_list.js'],\n ],\n 'georeference_default_geoportal_lu' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/geoportal_lu.js'],\n ],\n 'georeference_default_nominatim' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/nominatim.js'],\n ],\n 'georeference_default_google_places' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/google_places.js'],\n ],\n 'georeference_default_indicia_locations' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/indicia_locations.js'],\n ],\n 'sref_handlers_2169' => [\n 'javascript' => [self::$js_path . 'drivers/sref/2169.js'],\n ],\n 'sref_handlers_4326' => [\n 'javascript' => [self::$js_path . 'drivers/sref/4326.js'],\n ],\n 'sref_handlers_osgb' => [\n 'javascript' => [self::$js_path . 'drivers/sref/osgb.js'],\n ],\n 'sref_handlers_osie' => [\n 'javascript' => [self::$js_path . 'drivers/sref/osie.js'],\n ],\n 'font_awesome' => [\n 'stylesheets' => ['https://use.fontawesome.com/releases/v5.15.4/css/all.css']\n ],\n 'leaflet' => [\n 'stylesheets' => ['https://unpkg.com/leaflet@1.4.0/dist/leaflet.css'],\n 'javascript' => [\n 'https://unpkg.com/leaflet@1.4.0/dist/leaflet.js',\n 'https://cdnjs.cloudflare.com/ajax/libs/wicket/1.3.3/wicket.min.js',\n 'https://cdnjs.cloudflare.com/ajax/libs/wicket/1.3.3/wicket-leaflet.min.js',\n self::$js_path . 'leaflet.heat/dist/leaflet-heat.js',\n ],\n ],\n 'leaflet_google' => [\n 'deps' => [\n 'googlemaps'\n ],\n 'javascript' => [\n 'https://unpkg.com/leaflet.gridlayer.googlemutant@latest/dist/Leaflet.GoogleMutant.js',\n ],\n ],\n 'datacomponents' => [\n 'deps' => [\n 'font_awesome',\n 'indiciaFootableReport',\n 'jquery_cookie',\n ],\n 'javascript' => [\n self::$js_path . 'indicia.datacomponents/idc.core.js',\n self::$js_path . 'indicia.datacomponents/idc.controlLayout.js',\n self::$js_path . 'indicia.datacomponents/idc.esDataSource.js',\n self::$js_path . 'indicia.datacomponents/idc.pager.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.customScript.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.runCustomVerificationRulesets.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.cardGallery.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.dataGrid.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.esDownload.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.leafletMap.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.recordsMover.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.recordDetailsPane.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.templatedOutput.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.verificationButtons.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.filterSummary.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.permissionFilters.js',\n 'https://unpkg.com/@ungap/url-search-params',\n ],\n ],\n 'file_classifier' => [\n 'deps' => [\n 'plupload',\n 'jquery_ui',\n ],\n 'javascript' => [\n self::$js_path . 'jquery.fileClassifier.js',\n ],\n ],\n 'brc_atlas' => [\n 'deps' => [\n 'd3',\n 'bigr',\n 'leaflet',\n ],\n 'stylesheets' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-atlas@0.25.1/dist/brcatlas.umd.css',\n ],\n 'javascript' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-atlas@0.25.1/dist/brcatlas.umd.min.js',\n ],\n ],\n 'brc_charts' => [\n 'deps' => [\n 'd3',\n ],\n 'stylesheets' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-charts@0.15.0/dist/brccharts.umd.css',\n ],\n 'javascript' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-charts@0.15.0/dist/brccharts.umd.min.js',\n ],\n ],\n 'd3' => [\n 'javascript' => [\n 'https://d3js.org/d3.v5.min.js',\n ],\n ],\n 'bigr' => [\n 'javascript' => [\n 'https://unpkg.com/brc-atlas-bigr@2.4.0/dist/bigr.min.umd.js',\n ],\n ],\n ];\n }\n return self::$resource_list;\n }", "function show_all_styles() {\n\tglobal $wp_styles;\n\t\n\t// arrange the queue based on its dependency\n\t$wp_styles->all_deps($wp_styles->queue);\t\n\t\n\t// The result\n\t$handles = $wp_styles->to_do;\n\t\n\t$css_code = '';\n\n\t// New file location: E:xampp\\htdocs\\wordpress\\wp-content\\theme\\wdc\\merged-style.css\n\t$merged_file_location = get_stylesheet_directory() .'/_/css/merged-style.css';\n\t$merged_file = file_get_contents($merged_file_location);\n\t//echo '<pre>';print_r($wp_styles->queue);echo '</pre>';\n\t// loop all styles\n\tforeach ($handles as $handle)\n\t{\n\t\t/*\n\t\t\tClean up the url, for example: wp-content/themes/wdc/style.min.css?v=4.6\n\t\t\tbecome wp-content/themes/wdc/style.min.css\n\t\t*/\n\t\t$src = strtok($wp_styles->registered[$handle]->src, '?');\n\t\t\n\t\t// #1. Combine CSS File.\n\t\t// If the src is url\t\t\n\t\tif (strpos($src, 'http') !== false || strpos($src, 'https') !== false) {\n\t\t\t// Get thr site url, e.g. http://webdevzoom.com/wordpress\n\t\t\t$site_url = site_url();\n\t\t\n\t\t\t/*\n\t\t\t\tIf the css file come from local server, change the full url into relative path\n\t\t\t\tFor example: http://webdevzoom.com/wordpress/wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t\tBecome: /wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t\t\n\t\t\t\tOtherwise, leave it as is, e.g: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\n\t\t\t*/\n\t\t\tif (strpos($src, $site_url) !== false)\n\t\t\t\t$css_file_path = str_replace($site_url, '', $src);\n\t\t\telse\n\t\t\t\t$css_file_path = $src;\n\t\t\t\n\t\t\t/*\n\t\t\t\tIn order to be able to use file_get_contents function, we need to remove preceding slash,\n\t\t\t\tFor example: /wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t\tBecome: wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t*/\n\t\t\t$css_file_path = ltrim($css_file_path, '/');\n\t\t} else {\t\t\t\n\t\t\t$css_file_path = ltrim($src, '/');\n\t\t}\n\t\t\n\t\t// Check wether file exists then merge\n\t\tif (file_exists($css_file_path)) {\n\t\t\t$css_code .= file_get_contents($css_file_path);\n\t\t}\n\t}\n\n\t// write the merged styles into current theme directory\n\tif ($merged_file != $css_code) {\n\tfile_put_contents ($merged_file_location , $css_code);\n\t}\n\t\n\t// #2. Load the URL of merged file\n\twp_enqueue_style('merged-style', get_stylesheet_directory_uri() . '/_/css/merged-style.css');\n\t\n\t// #3. Deregister all handles\n\tforeach ($handles as $handle)\n\t{\n\t\twp_deregister_style($handle);\n\t}\n\n\t\n}", "function LoadStyling(array $styles) : string\n{\n $html = '';\n foreach($styles as $style) {\n $loadStyle = 'view/static/css/'.$style.'.css';\n if (is_file($loadStyle)) {\n $html .= \"<link rel='stylesheet' media='screen' href='$loadStyle' />\";\n // echo $html;\n } else {\n die(\"Stylesheet not found: $loadStyle\");\n // show 404 here\n }\n }\n\n return $html;\n}", "function media_theplatform_mpx_extract_all_css_links($text) {\n $pattern = '/\\<link rel\\=\\\"stylesheet\\\" type\\=\\\"text\\/css\\\" media\\=\\\"screen\\\" href\\=\\\"(.*?)\\\" \\/\\>/';\n preg_match_all($pattern, $text, $results);\n return $results[1];\n}", "public static function getCSS($url) {\n return str_replace(\"{}\", $url, self::$CSS);\n }", "public static function css($cache = false, $path = '/css/', $variants = ['.min', '-min'], $ext = '.css')\n {\n // Iterate over asset links\n foreach (array_filter(explode(\"\\n\", self::asset($path, $variants, $ext))) as $src) {\n\n // Cache busting string\n $cacheBuster = ($cache) ? null :'?v='.filemtime(__cwd.$src);\n\n // Create HTML tags for JavaScript\n $html[] = helpers\\html::tag('link', '', ['rel' => 'stylesheet', 'src' => $src]);\n }\n\n // Return assets as string\n return implode(\"\\n\", $html ?? []);\n }", "public function getLocalStylesheets($withNULL = false)\n\t{\n\t\t\n\t\t$_dir = sfConfig::get('sf_web_dir').'/css';\n\t\t$files = array();\n\t\t\n\t\tif( $withNULL )\n\t\t{\n\t\t\t$files[NULL] = NULL;\n\t\t}\n\t\t\n\t\t$handle = opendir($_dir);\n\t\t\n\t\twhile (false !== ($file = readdir($handle))) {\n\t if($file == '.' or $file == '..' )\n\t {\n\t \tcontinue;\n\t }\n\t $files[$file] = $file;\n\t }\n \t\n\t closedir($handle);\n\t return $files; \n\t}", "public function getbootstrapCSS() {\n return $this->CDN['css'];\n }", "public function cssFileBundler()\n {\n return $this->fileFilter(\n 'scripts.css',\n $this->createPath('public/css'),\n new GlobAsset($this->createPath('assets/css/*')),\n $this->filters['css']\n );\n }", "private function getStyles() {\n $file = drupal_get_path('module', 'site_audit') . '/css/bootstrap-overrides.css';\n $styles = \"/* $file */\\n\" . file_get_contents($file);\n return $styles;\n }" ]
[ "0.7508917", "0.7405245", "0.73658615", "0.7220426", "0.7206536", "0.71577626", "0.71577626", "0.69336736", "0.69294477", "0.6927946", "0.6870554", "0.685387", "0.67554414", "0.6734239", "0.66943014", "0.6693808", "0.6682037", "0.6659044", "0.6572191", "0.65539986", "0.6542531", "0.6537232", "0.6523258", "0.65130115", "0.64620703", "0.6456857", "0.64470595", "0.64470595", "0.64441806", "0.6419398", "0.6419118", "0.63936627", "0.63750255", "0.63640743", "0.6348483", "0.6348452", "0.63408446", "0.63339067", "0.6321776", "0.6316666", "0.63161033", "0.6304548", "0.63015616", "0.628097", "0.62797", "0.62546575", "0.62507856", "0.6246384", "0.6245792", "0.6245659", "0.62447447", "0.62428486", "0.6232311", "0.6214286", "0.62067044", "0.61981463", "0.6183938", "0.61638105", "0.6153721", "0.61345434", "0.61299974", "0.6115605", "0.6113812", "0.6106147", "0.609726", "0.6091357", "0.6079948", "0.60780424", "0.6066118", "0.60545766", "0.60543734", "0.60424536", "0.6028072", "0.60223967", "0.60094196", "0.60059136", "0.60042274", "0.59879047", "0.59866774", "0.5983865", "0.5972755", "0.5961104", "0.595631", "0.5948883", "0.5923908", "0.59190327", "0.5917523", "0.5912746", "0.5908836", "0.5895114", "0.58881295", "0.58837813", "0.5879228", "0.5875923", "0.5869593", "0.58649015", "0.5863928", "0.5846956", "0.5843528", "0.58425605", "0.58339536" ]
0.0
-1
Get one or all JavaScript assets.
protected function js($name = null) { if($name === null) { $js = array(); foreach($this->js as $key => $value) { $js[] = $this->js($key); } return implode("\n", $js); } if(!isset($this->js[$name])) { return null; } return HTML::tag('script', $this->js[$name], ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJavascripts()\n {\n return array('/sfAssetsLibraryPlugin/js/main');\n }", "function _asset_js_all(string $pack = '') {\n\t\treturn Asset::setThemePack($pack)->getJsAll();\n\t}", "public function getJavaScripts();", "function getAssets();", "public function getAllJS()\n {\n return $this->js;\n }", "public function getPluginAssets() {\n\t\t$event = $this->Controller->Event->trigger('requireJavascriptToLoad', $this->Controller->params);\n\t\tif (isset($event['requireJavascriptToLoad']['Assets'])) {\n\t\t\t$libs['Assets'] = $event['requireJavascriptToLoad']['Assets'];\n\t\t\t$event['requireJavascriptToLoad'] = $libs + $event['requireJavascriptToLoad'];\n\t\t}\n\n\t\tif (is_array($event) && !empty($event)) {\n\t\t\t$this->Controller->addJs(current($event));\n\t\t}\n\n\t\t$libs = array();\n\t\t$event = $this->Controller->Event->trigger('requireCssToLoad', $this->Controller->params);\n\t\tif (isset($event['requireCssToLoad']['Libs'])) {\n\t\t\t$libs['Libs'] = $event['requireCssToLoad']['Libs'];\n\t\t\t$event['requireCssToLoad'] = $libs + $event['requireCssToLoad'];\n\t\t}\n\n\t\tif (is_array($event) && !empty($event)) {\n\t\t\t$this->Controller->addCss(current($event));\n\t\t}\n\t}", "public function getAssets();", "public function getAssets();", "public function getJs()\n {\n $result = array();\n foreach ($this->_packages as $package) {\n $config = $this->getConfig($package);\n if (!empty($config['js'])) {\n $result = array_merge($result, array_values($config['js']));\n }\n }\n return array_merge($result, $this->_js);\n }", "function Assets() {\r\n\t\t\treturn $this->QueryPublic( 'Assets' );\r\n\t\t}", "public static function getExternalJavascripts()\n\t{\n\t\t$javascripts = new \\DomDocument('1.0', 'utf-8');\n\t\t$javascripts->appendChild($root = $javascripts->createElement('javascripts'));\n\t\tforeach (self::$externalJavascripts as $asset)\n\t\t{\n\t\t\t$root->appendChild($external = $javascripts->createElement('javascript'));\n\t\t\t$external->setAttribute('href', $asset);\n\t\t}\n\t\treturn $javascripts;\n\t}", "public function getJavaScripts() {\n return $this->javascripts;\n }", "public function assets()\r\n {\r\n return $this->httpRequest(\"v2/assets\");\r\n }", "public function getJavascripts() {\n return $this->scripts;\n }", "public function js()\n {\n $assets = array();\n foreach (Config::get('ImageUpload::assets.js') as $file) {\n if (preg_match('/\\*$/', $file)) {\n $assets[] = new GlobAsset(public_path($this->assetPath.'js/'.$file));\n } else {\n $assets[] = new FileAsset(public_path($this->assetPath.'js/'.$file));\n }\n }\n\n $js = new AssetCollection($assets, array(\n new JsMinFilter(),\n ));\n\n $response = Response::make($js->dump(), 200);\n $response->header('Content-Type', 'application/javascript');\n return $response;\n }", "public static function assets()\n {\n return static::instance();\n }", "public function assets_js() {\n \n $data = '<script src=\"//cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js\"></script>';\n $data .= \"\\n\";\n $data .= '<script src=\"//www.chartjs.org/dist/2.7.2/Chart.js\"></script>';\n $data .= \"\\n\";\n $data .= '<script src=\"//www.chartjs.org/samples/latest/utils.js\"></script>'; \n $data .= \"\\n\"; \n $data .= '<script src=\"' . base_url() . 'assets/apps/dashboard/js/dashboard.js?ver=' . MD_VER . '\"></script>';\n $data .= \"\\n\";\n \n foreach ( $this->js_urls_widgets as $url ) {\n\n $data .= '<script src=\"' . $url . '?ver=' . MD_VER . '\"></script>';\n $data .= \"\\n\"; \n\n } \n \n return $data;\n \n }", "function sw_get_javascripts()\n{\n $params = sfConfig::get('app_swToolbox_swCombine', array('version' => false));\n $version = $params['version'];\n \n $response = sfContext::getInstance()->getResponse();\n $included_files = $response->getCombinedAssets();\n \n sfConfig::set('symfony.asset.javascripts_included', true);\n\n $html = '';\n foreach ($response->getJavascripts() as $file => $options)\n {\n // avoid loading combined files\n if(in_array($file, $included_files))\n {\n\n continue;\n }\n \n // append version if version is set\n // or if the url does not contains a `?`\n $file = $version && strpos($file, '?') === false ? $file.'?v='.$version : $file;\n \n $html .= javascript_include_tag($file, $options);\n }\n\n return $html;\n}", "function javascripts() {\n return $this->context->javascript_tags(func_get_args(), $this->base_url().\"/javascripts\");\n }", "protected function loadJavaScripts() {}", "function smash_get_scripts() {\n\n\t$asset_uri = get_template_directory_uri();\n\t$js_uri = $asset_uri . '/assets/js/';\n\t$suffix = smash_get_script_suffix();\n\n\t$version = smash_get_script_version();\n\n\t$js_assets = array(\n\t\t'html5shiv' => array(\n\t\t\t'file' => $js_uri . 'html5shiv' . $suffix . '.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => FALSE,\n\t\t\t'data' => array(\n\t\t\t\t'conditional' => 'IE 8',\n\t\t\t)\n\t\t),\n\t\t'smash-onload' => array(\n\t\t\t'file' => $js_uri . 'onload' . $suffix . '.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'data' => array(\n\t\t\t\t'filters' => array(\n\t\t\t\t\t'loadjs' => array( 'async' => TRUE, 'onLoad' => TRUE )\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t\t'smash-fastclick' => array(\n\t\t\t'file' => $js_uri . 'fastclick' . $suffix . '.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'data' => array(\n\t\t\t\t'filters' => array(\n\t\t\t\t\t'loadjs' => array( 'async' => TRUE, 'onLoad' => TRUE )\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t\t'smash-lazy-images' => array(\n\t\t\t'file' => $js_uri . 'lazy-images' . $suffix . '.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'data' => array(\n\t\t\t\t'filters' => array(\n\t\t\t\t\t'loadjs' => array( 'async' => TRUE, 'onLoad' => TRUE )\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t\t'smash-blocked' => array(\n\t\t\t'file' => $js_uri . 'blocked' . $suffix . '.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'data' => array(\n\t\t\t\t'filters' => array(\n\t\t\t\t\t'loadjs' => array( 'async' => TRUE, 'onLoad' => TRUE )\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t);\n\n\tif ( is_singular() ) {\n\n\t\t// enqueue comments-reply script\n\t\t//if ( comments_open() ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t\t//}\n\n\t\t// codepen embed\n\t\t$js_assets[ 'codepen' ] = array(\n\t\t\t'file' => $js_uri . 'codepen.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'data' => array(\n\t\t\t\t'filters' => array(\n\t\t\t\t\t'loadjs' => array( 'async' => TRUE, 'onLoad' => TRUE )\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t// prism\n\t\t$js_assets[ 'prism' ] = array(\n\t\t\t'file' => $js_uri . 'prism.js',\n\t\t\t'deps' => array(),\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'data' => array(\n\t\t\t\t'filters' => array(\n\t\t\t\t\t'loadjs' => array( 'async' => TRUE, 'onLoad' => TRUE )\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t// tablesaw - only when enabled via PostMeta in Backend.\n\t\t$meta = (bool) get_post_meta( get_the_ID(), 'enable_tablesaw', TRUE );\n\t\tif ( $meta ) {\n\t\t\t$js_assets[ 'tablesaw' ] = array(\n\t\t\t\t'file' => $js_uri . 'tablesaw' . $suffix . '.js',\n\t\t\t\t'deps' => array( 'jquery-core' ),\n\t\t\t\t'ver' => $version,\n\t\t\t\t'in_footer' => TRUE,\n\t\t\t);\n\t\t}\n\t}\n\n\t// check if the current post/page has ads deactivated\n\t$disable_ads = FALSE;\n\tif ( is_single() ) {\n\t\t$disable_ads = (bool) get_post_meta( get_the_ID(), 'disable_wholeads', TRUE );\n\t}\n\n\tif ( ! $disable_ads ) {\n\t\t$js_assets[ 'smash-ads' ] = array(\n\t\t\t'file' => $js_uri . 'ads' . $suffix . '.js',\n\t\t\t'deps' => '',\n\t\t\t'ver' => $version,\n\t\t\t'in_footer' => TRUE,\n\t\t\t'localize' => array(\n\t\t\t\t'AdsI18N' => array(\n\t\t\t\t\t'Advertisement' => __( 'Advertisement', 'smashing' )\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}\n\n\treturn $js_assets;\n}", "public function get_assets_all()\n {\n return $this->assets;\n }", "function _asset_js(array $files = [], string $pack = '') {\n\t\treturn Asset::setThemePack($pack)->getJs($files);\n\t}", "protected function getAssets() { return array(); }", "public function getJavascripts()\n {\n return array('/js/core/editarea/edit_area_compressor.php', '/js/core/editarea.jquery.js');\n }", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js', \n '/ullCorePlugin/js/jq/jquery.replace_time_duration_select.js',\n ); \n }", "public function getJs();", "public static function getJs() {\n return self::get('_js', array());\n }", "function get_js_files_array();", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js', \n );\n }", "public function get_script_js(){\r\n\t\treturn $this->scripts;\r\n\t}", "public function getJavascripts($position = self::ALL)\n {\n if (self::ALL === $position)\n {\n $javascripts = array();\n foreach ($this->getPositions() as $position)\n {\n foreach ($this->javascripts[$position] as $file => $options)\n {\n $javascripts[$file] = $options;\n }\n }\n\n return $javascripts;\n }\n else if (self::RAW === $position)\n {\n return $this->javascripts;\n }\n\n $this->validatePosition($position);\n\n return $this->javascripts[$position];\n }", "protected function get_assets() {\n\t\treturn [\n\t\t\tnew StyleAsset(\n\t\t\t\tself::CSS_HANDLE,\n\t\t\t\tself::CSS_URI\n\t\t\t),\n\t\t];\n\t}", "public function getJsFiles() {\n //je krijgt op het einde .. en . terug, deze mag je niet opnemen in je links\n $jsFiles = scandir(\"js\", 1);\n \n return $jsFiles;\n }", "public static function getAssetsToRegister()\n {\n $assetsList = array(\n 'js' => array(),\n 'css' => array(),\n );\n if (self::isHomologationMode()) {\n $assetsList['js'][] = PaylineSDK::HOMO_WDGT_JS;\n $assetsList['css'][] = PaylineSDK::HOMO_WDGT_CSS;\n } else {\n $assetsList['js'][] = PaylineSDK::PROD_WDGT_JS;\n $assetsList['css'][] = PaylineSDK::PROD_WDGT_CSS;\n }\n\n return $assetsList;\n }", "public function assets() {\n\t\tif ($this->assetsLoaded) {\n\t\t\treturn '';\n\t\t}\n\t\t$this->assetsLoaded = true;\n\t\treturn ''.\n\t\t\t$this->Html->script($this->assetsPath . 'bootstrap-typeahead.js', $this->assetsOptions);\n\t}", "public function getAssets()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('assets');\n }", "function tw_asset_list() {\n\n\t$assets = tw_app_get('tw_registered_assets');\n\n\tif (!is_array($assets)) {\n\t\t$assets = [];\n\t}\n\n\treturn $assets;\n\n}", "public function get_js_files()\n\t{\n\t\treturn $this->_js_files;\n\t}", "public function loadAssets() {\r\n\t\tparent::loadAssets();\r\n\t\t$this->app->document->addScript('elements:download/assets/js/download.js');\r\n\t}", "public function getAssets()\n {\n\n }", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js',\n '/ullCorePlugin/js/jq/jquery.add_select_filter.js', \n ); \n }", "public function getJavascripts()\n {\n return array('/cpCmsPlugin/js/widget.js');\n }", "public function getAssets()\n {\n return $this->assets;\n }", "public static function get_resources() {\n if (self::$resource_list === NULL) {\n $base = self::$base_url;\n if (!self::$js_path) {\n self::$js_path = $base . 'media/js/';\n }\n elseif (substr(self::$js_path, -1) != \"/\") {\n // Ensure a trailing slash.\n self::$js_path .= \"/\";\n }\n if (!self::$css_path) {\n self::$css_path = $base . 'media/css/';\n }\n elseif (substr(self::$css_path, -1) != '/') {\n // Ensure a trailing slash.\n self::$css_path .= \"/\";\n }\n global $indicia_theme, $indicia_theme_path;\n if (!isset($indicia_theme)) {\n // Use default theme if page does not specify it's own.\n $indicia_theme = 'default';\n }\n if (!isset($indicia_theme_path)) {\n // Use default theme path if page does not specify it's own.\n $indicia_theme_path = preg_replace('/css\\/$/', 'themes/', self::$css_path);\n }\n // Ensure a trailing slash.\n if (substr($indicia_theme_path, -1) !== '/') {\n $indicia_theme_path .= '/';\n }\n self::$resource_list = [\n 'indiciaFns' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"indicia.functions.js\"],\n ],\n 'jquery' => [\n 'javascript' => [\n self::$js_path . 'jquery.js',\n self::$js_path . 'ie_vml_sizzlepatch_2.js',\n ],\n ],\n 'datepicker' => [\n 'deps' => ['jquery_cookie'],\n 'javascript' => [\n self::$js_path . 'indicia.datepicker.js',\n self::$js_path . 'date.polyfill/better-dom/dist/better-dom.min.js',\n self::$js_path . 'date.polyfill/better-dateinput-polyfill/dist/better-dateinput-polyfill.min.js',\n ]\n ],\n 'sortable' => [\n 'javascript' => ['https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.js'],\n ],\n 'openlayers' => [\n 'javascript' => [\n self::$js_path . (function_exists('iform_openlayers_get_file') ? iform_openlayers_get_file() : 'OpenLayers.js'),\n self::$js_path . 'proj4js.js',\n self::$js_path . 'proj4defs.js',\n self::$js_path . 'lang/en.js',\n ],\n ],\n 'graticule' => [\n 'deps' => ['openlayers'],\n 'javascript' => [self::$js_path . 'indiciaGraticule.js'],\n ],\n 'clearLayer' => [\n 'deps' => ['openlayers'],\n 'javascript' => [self::$js_path . 'clearLayer.js'],\n ],\n 'hoverControl' => [\n 'deps' => ['openlayers'],\n 'javascript' => [self::$js_path . 'hoverControl.js'],\n ],\n 'addrowtogrid' => [\n 'deps' => ['validation'],\n 'javascript' => [self::$js_path . \"addRowToGrid.js\"],\n ],\n 'speciesFilterPopup' => [\n 'deps' => ['addrowtogrid'],\n 'javascript' => [self::$js_path . \"speciesFilterPopup.js\"],\n ],\n 'indiciaMapPanel' => [\n 'deps' => ['jquery', 'openlayers', 'jquery_ui', 'jquery_cookie', 'hoverControl'],\n 'javascript' => [self::$js_path . \"jquery.indiciaMapPanel.js\"],\n ],\n 'indiciaMapEdit' => [\n 'deps' => ['indiciaMap'],\n 'javascript' => [self::$js_path . \"jquery.indiciaMap.edit.js\"],\n ],\n 'postcode_search' => [\n 'javascript' => [self::$js_path . \"postcode_search.js\"],\n ],\n 'locationFinder' => [\n 'deps' => ['indiciaMapEdit'],\n 'javascript' => [self::$js_path . \"jquery.indiciaMap.edit.locationFinder.js\"],\n ],\n 'createPersonalSites' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"createPersonalSites.js\"],\n ],\n 'autocomplete' => [\n 'deps' => ['jquery'],\n 'stylesheets' => [self::$css_path . \"jquery.autocomplete.css\"],\n 'javascript' => [self::$js_path . \"jquery.autocomplete.js\"],\n ],\n 'addNewTaxon' => [\n 'javascript' => [self::$js_path . \"addNewTaxon.js\"],\n ],\n 'import' => [\n 'javascript' => [self::$js_path . \"import.js\"],\n ],\n 'indicia_locks' => [\n 'deps' => ['jquery_cookie', 'json'],\n 'javascript' => [self::$js_path . \"indicia.locks.js\"],\n ],\n 'jquery_cookie' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"jquery.cookie.js\"],\n ],\n 'jquery_ui' => [\n 'deps' => ['jquery'],\n 'stylesheets' => [\n self::$css_path . 'jquery-ui.min.css',\n \"$indicia_theme_path$indicia_theme/jquery-ui.theme.min.css\",\n ],\n 'javascript' => [\n self::$js_path . 'jquery-ui.min.js',\n self::$js_path . 'jquery-ui.effects.js',\n ]\n ],\n 'jquery_ui_fr' => [\n 'deps' => ['jquery_ui'],\n 'javascript' => [self::$js_path . \"jquery.ui.datepicker-fr.js\"]\n ],\n 'jquery_form' => [\n 'deps' => ['jquery'],\n 'javascript' => [self::$js_path . \"jquery.form.min.js\"],\n ],\n 'reportPicker' => [\n 'deps' => ['treeview', 'fancybox'],\n 'javascript' => [self::$js_path . \"reportPicker.js\"],\n ],\n 'treeview' => ['deps' => ['jquery'], 'stylesheets' => [self::$css_path.\"jquery.treeview.css\"], 'javascript' => [self::$js_path.\"jquery.treeview.js\"]],\n 'treeview_async' => ['deps' => ['treeview'], 'javascript' => [self::$js_path.\"jquery.treeview.async.js\", self::$js_path.\"jquery.treeview.edit.js\"]],\n 'googlemaps' => [\n 'javascript' => [\"https://maps.google.com/maps/api/js?v=3\" . (empty(self::$google_maps_api_key) ? '' : '&key=' . self::$google_maps_api_key)],\n ],\n 'fancybox' => [\n 'deps' => ['jquery'],\n 'stylesheets' => [self::$js_path . 'fancybox/dist/jquery.fancybox.min.css'],\n 'javascript' => [self::$js_path . 'fancybox/dist/jquery.fancybox.min.js'],\n ],\n 'treeBrowser' => [\n 'deps' => ['jquery', 'jquery_ui'],\n 'javascript' => [self::$js_path . 'jquery.treebrowser.js']\n ],\n 'defaultStylesheet' => [\n 'deps' => [''],\n 'stylesheets' => [\n self::$css_path . 'default_site.css',\n self::$css_path . 'theme-generic.css'\n ],\n 'javascript' => []\n ],\n 'validation' => [\n 'deps' => ['jquery'],\n 'javascript' => [\n self::$js_path . 'jquery.metadata.js',\n self::$js_path . 'jquery.validate.js',\n self::$js_path . 'additional-methods.js',\n ],\n ],\n 'plupload' => [\n 'deps' => ['jquery_ui', 'fancybox'],\n 'javascript' => [\n self::$js_path . 'jquery.uploader.js',\n self::$js_path . 'plupload/js/plupload.full.min.js',\n ]\n ],\n 'uploader' => [\n 'deps' => ['jquery', 'dmUploader'],\n 'javascript' => [\n self::$js_path . 'uploader.js',\n ],\n ],\n 'dmUploader' => [\n 'stylesheets' => [\n self::$js_path . 'uploader/dist/css/jquery.dm-uploader.min.css',\n ],\n 'javascript' => [\n self::$js_path . 'uploader/dist/js/jquery.dm-uploader.min.js',\n ]\n ],\n 'jqplot' => [\n 'stylesheets' => [self::$js_path . 'jqplot/jquery.jqplot.min.css'],\n 'javascript' => [\n self::$js_path . 'jqplot/jquery.jqplot.min.js',\n '[IE]' . self::$js_path . 'jqplot/excanvas.js'\n ],\n ],\n 'jqplot_bar' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.barRenderer.js',\n ],\n ],\n 'jqplot_pie' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.pieRenderer.js',\n ],\n ],\n 'jqplot_category_axis_renderer' => [\n 'javascript' => [self::$js_path . 'jqplot/plugins/jqplot.categoryAxisRenderer.js'],\n ],\n 'jqplot_canvas_axis_label_renderer' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.canvasTextRenderer.js',\n self::$js_path . 'jqplot/plugins/jqplot.canvasAxisLabelRenderer.js',\n ],\n ],\n 'jqplot_trendline' => [\n 'javascript' => [\n self::$js_path . 'jqplot/plugins/jqplot.trendline.js',\n ],\n ],\n 'reportgrid' => [\n 'deps' => ['jquery_ui', 'jquery_cookie'],\n 'javascript' => [\n self::$js_path . 'jquery.reportgrid.js',\n ]\n ],\n 'reportfilters' => [\n 'deps' => ['reportgrid'],\n 'stylesheets' => [self::$css_path . 'report-filters.css'],\n 'javascript' => [self::$js_path . 'reportFilters.js'],\n ],\n 'tabs' => [\n 'deps' => ['jquery_ui'],\n 'javascript' => [self::$js_path . 'tabs.js'],\n ],\n 'wizardprogress' => [\n 'deps' => ['tabs'],\n 'stylesheets' => [self::$css_path . 'wizard_progress.css']\n ],\n 'spatialReports' => [\n 'javascript' => [self::$js_path . 'spatialReports.js'],\n ],\n 'jsonwidget' => [\n 'deps' => ['jquery'],\n 'javascript' => [\n self::$js_path . 'jsonwidget/jsonedit.js',\n self::$js_path . 'jquery.jsonwidget.js',\n ],\n 'stylesheets' => [self::$css_path . 'jsonwidget.css'],\n ],\n 'timeentry' => [\n 'javascript' => [self::$js_path . 'jquery.timeentry.min.js'],\n ],\n 'verification' => [\n 'javascript' => [self::$js_path . 'verification.js'],\n ],\n 'control_speciesmap_controls' => [\n 'deps' => [\n 'jquery',\n 'openlayers',\n 'addrowtogrid',\n 'validation',\n ],\n 'javascript' => [\n self::$js_path . 'controls/speciesmap_controls.js',\n ],\n ],\n 'complexAttrGrid' => [\n 'javascript' => [self::$js_path . 'complexAttrGrid.js'],\n ],\n 'footable' => [\n 'stylesheets' => [self::$js_path . 'footable/css/footable.core.min.css'],\n // Note, the minified version not used as it does not contain bugfixes.\n // 'javascript' => [self::$js_path.'footable/dist/footable.min.js']\n 'javascript' => [self::$js_path . 'footable/js/footable.js'],\n 'deps' => ['jquery'],\n ],\n 'footableSort' => [\n 'javascript' => [self::$js_path . 'footable/dist/footable.sort.min.js'],\n 'deps' => ['footable'],\n ],\n 'footableFilter' => [\n 'javascript' => [self::$js_path . 'footable/dist/footable.filter.min.js'],\n 'deps' => ['footable'],\n ],\n 'indiciaFootableReport' => [\n 'javascript' => [self::$js_path . 'jquery.indiciaFootableReport.js'],\n 'deps' => ['footable'],\n ],\n 'indiciaFootableChecklist' => [\n 'stylesheets' => [self::$css_path . 'jquery.indiciaFootableChecklist.css'],\n 'javascript' => [self::$js_path . 'jquery.indiciaFootableChecklist.js'],\n 'deps' => ['footable']\n ],\n 'html2pdf' => [\n 'javascript' => [\n self::$js_path . 'html2pdf/dist/html2pdf.bundle.min.js',\n ],\n ],\n 'review_input' => [\n 'javascript' => [self::$js_path . 'jquery.reviewInput.js'],\n ],\n 'sub_list' => [\n 'javascript' => [self::$js_path . 'sub_list.js'],\n ],\n 'georeference_default_geoportal_lu' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/geoportal_lu.js'],\n ],\n 'georeference_default_nominatim' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/nominatim.js'],\n ],\n 'georeference_default_google_places' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/google_places.js'],\n ],\n 'georeference_default_indicia_locations' => [\n 'javascript' => [self::$js_path . 'drivers/georeference/indicia_locations.js'],\n ],\n 'sref_handlers_2169' => [\n 'javascript' => [self::$js_path . 'drivers/sref/2169.js'],\n ],\n 'sref_handlers_4326' => [\n 'javascript' => [self::$js_path . 'drivers/sref/4326.js'],\n ],\n 'sref_handlers_osgb' => [\n 'javascript' => [self::$js_path . 'drivers/sref/osgb.js'],\n ],\n 'sref_handlers_osie' => [\n 'javascript' => [self::$js_path . 'drivers/sref/osie.js'],\n ],\n 'font_awesome' => [\n 'stylesheets' => ['https://use.fontawesome.com/releases/v5.15.4/css/all.css']\n ],\n 'leaflet' => [\n 'stylesheets' => ['https://unpkg.com/leaflet@1.4.0/dist/leaflet.css'],\n 'javascript' => [\n 'https://unpkg.com/leaflet@1.4.0/dist/leaflet.js',\n 'https://cdnjs.cloudflare.com/ajax/libs/wicket/1.3.3/wicket.min.js',\n 'https://cdnjs.cloudflare.com/ajax/libs/wicket/1.3.3/wicket-leaflet.min.js',\n self::$js_path . 'leaflet.heat/dist/leaflet-heat.js',\n ],\n ],\n 'leaflet_google' => [\n 'deps' => [\n 'googlemaps'\n ],\n 'javascript' => [\n 'https://unpkg.com/leaflet.gridlayer.googlemutant@latest/dist/Leaflet.GoogleMutant.js',\n ],\n ],\n 'datacomponents' => [\n 'deps' => [\n 'font_awesome',\n 'indiciaFootableReport',\n 'jquery_cookie',\n ],\n 'javascript' => [\n self::$js_path . 'indicia.datacomponents/idc.core.js',\n self::$js_path . 'indicia.datacomponents/idc.controlLayout.js',\n self::$js_path . 'indicia.datacomponents/idc.esDataSource.js',\n self::$js_path . 'indicia.datacomponents/idc.pager.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.customScript.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.runCustomVerificationRulesets.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.cardGallery.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.dataGrid.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.esDownload.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.leafletMap.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.recordsMover.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.recordDetailsPane.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.templatedOutput.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.verificationButtons.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.filterSummary.js',\n self::$js_path . 'indicia.datacomponents/jquery.idc.permissionFilters.js',\n 'https://unpkg.com/@ungap/url-search-params',\n ],\n ],\n 'file_classifier' => [\n 'deps' => [\n 'plupload',\n 'jquery_ui',\n ],\n 'javascript' => [\n self::$js_path . 'jquery.fileClassifier.js',\n ],\n ],\n 'brc_atlas' => [\n 'deps' => [\n 'd3',\n 'bigr',\n 'leaflet',\n ],\n 'stylesheets' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-atlas@0.25.1/dist/brcatlas.umd.css',\n ],\n 'javascript' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-atlas@0.25.1/dist/brcatlas.umd.min.js',\n ],\n ],\n 'brc_charts' => [\n 'deps' => [\n 'd3',\n ],\n 'stylesheets' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-charts@0.15.0/dist/brccharts.umd.css',\n ],\n 'javascript' => [\n 'https://cdn.jsdelivr.net/gh/biologicalrecordscentre/brc-charts@0.15.0/dist/brccharts.umd.min.js',\n ],\n ],\n 'd3' => [\n 'javascript' => [\n 'https://d3js.org/d3.v5.min.js',\n ],\n ],\n 'bigr' => [\n 'javascript' => [\n 'https://unpkg.com/brc-atlas-bigr@2.4.0/dist/bigr.min.umd.js',\n ],\n ],\n ];\n }\n return self::$resource_list;\n }", "public function getAssets()\n {\n return $this->getService('assets');\n }", "protected function getAssets()\n {\n if( ! $assets = $this->getHtml()->find('video, img, iframe, a'))\n {\n throw new Exception('No assets found in content!');\n }\n\n return $assets;\n }", "public function get_assets() \n {\n return $this->assets;\n }", "function allLoadJs($path){\n \n $diretorio = dir($path);\n\n while($arquivo = $diretorio -> read()){\n //verifica apenas as extenções do css \n if(strpos($arquivo, '.js')!==FALSE)\n echo (\"<script src='\".BARRA.url_base.BARRA.$path.$arquivo.\"' type='text/javascript'></script>\\n\");\n }\n $diretorio -> close();\n\n }", "private static function assets()\n {\n $files = ['Assets'];\n $folder = static::$root.'Resources'.'/';\n\n self::call($files, $folder);\n }", "public function get_scripts () {\r\n\t\treturn empty($this->_data[self::SCRIPTS])\r\n\t\t\t? array()\r\n\t\t\t: $this->_data[self::SCRIPTS]\r\n\t\t;\r\n\t}", "public function scripts() {\n\t\t$scripts = array(\n\t\t\tarray(\n\t\t\t\t'handle' => 'static_content_script_js',\n\t\t\t\t'src' => $this->get_base_url() . '/js/static_content_script.js',\n\t\t\t\t'version' => $this->_version,\n\t\t\t\t'deps' => array( 'jquery' ),\n\t\t\t\t'enqueue' => array(\n\t\t\t\t\tarray( 'field_types' => array( 'staticcontent' ) ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t);\n\n\t\treturn array_merge( parent::scripts(), $scripts );\n\t}", "public function load_assets() {}", "public function getJavaScripts()\n {\n return array_merge(parent::getJavascripts(), array('/jWidgetsPlugin/js/jquery/plugin/jquery.validate.min.js'));\n }", "public function getJsFiles(): array\n {\n return $this->jsFiles;\n }", "function get_the_js_urls() {\n\n md_get_the_js_urls();\n \n }", "public function loadAssets() {\r\n\t\t$this->app->document->addScript('elements:relateditems/relateditems.js');\r\n\t}", "public static function dumpJavascripts()\n\t{\n\t\t$asset = self::$javascripts;\n\t\t$asset->setTargetPath(str_replace('*', self::generateAssetName($asset).'.js', self::$assetOutput));\n\t\t$cache = self::getAssetCache($asset);\n\t\tself::getAssetWriter()->writeAsset($cache);\n\t\treturn self::basePath().'/'.$asset->getTargetPath();\n\t}", "public static function plugin_assets() {\r\n $default_assets = array(\r\n\r\n // handle => location ( in /assets/js/ ) ( without .js ext).\r\n 'js' => array(\r\n 'bstone-light-js' => 'bstone-light-script',\r\n ),\r\n\r\n // handle => location ( in /assets/css/ ) ( without .css ext).\r\n 'css' => array(\r\n 'bstone-light-style' => 'bstone-light-style',\r\n ),\r\n );\r\n\r\n return apply_filters( 'bstone_light_assets', $default_assets );\r\n }", "public function getJavascripts()\n {\n return array(\n '/sfEntityAttributeValuePlugin/js/jquery-1.3.2.min.js',\n '/sfEntityAttributeValuePlugin/js/jquery.formbuilder.js',\n '/sfEntityAttributeValuePlugin/js/jquery.scrollTo-min.js');\n }", "static public function getJavaScript() {\n\t\treturn self::$js;\n\t}", "private function getIesJs()\n {\n return [\n 'global/plugins/bower_components/html5shiv/dist/html5shiv.min.js',\n 'global/plugins/bower_components/respond-minmax/dest/respond.min.js'\n ];\n }", "function js($file)\n {\n return assets('js', $file);\n }", "public function getAssets($folder, $locale = null);", "public function get_scripts()\n {\n $prefix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.min' : '';\n $assets = $this->get_manifest('../dist/app');\n\n $scripts = [\n 'wprs-tsm-runtime' => [\n 'src' => $this->get_url($assets[ 'runtime.js' ]),\n 'in_footer' => true,\n ],\n 'wprs-tsm-frontend' => [\n 'src' => $this->get_url($assets[ 'frontend.js' ]),\n 'in_footer' => true,\n ],\n ];\n\n return $scripts;\n }", "public function getAssets(): array {\n\t\treturn $this->assets;\n\t}", "private function load_js () {\n $buffer = '';\n if (count($this->js_files)) {\n foreach ($this->js_files as $file) {\n $file = explode('/', $file);\n // TODO: use $this->config->item('modules_locations') for modules path\n $file = 'application/modules/'.$file[0].'/views/'.$this->get_skin().'/skin/'.implode('/',array_slice($file, 1));\n $buffer .= \"\\n\".'<script src=\"'.base_url($file).'\"></script>';\n }\n return $buffer.\"\\n\";\n } else {\n return \"\\n\";\n }\n }", "function src_inc_list_js(string $assets_url, array $files) : string {\n $source = \"\";\n\n //Process the list of files\n foreach($files as $file){\n\n if(is_array($file))\n $file = $file[\"path\"];\n\n $source .= src_inc_js($assets_url.$file).\"\\n\\t\\t\";\n }\n\n return $source;\n}", "public static function assets(){\n return self::adapterURI().\"assets/\";\n }", "public function js()\n {\n $dir = new \\Ninja\\Directory(NINJA_DOCROOT . 'public/');\n /**\n * @var $files \\Ninja\\File[]\n */\n $files = $dir->scanRecursive(\"*.js\");\n\n echo \"\\nMinifying Javascript Files...\\n\";\n foreach($files as $sourceFile)\n {\n // Skip all foo.#.js (e.g foo.52.js) which are files from a previous build\n if (is_numeric(substr($sourceFile->getName(true), strrpos($sourceFile->getName(true), '.') + 1)))\n continue;\n\n /**\n * @var $destFile \\Ninja\\File\n */\n $destFile = $sourceFile->getParent()->ensureFile($sourceFile->getName(true) . '.' . self::REVISION . '.' . $sourceFile->getExtension());\n\n $destFile->write(\\Minify_Js::minify($sourceFile->read()));\n echo ' ' . $sourceFile->getPath() . \"\\n\";\n\n unset($sourceFile);\n }\n }", "public static function inclureJS() {\r\n \r\n foreach (Page::getInstance()->script as $link) {\r\n \r\n ?>\r\n <script type=\"text/javascript\" src=\"<?php echo $link; ?>\" ></script>\r\n <?php\r\n \r\n }\r\n }", "public function getJavaScripts() {\n return array_merge(parent::getJavaScripts(), array(\n '/sfEPFactoryFormPlugin/js/jquery.min.js',\n '/sfAdminTemplatePlugin/js/jquery.fancybox-1.3.4.pack.js',\n 'ficheForm.js'\n ));\n }", "public function jsFileBundler()\n {\n return $this->fileFilter(\n 'scripts.js',\n $this->createPath('public/js'),\n new GlobAsset($this->createPath('assets/js/*')),\n $this->filters['js']\n );\n }", "public function splitJsBundles()\n {\n return $this->splitBundles(\n 'js',\n $this->createPath('public/js'),\n $this->filters['js']\n );\n }", "public function get_scripts() {\n\t\treturn [];\n\t}", "public function getScripts($scope = 'header');", "private function \t\t\t\tbuild_script_tags() {\n\t\t$load=array(\n\t\t\t\"assets/js/jquery/jquery-3.3.1.min.js\",\n\t\t\t\"assets/js/bootstrap/bootstrap.min.js\",\n\t\t\t// \"assets/js/fontawesome/all.min.js\",\n\t\t\t\"assets/js/app/fetch.js\",\n\t\t\t\"assets/js/app/modal.js\",\n\t\t\t\"assets/js/app/common.js\"\n\t\t);\n\n\t\treturn array_reduce(array_unique(array_merge($load, $this->section_js)), function($_acum, $_item) {\n\t\t\t$_acum.=<<<R\n\n\t\t<script type=\"text/javascript\" src=\"{$_item}\"></script>\nR;\n\t\t\treturn $_acum;\n\t\t}, '');\n\t}", "function load_js_bundle($systemPath=false)\n{\n $bundle = [];\n $iterator = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator(THREE_BUNDLE_STATIC_JS_DIR, RecursiveDirectoryIterator::SKIP_DOTS),\n RecursiveIteratorIterator::SELF_FIRST\n );\n\n foreach($iterator as $path => $dir) {\n if ($dir->isFile()) {\n $file = $dir;\n $ext = $file->getExtension();\n if ($ext === 'js') {\n if ($systemPath === TRUE) {\n $path = $file->getRealPath();\n } else {\n $path = absolute_url(THREE_BUNDLE_STATIC_JS_URL . $file->getBasename());\n }\n array_push($bundle, $path);\n }\n }\n }\n return $bundle;\n}", "function assets()\n {\n return new Assets($this->accessToken, $this->spaceId, $this->cacher);\n }", "public static function js($cache = false, $path = '/js/', $variants = ['.min', '-min'], $ext = '.js')\n {\n // Iterate over asset links\n foreach (array_filter(explode(\"\\n\", self::asset($path, $variants, $ext))) as $src) {\n\n // Cache busting string\n $cacheBuster = ($cache) ? null :'?v='.filemtime(__cwd.$src);\n\n // Create HTML tags for JavaScript\n $html[] = helpers\\html::tag('script', '', ['src' => $src.$cacheBuster]);\n }\n\n // Return assets as string\n return implode(\"\\n\", $html ?? []);\n }", "public function getLocalJavascripts($withNULL = false)\n\t{\n\t\t$_dir = sfConfig::get('sf_web_dir').'/js';\n\t\t\n\t\t$files = array();\n\t\t\n\t\tif( $withNULL )\n\t\t{\n\t\t\t$files[NULL] = NULL;\n\t\t}\n\t\t\n\t\t$handle = opendir($_dir);\n\t\t\n\t\twhile (false !== ($file = readdir($handle))) {\n\t if($file == '.' or $file == '..' )\n\t {\n\t \tcontinue;\n\t }\n\t $files[$file] = $file;\n\t }\n \t\n\t closedir($handle);\n\t return $files; \n\t}", "public function get_js_common()\n {\n return array();\n }", "public function scripts()\n {\n return $this->scripts;\n }", "public function scripts()\n {\n return $this->scripts;\n }", "public function getJavaScript() {}", "public function getJsSources(): string\n {\n return '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'bower_components/jquery/dist/jquery.min.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'bower_components/jquery-ui/jquery-ui.min.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'bower_components/jquery.scrollTo/jquery.scrollTo.min.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'prettify/prettify.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'pretty.js\"></script>';\n }", "public function getJS()\n\t{\n\t\t// include the forum's jquery\n\t\t$js = array();\n\t\treturn $js;\n\t}", "function getScripts () {\n return array(\"template.js\");\n }", "public function getStream($filter = null)\n {\n $iterator = Finder::create()->files()->name('*.js')->in($this->folder)->depth('== 0');\n $assetCollection = new AssetCollection();\n foreach ($iterator as $file) {\n $assetCollection->add(new GlobAsset(realpath($file->getPathName())));\n }\n if (null !== $filter && $this->compress) {\n $assetCollection->ensureFilter($filter);\n }\n\n return $assetCollection->dump();\n }", "public function get_assets($queryargs = array()) {\n $query = \"/assets/\";\n return $this->get_list_data($query, $queryargs);\n }", "public function getScripts()\n {\n $scripts = array();\n switch ($this->_jsEngine) {\n\n case self::ENGINE_MOOTOOLS:\n $scripts[] = $this->_confs['mootools']['path'] . $this->_confs['mootools']['name'];\n if ($this->_chartType === self::HIGHCHART) {\n $scripts[] = $this->_confs['highchartsMootoolsAdapter']['path'] . $this->_confs['highchartsMootoolsAdapter']['name'];\n } else {\n $scripts[] = $this->_confs['highstockMootoolsAdapter']['path'] . $this->_confs['highstockMootoolsAdapter']['name'];\n }\n break;\n\n case self::ENGINE_PROTOTYPE:\n $scripts[] = $this->_confs['prototype']['path'] . $this->_confs['prototype']['name'];\n if ($this->_chartType === self::HIGHCHART) {\n $scripts[] = $this->_confs['highchartsPrototypeAdapter']['path'] . $this->_confs['highchartsPrototypeAdapter']['name'];\n } else {\n $scripts[] = $this->_confs['highstockPrototypeAdapter']['path'] . $this->_confs['highstockPrototypeAdapter']['name'];\n }\n break;\n }\n\n switch ($this->_chartType) {\n case self::HIGHCHART:\n $scripts[] = $this->_confs['highcharts']['path'] . $this->_confs['highcharts']['name'];\n break;\n\n case self::HIGHSTOCK:\n $scripts[] = $this->_confs['highstock']['path'] . $this->_confs['highstock']['name'];\n break;\n\n case self::HIGHMAPS:\n $scripts[] = $this->_confs['highmaps']['path'] . $this->_confs['highmaps']['name'];\n break;\n }\n\n //Include scripts with keys given to be included via includeExtraScripts\n if (!empty($this->_extraScripts)) {\n foreach ($this->_extraScripts as $key) {\n $scripts[] = $this->_confs['extra'][$key]['path'] . $this->_confs['extra'][$key]['name'];\n }\n }\n\n return $scripts;\n }", "protected function injectFromAssetManager() {\n $asset = dirname(__FILE__) .'/js/';\n $passet = Yii::app()->assetManager->publish($asset);\n $cs = Yii::app()->clientScript;\n foreach ($this->jsFiles as $jf) {\n $cs->registerScriptFile($passet . '/' . $jf, CClientScript::POS_HEAD);\n }\n }", "public function DefineJsResources()\n {\n $this->carabiner->js('https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js');\n $this->carabiner->js('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js');\n $this->carabiner->js('https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js');\n // an array of arrays\n $this->carabiner->js(array(\n array('assets/js/Chart.min.js'),\n array('assets/js/Chart.bundle.min.js'),\n array('assets/js/jquery.js')\n ));\n }", "protected function getAllStaticFiles()\n {\n $dir = $this->dirList->getPath('static');\n $js = [];\n $css = [];\n $this->getDirContents($dir, $js, $css);\n $result = [self::A_JS => $js, self::A_CSS => $css];\n return $result;\n }", "function jsFiles($jsFile = false) {\n\t\n\tif ($jsFile) $this->jsFiles[] = $jsFile;\n\telse return $this->jsFiles;\n }", "protected function assets()\n {\n $output = [];\n if (!file_exists($this->config['build'] . 'node_modules')) {\n putenv('PATH=' . trim(shell_exec('echo $PATH')) . ':' . dirname(MODX_BASE_PATH) . '/');\n if (file_exists($this->config['build'] . 'package.json')) {\n $this->modx->log(modX::LOG_LEVEL_INFO, 'Trying to install or update nodejs dependencies');\n $output = [\n shell_exec('cd ' . $this->config['build'] . ' && npm config set scripts-prepend-node-path true && npm install'),\n ];\n }\n if (file_exists($this->config['build'] . 'gulpfile.js')) {\n $output = array_merge($output, [\n shell_exec('cd ' . $this->config['build'] . ' && npm link gulp'),\n shell_exec('cd ' . $this->config['build'] . ' && gulp copy'),\n ]);\n }\n if ($output) {\n $this->modx->log(xPDO::LOG_LEVEL_INFO, implode(\"\\n\", array_map('trim', $output)));\n }\n }\n if (file_exists($this->config['build'] . 'gulpfile.js')) {\n $output = shell_exec('cd ' . $this->config['build'] . ' && gulp default 2>&1');\n $this->modx->log(xPDO::LOG_LEVEL_INFO, 'Compile scripts and styles ' . trim($output));\n }\n }", "function getChartResources()\n {\n return '\n <script language=\"javascript\" type=\"text/javascript\" src=\"'.getJSPath('include/javascript/d3-sugar/d3-sugar.min.js').'\"></script>\n <script language=\"javascript\" type=\"text/javascript\" src=\"'.getJSPath('include/javascript/sucrose/sucrose.min.js').'\"></script>\n <script language=\"javascript\" type=\"text/javascript\" src=\"'.getJSPath('include/javascript/rgbcolor.js').'\"></script>\n <script language=\"javascript\" type=\"text/javascript\" src=\"'.getJSPath('include/javascript/StackBlur.js').'\"></script>\n <script language=\"javascript\" type=\"text/javascript\" src=\"'.getJSPath('include/javascript/canvg.js').'\"></script>\n <script language=\"javascript\" type=\"text/javascript\" src=\"'.getJSPath('include/SugarCharts/sucrose/js/sugarCharts.js').'\"></script>\n ';\n }", "function media_theplatform_mpx_extract_all_js_links($text) {\n $pattern = '/\\<script type\\=\\\"text\\/javascript\\\" src\\=\\\"(.*?)\\\"/';\n preg_match_all($pattern, $text, $results);\n $js_files = $results[1];\n return $js_files;\n}", "private function processAssets()\n {\n $js = $this->assetmanager->getAssetHandler('js');\n\n $afh = new \\Core\\Asset\\AssetFileHandler();\n $afh->setFilename($this->config->get('Core', 'dir.cache') . '/script.js');\n $afh->setTTL($this->config->get('Core', 'cache.ttl.js'));\n\n $js->setFileHandler($afh);\n\n $css = $this->assetmanager->getAssetHandler('css');\n\n $theme = $this->config->get('Core', 'style.theme.name');\n\n $css->addProcessor(new \\Core\\Asset\\Processor\\ReplaceProcessor('../fonts/', '../Themes/' . $theme . '/fonts/'));\n $css->addProcessor(new \\Core\\Asset\\Processor\\ReplaceProcessor('../img/', '../Themes/' . $theme . '/img/'));\n\n $afh = new \\Core\\Asset\\AssetFileHandler();\n $afh->setFilename($this->config->get('Core', 'dir.cache') . '/style.css');\n $afh->setTTL($this->config->get('Core', 'cache.ttl.css'));\n\n $css->setFileHandler($afh);\n\n foreach ($this->apps as $app) {\n foreach ($app->javascript as $aio) {\n $js->addObject($aio);\n }\n\n foreach ($app->css as $aio) {\n $css->addObject($aio);\n }\n }\n\n // Process assets\n $this->assetmanager->process();\n }", "public static function assetsMinification()\n {\n $config = \\Phalcon\\DI::getDefault()->getShared('config');\n\n foreach (array('Css', 'Js') as $asset) {\n $get = 'get' . $asset;\n $filter = '\\Phalcon\\Assets\\Filters\\\\' . $asset . 'min';\n\n foreach (\\Phalcon\\DI::getDefault()->getShared('assets')->$get() as $resource) {\n $min = new $filter();\n $resource->setSourcePath(ROOT_PATH . '/public/' . $resource->getPath());\n $resource->setTargetUri('min/' . $resource->getPath());\n\n if ($config->app->env != 'production') {\n if (!is_dir(dirname(ROOT_PATH . '/public/min/' . $resource->getPath()))) {\n $old = umask(0);\n mkdir(dirname(ROOT_PATH . '/public/min/' . $resource->getPath()), 0777, true);\n umask($old);\n }\n\n if ($config->app->env == 'development' || !file_exists(ROOT_PATH . '/public/min/' . $resource->getPath())) {\n file_put_contents(ROOT_PATH . '/public/min/' . $resource->getPath(), $min->filter($resource->getContent()));\n } elseif (md5($min->filter($resource->getContent())) != md5_file(ROOT_PATH . '/public/min/' . $resource->getPath())) {\n file_put_contents(ROOT_PATH . '/public/min/' . $resource->getPath(), $min->filter($resource->getContent()));\n }\n }\n }\n }\n }", "public function getScripts()\n {\n $scripts = array();\n $this->orderScripts();\n foreach($this->resolved as $id) {\n if( isset($this->scripts[$id]['url']) ) {\n $scripts[] = $this->scripts[$id]['url'];\n }\n }\n return $scripts;\n }" ]
[ "0.74514705", "0.7407429", "0.73456925", "0.73230207", "0.7215902", "0.71893233", "0.6980516", "0.6980516", "0.69647694", "0.6962524", "0.69299674", "0.69173175", "0.68699414", "0.68682545", "0.6862429", "0.68217593", "0.6814235", "0.6810195", "0.6803517", "0.67823684", "0.67810893", "0.67653346", "0.674074", "0.6724204", "0.6669865", "0.6661759", "0.6627961", "0.66217774", "0.66091716", "0.6584404", "0.6577497", "0.6574014", "0.6569108", "0.6568825", "0.6564676", "0.6563841", "0.6548662", "0.6486548", "0.6474511", "0.64707494", "0.6469839", "0.64672047", "0.646519", "0.6433366", "0.6433212", "0.6413732", "0.64125454", "0.6402149", "0.63910496", "0.63432336", "0.63421994", "0.63318235", "0.63227516", "0.63160723", "0.6300521", "0.6299476", "0.6299162", "0.6299116", "0.6295345", "0.6281764", "0.6274033", "0.6270727", "0.6268762", "0.6268158", "0.625937", "0.625116", "0.6226461", "0.6225824", "0.62247473", "0.6178741", "0.6174876", "0.61598706", "0.61582476", "0.6150552", "0.61336076", "0.61304235", "0.61018646", "0.60803694", "0.60662216", "0.6058772", "0.60576737", "0.60414195", "0.602813", "0.602813", "0.60237205", "0.60232425", "0.60150003", "0.6006858", "0.6003258", "0.60020524", "0.5979588", "0.5979222", "0.5979198", "0.597512", "0.597393", "0.59622264", "0.5953544", "0.59522945", "0.59518987", "0.5950102", "0.5944381" ]
0.0
-1
Performs calls on the chosen group instance.
public function __call($name, $arguments) { return call_user_func_array(array($this, $name), $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function group()\n {\n $this->doGroup('group', \\func_get_args());\n }", "abstract function perform($userinfo, $groupinfo, $args);", "public function testExecute()\n {\n $customerGroupId = 1;\n $this->company->expects($this->once())->method('getCustomerGroupId')->willReturn($customerGroupId);\n $customerGroup = $this->getMockBuilder(\\Magento\\Customer\\Api\\Data\\GroupInterface::class)\n ->disableOriginalConstructor()->getMock();\n $this->customerGroupRepository->expects($this->once())\n ->method('getById')->with($customerGroupId)->willReturn($customerGroup);\n $this->customerGroup->execute();\n }", "public function call()\n {\n // TODO: Implement call() method.\n }", "public function __invoke() {\n\t\t// Register hooks for the group if part of group\n\t\tif ( null !== $this->group ) {\n\t\t\t$this->group->load( $this->group, $this->page );\n\t\t}\n\n\t\t$this->page->load( $this->page );\n\t}", "public function testAvailableGroupOperations()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testUpdateGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function runGroup(Chat $chat, TelegramMessage $message)\n {\n }", "public function testAvailableGroupInstanceOperations()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function run()\n {\n $group = new Group();\n $group->name = 'Group 1';\n $group->save();\n\n $group = new Group();\n $group->name = 'Group 2';\n $group->save();\n\n $group = new Group();\n $group->name = 'Group 3';\n $group->save();\n }", "public function run()\n {\n // $this->call\n }", "public function fetchGroupData() {}", "public function fetchGroupData() {}", "public function call();", "public function call();", "function call($group, $action, $params = NULL) {\n // Determine the action id and auto-register or exit if it does not exist\n $actionId = $this->getActionIdByGroupAndAction($group, $action);\n if ($actionId === NULL) {\n // Is auto-registration activated?\n include_once(PAPAYA_INCLUDE_PATH.'system/base_module_options.php');\n $guid = '73d66a9ce59741d38d02bf8080392669';\n $autoRegister = base_module_options::readOption($guid, 'AUTO_REGISTER_ACTIONS', 0);\n if ($autoRegister) {\n $actionId = $this->registerAction($group, $action);\n }\n if ($actionId === NULL) {\n return 0;\n }\n }\n // Get the matching observers and exit if there aren't any\n $observers = $this->getObserversByActionId($actionId);\n if (empty($observers)) {\n return 0;\n }\n // Load the observers (connector modules)\n include_once(PAPAYA_INCLUDE_PATH.'system/base_pluginloader.php');\n $pluginloaderObj = &base_pluginloader::getInstance();\n $pluginloaderObj->loadData($observers);\n $connectors = array();\n foreach ($observers as $observer) {\n $connectors[] = &$pluginloaderObj->createObject($observer, $this);\n }\n // Now check each connector, and if it has got a matching method, call it\n $counter = 0;\n foreach ($connectors as $connector) {\n if (is_object($connector)) {\n if (method_exists($connector, $action)) {\n // Check for recursion\n $backtrace = debug_backtrace();\n $recursion = FALSE;\n foreach ($backtrace as $backtraceItem) {\n if ($backtraceItem['class'] == get_class($connector) &&\n $backtraceItem['function'] == $action) {\n $recursion = TRUE;\n break;\n }\n }\n if ($recursion) {\n $this->logMsg(\n MSG_ERROR,\n PAPAYA_LOGTYPE_SYSTEM,\n 'Recursion detected in action dispatcher',\n sprintf(\n 'Action dispatcher detected a recursion in its call for %s::%s()',\n get_class($connector),\n $action\n )\n );\n return $counter;\n }\n // Is this one of the new-style connectors with a setConfiguration() method?\n if (method_exists($connector, 'setConfiguration')) {\n if (!isset($this->baseOptions)) {\n $this->baseOptions = $this->papaya()->options;\n }\n $connector->setConfiguration($this->baseOptions);\n }\n $counter++;\n $connector->$action($params);\n }\n } else {\n $this->logMsg(\n MSG_ERROR,\n PAPAYA_LOGTYPE_SYSTEM,\n 'Class not found in action dispatcher',\n sprintf('Action dispatcher tried to call method %s on missing connector', $action)\n );\n }\n }\n return $counter;\n }", "public function call()\n {\n foreach (config('lucy.crud') as $type) {\n if ($this->builder->getAttribute($type)) {\n $method = 'call'.ucfirst(strtolower($type));\n\n $this->{$method}();\n }\n }\n }", "public function group($group);", "public function switchGroup($group);", "public function afterFind()\r\n\t{\r\n\t\t// load the access permissions for the group\r\n\t\t$this->access = UserGroupsAccess::findRules(UserGroupsAccess::GROUP, $this->id);\r\n\t\tparent::afterFind();\r\n\t}", "private function doGroup($method, $args)\n {\n $meta = $this->internal->getMetaVals(\n $args,\n array('channel' => $this->cfg['channelName'])\n );\n $this->rootInstance->groupStackRef[] = array(\n 'channel' => $meta['channel'],\n 'collect' => $this->cfg['collect'],\n );\n if (!$this->cfg['collect']) {\n return;\n }\n if (empty($args)) {\n // give a default label\n $caller = $this->utilities->getCallerInfo();\n if (isset($caller['class'])) {\n $args[] = $caller['class'].$caller['type'].$caller['function'];\n $meta['isMethodName'] = true;\n } elseif (isset($caller['function'])) {\n $args[] = $caller['function'];\n } else {\n $args[] = 'group';\n }\n }\n $this->appendLog($method, $args, $meta);\n }", "public static function __callStatic($group, $arguments)\n\t{\n\t\tif($extension = static::valid($group))\n\t\t{\n\t\t\tlist($name, $callback) = $arguments;\n\n\t\t\t$route = Bundle::option('basset', 'handles') . '/' . $name . '.' . $extension;\n\n\t\t\tRoute::get($route, function() use ($callback, $name, $group, $extension)\n\t\t\t{\n\t\t\t\tcall_user_func($callback, $assets = new Basset_Container($group));\n\n\t\t\t\tBasset::$containers[$name] = $assets;\n\n\t\t\t\treturn $assets;\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new BadMethodCallException('Could not find group [' . $group . '] on Basset.');\n\t\t}\n\t}", "public function postGroup()\n {\n $group = $this->em->newEntity( 'friends\\model\\Group' );\n $loadable = $this->role->applyLoadable( $group );\n $loadable->loadData();\n if( $loadable->validate() )\n {\n $active = $this->role->applyActive( $group );\n $active->save();\n $jump = $this->view->get( 'appUrl' ) . 'group';\n header( 'Location: ' . $jump );\n exit;\n }\n return $this->getGroup();\n }", "public function SetGroup($group,$value){\n if($this->_groups[$group][\"currentGroup\"]!=$value){\n if($this->_groups[$group][\"currentGroup\"]!=\"?\"){\n if(isset($this->_groups[$group][\"afterGroup\"])){\n $this->Ln(4);\n $function = array($this->_groups[$group][\"afterGroup\"][\"class\"],$this->_groups[$group][\"afterGroup\"][\"callback\"]);\n $params = array($this,$value);\n call_user_func_array($function,$params);\n }\n $this->Sum();\n }\n if(isset($this->_groups[$group][\"beforeGroup\"])){\n if(($this->GetY() + 22) > ($this->h - 10)){ //22 Altura de una cabecera de grupo\n $this->_changePage = false;\n $this->AddPage();\n }\n $this->Ln(6);\n $this->SetTextColor(100);\n $this->SetFont('Arial','B',11);\n $function = array($this->_groups[$group][\"beforeGroup\"][\"class\"],$this->_groups[$group][\"beforeGroup\"][\"callback\"]);\n $params = array($this,$value);\n $this->_groups[$group][\"currentMsg\"] = call_user_func_array($function,$params);\n $this->Ln(4);\n }\n $this->_groups[$group][\"currentGroup\"] = $value;\n $this->pages[$this->PageNo()] = str_replace(\"{grp_$group}\",$this->_groups[$group][\"currentMsg\"],$this->pages[$this->PageNo()]);\n $this->__Header();\n $this->_changePage = false;\n $this->SumRe();\n }else{\n $this->_changePage = true;\n }\n }", "public function setGroup($group) {}", "public function run()\n\t{\n\t\t\tAvelcaController::createAdministratorPermissions();\n\t\t \n\t\t\t/* Groups */\n\t\t\t$permissions = array(\n\t\t\t\t'dashboard',\n\t\t\t\t'sales-order',\n\t\t\t\t'sales-order.create',\n\t\t\t\t'sales-order.view'\n\t\t\t);\n\t\t \n\t\t\t$all_permissions = array();\n\t\t\tforeach ($permissions as $permission) {\n\t\t\t\t$all_permissions[$permission] = 1;\n\t\t\t}\n\t\t \n\t\t\t$groups = array(\n\t\t\tarray(\n\t\t\t\t'name' => 'Customer',\n\t\t\t\t'permissions' => json_encode($all_permissions)\n\t\t\t)\n\t\t\t);\n\t\t \n\t\t\t// Create or Update Group\n\t\t\tfor($i = 0; $i < count($groups); $i++)\n\t\t\t{\n\t\t\t\t$group = Group::firstOrNew(array('name' => $groups[$i]['name']));\n\t\t\t\t$group->permissions = $groups[$i]['permissions'];\n\t\t\t\t$group->save();\n\t\t\t}\n\t}", "public function setGroup($group) {}", "public function run()\n {\n $group = Group::factory()\n ->count(1)\n ->create();\n \n Plan::first()->groups()->attach($group->first()->id);\n }", "public function __invoke($group)\n {\n $view = $this->getView();\n $services = $view->getHelperPluginManager()->getServiceLocator();\n $group = $group instanceof Group ? $group : Group::fetchById($group, $services->get('p4_admin'));\n $owners = $group->getOwners();\n $members = Group::fetchAllMembers($group->getId());\n $user = $services->get('user');\n $isMember = in_array($user->getId(), $members);\n\n $avatarHtml = AvatarHelper::getAvatar(\n $view,\n $group->getId(),\n $group->getConfig()->get('emailAddress'),\n $group->getConfig()->getName(),\n AvatarHelper::SIZE_256,\n false,\n AvatarHelper::ROUNDED,\n true,\n AvatarHelper::GROUPS_AVATAR\n );\n\n $html = '<div class=\"span3 profile-sidebar group-sidebar\">'\n . '<div class=\"profile-info\">'\n . '<div class=\"title pad2 padw3\">'\n . '<h4 class=\"force-wrap\">' . $view->escapeHtml($group->getConfig()->getName()) . '</h4>'\n . '</div>'\n . '<div class=\"body\">';\n\n $html .= '<div class=\"pad2\" title=\"' . $view->escapeHtml($group->getConfig()->getName()) . '\">'\n . $avatarHtml\n . '</div>';\n\n $description = $group->getConfig()->getDescription();\n if ($description) {\n $html .= '<div class=\"description force-wrap pad3\">'\n . $view->preformat($description)\n . '</div>';\n }\n\n $html .= '<div class=\"metrics pad2 padw4\">'\n . '<ul class=\"force-wrap clearfix\">'\n . '<li class=\"owners pull-left border-box pad2 padw0\">'\n . '<span class=\"count\">' . count($owners) . '</span><br>'\n . $view->tpe('Owner', 'Owners', count($owners))\n . '</li>'\n . '<li class=\"members pull-left border-box pad2 padw0\">'\n . '<span class=\"count\">' . count($members) . '</span><br>'\n . $view->tpe('Member', 'Members', count($members))\n . '</li>'\n . '</ul>'\n . '</div>'\n . '</div>';\n\n if ($group->getConfig()->get('useMailingList')) {\n $html .= '<div id=\"groupEmailAddress\" class=\"emailAddress profile-block\">'\n . ' <div class=\"title pad1 padw0\">' . $view->te('Email address') . '</div>'\n . ' <small>' . ($group->getConfig()->get('emailAddress') ?:\n \"<span class=\\\"muted\\\">\" . $view->te('<unset>') . \"</span>\")\n . ' </small>'\n . '</div>';\n }\n // Close the profile-info section\n $html .= '</div>';\n\n if ($owners) {\n $html .= '<div class=\"owners profile-block\">'\n . '<div class=\"title pad1 padw0\">' . $view->te('Owners') . '</div>'\n . $view->avatars($owners, 5)\n . '</div>';\n }\n\n if ($members) {\n $html .= '<div class=\"members profile-block\">'\n . '<div class=\"title pad1 padw0\">' . $view->te('Members') . '</div>'\n . $view->avatars($members, 5)\n . '</div>';\n }\n\n $html .= '</div>';\n\n return $html;\n }", "public function testGetSetGroup()\n {\n $action = new CallbackAction('callback', function () { });\n\n $group = new Group('test');\n $action->setGroup($group);\n\n $this->assertSame($group, $action->getGroup());\n }", "private function grouping_group_assigned($event) {\n global $DB;\n $groupid = $event->other['groupid'];\n $members = groups_get_members($groupid, 'userid');\n $group = groups_get_group($groupid, 'courseid');\n $courseid = $group->courseid;\n $course = $DB->get_record('course', array('id' => $courseid), 'visible');\n $coursecontext = context_course::instance($courseid);\n $coursemodinfo = get_fast_modinfo($courseid, -1);\n $cms = $coursemodinfo->get_cms();\n\n $insertcalls = array();\n $deletecalls = array();\n\n foreach ($cms as $cm) {\n $cmid = $cm->id;\n $cmcontext = context_module::instance($cmid);\n $fileids = $this->get_fileids($cmid);\n if ($fileids) {\n foreach ($fileids as $fileid) {\n foreach ($members as $member) {\n $gmail = $this->get_google_authenticated_users_gmail($member->userid);\n if (has_capability('moodle/course:view', $coursecontext, $member->userid)) {\n // Manager; do nothing.\n } elseif (is_enrolled($coursecontext, $member->userid, null, true) && has_capability('moodle/course:manageactivities', $cmcontext, $member->userid)) {\n // Teacher (enrolled) (active); do nothing.\n } elseif (is_enrolled($coursecontext, $member->userid, null, true)) {\n // Student (enrolled) (active); continue checks.\n if ($course->visible == 1) {\n // Course is visible, continue checks.\n rebuild_course_cache($courseid, true);\n $modinfo = get_fast_modinfo($courseid, $member->userid);\n $cminfo = $modinfo->get_cm($cmid);\n $sectionnumber = $this->get_cm_sectionnum($cmid);\n $secinfo = $modinfo->get_section_info($sectionnumber);\n if ($cminfo->uservisible && $secinfo->available && is_enrolled($coursecontext, $member->userid, '', true)) {\n // Course module and section are visible and available.\n // Insert reader permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'reader';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } else {\n // User cannot access course module; delete permission.\n try {\n $permissionid = $this->service->permissions->getIdForEmail($gmail);\n $permission = $this->service->permissions->get($fileid, $permissionid->id);\n if ($permission->role != 'owner') {\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->permissionid = $permissionid->id;\n $deletecalls[] = $call;\n if (count($deletecalls) == 1000) {\n $this->batch_delete_permissions($deletecalls);\n $deletecalls = array();\n }\n }\n } catch (Exception $e) {\n debugging($e);\n }\n }\n }\n // Course is not visible; do nothing.\n }\n // User is not enrolled in course; do nothing.\n }\n }\n }\n }\n\n // Call any remaining batch requests.\n if (count($insertcalls) > 0) {\n $this->batch_insert_permissions($insertcalls);\n }\n\n if (count($deletecalls) > 0) {\n $this->batch_delete_permissions($deletecalls);\n }\n }", "public function postProcess(): void {\n $groupsToAddTo = (array) $this->getSubmittedValue('groups');\n $summaryInfo = ['groups' => [], 'tags' => []];\n foreach ($groupsToAddTo as $groupID) {\n // This is a convenience for now - really url & name should be determined at\n // presentation stage - ie the summary screen. The only info we are really\n // preserving is which groups were created vs already existed.\n $summaryInfo['groups'][$groupID] = [\n 'url' => CRM_Utils_System::url('civicrm/group/search', 'reset=1&force=1&context=smog&gid=' . $groupID),\n 'name' => Group::get(FALSE)\n ->addWhere('id', '=', $groupID)\n ->addSelect('name')\n ->execute()\n ->first()['name'],\n 'new' => FALSE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n\n if ($this->getSubmittedValue('newGroupName')) {\n /* Create a new group */\n $groupsToAddTo[] = $groupID = Group::create(FALSE)->setValues([\n 'title' => $this->getSubmittedValue('newGroupName'),\n 'description' => $this->getSubmittedValue('newGroupDesc'),\n 'group_type' => $this->getSubmittedValue('newGroupType') ?? [],\n 'is_active' => TRUE,\n ])->execute()->first()['id'];\n $summaryInfo['groups'][$groupID] = [\n 'url' => CRM_Utils_System::url('civicrm/group/search', 'reset=1&force=1&context=smog&gid=' . $groupID),\n 'name' => $this->getSubmittedValue('newGroupName'),\n 'new' => TRUE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n $tagsToAdd = (array) $this->getSubmittedValue('tag');\n foreach ($tagsToAdd as $tagID) {\n // This is a convenience for now - really url & name should be determined at\n // presentation stage - ie the summary screen. The only info we are really\n // preserving is which tags were created vs already existed.\n $summaryInfo['tags'][$tagID] = [\n 'url' => CRM_Utils_System::url('civicrm/contact/search', 'reset=1&force=1&context=smog&id=' . $tagID),\n 'name' => Tag::get(FALSE)\n ->addWhere('id', '=', $tagID)\n ->addSelect('name')\n ->execute()\n ->first()['name'],\n 'new' => TRUE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n if ($this->getSubmittedValue('newTagName')) {\n $tagsToAdd[] = $tagID = Tag::create(FALSE)->setValues([\n 'name' => $this->getSubmittedValue('newTagName'),\n 'description' => $this->getSubmittedValue('newTagDesc'),\n 'is_selectable' => TRUE,\n 'used_for' => 'civicrm_contact',\n //NYSS new tags during import should be imported as keywords\n 'parent_id'\t=> 296,\n ])->execute()->first()['id'];\n $summaryInfo['tags'][$tagID] = [\n 'url' => CRM_Utils_System::url('civicrm/contact/search', 'reset=1&force=1&context=smog&id=' . $tagID),\n 'name' => $this->getSubmittedValue('newTagName'),\n 'new' => FALSE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n // Store the actions to take on each row & the data to present at the end to the userJob.\n $this->updateUserJobMetadata('post_actions', [\n 'group' => $groupsToAddTo,\n 'tag' => $tagsToAdd,\n ]);\n $this->updateUserJobMetadata('summary_info', $summaryInfo);\n\n // If ACL applies to the current user, update cache before running the import.\n if (!CRM_Core_Permission::check('view all contacts')) {\n $userID = CRM_Core_Session::getLoggedInContactID();\n CRM_ACL_BAO_Cache::deleteEntry($userID);\n CRM_ACL_BAO_Cache::deleteContactCacheEntry($userID);\n }\n\n $this->runTheImport();\n }", "public function run(): void\n {\n $groups = factory(Group::class, 20)->create();\n $group = $groups->first();\n $user = User::query()->inRandomOrder()->first();\n $server = Server::query()->inRandomOrder()->first();\n\n /** @var \\App\\Models\\Group $group */\n $group->users()->attach($user);\n $group->servers()->attach($server);\n }", "public abstract function getGroup();", "public function currentGroup();", "public function groupAction(){\n $group_DB = new Application_Model_DbTable_Group();\n \n $group_id = $this->_request->getParam('g');\n $target_id = $this->_request->getParam('t');\n $game_id = $this->_request->getParam('gm');\n \n //Return After Planining\n if( $group_id && $target_id ){\n $group = $group_DB->get( $group_id );\n $this->view->group = $group;\n $this->view->group_id = $group_id;\n $this->view->target_id = $target_id;\n $this->view->game_id = $game_id;\n }\n else if( $group_id ){\n $group = $group_DB->get( $group_id );\n $this->view->group_id = $group_id;\n $this->view->group = $group;\n }\n $comments_DB = new Application_Model_DbTable_Comments();\n if (!isset($_SESSION['Default']['field'])) {\n $this->view->comments = \"\";\n $this->view->field_error = true;\n } else {\n $last_comment = $comments_DB->getLast($group_id, $_SESSION['Default']['field']);\n $this->view->comments = $last_comment['text'];\n }\n }", "function new_groups()\n {\n \n }", "public function groupCallback($group, $mode, $field, $objModelRow);", "protected function collectDataGroup()\n {\n $url = $this->getGroupURI();\n $this->collectDeals($url);\n }", "function friendGroupHandler() {\n global $inputs;\n\n insert('member_group_apply',[\n 'member_id' => getLogin()['mid'],\n 'group_id' => $inputs['id']\n ]);\n\n formatOutput(true, 'apply success');\n}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function run()\n {\n $this->call(specialites::class);\n $this->call(cancers::class);\n $this->call(organes::class);\n $this->call(wilayas::class);\n $this->call(dairas::class);\n $this->call(communes::class);\n $this->call(employes::class);\n $this->call(permissions::class);\n $this->call(roles::class);\n $this->call(users::class);\n }", "private function _recalcAdvGroup() {\n $this->_recalcEntity($this->advGroup, $this->advGroup->click_price); // @TODO Price is on advGroup. But this can be in the near future on every adv\n }", "protected function applyGroup(XsdGroup $group)\n {\n // It provides for naming a model group for use by reference in the XML representation of complex type \n // definitions and model groups. The correspondences between the properties of the information item and \n // properties of the component it corresponds to are as follows:\n \n // <group\n // id = ID\n // maxOccurs = (nonNegativeInteger | unbounded) : 1\n // minOccurs = nonNegativeInteger : 1\n // name = NCName\n // ref = QName\n // {any attributes with non-schema namespace . . .}>\n // Content: (annotation?, (all | choice | sequence)?)\n // </group>\n \n // Мать вашу, какому идиоту понадобилось использовать группы???\n throw new Exception('Мать вашу, какому идиоту понадобилось использовать группы???');\n }", "function groupApplyHandler() {\n global $inputs;\n\n updateDb('member_group_apply',[\n 'status' => $inputs['type'],\n 'handle_time' => date('Y-m-d H:i:s'),\n ], [\n 'id' => $inputs['id']\n ]);\n\n $info = getOne(\"select * from member_group_apply where id = ?\", [$inputs['id']]);\n\n insert('member_group',[\n 'member_id' => $info['member_id'],\n 'group_id' => $info['group_id']\n ]);\n\n formatOutput(true, 'update success');\n}", "protected function executeCall()\n\t{\n\t\t$mail\t= $this->getClass( 'Mail' );\n\t\t$date\t= date( 'Y-m-d', ( time() + ( self::NUM_DAYS_BEFORE_MATCH * 24 * 60 * 60 ) ) );\n\n\t\t$match\t= $this->getData( 'MatchModel', 'getMatchByDate', array( 'date' => $date ) );\n\t\tif ( !isset( $match[0] ) )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$match\t\t\t\t\t= array_shift( $match );\n\t\t$match['day_formated']\t= date( 'd/m/Y', strtotime( $match['day'] ) );\n\n\t\t$players\t= $this->getData( 'TeamModel', 'getPlayers', array( 'type' => 'player' ) );\n\t\tforeach( $players as $player )\n\t\t{\n\t\t\t$mail->setReceiver( $player['email'] );\n\t\t}\n\n\t\t$mail->setContentType( 'text/html', 'utf8' );\n\t\t$mail->setFrom( FROM_EMAIL );\n\t\t$mail->setSubject( \"Call {$match['day_formated']}\" );\n\t\t$mail->setBody( $this->composeMailBody( $match ) );\n\t\t$mail->send();\n\t}", "function system_addto_group($paramv)\n{\n}", "function execute($group_id, $memberid) {\n\t\t//TODO make this some kinda table, or XML or something but for now lets just hardcode it\n\t\t//$key == Jomsocial group ID //$value == DocManGroup ID\n\t\t$groupsXref = array();\n\t\t$groupsXref['1'] = '2'; \n\t\t$groupsXref['2'] = '3'; \n\t\t$groupsXref['3'] = '4';\n\t\t$groupsXref['4'] = '5'; \n\t\t$groupsXref['5'] = '6'; \n\t\t$groupsXref['6'] = '7'; \n\t\t$groupsXref['7'] = '8'; \n\t\t$groupsXref['8'] = '9'; \n\t\t$groupsXref['9'] = '10'; \n\t\t$groupsXref['10'] = '11'; \n\n\t\t$members = $this -> getMembersOfGroup($group_id);\n\t\t$this -> updateDocmanGroupMembers($groupsXref[$group_id], $members);\n\t}", "protected function callCommandMethod() {}", "function updateGroup() {\n\t\t$groupId = Request::getUserVar('groupId') === null? null : (int) Request::getUserVar('groupId');\n\t\tif ($groupId === null) {\n\t\t\t$this->validate();\n\t\t\t$group = null;\n\t\t} else {\n\t\t\t$this->validate($groupId);\n\t\t\t$group =& $this->group;\n\t\t}\n\t\t$this->setupTemplate($group);\n\n\t\timport('classes.manager.form.GroupForm');\n\n\t\t$groupForm = new GroupForm($group);\n\t\t$groupForm->readInputData();\n\n\t\tif ($groupForm->validate()) {\n\t\t\t$groupForm->execute();\n\t\t\tRequest::redirect(null, null, 'groups');\n\t\t} else {\n\n\t\t\t$templateMgr =& TemplateManager::getManager();\n\t\t\t$templateMgr->append('pageHierarchy', array(Request::url(null, 'manager', 'groups'), 'manager.groups'));\n\n\t\t\t$templateMgr->assign('pageTitle',\n\t\t\t\t$group?\n\t\t\t\t\t'manager.groups.editTitle':\n\t\t\t\t\t'manager.groups.createTitle'\n\t\t\t);\n\n\t\t\t$groupForm->display();\n\t\t}\n\t}", "public function run()\n {\n $this -> call ('agregar_empresas_iniciales'::class);\n $this -> call ('agregar_empleados_iniciales'::class);\n $this -> call ('agregar_empresas_adicionales'::class);\n $this -> call ('agregar_empleados_adicionales'::class);\n }", "public function run()\n\t{\n\t\tDB::table('groups')->delete();\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Users',\n\t 'permissions' => array(\n\t 'admin' => 0,\n\t 'users' => 1,\n\t )));\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Admins',\n\t 'permissions' => array(\n\t 'admin' => 1,\n\t 'users' => 1,\n\t )));\n\t}", "function getGroup() ;", "public function testGetGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function invoke();", "public function __invoke()\n {\n $this->execute();\n }", "function grp_actions($type, $gid) {\n global $db;\n $gdetails = $this->get_details($gid);\n\n if (!$gdetails)\n e(lang(\"grp_exist_error\"));\n else {\n switch ($type) {\n case \"activate\":\n case \"active\": {\n $db->update(tbl($this->gp_tbl), array(\"active\"), array(\"yes\"), \" group_id='$gid' \");\n e(lang(\"grp_av_msg\"), \"m\");\n }\n break;\n case \"deactivate\":\n case \"deactive\": {\n\n $db->update(tbl($this->gp_tbl), array(\"active\"), array(\"no\"), \" group_id='$gid' \");\n e(lang(\"grp_da_msg\"), \"m\");\n }\n break;\n case \"featured\":\n case \"feature\": {\n $db->update(tbl($this->gp_tbl), array(\"featured\"), array(\"yes\"), \" group_id='$gid' \");\n e(lang(\"grp_fr_msg\"), \"m\");\n }\n break;\n case \"unfeatured\":\n case \"unfeature\": {\n $db->update(tbl($this->gp_tbl), array(\"featured\"), array(\"no\"), \" group_id='$gid' \");\n e(lang(\"grp_fr_msg2\"), \"m\");\n }\n break;\n case \"delete\": {\n $this->delete_group($gid);\n e(lang(\"grp_del_msg\"), \"m\");\n }\n break;\n }\n }\n }", "function system_add_group($paramv)\n{\n}", "public function perform();", "public function refreshGroupSettings()\n {\n $group = $this->currentUser->getGroup();\n if ($group instanceof \\Gems\\User\\Group) {\n $group->applyGroupToModel($this, false);\n }\n }", "public function run()\n {\n $this->call(SocialIcons::class);\n $this->call(BackgroundImages::class);\n $this->call(UserAdminAcount::class);\n }", "public function process() {\n $call = $this->getData('p');\n\n if(method_exists($this, $call)) {\n $this->$call();\n } else {\n $this->output = array(\n 'success' => false,\n 'key' => 'eeek'\n );\n\n $this->renderOutput();\n }\n }", "public function call(): void\n {\n $this->isCalled = true;\n }", "public function run()\n {\n $group = new HealthRiskGroup();\n $group->name = 'Old';\n $group->save();\n\n\n $group = new HealthRiskGroup();\n $group->name = 'Respiratory';\n $group->save();\n\n\n\n $group = new HealthRiskGroup();\n $group->name = 'Hearth';\n $group->save();\n\n\n $group = new HealthRiskGroup();\n $group->name = 'Child';\n $group->save();\n\n $group = new HealthRiskGroup();\n $group->name = 'None';\n $group->save();\n }", "protected abstract function performImpl();", "public function run()\n {\n $this->call(DigitalFulfillmentPositions::class);\n $this->call(DigitalFulfillmentAccountPositions::class);\n $this->call(DexMediaAPAccountPositions::class);\n }", "public function addGroup($group) {}", "public function update() {\n\t\t$data = array(\n\t\t\t'tstamp' => $this['timeStamp'],\n\t\t\t'crdate' => $this['createDate'],\n\t\t\t'cruser_id' => $this['cruserUid'],\n\t\t\t'name' => $this['name'],\n\t\t);\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery(\n\t\t\t'tx_passwordmgr_group',\n\t\t\t'uid=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this['uid'],'tx_passwordmgr_group'),\n\t\t\t$data\n\t\t);\n\t\t$this->checkAffectedRows('updateGroup', 1);\n\t\ttx_passwordmgr_helper::addLogEntry(1, 'updateGroup', 'Update group '.$data['name'].' uid '.$this['uid']);\n\t}", "public function testSaveLanguageGroupMethod() {\n foreach ($this->testCases['LanguageGroup'] as $key => $testCase) {\n $langGroup = new LanguageGroup ();\n $langGroup->setGroupName($testCase['group_name']);\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLanguageGroup')\n ->will($this->returnValue($langGroup));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->saveLanguageGroup($langGroup);\n $this->assertTrue($result instanceof LanguageGroup);\n $this->assertEquals($langGroup, $result);\n }\n }", "final public function addItemGroupSupervisor() {\n if (!empty($this->target_object)) {\n foreach ($this->target_object as $val) {\n if ($val->fields['groups_id'] > 0) {\n $this->addForGroup(1, $val->fields['groups_id']);\n }\n }\n }\n }", "public function call()\n {\n $this->dispatchRequest($this['request'], $this['response']);\n }", "public function run()\n {\n\t $this->call(seeder_category::class);\n\t $this->call(seeder_e::class);\n\t $this->call(seeder_product::class);\n }", "public function run()\n {\n $g1 = ['b_group' => 'AB-' , 'slug' => str_slug('AB negative')];\n\t\t$g2 = ['b_group' => 'AB+' , 'slug' => str_slug('AB positive')];\n\t\t$g3 = ['b_group' => 'B-' , 'slug' => str_slug('B negative')];\n\t\t$g4 = ['b_group' => 'B+' , 'slug' => str_slug('B positive')];\n\t\t$g5 = ['b_group' => 'A-' , 'slug' => str_slug('A negative')];\n\t\t$g6 = ['b_group' => 'A+' , 'slug' => str_slug('A positive')];\n\t\t$g7 = ['b_group' => 'O-' , 'slug' => str_slug('O negative')];\n\t\t$g8 = ['b_group' => 'O+' , 'slug' => str_slug('O positive')];\n\n\n\t\tGroups::create($g1);\n\t\tGroups::create($g2);\n\t\tGroups::create($g3);\n\t\tGroups::create($g4);\n\t\tGroups::create($g5);\n\t\tGroups::create($g6);\n\t\tGroups::create($g7);\n\t\tGroups::create($g8);\n\n\n\n\t}", "function OnGroupJoin($group, $memberid) {\n\t\tFB::log('OnGroupJoin');\n\t\t$this -> execute($group -> id, $memberid);\n\n\t}", "public function run()\n {\n factory(\\Unscode\\Pingo\\Models\\Group::class, 250)->create();\n }", "public function dispatch();", "public function dispatch();", "public function addGroup(string $group): void;", "public function afterFind()\n {\n parent::afterFind();\n $groups = AuthDAO::getGroups($this->id, $this->groupType);\n $groupIds = [];\n foreach ($groups as $group)\n {\n $groupIds[] = $group['id'];\n }\n $this->groups = $groupIds;\n }", "public function run()\n\t{\n\t\tDB::table('groups')->delete();\n\t\t// creating super user\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'SuperUser',\n\t 'permissions' => array(\n\t 'superuser' => 1\n\t )));\n\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Branch-Admin',\n\t 'permissions' => array(\n\t 'associate-view' => 1,\n\t 'associate-edit' => 1,\n\t 'associate-delete' => 1,\n\t 'associate-create' => 1,\n\t 'policy-view' => 1,\n\t 'policy-edit' => 1,\n\t 'policy-delete' => 1,\n\t 'policy-create' => 1,\n\t \t'user-view' => 1,\n\t 'user-edit' => 1,\n\t 'user-delete' => 1,\n\t 'user-create' => 1,\n\t 'rank-view' => 1,\n\t 'rank-edit' => 0,\n\t 'rank-delete' => 0,\n\t 'rank-create' => 0,\n\n\t )));\n\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Branch-User',\n\t 'permissions' => array(\n\t 'associate-view' => 1,\n\t 'associate-edit' => 0,\n\t 'associate-delete' => 0,\n\t 'associate-create' => 1,\n\t 'policy-view' => 1,\n\t 'policy-edit' => 0,\n\t 'policy-delete' => 0,\n\t 'policy-create' => 1,\n\t \t'user-view' => 1,\n\t 'user-edit' => 0,\n\t 'user-delete' => 0,\n\t 'user-create' => 0,\n\t 'rank-view' => 1,\n\t 'rank-edit' => 0,\n\t 'rank-delete' => 0,\n\t 'rank-create' => 0,\n\t )));\n\n\t}", "function onGroupJoinApproved($group, $memberid) {\n\t\t$this -> execute($group -> id, $memberid);\n\n\t}", "public function onGroup($group, $option, $authorized, $limit=0, $limitstart=0, $action='', $access, $areas=null)\n\t{\n\t\t$return = 'html';\n\t\t$active = $this->_name;\n\n\t\t// The output array we're returning\n\t\t$arr = array(\n\t\t\t'html' => '',\n\t\t\t'metadata' => array()\n\t\t);\n\n\t\t//get this area details\n\t\t$this_area = $this->onGroupAreas();\n\n\t\t// Check if our area is in the array of areas we want to return results for\n\t\tif (is_array($areas) && $limit)\n\t\t{\n\t\t\tif (!in_array($this_area['name'], $areas))\n\t\t\t{\n\t\t\t\t$return = 'metadata';\n\t\t\t}\n\t\t}\n\n\t\t//are we returning html\n\t\tif ($return == 'html')\n\t\t{\n\t\t\t//set group members plugin access level\n\t\t\t$group_plugin_acl = $access[$active];\n\n\t\t\t//get the group members\n\t\t\t$members = $group->get('members');\n\n\t\t\t//if set to nobody make sure cant access\n\t\t\tif ($group_plugin_acl == 'nobody')\n\t\t\t{\n\t\t\t\t$arr['html'] = '<p class=\"info\">' . Lang::txt('GROUPS_PLUGIN_OFF', ucfirst($active)) . '</p>';\n\t\t\t\treturn $arr;\n\t\t\t}\n\n\t\t\t//check if guest and force login if plugin access is registered or members\n\t\t\tif (User::isGuest()\n\t\t\t && ($group_plugin_acl == 'registered' || $group_plugin_acl == 'members'))\n\t\t\t{\n\t\t\t\t$url = Route::url('index.php?option=com_groups&cn=' . $group->get('cn') . '&active=' . $active, false, true);\n\n\t\t\t\tApp::redirect(\n\t\t\t\t\tRoute::url('index.php?option=com_users&view=login&return=' . base64_encode($url)),\n\t\t\t\t\tLang::txt('GROUPS_PLUGIN_REGISTERED', ucfirst($active)),\n\t\t\t\t\t'warning'\n\t\t\t\t);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t//check to see if user is member and plugin access requires members\n\t\t\tif (!in_array(User::get('id'), $members)\n\t\t\t && $group_plugin_acl == 'members'\n\t\t\t && $authorized != 'admin')\n\t\t\t{\n\t\t\t\t$arr['html'] = '<p class=\"info\">' . Lang::txt('GROUPS_PLUGIN_REQUIRES_MEMBER', ucfirst($active)) . '</p>';\n\t\t\t\treturn $arr;\n\t\t\t}\n\n\t\t\tinclude_once __DIR__ . '/models/attachment.php';\n\n\t\t\t$this->group = $group;\n\t\t\t$this->base = 'index.php?option=com_groups&cn=' . $group->get('cn');\n\n\t\t\t$action = Request::getCmd('action', 'feed');\n\n\t\t\tif ($this->group->published != 1)\n\t\t\t{\n\t\t\t\t$action = 'feed';\n\t\t\t}\n\n\t\t\tswitch ($action)\n\t\t\t{\n\t\t\t\tcase 'post':\n\t\t\t\t\t$arr['html'] = $this->postAction();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'remove':\n\t\t\t\t\t$arr['html'] = $this->removeAction();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'unstar':\n\t\t\t\t\t$arr['html'] = $this->starAction();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'star':\n\t\t\t\t\t$arr['html'] = $this->starAction();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'feed':\n\t\t\t\tdefault:\n\t\t\t\t\t$arr['html'] = $this->feedAction();\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$arr['html'] = $this->feedAction();\n\t\t}\n\n\t\t// Get the number of unread messages\n\t\t$unread = Hubzero\\Activity\\Recipient::all()\n\t\t\t->whereEquals('scope', 'group')\n\t\t\t->whereEquals('scope_id', $group->get('gidNumber'))\n\t\t\t->whereEquals('state', 1)\n\t\t\t->where('viewed', 'IS', null)\n\t\t\t->total();\n\n\t\t// Return total message count\n\t\t$arr['metadata']['count'] = $unread;\n\n\t\t// Return data\n\t\treturn $arr;\n\t}", "private function _callToDefault()\n {\n foreach (get_class_methods($this) as $method) {\n try {\n $that = new ReflectionMethod($this, $method);\n } catch (ReflectionException $exception) {\n break;\n }\n if (\n $that->isProtected()\n && !array_key_exists($method, $this->query())\n ) {\n $this->{$method}($this->builder);\n }\n }\n }", "public function run()\n {\n Model::unguard();\n\n $this->call(FB_api_mode::class);\n $this->call(FB_page_edge::class);\n $this->call(FB_field::class);\n $this->call(FB_page_edge_node::class);\n $this->call(FB_edge_edgeNode::class);\n $this->call(FB_field_followingrequest::class);\n $this->call(FB_parent_field::class);\n $this->call(Provider::class);\n $this->call(User::class);\n $this->call(News::class);\n $this->call(InfoApiCost::class);\n $this->call(MediaApiCost::class);\n $this->call(ForumSection::class);\n $this->call(CheckoutFlow::class);\n $this->call(ApiDiscount::class);\n $this->call(UserPayment::class);\n $this->call(FB_api_group_full_mode_and_statistics::class);\n\n Model::reguard();\n }", "public function main() {\n\n\t\t$this->out('Group Shell');\n\t\t$this->hr();\n\t\t$this->out('[C]reate a group');\n\t\t$this->out('[Q]uit');\n\n\t\t$classToBake = strtoupper($this->in('What would you like to do?', array('C', 'Q')));\n\t\tswitch ($classToBake) {\n\t\t\tcase 'C':\n\t\t\t\t$this->hr();\n\t\t\t\t$this->create();\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\t\texit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->out('You have made an invalid selection. Please choose an action from the list.');\n\t\t}\n\t\t$this->hr();\n\t\t$this->main();\n\t}", "abstract protected function _run();", "abstract protected function _run();", "function member_actions($gid, $memuid, $case, $deleting_group = FALSE) {\n global $db;\n\n //getting group details\n $group = $this->get_group_details($gid);\n\n if (!$group)\n e(lang(\"grp_exist_error\"));\n elseif (!$this->is_member($memuid, $gid))\n e(lang(\"user_not_grp_mem\"));\n elseif (userid() != $group['userid'] && !has_access(\"admin_access\", true))\n e(lang(\"grp_owner_err1\"));\n elseif ($group['userid'] == $memuid && !$deleting_group)\n e(lang(\"you_cant_perform_actions_on_grp_own\"));\n else\n switch ($case) {\n case \"activate\":\n case \"active\": {\n $db->update(tbl($this->gp_mem_tbl), array(\"active\"), array(\"yes\"), \"userid='$memuid' AND group_id='$gid'\");\n e(lang(\"usr_ac_msg\"), \"m\");\n }\n break;\n\n case \"deactivate\":\n case \"deactive\":\n case \"unactivate\":\n case \"unactive\": {\n $db->update(tbl($this->gp_mem_tbl), array(\"active\"), array(\"no\"), \"userid='$memuid' AND group_id='$gid'\");\n e(lang(\"usr_dac_msg\"), \"m\");\n }\n break;\n\n case \"delete\": {\n\n //Delete All Videos oF member\n $db->delete(tbl($this->gp_vdo_tbl), array(\"userid\", \"group_id\"), array($memuid, gid));\n //Deleting ALl Topics Of \n $this->delete_user_topics($memuid, $gid);\n //Delete Member\n $db->delete(tbl($this->gp_mem_tbl), array(\"userid\", \"group_id\"), array($memuid, $gid));\n\n $total_members = $this->total_members($gid);\n $total_videos = $this->total_videos($gid);\n $count_topics = $this->count_group_topics($gid);\n\n //Update Stat\n $db->update(tbl($this->gp_tbl), array(\"total_topics\", \"total_members\", \"total_videos\"), array($count_topics, $total_members, $total_videos), \" group_id='\" . $gid . \"'\");\n\n e(lang(\"usr_del_msg\"), \"m\");\n }\n break;\n case \"ban\": {\n $db->update(tbl($this->gp_mem_tbl), array(\"ban\"), array(\"yes\"), \"userid='$memuid' AND group_id='$gid'\");\n e(lang(\"User has been banned from this group\"), \"m\");\n }\n break;\n case \"unban\": {\n $db->update(tbl($this->gp_mem_tbl), array(\"ban\"), array(\"no\"), \"userid='$memuid' AND group_id='$gid'\");\n e(lang(\"User ban has been removed\"), \"m\");\n }\n break;\n }\n }", "function viewGroups() {\n $classId = $_POST['classId'];\n $db = new PDO(DSN, DBUSER, DBPASS);\n $stmt = $db->prepare(\"CALL getClassGroups(?)\");\n $stmt->bindValue(1, $classId, PDO::PARAM_INT);\n $stmt->execute();\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $db = NULL;\n return $results;\n}", "function CBGroups() {\n global $Cbucket;\n $this->cat_tbl = 'group_categories';\n $this->gp_tbl = 'groups';\n $this->gp_mem_tbl = 'group_members';\n //We will using CB Commenting system as posts\n //$this->gp_post_tbl = 'group_posts';\n $this->gp_topic_tbl = 'group_topics';\n $this->gp_invite_tbl = 'group_invitations';\n $this->gp_vdo_tbl = 'group_videos';\n\n //Adding Actions such Report, share,fav etc\n $this->action = new cbactions();\n $this->action->type = 'g';\n $this->action->name = 'group';\n $this->action->obj_class = 'cbgroup';\n $this->action->check_func = 'group_exists';\n $this->action->type_tbl = $this->gp_tbl;\n $this->action->type_id_field = 'group_id';\n \n \n if (isSectionEnabled('groups'))\n $Cbucket->search_types['groups'] = \"cbgroup\";\n \n }", "public function getGroup()\n {\n $this->getParam('group');\n }", "public function SubGroups($group_id = \"\")\n {\n if ($group_id == \"\")\n redirect(base_url($this->_seg) . \"/whatsapp/groups\");\n $limit = (isset($_GET[\"limit\"]) ? trim($_GET[\"limit\"]) : 25);\n $page = (isset($_GET[\"page\"]) ? trim($_GET[\"page\"]) : 0);\n $search = (isset($_GET[\"search_word\"]) ? trim($_GET[\"search_word\"]) : \"\");\n $data[\"search\"] = $search;\n $data[\"page_num\"] = $page;\n $data[\"limit\"] = $limit;\n $groups = $this->mnumbers->getUserSubGroups($this->USER_ID, $group_id, $limit, $limit * $page, $search);\n $data[\"groups\"] = $groups;\n $data[\"group_id\"] = $group_id;\n $data[\"all_groups\"] = $this->mnumbers->getUserMainGroups($this->USER_ID);\n $data[\"target\"] = \"sub_groups\";\n if (isset($_POST[\"submit\"])) {\n if ($_POST[\"action\"] == \"\") {\n $this->session->set_flashdata(array(\n \"msg\" => - 1,\n \"message\" => lang(\"no_action\")\n ));\n redirect($this->REFERER, \"refresh\");\n }\n $action_groups = null;\n if (isset($_POST[\"check_all\"])) {\n $action_groups = $this->mnumbers->getUserSubGroups($this->USER_ID);\n $action_groups = $action_groups[\"results\"];\n } else {\n $action_groups = (isset($_POST[\"checks\"]) ? $_POST[\"checks\"] : false);\n }\n if ($action_groups != null) {\n foreach ($action_groups as $group) {\n $group1 = (isset($_POST[\"check_all\"]) ? $group->id : $group);\n switch ($_POST[\"action\"]) {\n case \"delete\":\n $this->mnumbers->deleteUserGroup($this->USER_ID, $group1);\n break;\n case \"empty\":\n $this->mnumbers->emptyUserGroup($this->USER_ID, $group1);\n break;\n }\n }\n $this->session->set_flashdata(array(\n \"msg\" => 1\n ));\n redirect($this->REFERER, \"refresh\");\n } else {\n $this->session->set_flashdata(array(\n \"msg\" => - 1,\n \"message\" => lang(\"no_checks\")\n ));\n redirect($this->REFERER, \"refresh\");\n }\n } else {\n $this->load->view(\"site/cp/index\", $data);\n }\n }", "public function dispatch()\n\t{\n\t\t$this->{$this->_action}();\n\t}", "function alterGroup($groupinfo) {\n // make sure user is authorized to do this\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "public function getGroup();", "public function getGroup();", "public function getGroup();", "public function run()\n {\n $this->call(baihat_casi::class);\n $this->call(baihatduyet::class);\n $this->call(users::class);\n $this->call(theloai::class);\n $this->call(casi::class);\n $this->call(baihatmoi::class);\n $this->call(baihathot::class);\n $this->call(baihathot_casi::class);\n }" ]
[ "0.6279432", "0.60648304", "0.5894068", "0.5881696", "0.57050574", "0.5699192", "0.5661836", "0.5652438", "0.5631189", "0.5627984", "0.5624711", "0.55550086", "0.55550086", "0.5480923", "0.5480923", "0.5478278", "0.54616785", "0.54595464", "0.5443479", "0.5439962", "0.5434721", "0.5428278", "0.54190445", "0.5412049", "0.5402358", "0.54021555", "0.54008764", "0.5394952", "0.535888", "0.53542054", "0.5342197", "0.53180635", "0.5303131", "0.52775866", "0.52552575", "0.5252293", "0.52511823", "0.52504003", "0.5241128", "0.52409214", "0.5233104", "0.5233104", "0.5233104", "0.5233104", "0.5228829", "0.5224046", "0.5223179", "0.52120715", "0.520635", "0.51877916", "0.5185874", "0.51749283", "0.51613116", "0.5154539", "0.5141979", "0.51393795", "0.5135524", "0.51333785", "0.5132915", "0.5125323", "0.5106913", "0.51015395", "0.510119", "0.50971305", "0.50933814", "0.5090031", "0.50888264", "0.5086678", "0.5084439", "0.50825495", "0.50728273", "0.50655603", "0.5065324", "0.5063453", "0.5059147", "0.5027941", "0.50274575", "0.50243866", "0.5021627", "0.5021627", "0.5016769", "0.50163233", "0.50086063", "0.50065565", "0.5003905", "0.5002204", "0.49998719", "0.4998904", "0.4991784", "0.4991784", "0.49898547", "0.49894398", "0.49792367", "0.4978609", "0.49766332", "0.49760732", "0.49692643", "0.49600637", "0.49600637", "0.49600637", "0.49553365" ]
0.0
-1
Performs calls on the default group instance.
public static function __callStatic($name, $arguments) { return call_user_func_array(array(static::group(), $name), $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDefaultGroup(string $defaultGroup): void;", "public function testDefaultGroup(){\n jAcl2DbUserGroup::setDefaultGroup(self::$grpId2,false);\n $this->assertTableContainsRecords('jacl2_group', self::$groups);\n jAcl2DbUserGroup::setDefaultGroup(self::$grpId2,true);\n self::$defaultGroupId = self::$grpId2; // for next test method\n self::$groups[1]['grouptype']=1;\n $this->assertTableContainsRecords('jacl2_group', self::$groups);\n }", "public function set_default(): void\n {\n if (!userHasPermission(Permission\\Groups\\SetDefault::class)) {\n show404();\n }\n\n /** @var Uri $oUri */\n $oUri = Factory::service('Uri');\n /** @var Group $oUserGroupModel */\n $oUserGroupModel = Factory::model('UserGroup', Constants::MODULE_SLUG);\n\n if ($oUserGroupModel->setAsDefault($oUri->segment(5))) {\n $this->oUserFeedback->success(\n 'Group set as default successfully.'\n );\n } else {\n $this->oUserFeedback->error(\n 'Failed to set default user group. ' . $oUserGroupModel->lastError()\n );\n }\n\n redirect(self::url());\n }", "public function group()\n {\n $this->doGroup('group', \\func_get_args());\n }", "public function _default()\n {\n $_func_name = $this->_default_func;\n $this->$_func_name();\n }", "public function getDefaultGroup(): string;", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function testAvailableGroupOperations()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testAvailableGroupInstanceOperations()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function __construct() {\n\t\t$this->group = new Group();\n\t}", "function new_groups()\n {\n \n }", "private function _callToDefault()\n {\n foreach (get_class_methods($this) as $method) {\n try {\n $that = new ReflectionMethod($this, $method);\n } catch (ReflectionException $exception) {\n break;\n }\n if (\n $that->isProtected()\n && !array_key_exists($method, $this->query())\n ) {\n $this->{$method}($this->builder);\n }\n }\n }", "public function testCreateGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function currentGroup();", "public abstract function getGroup();", "function MyMod_Data_Group_Defaults_Take(&$group,$defaults=array())\n {\n if (empty($defaults))\n {\n $defaults=$this->MyMod_Data_Groups_Defaults_Defs();\n }\n\n $this->MyHash_AddDefaultKeys($group,$defaults);\n $this->MyMod_Profiles_AddDefaultKeys($group);\n }", "function MyMod_Data_Group_Defaults_Take(&$group,$defaults=array())\n {\n if (empty($defaults))\n {\n $defaults=$this->MyMod_Data_Groups_Defaults_Defs();\n }\n\n $this->MyHash_AddDefaultKeys($group,$defaults);\n $this->MyMod_Profiles_AddDefaultKeys($group);\n }", "function XMLGroupPeer() {\n global $g, $config;\n\n parent::AbstractGroupPeer();\n\n if (isset($config['system']['group'])) {\n $i = 0;\n\n foreach($config['system']['group'] as $groupent) {\n $this->group_index[$groupent['name']] = $i;\n $i++;\n }\n }\n }", "public function __default()\n\t{\n\n\t}", "public function testSetDefaultGroupNonExistingGroup()\n {\n $customerGroupId = 10000;\n $expectedMessage = 'No such entity with %fieldName = %fieldValue';\n $serviceInfo = [\n 'rest' => [\n 'resourcePath' => self::RESOURCE_PATH . \"/default/$customerGroupId\",\n 'httpMethod' => \\Magento\\Framework\\Webapi\\Rest\\Request::HTTP_METHOD_PUT,\n ],\n 'soap' => [\n 'service' => self::SERVICE_NAME,\n 'serviceVersion' => self::SERVICE_VERSION,\n 'operation' => 'customerCustomerGroupConfigV1SetDefaultCustomerGroup',\n ],\n ];\n $requestData = ['id' => $customerGroupId];\n try {\n $this->_webApiCall($serviceInfo, $requestData);\n $this->fail(\"Expected exception\");\n } catch (\\SoapFault $e) {\n $this->assertStringContainsString(\n $expectedMessage,\n $e->getMessage(),\n \"SoapFault does not contain expected message.\"\n );\n } catch (\\Exception $e) {\n $this->assertStringContainsString(\n $expectedMessage,\n $e->getMessage(),\n \"Exception does not contain expected message.\"\n );\n $this->assertStringContainsString((string)$customerGroupId, $e->getMessage());\n }\n }", "public function __construct()\n {\n $this->Service = new GroupService();\n }", "public function testGetGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function refreshGroupSettings()\n {\n $group = $this->currentUser->getGroup();\n if ($group instanceof \\Gems\\User\\Group) {\n $group->applyGroupToModel($this, false);\n }\n }", "public function __invoke() {\n\t\t// Register hooks for the group if part of group\n\t\tif ( null !== $this->group ) {\n\t\t\t$this->group->load( $this->group, $this->page );\n\t\t}\n\n\t\t$this->page->load( $this->page );\n\t}", "public function requireDefaultRecords()\n {\n parent::requireDefaultRecords();\n $this->createDefaultSDLTMemberGroups();\n }", "public function getDefaultGroup()\n {\n return $this->defaultGroup;\n }", "public function getGroup();", "public function getGroup();", "public function getGroup();", "public function run()\n {\n factory(\\Unscode\\Pingo\\Models\\Group::class, 250)->create();\n }", "function __construct($groupName)\n {\n parent::__construct($groupName, NULL);\n }", "public function testUpdateGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function setup_groups() {\n global $CFG;\n\n /// find out current groups mode\n $this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true);\n $this->currentgroup = groups_get_course_group($this->course);\n\n if ($this->currentgroup) {\n $this->groupsql = \" LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id \";\n $this->groupwheresql = \" AND gm.groupid = $this->currentgroup \";\n }\n }", "public function initUserGroups() {}", "public function setGroup($group) {}", "public function run()\n {\n $group = new Group();\n $group->name = 'Group 1';\n $group->save();\n\n $group = new Group();\n $group->name = 'Group 2';\n $group->save();\n\n $group = new Group();\n $group->name = 'Group 3';\n $group->save();\n }", "public function setGroup($group) {}", "public function afterFind()\r\n\t{\r\n\t\t// load the access permissions for the group\r\n\t\t$this->access = UserGroupsAccess::findRules(UserGroupsAccess::GROUP, $this->id);\r\n\t\tparent::afterFind();\r\n\t}", "public function shouldReturnDefaultGroup()\n {\n $groups = array(\n 1 => array(\n 'name' => 'Reiche Schnösel',\n 'score' => '5000',\n 'methods' => array('foo', 'bar')\n ),\n 2 => array(\n 'name' => 'Arme Tropfe',\n 'score' => 'ABCD',\n 'methods' => array('foo')\n )\n );\n $this->config->set('solvency-groups', array(\n 'default-group' => 1,\n 'solvency-groups' => serialize($groups)\n ));\n $this->assertEquals(\n $groups[1]['name'],\n $this->config->getDefaultSolvencyGroup()->getName(),\n 'Default group is not the one we expexted.'\n );\n }", "public function run(): void\n {\n $groups = factory(Group::class, 20)->create();\n $group = $groups->first();\n $user = User::query()->inRandomOrder()->first();\n $server = Server::query()->inRandomOrder()->first();\n\n /** @var \\App\\Models\\Group $group */\n $group->users()->attach($user);\n $group->servers()->attach($server);\n }", "function Initialize () {\n global $gCONTENTGROUPSINFOTAB;\n global $gCONTENTGROUPSTAB;\n global $gCONTENTGROUPSMEMBERSTAB;\n global $gCONTENTGROUPSOPTIONSTAB;\n\n global $zAUTHUSER, $zLOCALUSER, $zOLDAPPLE;\n\n global $gGROUPVIEW, $gGROUPVIEWTYPE, $gGROUPVIEWADMIN; \n global $gPOSTDATA;\n global $gFOCUSUSERNAME;\n global $gSITEDOMAIN;\n global $gSELECTBUTTON;\n global $gSCROLLSTEP, $gSCROLLSTART, $gSCROLLMAX;\n global $gCONTINUEFLAG;\n\n $gCONTENTGROUPSINFOTAB = \"_off\";\n $gCONTENTGROUPSTAB = \"_off\";\n $gCONTENTGROUPSMEMBERSTAB = \"_off\";\n $gCONTENTGROUPSOPTIONSTAB = \"_off\";\n\n $gCONTINUEFLAG = FALSE;\n\n $this->groupContent->Context = $zOLDAPPLE->Context;\n \n $gSCROLLSTEP[$this->groupContent->Context] = 20;\n \n $gGROUPVIEWTYPE = \"GROUPVIEW\";\n\n // Display the select all button by default.\n $gSELECTBUTTON = 'Select All';\n\n // Depracate the view.\n if ($gGROUPVIEWADMIN != \"\") {\n $gGROUPVIEW = $gGROUPVIEWADMIN;\n } // if\n $gGROUPVIEWADMIN = $gGROUPVIEW;\n $gPOSTDATA['GROUPVIEW'] = $gGROUPVIEW;\n\n // Check if user is admin or is viewing their own page.\n if ( ($gFOCUSUSERNAME == $zAUTHUSER->Username) and\n ($gSITEDOMAIN == $zAUTHUSER->Domain) ) {\n $gGROUPVIEWTYPE = \"GROUPVIEWADMIN\";\n } else {\n if ($zLOCALUSER->userAccess->e == TRUE) {\n $gGROUPVIEWTYPE = \"GROUPVIEWADMIN\";\n } // if\n } // if\n\n // Determine which mode we are viewing in, and set flags accordingly.\n $this->Flags ();\n }", "protected function func_default() {}", "function feed_group_defaults($feed_group = NULL) {\r\n $feed_group = (object) $feed_group;\r\n \r\n if (!isset($feed_group->name)) $feed_group->name = '';\r\n if (!isset($feed_group->description)) $feed_group->description = '';\r\n \r\n return $feed_group;\r\n}", "public function run()\n {\n $groups=[\n ['name'=>'普通会员组','is_default'=>true],\n ['name'=>'VIP'],\n ];\n collect($groups)->map(function ($group) {\n Group::create($group);\n });\n }", "function AbstractGroupPeer() {\n }", "function runGroup(Chat $chat, TelegramMessage $message)\n {\n }", "public function getGroup()\n {\n $this->getParam('group');\n }", "public function main() {\n\n\t\t$this->out('Group Shell');\n\t\t$this->hr();\n\t\t$this->out('[C]reate a group');\n\t\t$this->out('[Q]uit');\n\n\t\t$classToBake = strtoupper($this->in('What would you like to do?', array('C', 'Q')));\n\t\tswitch ($classToBake) {\n\t\t\tcase 'C':\n\t\t\t\t$this->hr();\n\t\t\t\t$this->create();\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\t\texit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->out('You have made an invalid selection. Please choose an action from the list.');\n\t\t}\n\t\t$this->hr();\n\t\t$this->main();\n\t}", "public function getUsergroup() {}", "public function setDefaultGroup($group)\n {\n if (!isset($this->_groups[$group])) {\n throw new Exception\\InvalidArgumentException(\"There is no group with the name '$group'.\");\n }\n\n $this->_defaultGroup = $group;\n\n return $this;\n }", "function init_groups() {\r\n\tif (!HYPEGALLERY_GROUP_ALBUMS) {\r\n\t\treturn;\r\n\t}\r\n\tadd_group_tool_option('albums', elgg_echo('gallery:groupoption:enable'), true);\r\n\telgg_extend_view('groups/tool_latest', 'framework/gallery/group_module');\r\n}", "public function loadDefaultDecorators() {\n\t\t$this->setDecorators($this->_d->default);\n\n\t\t$this->addDisplayGroup(array('username', 'screenname'), 'logingrp', array('legend' => 'Presence'));\n\t\t$this->logingrp->setDecorators($this->_d->group);\n\n\t\t$this->addSubForms(array('Members' => new Form_Members()));\n\n\t\t$this->addDisplayGroup(array('password', 'confirmpassword', 'group_id', 'active'), 'admingrp', array('legend' => 'Credentials'));\n\t\t$this->admingrp->setDecorators($this->_d->group);\n\n\t\t$this->addDisplayGroup(array('authenticatepassword'), 'authenticategrp', array('legend' => 'Authenticate Changes'));\n\t\t$this->authenticategrp->setDecorators($this->_d->group);\n\n\t\t$this->addDisplayGroup(array('reset', 'save'), 'savegrp');\n\t\t$this->savegrp->setDecorators($this->_d->savegroup);\n\t}", "function &getGroup($name)\n {\n return PEAR::raiseError(_(\"Unsupported\"));\n }", "public function getGroup(): GroupInterface;", "function MyMod_Data_Groups_Defaults_Take(&$groups)\n {\n $defaults=$this->MyMod_Data_Groups_Defaults_Defs();\n foreach (array_keys($groups) as $data)\n {\n $this->MyMod_Data_Group_Defaults_Take($groups[ $data ],$defaults);\n }\n }", "function MyMod_Data_Groups_Defaults_Take(&$groups)\n {\n $defaults=$this->MyMod_Data_Groups_Defaults_Defs();\n foreach (array_keys($groups) as $data)\n {\n $this->MyMod_Data_Group_Defaults_Take($groups[ $data ],$defaults);\n }\n }", "public function postProcess(): void {\n $groupsToAddTo = (array) $this->getSubmittedValue('groups');\n $summaryInfo = ['groups' => [], 'tags' => []];\n foreach ($groupsToAddTo as $groupID) {\n // This is a convenience for now - really url & name should be determined at\n // presentation stage - ie the summary screen. The only info we are really\n // preserving is which groups were created vs already existed.\n $summaryInfo['groups'][$groupID] = [\n 'url' => CRM_Utils_System::url('civicrm/group/search', 'reset=1&force=1&context=smog&gid=' . $groupID),\n 'name' => Group::get(FALSE)\n ->addWhere('id', '=', $groupID)\n ->addSelect('name')\n ->execute()\n ->first()['name'],\n 'new' => FALSE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n\n if ($this->getSubmittedValue('newGroupName')) {\n /* Create a new group */\n $groupsToAddTo[] = $groupID = Group::create(FALSE)->setValues([\n 'title' => $this->getSubmittedValue('newGroupName'),\n 'description' => $this->getSubmittedValue('newGroupDesc'),\n 'group_type' => $this->getSubmittedValue('newGroupType') ?? [],\n 'is_active' => TRUE,\n ])->execute()->first()['id'];\n $summaryInfo['groups'][$groupID] = [\n 'url' => CRM_Utils_System::url('civicrm/group/search', 'reset=1&force=1&context=smog&gid=' . $groupID),\n 'name' => $this->getSubmittedValue('newGroupName'),\n 'new' => TRUE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n $tagsToAdd = (array) $this->getSubmittedValue('tag');\n foreach ($tagsToAdd as $tagID) {\n // This is a convenience for now - really url & name should be determined at\n // presentation stage - ie the summary screen. The only info we are really\n // preserving is which tags were created vs already existed.\n $summaryInfo['tags'][$tagID] = [\n 'url' => CRM_Utils_System::url('civicrm/contact/search', 'reset=1&force=1&context=smog&id=' . $tagID),\n 'name' => Tag::get(FALSE)\n ->addWhere('id', '=', $tagID)\n ->addSelect('name')\n ->execute()\n ->first()['name'],\n 'new' => TRUE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n if ($this->getSubmittedValue('newTagName')) {\n $tagsToAdd[] = $tagID = Tag::create(FALSE)->setValues([\n 'name' => $this->getSubmittedValue('newTagName'),\n 'description' => $this->getSubmittedValue('newTagDesc'),\n 'is_selectable' => TRUE,\n 'used_for' => 'civicrm_contact',\n //NYSS new tags during import should be imported as keywords\n 'parent_id'\t=> 296,\n ])->execute()->first()['id'];\n $summaryInfo['tags'][$tagID] = [\n 'url' => CRM_Utils_System::url('civicrm/contact/search', 'reset=1&force=1&context=smog&id=' . $tagID),\n 'name' => $this->getSubmittedValue('newTagName'),\n 'new' => FALSE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n // Store the actions to take on each row & the data to present at the end to the userJob.\n $this->updateUserJobMetadata('post_actions', [\n 'group' => $groupsToAddTo,\n 'tag' => $tagsToAdd,\n ]);\n $this->updateUserJobMetadata('summary_info', $summaryInfo);\n\n // If ACL applies to the current user, update cache before running the import.\n if (!CRM_Core_Permission::check('view all contacts')) {\n $userID = CRM_Core_Session::getLoggedInContactID();\n CRM_ACL_BAO_Cache::deleteEntry($userID);\n CRM_ACL_BAO_Cache::deleteContactCacheEntry($userID);\n }\n\n $this->runTheImport();\n }", "public function postGroup()\n {\n $group = $this->em->newEntity( 'friends\\model\\Group' );\n $loadable = $this->role->applyLoadable( $group );\n $loadable->loadData();\n if( $loadable->validate() )\n {\n $active = $this->role->applyActive( $group );\n $active->save();\n $jump = $this->view->get( 'appUrl' ) . 'group';\n header( 'Location: ' . $jump );\n exit;\n }\n return $this->getGroup();\n }", "function getGroup() ;", "public function group($group);", "public function SetGroup($group,$value){\n if($this->_groups[$group][\"currentGroup\"]!=$value){\n if($this->_groups[$group][\"currentGroup\"]!=\"?\"){\n if(isset($this->_groups[$group][\"afterGroup\"])){\n $this->Ln(4);\n $function = array($this->_groups[$group][\"afterGroup\"][\"class\"],$this->_groups[$group][\"afterGroup\"][\"callback\"]);\n $params = array($this,$value);\n call_user_func_array($function,$params);\n }\n $this->Sum();\n }\n if(isset($this->_groups[$group][\"beforeGroup\"])){\n if(($this->GetY() + 22) > ($this->h - 10)){ //22 Altura de una cabecera de grupo\n $this->_changePage = false;\n $this->AddPage();\n }\n $this->Ln(6);\n $this->SetTextColor(100);\n $this->SetFont('Arial','B',11);\n $function = array($this->_groups[$group][\"beforeGroup\"][\"class\"],$this->_groups[$group][\"beforeGroup\"][\"callback\"]);\n $params = array($this,$value);\n $this->_groups[$group][\"currentMsg\"] = call_user_func_array($function,$params);\n $this->Ln(4);\n }\n $this->_groups[$group][\"currentGroup\"] = $value;\n $this->pages[$this->PageNo()] = str_replace(\"{grp_$group}\",$this->_groups[$group][\"currentMsg\"],$this->pages[$this->PageNo()]);\n $this->__Header();\n $this->_changePage = false;\n $this->SumRe();\n }else{\n $this->_changePage = true;\n }\n }", "public function run()\n\t{\n\t\tDB::table('groups')->delete();\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Users',\n\t 'permissions' => array(\n\t 'admin' => 0,\n\t 'users' => 1,\n\t )));\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Admins',\n\t 'permissions' => array(\n\t 'admin' => 1,\n\t 'users' => 1,\n\t )));\n\t}", "public function createDefaultSDLTMemberGroups()\n {\n $cisoGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_CISO);\n\n if (!($cisoGroup && $cisoGroup->ID)) {\n $cisoGroup = Group::create();\n $cisoGroup->Title = 'NZTA-SDLT-CISO';\n $cisoGroup->Code = UserGroupConstant::GROUP_CODE_CISO;\n $cisoGroup->write();\n }\n\n $saGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_SA);\n\n if (!($saGroup && $saGroup->ID)) {\n $saGroup = Group::create();\n $saGroup->Title = 'NZTA-SDLT-SecurityArchitect';\n $saGroup->Code = UserGroupConstant::GROUP_CODE_SA;\n $saGroup->write();\n }\n\n $usersGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_USER);\n\n if (!($usersGroup && $usersGroup->ID)) {\n $usersGroup = Group::create();\n $usersGroup->Title = 'NZTA-SDLT-Users';\n $usersGroup->Code = UserGroupConstant::GROUP_CODE_USER;\n $usersGroup->write();\n }\n }", "public function getGroups($withDefault = false)\n {\n throw new \\Exception('Method not implemented');\n }", "function __construct()\n {\n // load model\n Load::loadModel(\"group\");\n }", "public function defineGroup(?RouteGroups $group = null): void\n {\n $this->currentGroup = $group;\n }", "public function requireDefaultRecords() {\n //calls before the main requireDefaultRecords and trying to\n //call parent ends in a loop\n //Call requireDefaultRecords in extend - this should set the static\n $this->extend('requireDefaultRecords');\n parent::requireDefaultRecords();\n }", "private function __construct() {\n\n\t\t// Load plugin text domain\n\t\tadd_action( 'init', array( $this, 'load_plugin_textdomain' ) );\n\n\t\t// Add a meta box to the group's \"admin>settings\" tab.\n\t\t// We're also using BP_Group_Extension's admin_screen method to add this meta box to the WP-admin group edit\n\t\tadd_filter( 'groups_custom_group_fields_editable', array( $this, 'meta_form_markup' ) );\n\t\t// Catch the saving of the meta form, fired when create>settings pane is saved or admin>settings is saved\n\t\tadd_action( 'groups_group_details_edited', array( $this, 'meta_form_save') );\n\t\tadd_action( 'groups_created_group', array( $this, 'meta_form_save' ) );\n\t}", "public function getSubgroup() {}", "function mGROUP(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$GROUP;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:166:3: ( 'group' ) \n // Tokenizer11.g:167:3: 'group' \n {\n $this->matchString(\"group\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function testCreateGroupMember()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function doDefaults() {\n\n xlog(\"doDefaults()\");\n\n $category = get_category_by_slug(FORUM_CATEGORY_SLUG);\n\n if ( ! $category ) { // category of xforum exists?\n\n if ( ! function_exists('wp_insert_category') ) require_once(ABSPATH . \"/wp-admin/includes/taxonomy.php\");\n\n $catarr = array(\n 'cat_name' => __('XForum', 'xforum'),\n 'category_description' => __(\"This is XForum.\", 'xforum'),\n 'category_nicename' => FORUM_CATEGORY_SLUG,\n );\n $ID = wp_insert_category($catarr, true);\n if ( is_wp_error($ID) ) wp_die( $ID->get_error_message() );\n\n $catarr = array(\n 'cat_name' => __('Welcome', 'xforum'),\n 'category_description' => __(\"This is Welcome forum. It is created on the first run of xforum.\", 'xforum'),\n 'category_nicename' => 'welcome-' . date('his'), // @note When or for some reason, when k-forum and its category was deleted, it must create a new slug. ( guess this is because the permalink or route is already registered. )\n 'category_parent' => $ID,\n );\n $ID = wp_insert_category($catarr, true);\n if (is_wp_error($ID)) wp_die($ID->get_error_message());\n }\n\n return $this;\n }", "public function groups();", "public function groups();", "function MyMod_Data_Group_Actual_Get()\n {\n $this->PostInitItems();\n\n if (!empty($this->CurrentDataGroup))\n {\n $group=$this->CurrentDataGroup;\n }\n else\n {\n $group=$this->GetCGIVarValue($this->GroupDataCGIVar());\n }\n\n $groups=$this->MyMod_Data_Group_Defs_Get();\n if (!preg_grep('/^'.$group.'$/',array_keys($groups)))\n {\n $group=\"\";\n }\n\n if (\n empty($group)\n ||\n !$this->MyMod_Item_Group_Allowed($groups[ $group ])\n )\n {\n //No group found (or group found was not allowed)\n //Localize first allowed data group\n foreach ($groups as $rgroup => $groupdef)\n {\n if ($this->MyMod_Item_Group_Allowed($groups[ $rgroup ]))\n {\n $group=$rgroup;\n break;\n }\n }\n }\n\n return $group;\n }", "public function fetchGroupData() {}", "public function fetchGroupData() {}", "public function init_group_options() {\r\n\t\tif ( ! empty( $this->settings['options'] ) ) {\r\n\r\n\t\t\tif ( is_array( $this->settings['options'] ) ) {\r\n\r\n\t\t\t\tforeach ( $this->settings['options'] as $settings ) {\r\n\r\n\t\t\t\t\tif ( ! apply_filters( 'tf_create_option_continue_' . $this->getOptionNamespace(), true, $settings ) ) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$obj = TitanFrameworkOption::factory( $settings, $this->owner );\r\n\t\t\t\t\t$this->options[] = $obj;\r\n\r\n\t\t\t\t\tdo_action( 'tf_create_option_' . $this->getOptionNamespace(), $obj );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function findGroups() {\n\t\t\n\t}", "function CBGroups() {\n global $Cbucket;\n $this->cat_tbl = 'group_categories';\n $this->gp_tbl = 'groups';\n $this->gp_mem_tbl = 'group_members';\n //We will using CB Commenting system as posts\n //$this->gp_post_tbl = 'group_posts';\n $this->gp_topic_tbl = 'group_topics';\n $this->gp_invite_tbl = 'group_invitations';\n $this->gp_vdo_tbl = 'group_videos';\n\n //Adding Actions such Report, share,fav etc\n $this->action = new cbactions();\n $this->action->type = 'g';\n $this->action->name = 'group';\n $this->action->obj_class = 'cbgroup';\n $this->action->check_func = 'group_exists';\n $this->action->type_tbl = $this->gp_tbl;\n $this->action->type_id_field = 'group_id';\n \n \n if (isSectionEnabled('groups'))\n $Cbucket->search_types['groups'] = \"cbgroup\";\n \n }", "public function setOn(\\SetaPDF_Core_Document_OptionalContent_Group $group) {}", "public function resolveDefaultOwner()\n {\n return Group::factory()->create([\n 'name' => 'default-group-owner',\n ]);\n }", "public static function reset() {\n\t\t// Tell the router to generate a new top level group\n\t\tstatic::getRouter()->resetMainGroup();\n\t}", "private function doGroup($method, $args)\n {\n $meta = $this->internal->getMetaVals(\n $args,\n array('channel' => $this->cfg['channelName'])\n );\n $this->rootInstance->groupStackRef[] = array(\n 'channel' => $meta['channel'],\n 'collect' => $this->cfg['collect'],\n );\n if (!$this->cfg['collect']) {\n return;\n }\n if (empty($args)) {\n // give a default label\n $caller = $this->utilities->getCallerInfo();\n if (isset($caller['class'])) {\n $args[] = $caller['class'].$caller['type'].$caller['function'];\n $meta['isMethodName'] = true;\n } elseif (isset($caller['function'])) {\n $args[] = $caller['function'];\n } else {\n $args[] = 'group';\n }\n }\n $this->appendLog($method, $args, $meta);\n }", "public static function bootAbleGroupTrait()\n {\n $flushCache = function ($group) {\n $group->flushCache();\n return true;\n };\n\n // If the group doesn't use SoftDeletes\n if (method_exists(Config::get('able.group'), 'restored')) {\n static::restored($flushCache);\n }\n\n static::deleted($flushCache);\n static::saved($flushCache);\n\n static::deleting(function ($group) {\n if (!method_exists(Config::get('able.group'), 'bootSoftDeletes')) {\n $group->roles()->sync([]);\n $group->users()->sync([]);\n }\n });\n }", "public function switchGroup($group);", "public function actionDefault($abbr = self::ROOT_GROUP) {\n\t$sg = null;\n\ttry {\n\t if (is_string($abbr))\n\t\t$sg = $this->sportGroupService->getSportGroupAbbr($abbr);\n\t elseif (is_numeric($abbr))\n\t\t$sg = $this->sportGroupService->getSportGroup($abbr);\n\t $wps = $this->wallService->getWallPosts($sg, false, WallPostStatus::PUBLISHED);\n\t $this->template->wallPosts = $wps;\n\t} catch (Exceptions\\DataErrorException $ex) {\n\t $this->handledataLoad($abbr, \"default\", $ex);\n\t}\n\t$type = $sg->getSportType();\n\tif ($type !== null) \n\t $type = \" ({$type->getName()})\";\n\telse \n\t $type = \"\";\n\t$this->template->groupLabel = $sg->getName().$type;\n\t$this->template->abbr = $sg->getAbbr();\n\t$this->template->group = $sg;\n }", "function mycred_load_buddypress_groups_hook() {\n\tif ( class_exists( 'myCRED_BuddyPress_Groups' ) || ! class_exists( 'BuddyPress' ) ) return;\n\n\tclass myCRED_BuddyPress_Groups extends myCRED_Hook {\n\n\t\t/**\n\t\t * Construct\n\t\t */\n\t\tfunction __construct( $hook_prefs, $type = MYCRED_DEFAULT_TYPE_KEY ) {\n\n\t\t\tparent::__construct( array(\n\t\t\t\t'id' => 'hook_bp_groups',\n\t\t\t\t'defaults' => array(\n\t\t\t\t\t'create' => array(\n\t\t\t\t\t\t'creds' => 10,\n\t\t\t\t\t\t'log' => '%plural% for creating a new group',\n\t\t\t\t\t\t'min' => 0\n\t\t\t\t\t),\n\t\t\t\t\t'delete' => array(\n\t\t\t\t\t\t'creds' => '-10',\n\t\t\t\t\t\t'log' => '%singular% deduction for deleting a group'\n\t\t\t\t\t),\n\t\t\t\t\t'new_topic' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group topic',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'edit_topic' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for updating group topic',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'new_post' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group post',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'edit_post' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for updating group post',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'join' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for joining new group',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'leave' => array(\n\t\t\t\t\t\t'creds' => '-5',\n\t\t\t\t\t\t'log' => '%singular% deduction for leaving group'\n\t\t\t\t\t),\n\t\t\t\t\t'avatar' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group avatar',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'cover' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new cover photo',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'comments' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group comment',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t), $hook_prefs, $type );\n\n\t\t}\n\n\t\t/**\n\t\t * Run\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function run() {\n\n\t\t\tif ( $this->prefs['create']['creds'] != 0 && $this->prefs['create']['min'] == 0 )\n\t\t\t\tadd_action( 'groups_group_create_complete', array( $this, 'create_group' ) );\n\n\t\t\tif ( $this->prefs['create']['creds'] < 0 )\n\t\t\t\tadd_filter( 'bp_user_can_create_groups', array( $this, 'restrict_group_creation' ), 99, 2 );\n\n\t\t\tif ( $this->prefs['delete']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_group_deleted', array( $this, 'delete_group' ) );\n\n\t\t\tif ( $this->prefs['new_topic']['creds'] != 0 )\n\t\t\t\tadd_action( 'bp_forums_new_topic', array( $this, 'new_topic' ) );\n\n\t\t\tif ( $this->prefs['edit_topic']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_edit_forum_topic', array( $this, 'edit_topic' ) );\n\n\t\t\tif ( $this->prefs['new_post']['creds'] != 0 )\n\t\t\t\tadd_action( 'bp_forums_new_post', array( $this, 'new_post' ) );\n\n\t\t\tif ( $this->prefs['edit_post']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_edit_forum_post', array( $this, 'edit_post' ) );\n\n\t\t\tif ( $this->prefs['join']['creds'] != 0 || ( $this->prefs['create']['creds'] != 0 && $this->prefs['create']['min'] != 0 ) )\n\t\t\t\tadd_action( 'groups_join_group', array( $this, 'join_group' ), 20, 2 );\n\n\t\t\tif ( $this->prefs['join']['creds'] < 0 )\n\t\t\t\tadd_filter( 'bp_get_group_join_button', array( $this, 'restrict_joining_group' ) );\n\n\t\t\tif ( $this->prefs['leave']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_leave_group', array( $this, 'leave_group' ), 20, 2 );\n\n\t\t\tif ( $this->prefs['avatar']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_screen_group_admin_avatar', array( $this, 'avatar_upload_group' ) );\n\n\t\t\tif ( $this->prefs['cover']['creds'] != 0 )\n\t\t\t\tadd_action( 'group_cover_image_uploaded', array( $this, 'cover_change' ) );\n\n\t\t\tif ( $this->prefs['comments']['creds'] != 0 )\n\t\t\t\tadd_action( 'bp_groups_posted_update', array( $this, 'new_group_comment' ), 20, 4 );\n\n\t\t}\n\n\t\t/**\n\t\t * Creating Group\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function create_group( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'creation_of_new_group',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['create']['creds'],\n\t\t\t\t$this->prefs['create']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Restrict Group Creation\n\t\t * If creating a group costs and the user does not have enough points, we restrict creations.\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function restrict_group_creation( $can_create, $restricted ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return $can_create;\n\n\t\t\t// Check if user has enough to create a group\n\t\t\t$cost = abs( $this->prefs['create']['creds'] );\n\t\t\t$balance = $this->core->get_users_balance( $bp->loggedin_user->id, $this->mycred_type );\n\t\t\tif ( $cost > $balance ) return false;\n\n\t\t\treturn $can_create;\n\n\t\t}\n\n\t\t/**\n\t\t * Restrict Group Join\n\t\t * If joining a group costs and the user does not have enough points, we restrict joining of groups.\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function restrict_joining_group( $button ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return $button;\n\n\t\t\t// Check if user has enough to join group\n\t\t\t$cost = abs( $this->prefs['join']['creds'] );\n\t\t\t$balance = $this->core->get_users_balance( $bp->loggedin_user->id, $this->mycred_type );\n\t\t\tif ( $cost > $balance ) return false;\n\n\t\t\treturn $button;\n\n\t\t}\n\n\t\t/**\n\t\t * Deleting Group\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function delete_group( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// If admin is removing deduct from creator\n\t\t\tif ( $bp->loggedin_user->is_super_admin )\n\t\t\t\t$user_id = $bp->groups->current_group->creator_id;\n\n\t\t\t// Else if admin but not the creator is removing\n\t\t\telseif ( $bp->loggedin_user->id != $bp->groups->current_group->creator_id )\n\t\t\t\t$user_id = $bp->groups->current_group->creator_id;\n\n\t\t\t// Else deduct from current user\n\t\t\telse\n\t\t\t\t$user_id = $bp->loggedin_user->id;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'deletion_of_group',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['delete']['creds'],\n\t\t\t\t$this->prefs['delete']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * New Group Forum Topic\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function new_topic( $topic_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'new_topic', 'new_group_forum_topic' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'new_group_forum_topic', $topic_id, $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'new_group_forum_topic',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['new_topic']['creds'],\n\t\t\t\t$this->prefs['new_topic']['log'],\n\t\t\t\t$topic_id,\n\t\t\t\t'bp_ftopic',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Edit Group Forum Topic\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function edit_topic( $topic_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'edit_topic', 'edit_group_forum_topic' ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'edit_group_forum_topic',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['edit_topic']['creds'],\n\t\t\t\t$this->prefs['edit_topic']['log'],\n\t\t\t\t$topic_id,\n\t\t\t\t'bp_ftopic',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * New Group Forum Post\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function new_post( $post_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'new_post', 'new_group_forum_post' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'new_group_forum_post', $post_id, $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'new_group_forum_post',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['new_post']['creds'],\n\t\t\t\t$this->prefs['new_post']['log'],\n\t\t\t\t$post_id,\n\t\t\t\t'bp_fpost',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Edit Group Forum Post\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function edit_post( $post_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'edit_post', 'edit_group_forum_post' ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'edit_group_forum_post',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['edit_post']['creds'],\n\t\t\t\t$this->prefs['edit_post']['log'],\n\t\t\t\t$post_id,\n\t\t\t\t'bp_fpost',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Joining Group\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function join_group( $group_id, $user_id ) {\n\n\t\t\t// Minimum members limit\n\t\t\tif ( $this->prefs['create']['min'] != 0 ) {\n\t\t\t\t$group = groups_get_group( array( 'group_id' => $group_id ) );\n\n\t\t\t\t// Award creator if we have reached the minimum number of members and we have not yet been awarded\n\t\t\t\tif ( $group->total_member_count >= (int) $this->prefs['create']['min'] && ! $this->core->has_entry( 'creation_of_new_group', $group_id, $group->creator_id ) )\n\t\t\t\t\t$this->core->add_creds(\n\t\t\t\t\t\t'creation_of_new_group',\n\t\t\t\t\t\t$group->creator_id,\n\t\t\t\t\t\t$this->prefs['create']['creds'],\n\t\t\t\t\t\t$this->prefs['create']['log'],\n\t\t\t\t\t\t$group_id,\n\t\t\t\t\t\t'bp_group',\n\t\t\t\t\t\t$this->mycred_type\n\t\t\t\t\t);\n\n\t\t\t\t// Clean up\n\t\t\t\tunset( $group );\n\n\t\t\t}\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'join', 'joining_group' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'joining_group', $group_id, $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'joining_group',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['join']['creds'],\n\t\t\t\t$this->prefs['join']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Leaving Group\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function leave_group( $group_id, $user_id ) {\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'leaving_group', $group_id, $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'leaving_group',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['leave']['creds'],\n\t\t\t\t$this->prefs['leave']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Avatar Upload for Group\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function avatar_upload_group( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'avatar', 'upload_group_avatar' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'upload_group_avatar', $group_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'upload_group_avatar',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['avatar']['creds'],\n\t\t\t\t$this->prefs['avatar']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Group Cover Upload\n\t\t * @since 1.7\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function cover_change( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user is excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'cover', 'upload_group_cover', $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'upload_group_cover',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['cover']['creds'],\n\t\t\t\t$this->prefs['cover']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * New Group Comment\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function new_group_comment( $content, $user_id, $group_id, $activity_id ) {\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'comments', 'new_group_comment', $user_id ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'new_group_comment', $activity_id, $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'new_group_comment',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['comments']['creds'],\n\t\t\t\t$this->prefs['comments']['log'],\n\t\t\t\t$activity_id,\n\t\t\t\t'bp_activity',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Preferences\n\t\t * @since 0.1\n\t\t * @version 1.3\n\t\t */\n\t\tpublic function preferences() {\n\n\t\t\t$prefs = $this->prefs;\n\n?>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Group Creation', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-3 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'create', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'create', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'create', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['create']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->core->template_tags_general( __( 'If you use a negative value and the user does not have enough %_plural%, the \"Create Group\" button will be disabled.', 'twodayssss' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-3 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'create', 'min' ) ); ?>\"><?php _e( 'No. of Members', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'create', 'min' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'create', 'min' ) ); ?>\" value=\"<?php echo esc_attr( $prefs['create']['min'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->core->template_tags_general( __( 'The number of members a group must gain before awarding %_plural%. Use zero to award as soon as the group is created.', 'twodayssss' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'create', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'create', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'create', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['create']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Group Deletions', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'delete', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'delete', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'delete', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['delete']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-8 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'delete', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'delete', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'delete', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['delete']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Group Avatar Upload', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'avatar', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'avatar', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'avatar', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['avatar']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'avatar', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'avatar', 'limit' ) ), $this->field_id( array( 'avatar', 'limit' ) ), $prefs['avatar']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'avatar', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'avatar', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'avatar', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['avatar']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Group Cover Upload', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'cover', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'cover', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'cover', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['cover']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'cover', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'cover', 'limit' ) ), $this->field_id( array( 'cover', 'limit' ) ), $prefs['cover']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'cover', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'cover', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'cover', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['cover']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Forum Topics', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_topic', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_topic', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_topic', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['new_topic']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_topic', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'new_topic', 'limit' ) ), $this->field_id( array( 'new_topic', 'limit' ) ), $prefs['new_topic']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_topic', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_topic', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_topic', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['new_topic']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Editing Forum Topics', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_topic', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_topic', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_topic', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['edit_topic']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_topic', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'edit_topic', 'limit' ) ), $this->field_id( array( 'edit_topic', 'limit' ) ), $prefs['edit_topic']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_topic', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_topic', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_topic', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['edit_topic']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Forum Posts', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_post', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_post', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_post', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['new_post']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_post', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'new_post', 'limit' ) ), $this->field_id( array( 'new_post', 'limit' ) ), $prefs['new_post']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_post', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_post', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_post', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['new_post']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Editing Forum Posts', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_post', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_post', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_post', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['edit_post']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_post', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'edit_post', 'limit' ) ), $this->field_id( array( 'edit_post', 'limit' ) ), $prefs['edit_post']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_post', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_post', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_post', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['edit_post']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Joining Groups', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'join', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'join', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'join', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['join']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'join', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'join', 'limit' ) ), $this->field_id( array( 'join', 'limit' ) ), $prefs['join']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'join', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'join', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'join', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['join']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Leaving Groups', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'leave', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'leave', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'leave', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['leave']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-8 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'leave', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'leave', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'leave', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['leave']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Group Comments', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'comments', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'comments', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'comments', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['comments']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'comments', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'comments', 'limit' ) ), $this->field_id( array( 'comments', 'limit' ) ), $prefs['comments']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'comments', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'comments', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'comments', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['comments']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<?php\n\n\t\t}\n\n\t\t/**\n\t\t * Sanitise Preferences\n\t\t * @since 1.6\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function sanitise_preferences( $data ) {\n\n\t\t\tif ( isset( $data['new_topic']['limit'] ) && isset( $data['new_topic']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['new_topic']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['new_topic']['limit'] = $limit . '/' . $data['new_topic']['limit_by'];\n\t\t\t\tunset( $data['new_topic']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['edit_topic']['limit'] ) && isset( $data['edit_topic']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['edit_topic']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['edit_topic']['limit'] = $limit . '/' . $data['edit_topic']['limit_by'];\n\t\t\t\tunset( $data['edit_topic']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['new_post']['limit'] ) && isset( $data['new_post']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['new_post']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['new_post']['limit'] = $limit . '/' . $data['new_post']['limit_by'];\n\t\t\t\tunset( $data['new_post']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['edit_post']['limit'] ) && isset( $data['edit_post']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['edit_post']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['edit_post']['limit'] = $limit . '/' . $data['edit_post']['limit_by'];\n\t\t\t\tunset( $data['edit_post']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['join']['limit'] ) && isset( $data['join']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['join']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['join']['limit'] = $limit . '/' . $data['join']['limit_by'];\n\t\t\t\tunset( $data['join']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['avatar']['limit'] ) && isset( $data['avatar']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['avatar']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['avatar']['limit'] = $limit . '/' . $data['avatar']['limit_by'];\n\t\t\t\tunset( $data['avatar']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['cover']['limit'] ) && isset( $data['cover']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['cover']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['cover']['limit'] = $limit . '/' . $data['cover']['limit_by'];\n\t\t\t\tunset( $data['cover']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['comments']['limit'] ) && isset( $data['comments']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['comments']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['comments']['limit'] = $limit . '/' . $data['comments']['limit_by'];\n\t\t\t\tunset( $data['comments']['limit_by'] );\n\t\t\t}\n\n\t\t\treturn $data;\n\n\t\t}\n\n\t}\n\n}", "function startGroup(&$group, $required, $error)\n {\n parent::startGroup($group, $required, $error);\n $this->_groupElementIdx = 1;\n }", "public function __invoke()\n {\n return static::defines('__default', true);\n }", "public function loadDefaultDecorators() {\n\t\t$this->setDecorators($this->_d->default);\n\n\t\t$this->addDisplayGroup(array('username', 'screenname'), 'logingrp', array('legend' => 'Presence'));\n\t\t$this->logingrp->setDecorators($this->_d->group);\n\n\t\t$this->addSubForms(array('Members' => new Form_Members()));\n\n\t\t$this->Members->removeElement('phone1');\n\t\t$this->Members->removeElement('phone2');\n\t\t$this->Members->removeElement('city');\n\t\t$this->Members->removeElement('state');\n\t\t$this->Members->removeElement('zipcode');\n\t\t$this->Members->removeDisplayGroup('locationgrp');\n\n\n\t\t$this->addDisplayGroup(array('password', 'confirmpassword'), 'admingrp', array('legend' => 'Credentials'));\n\t\t$this->admingrp->setDecorators($this->_d->group);\n\n\t\t$this->addDisplayGroup(array('reset', 'save'), 'savegrp');\n\t\t$this->savegrp->setDecorators($this->_d->savegroup);\n\t}", "public function addGroup($group) {}", "function initGroups() {\n $groups = array(0 => array('alias' => 'members',\n 'model' => 'Group',\n 'foreign_key' => 1),\n 1 => array('alias' => 'moderators',\n 'model' => 'Group',\n 'foreign_key' => 2),\n 2 => array('alias' => 'administrators',\n 'model' => 'Group',\n 'foreign_key' => 3));\n\n foreach ($groups as $data) {\n $this->Acl->Aro->create();\n $this->Acl->Aro->save($data);\n }\n }", "protected function setGroup() {\r\n //var_dump($this->sql);\r\n if( $this->sqlGroupBy ) {\r\n var_dump($this->sql);\r\n $this->sql .= ' GROUP BY ' . $this->sqlGroupBy;\r\n }\r\n //var_dump($this->sql);\r\n }", "function system_add_group($paramv)\n{\n}", "function getGroups() {\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "public function run()\n\t{\n\t\tDB::table('groups')->delete();\n\t\t// creating super user\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'SuperUser',\n\t 'permissions' => array(\n\t 'superuser' => 1\n\t )));\n\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Branch-Admin',\n\t 'permissions' => array(\n\t 'associate-view' => 1,\n\t 'associate-edit' => 1,\n\t 'associate-delete' => 1,\n\t 'associate-create' => 1,\n\t 'policy-view' => 1,\n\t 'policy-edit' => 1,\n\t 'policy-delete' => 1,\n\t 'policy-create' => 1,\n\t \t'user-view' => 1,\n\t 'user-edit' => 1,\n\t 'user-delete' => 1,\n\t 'user-create' => 1,\n\t 'rank-view' => 1,\n\t 'rank-edit' => 0,\n\t 'rank-delete' => 0,\n\t 'rank-create' => 0,\n\n\t )));\n\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Branch-User',\n\t 'permissions' => array(\n\t 'associate-view' => 1,\n\t 'associate-edit' => 0,\n\t 'associate-delete' => 0,\n\t 'associate-create' => 1,\n\t 'policy-view' => 1,\n\t 'policy-edit' => 0,\n\t 'policy-delete' => 0,\n\t 'policy-create' => 1,\n\t \t'user-view' => 1,\n\t 'user-edit' => 0,\n\t 'user-delete' => 0,\n\t 'user-create' => 0,\n\t 'rank-view' => 1,\n\t 'rank-edit' => 0,\n\t 'rank-delete' => 0,\n\t 'rank-create' => 0,\n\t )));\n\n\t}", "function groupmessageboard_init() {\n\n\telgg_extend_view('groups/tool_latest','gmessageboard/group_module',1);\n}" ]
[ "0.7031358", "0.6569604", "0.6492654", "0.6436362", "0.6154351", "0.6076715", "0.59255177", "0.59255177", "0.59255177", "0.59255177", "0.5907155", "0.5897748", "0.58780956", "0.581674", "0.58102876", "0.5773291", "0.572521", "0.56995326", "0.5692153", "0.5692153", "0.5688137", "0.56652254", "0.56516373", "0.56265914", "0.5618162", "0.55800754", "0.55623525", "0.5556076", "0.552249", "0.551979", "0.551979", "0.551979", "0.5487148", "0.5486855", "0.54810715", "0.5455573", "0.5454494", "0.54376554", "0.5436504", "0.5435809", "0.54345644", "0.54139394", "0.5389912", "0.5384784", "0.5384421", "0.53828126", "0.53741133", "0.53721976", "0.5365676", "0.5357006", "0.5335391", "0.5332748", "0.53305745", "0.5326158", "0.5323923", "0.5323201", "0.5316249", "0.5316179", "0.5316179", "0.5315233", "0.5311235", "0.5311081", "0.53096753", "0.5284365", "0.5264885", "0.52634853", "0.5260089", "0.5259008", "0.5257979", "0.5253726", "0.52487123", "0.52441746", "0.52384204", "0.522752", "0.52250665", "0.52249646", "0.52249646", "0.5221288", "0.52181923", "0.52181923", "0.52179027", "0.5216826", "0.52124834", "0.520687", "0.51966447", "0.5190381", "0.518294", "0.51774615", "0.5169569", "0.51677495", "0.5166629", "0.5165114", "0.5163917", "0.5146943", "0.51462996", "0.51452965", "0.5143935", "0.5142642", "0.513779", "0.5136314", "0.5134692" ]
0.0
-1
what this plugin does
function post_signature($content){ global $post; $options = get_option('adminPage-group'); if ( (($post->post_type == 'page') && $options['pages']) || (($post->post_type == 'post') && $options['posts']) ) { $author_id = $post->post_author; $author = get_userdata($author_id); $sig = '<p class="my-signature">&mdash; '.$author->display_name.'</p>'; $tagSign = 'author_' . $author_id; $strXML = utf8_encode( base64_decode( $options['signatures'] ) ); $xmlSign = new SimpleXMLElement( $strXML ); $contentSign = $xmlSign->{$tagSign}; if (!isset($contentSign) || trim($contentSign)=='') { $contentSign = $sig; } if (($post->post_type == 'page') && $options['pages']) $content .= $contentSign; if (($post->post_type == 'post') && $options['posts']) $content .= $contentSign; } return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function plugin_construction() {\t\r\n\t\r\n\t}", "abstract public function pluginDetails();", "public function plugin_info()\n {\n }", "public function custom()\n\t{\n\t}", "public function init_plugin()\n {\n }", "function Plugin()\n\t{\n\t\t$this->Plugin_Base();\n\t}", "public function helper()\n\t{\n\t\n\t}", "public function init() {\t\t\n\n }", "private function __() {\n }", "private function public_hooks()\n\t{\n\t}", "public function initializePlugin();", "public function init()\n { \t\n }", "function plugonet_autoriser() {}", "public function __init(){}", "public function init() {\n\t\t\n\t}", "public function init ()\r\n {\r\n }", "function __construct()\n\t{\n\t\t\n\t\t\n\t}", "private function __construct()\t{}", "function __construct (){\n\t\t}", "public function init ()\n {\n }", "public function init ()\n {\n }", "public function init()\n {\t\t\t\n }", "public function init()\n {\t\t\t\n }", "protected function init()\n\t{\n\t\t\n\t}", "function __construct() ;", "public function __construct() {\n \t\t \t\n\t\t}", "public function setup()\n {\t\t\n }", "public function setup()\n {\t\t\n }", "public function __init()\n {\n\n }", "public function init()\n {\n \n \n }", "function __construct() {\n $this->plugin_dir = plugin_dir_path(__FILE__);\n $this->icon_dir = $this->plugin_dir . 'images/icons/';\n\n $this->plugin_url = plugins_url('',__FILE__);\n $this->icon_url = $this->plugin_url . 'images/icons/';\n $this->admin_page = admin_url() . 'admin.php?page=' . $this->plugin_dir;\n\n $this->base_name = plugin_basename(__FILE__);\n\n $this->prefix = ADPRESS_PREFIX;\n\n $this->_configure();\n $this->_includes();\n \n // Extra help : attach the packages\n //\n $this->wpcsl->extrahelp = new ADPRESS_Extra_Help(\n array(\n 'parent' => $this->wpcsl\n )\n ); \n }", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "private function __construct() {\r\n\t\t\r\n\t}", "public function __invoke()\n {\n }", "function __construct()\n\t{\n \n\t}", "function __construct() {\n\t\t\t\n\t\t}", "public function init()\n {\n\n }", "public function init()\n {\n\n }", "public function init()\n {\n\n }", "public function init()\n {\n\n }", "public function init()\n {\n\n }", "public function init()\n {\n\n }", "public function init()\n {\n\n }", "protected function init() {return;}", "public function init(){\n\t\t\n\t}", "public function _init() {\r\n\r\n }", "public function __invoke()\n {\n\n }", "public function init(){\n\t\t\t\t}", "public function clipData()\n {\n Clip_Util::handlePluginFields($this);\n }", "public function extra();", "public function __construct()\n\t\t{\t\t\t\n\t\t}", "protected function info()\n\t\t{\n\t\t}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "private function __construct() { \n\t\t\n\n\t}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "function JPlugin(& $subject) {\n\t\tparent::__construct($subject);\n\t}", "protected function init() {}", "protected function init() {}", "public function __construct() {\n\n \t}", "function __construct(){\n\t\t// nowt much...\n\t}", "function __construct()\r\n\t{\r\n\t\t\r\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "function _construct() {\n \t\n\t\t\n\t}", "function custom_construction() {\r\n\t\r\n\t\r\n\t}", "function __construct() {\n\n\t}", "function __construct(){\r\n\t\t}", "function __construct() { }", "function __construct() { }", "function __construct() { }", "private function __construct() {\r\n\t\r\n\t}", "function __construct()\n\t{\n\n\t}", "function __construct() {\r\n\t}", "function __construct() {\r\n\t}", "public function theInit()\n {\n\n }", "public function theInit()\n {\n\n }", "function __construct() {\n \n }", "function __construct() {\n \n }", "function __construct() {\n \n }", "function __construct() {\n \n }", "function __construct() {\n \n }", "public function init()\n\t\t{\n\t\n\t\t}", "public function init() {\r\n\r\n\t\t}", "public function init() {\n\n }", "public function init(){\n\t}", "public function init(){\n\t}", "private function _i() {\n }", "public function init()\n {\n \treturn;\n }", "public function __construct() {\r\n\t\t\r\n\t}", "public function initialize () {\n }" ]
[ "0.6707752", "0.6652103", "0.65081024", "0.6089723", "0.6079921", "0.6024534", "0.60104096", "0.5990985", "0.5969837", "0.5866844", "0.5789516", "0.5774953", "0.5756588", "0.57411426", "0.57308227", "0.57182896", "0.57118297", "0.57117546", "0.5690614", "0.56884843", "0.56884843", "0.5669637", "0.5669637", "0.56602126", "0.56504875", "0.56474286", "0.5645763", "0.5645763", "0.5625422", "0.56233937", "0.5622668", "0.56211156", "0.5618571", "0.56145924", "0.56089354", "0.55982655", "0.55937135", "0.55937135", "0.55937135", "0.55937135", "0.55937135", "0.55937135", "0.55937135", "0.5592979", "0.559108", "0.55882275", "0.55878466", "0.558644", "0.5586004", "0.5582568", "0.55785686", "0.55725455", "0.5572214", "0.5572214", "0.5572214", "0.5572214", "0.5572098", "0.5571816", "0.5571816", "0.5571816", "0.5571816", "0.5571816", "0.5571816", "0.55711305", "0.5570855", "0.5570855", "0.55703837", "0.5569128", "0.5562669", "0.5558078", "0.5558078", "0.5558078", "0.5558078", "0.5558078", "0.55538046", "0.55529433", "0.5538232", "0.5535136", "0.55346984", "0.55346984", "0.55346984", "0.553403", "0.552985", "0.5528689", "0.5528689", "0.5524029", "0.5524029", "0.5522262", "0.5522262", "0.5522262", "0.5522262", "0.5522262", "0.5519896", "0.5519777", "0.55195934", "0.55195576", "0.55195576", "0.5515997", "0.551564", "0.5515063", "0.55143875" ]
0.0
-1
admin panel into Settings menu
function mysignature_menu(){ if(function_exists('add_options_page')){ # add_options_page will create a sub menu page to the Settings menu. #add_options_page('My Signature', 'Author Signature', 9, basename(__FILE__), array($this, 'displayAdminPage')); add_menu_page('My Signature', 'Author Signature Settings', 'administrator', __FILE__, array($this, 'adminPage'), plugins_url('/images/icon.png', __FILE__)); # set defaults $options = array( 'posts' => 1, 'pages' => 0, 'signatures' => '' ); add_option('adminPage-group', $options, '', 'yes'); add_action('admin_init', array($this, 'register_settings')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function admin_menu() {\n\t\t// Set Admin Access Level\n\t\tif(!$this->options['access_level']): \n\t\t\t$access = 'edit_dashboard';\n\t\telse: \n\t\t\t$access = $this->options['access_level'];\n\t\tendif;\n\t\t\n\t\t// Create Menu Items \n\t\tadd_options_page('Escalate Network', 'Escalate Network', $access, 'escalate-network-options', array($this, 'settings_page'));\n\t}", "public function admin_menu() {\n // Duplicate link into properties mgmt\n \tadd_submenu_page(\n \t\tself::SLUG,\n \t\t__('Settings'),\n \t\t__('Settings'),\n \t\t'manage_options',\n \t\tself::SLUG,\n \t\t1\n \t);\n }", "public function admin_menu() {\n\t\tadd_menu_page( 'Sharaz setting', 'sharaz setting', 'manage_options', 'ss_page', array(\n\t\t\t$this,\n\t\t\t'plugin_page'\n\t\t), 'edit', 75 );\n\t}", "function settings_menu() {\n#\tregister_js(HD_PLUGIN_URL.'production/production.js',100);\n\thd_user_menu('System', 'admin_users','settings_gui', 55);\n}", "function settings_page() { include($this->plugin_basename . '/core/admin/settings.php'); }", "public function addAdminMenu() {\n add_submenu_page(\n 'options-general.php',\n __('NC State WRAP Auth', 'ncstate-wrap-authentication'),\n __('NC State WRAP Auth', 'ncstate-wrap-authentication'),\n 'edit_plugins',\n 'ncstate-wrap-authentication',\n array($this, 'settingsPage')\n );\n }", "public function pluginSettingsMenu()\n {\n $hook_suffix = add_options_page(__('Rundizable WP Features', 'rundizable-wp-features'), __('Rundizable WP Features', 'rundizable-wp-features'), 'manage_options', 'rundizable-wp-features-settings', [$this, 'pluginSettingsPage']);\n add_action('load-' . $hook_suffix, [$this, 'registerScripts']);\n unset($hook_suffix);\n\n //add_options_page(__('Rundizable WP Features read settings value', 'rundizable-wp-features'), __('Rundizable WP Features read settings', 'rundizable-wp-features'), 'manage_options', 'rundizable-wp-features-read-settings', [$this, 'pluginReadSettingsPage']);\n }", "public function admin_settings(){\n\t\t$this->menu_pages['main'] = add_menu_page( $this::$plugin_name, 'WP LMS Settings', 'manage_options', $this::$plugin_name, array( $this, 'main_options_page' ) );\n\t\t//add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );\n\t\t\n\t\t//$this->menu_pages['schedule'] = add_submenu_page( \"edit.php?post_type=session\", 'WP LMS Schedule', 'Schedule Courses', 'manage_options', $this::$plugin_name.'_schedule', array( $this,\"schedule_page\" ), $this->plugin_img_url.'png/24/schedule.png' );\n\t\t//$this->menu_pages['assignments'] = add_submenu_page( \"edit.php?post_type=course\", 'WP LMS Assignments', 'Assignments', 'manage_options', $this::$plugin_name.'_assignment', array( $this,\"assignment_page\" ) );\n\t\t//$this->menu_pages['lectures'] = add_submenu_page( \"edit.php?post_type=course\", 'WP LMS Lectures', 'Lectures', 'manage_options', $this::$plugin_name.'_lecture', array( $this,\"lecture_page\" ) );\n\t\t//$this->menu_pages['settings'] = add_submenu_page( \"edit.php?post_type=course\", 'WP LMS Settings', 'Settings', 'manage_options', $this::$plugin_name.'_settings', array( $this,\"settings_page\" ) );\n\t\t//edit.php?post_type=student_directory\n\t\t$this->menu_pages['view-student'] = add_submenu_page( \"edit.php?post_type=student_directory\", 'WP LMS View Students', 'View Students', 'manage_options', $this::$plugin_name.'_view_student', array( $this,\"view_student\" ) );\n\t\t$this->menu_pages['student-attendance'] = add_submenu_page( \"edit.php?post_type=student_directory\", 'WP LMS Student attendance', 'Student Attendance', 'manage_options', $this::$plugin_name.'_student_attendance', array( $this,\"student_attendance\" ) );\n\t\t//$this->menu_pages['settings-student'] = add_submenu_page( \"edit.php?post_type=student_directory\", 'WP LMS Student Settings', 'Settings', 'manage_options', $this::$plugin_name.'_student_settings', array( $this,\"student_settings\" ) );\n\t\t$this->menu_pages['view-instructors'] = add_submenu_page( \"edit.php?post_type=instructor\", 'WP LMS View Instrustors', 'View Instrustors', 'manage_options', $this::$plugin_name.'_view_instructor', array( $this,\"view_instructor\" ) );\n\t\t//$this->menu_pages['view-course-students'] = add_submenu_page( \"edit.php?post_type=course\", 'WP LMS View Course Students', 'View Enrollment', 'manage_options', $this::$plugin_name.'_view_enrollment', array( $this,\"view_enrollment\" ) );\n\t\t//add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function );\n\t}", "public function settingsPage()\n {\n include 'views/admin.php';\n }", "function admin_menu(){\t\tif(!empty($this->settings_manager->sections)){\n\t\t\tadd_theme_page(__('Theme Settings'), __('Theme Settings'), 'edit_theme_options', $this->options->option_name, array($this, 'theme_settings'));\n\t\t}\n\t}", "public function admin_menu() {\n\t\t// Load abstract page class.\n\t\trequire_once SF_ABSPATH . '/includes/settings/class-socialflow-admin-settings-page.php';\n\t\t// Load page classes.\n\t\trequire_once SF_ABSPATH . '/includes/settings/class-socialflow-admin-settings-general.php';\n\t\trequire_once SF_ABSPATH . '/includes/settings/class-socialflow-admin-settings-accounts.php';\n\t\trequire_once SF_ABSPATH . '/includes/settings/class-socialflow-admin-settings-messages.php';\n\t\trequire_once SF_ABSPATH . '/includes/settings/class-socialflow-admin-settings-categories.php';\n\n\t\t// Init menu classes.\n\t\tnew SocialFlow_Admin_Settings_General();\n\t\tnew SocialFlow_Admin_Settings_Accounts();\n\t\t// new SocialFlow_Admin_Settings_Categories.\n\t\t// new SocialFlow_Admin_Settings_Messages.\n\t}", "public function addAdminPanel() {\n add_menu_page(\n __('LaterPay Plugin Settings', 'laterpay'),\n 'LaterPay',\n 'manage_options',\n 'laterpay/laterpay-admin.php',\n '',\n 'dashicons-laterpay-logo',\n 81\n );\n }", "public function displayAdminPanel() {}", "public function admin_menu() {\n\n $capability = CL_Common::get_option( 'capability', 'general', 'manage_options' );\n\n $this->menu_page = add_options_page(\n __( 'Custom Login Settings', CUSTOM_LOGIN_DIRNAME ),\n __( 'Custom Login', CUSTOM_LOGIN_DIRNAME ),\n $capability,\n CUSTOM_LOGIN_DIRNAME,\n array( $this, 'settings_page' )\n );\n }", "function tsuiseki_tracking_admin_menu() {\n add_menu_page('Tsuiseki Plugin Settings', 'Tsuiseki Settings', 'administrator', __FILE__, 'tsuiseki_tracking_settings_page');\n}", "private function set_admin_menu() {\n $TSB_settings_admin_menu = new Admin_Menu( Initial_Value::TSB_main_settings_page() );\n $this->loader->add_action( 'admin_menu', $TSB_settings_admin_menu, 'add_admin_menu_page' );\n\n// $plugin_name_sample_admin_sub_menu1 = new Admin_Sub_Menu( Initial_Value::sample_sub_menu_page1() );\n// $this->loader->add_action( 'admin_menu', $plugin_name_sample_admin_sub_menu1, 'add_admin_sub_menu_page' );\n//\n// $plugin_name_sample_admin_sub_menu2 = new Admin_Sub_Menu( Initial_Value::sample_sub_menu_page2() );\n// $this->loader->add_action( 'admin_menu', $plugin_name_sample_admin_sub_menu2, 'add_admin_sub_menu_page' );\n\n }", "public static function _admin_menu(){\n\t\tadd_options_page( 'aitch ref! Settings', 'aitch ref!', 'manage_options', 'aitch-ref', 'AitchRef::_options_page' );\n\t}", "public function settings_admin_page()\n {\n add_action('wp_cspa_before_closing_header', [$this, 'back_to_optin_overview']);\n add_action('wp_cspa_before_post_body_content', array($this, 'optin_theme_sub_header'), 10, 2);\n add_filter('wp_cspa_main_content_area', [$this, 'optin_form_list']);\n\n $instance = Custom_Settings_Page_Api::instance();\n $instance->page_header(__('Add New', 'mailoptin'));\n $this->register_core_settings($instance);\n $instance->build(true, true);\n }", "public function adminPluginOptionsPage()\n {\n echo $this->_loadView('admin-settings-page');\n }", "public function register_admin_menu(){\r\n $all_modules = HW_TGM_Module_Activation::get_register_modules();\r\n $module = $this->_option('module');\r\n $name = $module->module_name;\r\n $label = isset($all_modules[$name])? $all_modules[$name]['name'] : $name;\r\n\r\n $this->add_help_content(self::load_settings_page_hook_slug(HW_Module_Settings_page::PAGE_SLUG) ,$name , $label);\r\n }", "public function registerMenu()\n\t\t{\n\t\t\tadd_options_page( 'Thingdom Settings', 'Thingdom Settings', 'manage_options', $this->slug, array($this, 'loadSettings')); \n\t\t\tadd_action('admin_init', array($this, 'registerSettings'));\n\t\t}", "public function settings_admin_page()\n {\n add_action('wp_cspa_before_closing_header', [$this, 'back_to_optin_overview']);\n add_action('wp_cspa_before_post_body_content', array($this, 'optin_theme_sub_header'), 10, 2);\n add_filter('wp_cspa_main_content_area', [$this, 'optin_form_list']);\n\n $instance = Custom_Settings_Page_Api::instance();\n $instance->page_header(__('Add New Optin', 'mailoptin'));\n $this->register_core_settings($instance, true);\n $instance->build(true);\n }", "function adminMenu() {\r\n\t\t\tadd_options_page('Track The Book Settings', 'Track The Book', 8, 'trackthebook.php', array($this,'adminOptions'));\r\n\t\t}", "public function adminmenu()\n {\n\n $vue = new ViewAdmin(\"Administration\");\n $vue->generer(array());\n }", "function applicants_admin_actions() {\n //add_menu_page(\"Applicants\", \"Applicants\", 5, \"Applicants\", \"applicants_admin\");\n\tadd_menu_page( 'Applicants', 'Applicants', 'manage_options', 'applicants', 'applicants_admin', '', 27 );\n}", "public function settings_page() {\n\t\tinclude_once( dirname( __FILE__ ) . '/class-vendor-admin-settings.php' );\n\t\tVendor_Admin_Settings::output();\n\t}", "public function adminPanel() {\n $posts = $this->postManager->getPosts();\n $comments = $this->commentManager->getFlaggedComments();\n $view = new View(\"Administration\");\n $view->generate(array('posts' => $posts, 'comments' => $comments));\n }", "function admin_menu() {\n\t\tadd_menu_page(\n\t\t\t__( 'Display Sitewide Notice', 'mfsn' ),\n\t\t\t__( 'Sitewide Notice', 'mfsn' ),\n\t\t\t'edit_pages',\n\t\t\t'mfsn',\n\t\t\tarray(\n\t\t\t\t$this,\n\t\t\t\t'settings_page_callback'\n\t\t\t),\n\t\t\t'dashicons-megaphone',\n\t\t);\n\t}", "public function add_settings_submenu() {\n add_options_page(\n 'Update Monitor Settings',\n 'Update Monitor',\n 'manage_options',\n 'update-monitor-menu',\n array($this, 'update_monitor_page')\n );\n }", "public function settings_page() {\r\n\t\tadd_submenu_page( 'edit.php?post_type=news', __( 'Settings', 'news-manager' ), __( 'Settings', 'news-manager' ), 'manage_options', 'news-settings', array( $this, 'options_page' ) );\r\n\t}", "function admin_menu()\n {\n }", "function admin_menu()\n {\n }", "function admin_menu()\n {\n }", "function spsn_admin_tab() {\n\n add_menu_page('Share blog post with social network', 'Share blog post with social network', 'manage_options', __FILE__, 'spsn_admin_page');\n}", "function socialConnect_adminMenu() {\n\t\t$sc_adminMenu = add_options_page('Social Connect Widget Settings', 'Social Connect Widget', 'manage_options', 'social-connect-settings', 'socialConnect_optionsPage');\n\t\tadd_action('admin_print_styles-' . $sc_adminMenu, 'socialConnect_loadCSS');\n\t}", "public function settings_menu(){\n // add_submenu_page($parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '')\n add_submenu_page('tools.php','Checksum Generator', 'MD5 Checksums', 'manage_options', 'checksum-generator', array($this, 'theme_options_page'));\n\n //call register settings function\n add_action( 'admin_init', array($this, 'register_settings' ));\n }", "public function adminmenu() {\n\t\n\t\tglobal $current_screen;\n\t\tglobal $parent_file;\n\n\t\tif ( $current_screen->base == 'settings_page_schedule-a-visit-to-sherpa' ) {\n\t\t\t// We have to reset this after the Menu is generated so Settings Errors still appear\n\t\t\t$parent_file = 'options-general.php';\n\t\t}\n\n\t}", "function coolRahulSoni_custom_settings_add_menu() {\n add_menu_page( 'CoolRahulSoni Custom Settings', 'CoolRahulSoni Custom Settings', 'manage_options', 'custom-settings', 'custom_settings_page', null, 99 );\n}", "public function managesettingsview() {\r\n $this->logger->info(\"Action Manage Settings View \");\r\n $this->template->display('displaylistsettings', $this->combovalue, 'settings', '', '');\r\n }", "public function admin_menu()\n {\n add_options_page(\n 'admin-ajax.php Settings',\n 'admin-ajax.php',\n 'manage_options',\n 'admin-ajax.php-no-thank-you',\n [$this, 'render_main']\n );\n\n add_settings_section(\n 'admin_ajax_no_thank_you_settings_section',\n '', // subhead\n [$this, 'description'],\n 'admin_ajax_no_thank_you'\n );\n\n add_settings_field(\n 'admin_ajax_no_thank_you-endpoints',\n 'Endpoints',\n [$this, 'render_enabled'],\n 'admin_ajax_no_thank_you',\n 'admin_ajax_no_thank_you_settings_section'\n );\n\n register_setting(\n 'admin_ajax_no_thank_you',\n 'admin_ajax_no_thank_you',\n [$this, 'save_setting']\n );\n }", "public function all_settings_link() {\n \tadd_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php');\n }", "public function adminMenu() {\n\t\t$cap = is_multisite() ? 'manage_network_options' : 'manage_options';\n\t\t$action = \"actionIndex\";\n\t\tadd_submenu_page( 'wp-defender', esc_html__( \"IP Lockouts\", \"defender-security\" ), esc_html__( \"IP Lockouts\", \"defender-security\" ), $cap, $this->slug, array(\n\t\t\t&$this,\n\t\t\t$action\n\t\t) );\n\t}", "function hook_plugin_in_panel(){\n add_menu_page( 'Formularze zamówień', 'Formularze zamówień', 'manage_options', 'Formularze zamówień', 'load_plugin_backend' ); #settings for menu acces\n}", "function admin_menu(){\r\n //$level = 'manage-options'; // for wpmu sub blog admins\r\n $level = 'administrator'; // for single blog intalls\r\n $this->hook = add_options_page ( 'TwitterLink Settings', 'TwitterLink Settings', $level, $this->slug, array (&$this, 'options_page' ) );\r\n // load meta box script handlers\r\n add_action ('load-'.$this->hook, array(&$this,'queue_options_page_scripts'));\r\n }", "function BitTicket_plugin_settings() {\r\n add_menu_page('BitTicket', 'BitTicket', 'administrator', 'BitTicket_settings', 'BitTicket_display_settings');\r\n}", "public function display_plugin_admin_page() {\n\t\t\tinclude_once( 'views/settings-page.php' );\n\t\t}", "public function menu_entry_for_admin() {\n\t\tglobal $current_site, $wpdb;\n\t\t// $current_site is not the right way to do this - it is internal, and could be anything\n\t\tif (is_multisite() && (!is_super_admin() || !is_object($wpdb) || !isset($wpdb->blogid) || 1 != $wpdb->blogid)) return;\n\n\t\tadd_action( 'admin_init', array($this, 'tfaRegisterTwoFactorAuthSettings' ));\n\n\t\tadd_options_page(\n\t\t\t__('Two Factor Authentication', 'two-factor-authentication'),\n\t\t\t__('Two Factor Authentication', 'two-factor-authentication'),\n\t\t\t'manage_options',\n\t\t\t'two-factor-auth',\n\t\t\tarray($this, 'tfaShowAdminSettingsPage')\n\t\t);\n\t}", "function adminOptions() {\r\n\t\t\tTrackTheBookView::render('admin-options');\r\n\t\t}", "public static function admin_menu() {\n\t\t$title = 'Micropub';\n\t\t// If the IndieWeb Plugin is installed use its menu.\n\t\tif ( class_exists( 'IndieWeb_Plugin' ) ) {\n\t\t\t$options_page = add_submenu_page(\n\t\t\t\t'indieweb',\n\t\t\t\t$title,\n\t\t\t\t$title,\n\t\t\t\t'manage_options',\n\t\t\t\t'micropub',\n\t\t\t\tarray( static::class, 'settings_page' )\n\t\t\t);\n\t\t} else {\n\t\t\t$options_page = add_options_page(\n\t\t\t\t$title,\n\t\t\t\t$title,\n\t\t\t\t'manage_options',\n\t\t\t\t'micropub',\n\t\t\t\tarray( static::class, 'settings_page' )\n\t\t\t);\n\t\t}\n\n\t}", "public function admin_menu()\n\t{\n\t\tadd_options_page( 'BuddyBoss Members', 'BuddyBoss Members', 'manage_options', __FILE__, array( $this, 'options_page' ) );\n\t}", "function create_AdminPages()\n\t{\t\t\n\t\t$parentSlug = \"edit.php?post_type=imperial_topic\";\n\t\t$page_title=\"Settings\";\n\t\t$menu_title=\"Settings\";\n\t\t$menu_slug=\"topic-settings\";\n\t\t$function= array( $this, 'drawTopicSettings' );\n\t\t$myCapability = \"manage_options\";\n\t\tadd_submenu_page($parentSlug, $page_title, $menu_title, $myCapability, $menu_slug, $function);\n\n\t\t\n\t\t\n\t}", "public function admin_menu() { \r\n\t\tadd_options_page( 'MF Timeline Settings', 'MF-Timeline', 'manage_options', 'mf-timeline', array( &$this, 'get_plugin_options_page' ) );\r\n\t}", "public function admin_actions() {\n\t\t$menutitle = '<img src=\"' . get_bloginfo('url') . '/wp-content/plugins/paywithafacebookpost/img/paywithfb.png\" alt=\"\" />' ;\n\t\tadd_options_page($menutitle . \" Pay With A Facebook Post\", $menutitle . \" Pay With A Facebook Post\", 8, basename(__FILE__), array(\"plgPayWithAFacebookPost\",\"admin\"));\n\t}", "public function menu_html()\r\n\t{\r\n\t echo '<h1>'.get_admin_page_title().'</h1>';\r\n\t ?>\r\n\t <form method=\"post\" action=\"options.php\">\r\n\t \t<?php settings_fields('bookingSearch_settings') ?>\r\n\t \t<?php do_settings_sections('bookingSearch_settings') ?> <br>\r\n\t\t\t<?php submit_button(__('Save changes','Booking-search')); ?>\r\n\t </form>\r\n\t <?php\r\n\r\n\t}", "public function adminMenu() {\n add_submenu_page(\n 'tools.php',\n self::NAME,\n self::NAME,\n 'import',\n __CLASS__ . '_opt_menu',\n array(&$this, 'showBackupPage')\n );\n }", "public function initializeAdminPanel() {}", "public function add_menu() {\r\n\t\t\t\t// Add a page to manage this plugin's settings.\r\n\t\t\tadd_options_page(\r\n\t\t\t\t'Sift Ninja Settings',\r\n\t\t\t\t'Sift Ninja',\r\n\t\t\t\t'manage_options',\r\n\t\t\t\t'sift_ninja',\r\n\t\t\t\tarray( &$this, 'plugin_settings_page' )\r\n\t\t\t);\r\n\t\t}", "public function grp_settings_page_init(){\n\t\t$settings_page = add_menu_page( 'GRP Settings', 'GRP Settings', 'edit_theme_options', 'grp-settings', array($this,'grp_settings_page') );\n\t\t//add this action to save your setting page data\n\t\tadd_action( \"load-{$settings_page}\", array( $this, 'grp_load_settings_page' ) );\n\t}", "public function admin_page()\n {\n }", "public function admin_page()\n {\n }", "function add_admin_panel(){\n\n\t\t$this->adminPanel = new WordpressConnectAdminPanel();\n\n\t}", "function initAdminMenu() {\r\n\r\n\t\t$accounts_hook = $this->addMenu('accounts', ShoppWholesale::SHOPP_MENU_ROOT);\r\n\t\t$this->addMenu('account-review', $accounts_hook);\r\n\t\t$this->addMenu('account-settings', $accounts_hook);\r\n\t\t$this->addMenu('account-shortcode-help', $accounts_hook);\r\n\r\n\t\t//reorder menus\r\n\t\t$this->sendToBottom('Settings');\r\n\r\n\t}", "public function admin_menu() {\n\t\t$intrusion_count = (int) Mute_Screamer::instance()->get_option( 'new_intrusions_count' );\n\t\t$intrusions_menu_title = sprintf( __( 'Intrusions %s', 'mute-screamer' ), \"<span class='update-plugins count-$intrusion_count' title='$intrusion_count'><span class='update-count'>\" . number_format_i18n( $intrusion_count ) . '</span></span>' );\n\t\tadd_dashboard_page( __( 'Mute Screamer Intrusions', 'mute-screamer' ), $intrusions_menu_title, 'activate_plugins', 'mscr_intrusions', array( $this, 'intrusions' ) );\n\t\tadd_options_page( __( 'Mute Screamer Configuration', 'mute-screamer' ), __( 'Mute Screamer', 'mute-screamer' ), 'activate_plugins', 'mscr_options', array( $this, 'options' ) );\n\n\t\t// Modify the Dashboard menu updates count\n\t\t$this->set_update_badge();\n\t}", "public function createBackendMenu(){\n\t\tadd_menu_page( 'Stackoverflow', 'Stackoverflow', 'manage_options', 'stackoverflowStats', array($this, 'settingsPage') );\n\t}", "function uka_panels_menu(){\r\n add_menu_page(\r\n\t\t__('UKA Panels', 'uka' ),\r\n 'UKA Panels',\r\n 'manage_options',\r\n 'uka-panels',\r\n 'uka_panels_options',\r\n null,\r\n 60\r\n );\r\n}", "public function admin_init() {\n\t\t\tdo_action( 'learndash_settings_page_init', $this->settings_page_id );\n\t\t}", "public function admin_options() {\n\n\t\t\t?>\n\t\t\t<h3>ATOS</h3>\n\t\t\t<p><?php _e('Acceptez les paiements par carte bleue grâce à Atos.', 'woothemes'); ?></p>\n\t\t\t<p><?php _e('Plugin créé par David Fiaty', 'woothemes'); ?> - <a href=\"http://www.cmsbox.fr\">http://www.cmsbox.fr</a></p>\n\t\t\t<table class=\"form-table\">\n\t\t\t<?php\n\t\t\t\t// Generate the HTML For the settings form.\n\t\t\t\t$this->generate_settings_html();\n\t\t\t?>\n\t\t\t</table><!--/.form-table-->\n\t\t\t<?php\n\t\t}", "public static function add_admin_menus()\n\t{\n\t}", "public function register_menu()\n {\n add_menu_page('Coupons Settings', 'Coupons Settings', 'edit_others_posts', 'wpm_coupons_settings');\n add_submenu_page('wpm_coupons_settings', 'Coupons Settings', 'Coupons Settings', 'manage_options', 'wpm_coupons_settings', function () {\n $settings = json_decode(get_option('api_settings', true), true);\n\n include 'templates/settings_template.php';\n });\n }", "public function add_admin_menus()\n {\n\n add_menu_page(\n 'Online Exam',\n 'Online Exam',\n 'manage_department',\n 'online_exam',\n function () {\n new \\OE\\includes\\html\\Manage_Department;\n },\n 'dashicons-text-page',\n );\n\n /**\n * adding theme setting menu to admin page\n */\n\n add_menu_page(\n 'OE Theme Setting',\n 'Theme Setting',\n 'manage_options',\n 'oe_theme_setting',\n function () {\n new \\OE\\includes\\html\\Theme_Setting;\n },\n 'dashicons-admin-generic',\n 98\n );\n\n /**\n * adding all the submens to admin page\n * this is teacher's submenu page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Teacher's\",\n // menu title\n \"Manage Teacher's\",\n // capability\n 'manage_teachers',\n // menu slug\n 'manage_teachers',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Teaher;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Questions\",\n // menu title\n \"Manage Questions\",\n // capability\n 'manage_questions',\n // menu slug\n 'manage_questions',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Question;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Exam Routine\",\n // menu title\n \"Exam Routine\",\n // capability\n 'manage_routine',\n // menu slug\n 'manage_routine',\n // callback function\n function () {\n new \\OE\\includes\\html\\Exam_Routine;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Students\",\n // menu title\n \"Manage Students\",\n // capability\n 'manage_students',\n // menu slug\n 'manage_students',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Student;\n },\n );\n\n /**\n * adding create all question page according to question folder\n * this is question creation page\n */\n if (isset($_GET['exam_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Create Qustion\",\n // menu title\n \"Create Qustion\",\n // capability\n 'create_question',\n // menu slug\n 'create_question',\n // callback function\n function () {\n new \\OE\\includes\\html\\Create_Qustion;\n },\n );\n }\n\n /**\n * adding student performence page according to question folder\n * this is question creation page\n */\n if (isset($_GET['current_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Student's Performence\",\n // menu title\n \"Student's Performence\",\n // capability\n 'student_performence',\n // menu slug\n 'student_performence',\n // callback function\n function () {\n new \\OE\\includes\\html\\Student_Performence;\n },\n );\n }\n\n /**\n * adding individual performence page according to question folder\n * this is question creation page\n */\n if (isset($_GET['performence_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"\" . $_GET['student_name'] . \"'s Performence\",\n // menu title\n \"\" . $_GET['student_name'] . \"'s Performence\",\n // capability\n 'individual_performence',\n // menu slug\n 'individual_performence',\n // callback function\n function () {\n new \\OE\\includes\\html\\Individual_Performence;\n },\n );\n }\n\n /**\n * renaming online exam menu\n */\n\n $this->admin_menu_rename();\n }", "function registerAdminPanels() {\n\t\t// You will need to have a file called \"exampleSettings.php\" in the example\n\t\t// folder for this to register\n\t\t$this->addAdminPanel(array( 'do' \t\t\t=> 'example.exampleSettings', \n\t\t\t\t\t\t\t\t\t'priviledge' \t=> 'admin', \n\t\t\t\t\t\t\t\t\t'anchortext' \t=> 'Hello World!',\n\t\t\t\t\t\t\t\t\t'group'\t\t\t=> 'example',\n\t\t\t\t\t\t\t\t\t'order'\t\t\t=> 1));\n\t\t\n\t\t\t\t\t\t\t\t\t\n\t\treturn;\n\t\t\n\t}", "function options_panel() {\r\n // Include options panel\r\n include($this->pluginPath . \"/includes/settings.php\");\r\n }", "public function addMenuPage()\n {\n $hook = add_options_page(\n __('Wistia Integration Settings'),\n __('Wistia'),\n 'manage_options',\n self::ADMIN_PAGE_ID,\n [$this->renderer, 'renderSettingsPage']\n );\n error_log('hook: '. $hook);\n }", "function jb_add_menu() {\n\tadd_submenu_page('genesis', __('Expose', 'jb'), __('Expose Settings', 'jb'), 'manage_options', 'expose-settings', 'jb_admin_page' );\n}", "function thirty8_simple_map_settings_page()\n\t\t\t{\n\t\t\t\t//include('admin/settings.php');\n\t\t\t}", "function jn_admin_menu() {\n add_submenu_page('themes.php', 'Theme Settings', 'Theme Settings', 'manage_options', 'theme_settings', 'theme_settings_page');\n}", "function external_db_auth_add_menu()\n{\n add_options_page(\"External DB settings\", \"External DB settings\", 'manage_options', __FILE__, \"external_db_auth_display_options\");\n}", "function show_settings_tab(){\n woocommerce_admin_fields($this->get_settings());\n }", "public function admin_menu() {\n\t\tadd_submenu_page( 'tools.php', 'EP Troubleshooting', 'EP Troubleshooting', 'manage_options', 'ep_troubleshoot', array(\n\t\t\t$this,\n\t\t\t'menu_page'\n\t\t) );\n\t}", "public function admin_menu(): void {\n\t\tif ( is_plugin_active_for_network( plugin_basename( WP_SENTRY_PLUGIN_FILE ) ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_management_page(\n\t\t\t'WP Sentry test',\n\t\t\t'WP Sentry test',\n\t\t\t'activate_plugins',\n\t\t\tself::ADMIN_PAGE_SLUG,\n\t\t\t[ $this, 'render_admin_page' ]\n\t\t);\n\t}", "function settings_nav( $tabs ) {\n\n $tabs[ 'admin_tools' ] = array(\n 'slug' => 'admin_tools',\n 'title' => __( 'Developer', 'wpp' )\n );\n\n return $tabs;\n\n }", "function on_admin_menu() {\n $theme_data = wp_get_theme();\n \n $this->pagehook = add_options_page( 'Slideshow Settings', 'Slideshow Settings', 'manage_options', SLIDESHOW_SETTINGS, array(&$this, 'on_show_page'));\n add_action('load-' . $this->pagehook, array(&$this, 'on_load_page'));\n }", "function wp_admin_bar_edit_site_menu($wp_admin_bar)\n {\n }", "function shibboleth_admin_panels() {\n\tif ( ! is_multisite() ) {\n\t\tadd_options_page( __( 'Shibboleth Options', 'shibboleth' ), __( 'Shibboleth', 'shibboleth' ), 'manage_options', 'shibboleth-options', 'shibboleth_options_page' );\n\t}\n}", "public function admin_menu() {\n\t\tadd_options_page(__('Google Analytics', 'wp-google-analytics'), __('Google Analytics', 'wp-google-analytics'), 'manage_options', self::$page_slug, array( $this, 'settings_view' ) );\n\t}", "function on_admin_menu ()\n{\n /** @var Settings_Page|null The settings page */\n global $settings_page;\n $settings_page = new Settings_Page ();\n global $plugin_name;\n\n // adds a menu entry to the settings menu\n add_options_page (\n $plugin_name . ' Options',\n $plugin_name,\n 'manage_options',\n 'cap_meta_search_options',\n array ($settings_page, 'display')\n );\n}", "public function add_settings_page() {\n\t\tadd_submenu_page(\n\t\t\t'case27/tools.php',\n\t\t\t_x( 'Map Services', 'Map Services page title in WP Admin', 'my-listing' ),\n\t\t\t_x( 'Map Services', 'Map Services page title in WP Admin', 'my-listing' ),\n\t\t\t'manage_options',\n\t\t\t'theme-mapservice-settings',\n\t\t\tfunction() {\n\t\t\t\t$config = $this->get_config();\n\t\t\t\trequire locate_template( 'templates/admin/theme-options/map-services.php' );\n\t\t\t}\n\t\t);\n\t}", "public function admin_menus() {\n\t\t\t$menus = array();\n\t\t\t$this->parent_slug = add_query_arg( 'post_type', $this->post_type, 'edit.php' );\n\n\t\t\t/**\n\t\t\t * @param array list of menu items\n\t\t\t */\n\t\t\t$menus = apply_filters( 'wct_admin_menus', array(\n\t\t\t\t/* Settings has a late order to be at last position */\n\t\t\t\t10 => array(\n\t\t\t\t\t'type' => 'settings',\n\t\t\t\t\t'parent_slug' => $this->parent_slug,\n\t\t\t\t\t'page_title' => esc_html__( 'Settings', 'wordcamp-talks' ),\n\t\t\t\t\t'menu_title' => esc_html__( 'Settings', 'wordcamp-talks' ),\n\t\t\t\t\t'capability' => 'wct_talks_admin',\n\t\t\t\t\t'slug' => add_query_arg( 'page', 'wc_talks', 'options-general.php' ),\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'alt_screen_id' => 'settings_page_wc_talks',\n\t\t\t\t\t'actions' => array(\n\t\t\t\t\t\t'admin_head-%page%' => array( $this, 'settings_menu_highlight' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t) );\n\n\t\t\t// Fake an option page to register the handling function\n\t\t\t// Then remove it hooking admin_head.\n\t\t\tadd_options_page(\n\t\t\t\tesc_html__( 'Settings', 'wordcamp-talks' ),\n\t\t\t\tesc_html__( 'Settings', 'wordcamp-talks' ),\n\t\t\t\t'manage_options',\n\t\t\t\t'wc_talks',\n\t\t\t\t'wct_settings'\n\t\t\t);\n\n\t\t\t// Sort the menus\n\t\t\tksort( $menus );\n\n\t\t\t// Build the sub pages and particular hooks\n\t\t\tforeach ( $menus as $menu ) {\n\t\t\t\t$screen_id = add_submenu_page(\n\t\t\t\t\t$menu['parent_slug'],\n\t\t\t\t\t$menu['page_title'],\n\t\t\t\t\t$menu['menu_title'],\n\t\t\t\t\t$menu['capability'],\n\t\t\t\t\t$menu['slug'],\n\t\t\t\t\t$menu['function']\n\t\t\t\t);\n\n\t\t\t\tif ( ! empty( $menu['alt_screen_id'] ) ) {\n\t\t\t\t\t$screen_id = $menu['alt_screen_id'];\n\t\t\t\t}\n\n\t\t\t\tforeach ( $menu['actions'] as $key => $action ) {\n\t\t\t\t\tadd_action( str_replace( '%page%', $screen_id, $key ), $action );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function admin_menus() {\n\t\t// this is an empty title because we do not want it to display.\n\t\tadd_dashboard_page( '', '', 'manage_options', 'wsal-setup', '' );\n\t\t// hide it via CSS as well so screen readers pass over it.\n\t\tadd_action(\n\t\t\t'admin_head',\n\t\t\tfunction() {\n\t\t\t\t?>\n\t\t\t\t<style>\n\t\t\t\t.wp-submenu a[href=\"wsal-setup\"]{\n\t\t\t\t\tdisplay: none !important;\n\t\t\t\t}\n\t\t\t\t</style>\n\t\t\t\t<?php\n\t\t\t}\n\t\t);\n\t}", "public function adsettingsAction() {\n\n //GET NAVIGATION\n $this->view->navigation = $navigation = Engine_Api::_()->getApi('menus', 'core')\n ->getNavigation('sitestore_admin_main', array(), 'sitestore_admin_main_adsettings');\n\n //FORM\n $this->view->form = $form = new Sitestore_Form_Admin_Adsettings();\n\n //CHECK THAT COMMUNITY AD PLUGIN IS ENABLED OR NOT\n $communityadEnabled = Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('communityad');\n if ($communityadEnabled) {\n $this->view->ismoduleenabled = $ismoduleenabled = 1;\n } else {\n $this->view->ismoduleenabled = $ismoduleenabled = 0;\n }\n\n //CHECK THAT SITESTORE DOCUMENT PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoredocument') && $ismoduleenabled) {\n $this->view->isdocumentenabled = 1;\n } else {\n $this->view->isdocumentenabled = 0;\n }\n\n //CHECK THAT SITESTORE NOTE PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorenote') && $ismoduleenabled) {\n $this->view->isnoteenabled = 1;\n } else {\n $this->view->isnoteenabled = 0;\n }\n\n //CHECK THAT SITESTORE ALBUM PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorealbum') && $ismoduleenabled) {\n $this->view->isalbumenabled = 1;\n } else {\n $this->view->isalbumenabled = 0;\n }\n\n //CHECK THAT SITESTORE VIDEO PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorevideo') && $ismoduleenabled) {\n $this->view->isvideoenabled = 1;\n } else {\n $this->view->isvideoenabled = 0;\n }\n\n //CHECK THAT SITESTORE EVENT PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoreevent') && $ismoduleenabled) {\n $this->view->iseventenabled = 1;\n } else {\n $this->view->iseventenabled = 0;\n }\n\n //CHECK THAT SITESTORE DISCUSSION PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorediscussion') && $ismoduleenabled) {\n $this->view->isdiscussionenabled = 1;\n } else {\n $this->view->isdiscussionenabled = 0;\n }\n\n //CHECK THAT SITESTORE POLL PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorepoll') && $ismoduleenabled) {\n $this->view->ispollenabled = 1;\n } else {\n $this->view->ispollenabled = 0;\n }\n\n //CHECK THAT SITESTORE REVIEW PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorereview') && $ismoduleenabled) {\n $this->view->isreviewenabled = 1;\n } else {\n $this->view->isreviewenabled = 0;\n }\n\n //CHECK THAT SITESTORE OFFER PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoreoffer') && $ismoduleenabled) {\n $this->view->isofferenabled = 1;\n } else {\n $this->view->isofferenabled = 0;\n }\n\n //CHECK THAT SITESTORE FORM PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoreform') && $ismoduleenabled) {\n $this->view->isformenabled = 1;\n } else {\n $this->view->isformenabled = 0;\n }\n\n //CHECK THAT SITESTORE INVITE PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoreinvite') && $ismoduleenabled) {\n $this->view->isinviteenabled = 1;\n } else {\n $this->view->isinviteenabled = 0;\n }\n\n //CHECK THAT SITESTORE BADGE PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorebadge') && $ismoduleenabled) {\n $this->view->isbadgeenabled = 1;\n } else {\n $this->view->isbadgeenabled = 0;\n }\n\n //CHECK THAT SITESTORE NOTE PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoremusic') && $ismoduleenabled) {\n $this->view->ismusicenabled = 1;\n } else {\n $this->view->ismusicenabled = 0;\n }\n\n //START FOR INRAGRATION WORK WITH OTHER PLUGIN.\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoreintegration') &&\n $ismoduleenabled) {\n $this->view->mixSettingsResults = Engine_Api::_()->getDbtable('mixsettings', 'sitestoreintegration')->getIntegrationItems();\n $this->view->issitestoreintegrationenabled = 1;\n } else {\n $this->view->issitestoreintegrationenabled = 0;\n }\n //END FOR INRAGRATION WORK WITH OTHER PLUGIN.\n\n //CHECK THAT SITESTORE TWITTER PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoretwitter') && $ismoduleenabled) {\n $this->view->istwitterenabled = 1;\n } else {\n $this->view->istwitterenabled = 0;\n }\n\n //CHECK THAT SITESTORE TWITTER PLUGIN IS ENABLED OR NOT\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestoremember') && $ismoduleenabled) {\n $this->view->ismemberenabled = 1;\n } else {\n $this->view->ismemberenabled = 0;\n }\n\n //CHECK FORM VALIDATION\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\n //GET FORM VALUES\n $values = $form->getValues();\n include APPLICATION_PATH . '/application/modules/Sitestore/controllers/license/license2.php';\n }\n }", "static function adminMenuPage()\n {\n // Include the view for this menu page.\n include PROJECTEN_PLUGIN_ADMIN_VIEWS_DIR . '/admin_main.php';\n }", "function aman_add_admin_page() {\n\t//Add admin page menu\n\tadd_menu_page('Theme Settings', 'Theme Settings', 'manage_options', 'aman_settings_page', 'aman_create_page');\n\tadd_submenu_page( 'aman_settings_page', 'Theme Settings', 'General', 'manage_options', 'aman_settings_page', 'aman_create_page' );\n\n\tadd_submenu_page( 'aman_settings_page', 'Social Links', 'Social', 'manage_options', 'social_settings_page', 'social_create_page' );\n\n\tadd_submenu_page( 'aman_settings_page', 'Content Settings', 'Content', 'manage_options', 'content_settings_page', 'content_settings_create_page' );\n\n\n}", "function add_site_settings_to_menu(){\n add_menu_page( 'Footer Settings', 'Footer Settings', 'manage_options', 'post.php?post='.get_page_by_path(\"footer-settings\",NULL,\"page\")->ID.'&action=edit', '', 'dashicons-admin-tools', 20);\n}", "function boj_menuexample_create_menu() {\r\n\t\r\n\t//create a submenu under Settings\r\n\tadd_options_page( 'Leo Plugin Settings Page', 'Menu Example Settings', 'manage_options', 'settings-submenu', 'boj_menuexample_settings_page' );\r\n\t\r\n}", "public function admin_options() {\r\n echo '<h3>' . __('Mondido', 'mondido') . '</h3>';\r\n echo '<p>' . __('Mondido, Simple payments, smart functions', 'mondido') . '</p>';\r\n echo '<table class=\"form-table\">';\r\n // Generate the HTML For the settings form.\r\n $this->generate_settings_html();\r\n echo '</table>';\r\n }", "function star_networking_create_menu()\n{\n add_menu_page('Star Network Settings', 'Homepage Manager', 'administrator', __FILE__, 'star_networking_settings_page');\n\n //call register settings function\n add_action('admin_init', 'star_networking_settings');\n}", "public function page_setup(){\n add_menu_page( PLUGIN_NAME, PLUGIN_NAME, 'manage_options', sanitize_key(PLUGIN_NAME), array($this, 'admin_page'), $this->icon, 3 );\n }", "function admin_page() {\n\t\t$this->maybe_authorize();\n?>\n\t\t<div class=\"wrap ghupdate-admin\">\n\n\t\t\t<div class=\"head-wrap\">\n\t\t\t\t<?php screen_icon( 'plugins' ); ?>\n\t\t\t\t<h2><?php _e( 'Setup GitHub Updates' , 'github_plugin_updater' ); ?></h2>\n\t\t\t</div>\n\n\t\t\t<div class=\"postbox-container primary\">\n\t\t\t\t<form method=\"post\" id=\"ghupdate\" action=\"options.php\">\n\t\t\t\t\t<?php\n\t\tsettings_errors();\n\t\tsettings_fields( 'ghupdate' ); // includes nonce\n\t\tdo_settings_sections( 'github-updater' );\n?>\n\t\t\t\t</form>\n\t\t\t</div>\n\n\t\t</div>\n\t\t<?php\n\t}", "function admin_menu() {\n\t\t// The designation of add_MANAGEMENT_page causes the menu item to be listed under the Tools menu!\n\t\tadd_management_page('Revitalize Orders Output', 'Revitalize Orders', 'edit_posts', basename(__FILE__), array(&$this, 'page_handler'));\n\t}", "public function render_settings_page() {\n\t\tinclude( get_inc_dir() . '/templates/admin-settings.php' );\n\t}", "public function Menu() {\n $user_role = get_option('oxi_addons_user_permission');\n $role_object = get_role($user_role);\n $first_key = '';\n if (isset($role_object->capabilities) && is_array($role_object->capabilities)) {\n reset($role_object->capabilities);\n $first_key = key($role_object->capabilities);\n } else {\n $first_key = 'manage_options';\n }\n add_submenu_page('oxi-addons', 'Elementor Addons', 'Elementor Addons', $first_key, 'oxi-el-addons', [$this, 'oxi_addons_elementors']);\n }" ]
[ "0.7982678", "0.79617715", "0.79154056", "0.7882509", "0.77207315", "0.77128553", "0.76851135", "0.76322335", "0.7630041", "0.7622766", "0.76120883", "0.76024747", "0.7584614", "0.75764817", "0.7531222", "0.7515821", "0.7507221", "0.7504728", "0.7494986", "0.7458616", "0.7445596", "0.74243444", "0.74235976", "0.7406197", "0.7404261", "0.73786604", "0.7365434", "0.7362922", "0.734185", "0.7300103", "0.7298422", "0.7298422", "0.7298422", "0.7286259", "0.72810477", "0.7277715", "0.7272376", "0.726493", "0.7263508", "0.7257532", "0.7251671", "0.7240972", "0.72364306", "0.7229677", "0.72222537", "0.72129744", "0.71936923", "0.71913075", "0.7173703", "0.7171565", "0.7164016", "0.716145", "0.71601266", "0.7158725", "0.7147848", "0.7141826", "0.7138966", "0.71381986", "0.7135313", "0.7135313", "0.7135037", "0.71347624", "0.71304935", "0.71285874", "0.712664", "0.71166277", "0.7110342", "0.7107658", "0.7095922", "0.70892346", "0.7079462", "0.7075335", "0.7075001", "0.70747465", "0.7067903", "0.70663446", "0.7064157", "0.70435786", "0.70423853", "0.7030343", "0.7024552", "0.70240945", "0.702009", "0.70153415", "0.70123917", "0.70119816", "0.7004445", "0.7000743", "0.69976646", "0.6997548", "0.6995121", "0.6991265", "0.6984614", "0.6983841", "0.6981709", "0.69814736", "0.69812363", "0.6980955", "0.6976481", "0.6970293", "0.69698286" ]
0.0
-1
/ uncomment in real operation
private function start_ISC() { $mappings = Functions::get_eol_defined_uris(false, true); //1st param: false means will use 1day cache | 2nd param: opposite direction is true echo "\n".count($mappings). " - default URIs from EOL registry."; $this->uri_values = Functions::additional_mappings($mappings); //add more mappings used in the past // */ // print_r($this->uri_values); // exit("\nstopx\n"); $csv_file = Functions::save_remote_file_to_local($this->taxa_list['ISC'], $this->download_options); $file = Functions::file_open($csv_file, "r"); $i = 0; while(!feof($file)) { $i++; if(($i % 100) == 0) echo "\n count:[$i] "; $row = fgetcsv($file); if($i == 1) $fields = $row; else { $vals = $row; if(count($fields) != count($vals)) { print_r($vals); echo("\nNot same count ".count($fields)." != ".count($vals)."\n"); continue; } if(!$vals[0]) continue; $k = -1; $rec = array(); foreach($fields as $field) { $k++; $rec[$field] = $vals[$k]; } /* debug only - forced URL $rec['URL'] = "https://www.cabi.org/isc/datasheet/120279/aqb"; */ /* $rec['Scientific name'] = str_ireplace(" infections", "", $rec['Scientific name']); $rec['Scientific name'] = str_ireplace(" infection", "", $rec['Scientific name']); $rec['Scientific name'] = str_ireplace(" diseases", "", $rec['Scientific name']); $rec['Scientific name'] = str_ireplace(" disease", "", $rec['Scientific name']); */ $rec['Scientific name'] = str_ireplace(" [ISC]", "", $rec['Scientific name']); if($rec['Scientific name'] == "Chytridiomycosis") continue; //name of a disease, exclude if(!ctype_upper(substr($rec['Scientific name'],0,1))) continue; //exclude likes of "abalone viral ganglioneuritis" if(preg_match("/\/datasheet\/(.*?)\//ims", $rec['URL'], $arr)) $rec['taxon_id'] = $arr[1]; // datasheet/121524/aqb else exit("\nInvestigate 01 ".$rec['Scientific name']."\n"); $rec["bibliographicCitation"] = "CABI International Invasive Species Compendium, " . date("Y") . ". " . $rec["Scientific name"] . ". Available from: " . $rec["URL"] . " [Accessed " . date("M-d-Y") . "]."; // print_r($rec); if($rec['Scientific name']) { $url = $rec['URL']; if($html = Functions::lookup_with_cache($url, $this->download_options)) { $rec['taxon_ranges'] = self::get_native_introduced_invasive_ranges($html, $rec); $rec['source_url'] = $url; $rec['ancestry'] = self::get_ancestry($html, $rec); } // print_r($rec); if($rec['Scientific name'] && $rec['taxon_ranges']) { $this->create_instances_from_taxon_object($rec); $this->process_GISD_distribution($rec); } // if($i == 3) break; //debug only } } } unlink($csv_file); // exit("\nstopx\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upgrade_430_fix_comments()\n {\n }", "function specialop() {\n\n\n\t}", "function _pre() {\n\n\t}", "protected function _refine() {\n\n\t}", "function fix() ;", "public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}", "function f()\n\t{\n\t\t// Comment in an empty function 1\n\t\t// Comment in an empty function 2\n\t}", "function tideways_prepend_overwritten()\n{\n}", "function __flop(&$tmp) {\r\r\n\t\tasido::trigger_abstract_error(\r\r\n\t\t\t__CLASS__,\r\r\n\t\t\t__FUNCTION__\r\r\n\t\t\t);\r\r\n\t\t}", "function df_disable_comments_status()\n{\n return false;\n}", "function Skip() {\n }", "public function noComment(): void // phpcs:ignore\n {\n // in the Route Enhancer.\n }", "public function benchThisWillBeSkipped()\n {\n }", "function df_disable_comments_status() {\n\treturn false;\n}", "function df_disable_comments_status() {\n\treturn false;\n}", "public function temporality();", "public function testProfilePrototypeUnlinkComments()\n {\n\n }", "public function testPreprocessingUnrotate()\n {\n }", "function df_disable_comments_status()\r\n\t{\r\n\t\treturn false;\r\n\t}", "private function cleanUp() : void\n {\n\n // For every line.\n foreach ($this->contents as $lineId => $line) {\n\n // Test.\n preg_match('/( +)(\\*)( )(.+)/', $line, $output);\n\n // First option - this is proper comment line.\n // Second option - sth is wrong - ignore this line.\n if (isset($output[4]) === true && empty($output[4]) === false) {\n $this->contents[$lineId] = $output[4];\n } else {\n unset($this->contents[$lineId]);\n }\n }\n }", "function hankart_disable_comments_status() {\n return false;\n}", "function clean_extraneous_inline() {\r\n\t}", "public function ignore()\n {\n ++$this->ignored;\n }", "function obishortcodes_comment_worker() {\n return null;\n}", "public function oops () {\n }", "abstract protected function _preProcess();", "function rgc_disable_comments_status() {\n return false;\n}", "function rgc_disable_comments_status() {\n return false;\n}", "abstract public function comment();", "public function ugly() {\n $this->_pretty = false;\n }", "protected function preprocessInternal()\n\t{\n\t\t// void\n\t}", "protected function preProcess() {}", "function gwt_disable_comments_status() {\r\n return false;\r\n}", "public function inOriginal();", "function noop()\n {\n }", "public function testProfilePrototypeDeleteComments()\n {\n\n }", "public abstract function preTrip();", "public function needsReprocessing() {}", "function testInternal2() \n {\n $this->assertTrue(array_key_exists(T_COMMENT, $this->oBeaut->aTokenFunctions));\n }", "public function inc(): void {}", "abstract protected function doEvil();", "static public function upd_comment_stat(object $pp1, array $other=[]): string\n {\n self::$pp1 = $pp1 ;\n if (isset($pp1->shared_dbadapter_obj)) self::$utldb = $pp1->shared_dbadapter_obj ;\n //copy of an already created object can be made by cloning it.\n $uriq = $pp1->uriq ;\n if ('') { echo '<br /><h3>'.__METHOD__ .', line '. __LINE__ .' SAYS:</h3>'\n .'<br />works if redirect commented U R L query array ='.'$u riq=' ;\n if (isset($uriq))\n { echo '<pre>'; print_r($uriq) ; echo '</pre>'; }\n else { echo ' u riq arr. not set<br />' ; } \n //echo '<br />c l a s s name of $dm='.get_class($dm);\n }\n // outputs :\n //c l a s s name of $dm=B12phpfw\\Home_ctr\n //c l a s s name of $Db_post_comment=B12phpfw\\Db_post_comment\n\n $flds = \"SET status=:status, approvedby=:admin\" ;\n $qrywhere = \"WHERE id=:id\" ;\n\n $id = $uriq->id ;\n $stat = $uriq->stat ;\n $binds = [\n ['placeh'=>':status', 'valph'=>$stat, 'tip'=>'str']\n ,['placeh'=>':admin', 'valph'=>$_SESSION[\"adminname\"], 'tip'=>'str']\n ,['placeh'=>':id', 'valph'=>$id, 'tip'=>'int']\n ] ;\n\n $cursor = self::$utldb::uu( self::$tbl, $flds, $qrywhere, $binds );\n\n if ($cursor) {\n if ($stat == 'ON') {$_SESSION[\"MsgSuccess\"]=\"Comment $id approved ! \" ;\n } else {$_SESSION[\"MsgSuccess\"]=\"Comment $id DisApproved ! \" ;}\n }\n else { $_SESSION[\"MsgErr\"]=\"Update Comment $id Went Wrong (Comment approve failed). Try Again !\"; }\n\n /* ?><SCRIPT LANGUAGE=\"JavaScript\">\n alert( \"<?php echo __METHOD__ .', line '. __LINE__ .' SAYS: '\n .'\\\\n $dm->pp1[\\'comments\\']=' \n . (isset($dm->pp1->comments)?$dm->pp1->comments:'NOT SET')\n ; ?>\" \n ) ;\n </SCRIPT><?php */ //works if redirect commented\n //$dm->Redirect_to($dm->pp1->comments);\n return '1';\n }", "public function nop()\n {\n }", "function preProcess($docblock) {\n\t\t$docblock = str_replace(\"\\r\\n\", \"\\n\", $docblock);\n\t\t$docblock = str_replace(\"\\r\", \"\\n\", $docblock);\n\t\t$docblock = str_replace(\"/*\", \"\", $docblock);\n\t\t$docblock = str_replace(\"*/\", \"\", $docblock);\n\t\t$docblock = preg_replace(\"/[\\*=\\-]+/\", \"\", $docblock);\n\t\treturn $docblock;\n\t}", "protected function _preupdate() {\n }", "function setNoBreak() {\t \r\n\t \t$this->noBreak = true;\r\n\t}", "public static function pre_process() {}", "function check_comment_flood_db()\n {\n }", "public function skipOperation($skip) {}", "function tempera_comments_off() { \nif ( ! comments_open() ) : ?>\n\t<p class=\"nocomments\"><?php _e( 'Comments are closed.', 'tempera' ); ?></p>\n<?php endif; // end ! comments_open() \n}", "public function preProcess();", "public function preProcess();", "protected function fixSelf() {}", "protected function fixSelf() {}", "private function _optimize() {}", "function divertUnsecureLine() \n {\n // Abstract Method\n }", "public function fix() {}", "public function fix() {}", "protected function _predelete() {\n }", "function noop() {\n}", "public function testProfilePrototypeUpdateByIdComments()\n {\n\n }", "public function swim()\n {\n }", "function clear_divide_flag($acc_number)\n\t{\n\t$data['divide'] = 0;\n return $this->db->where('number',$acc_number)\n\t\t ->order_by('id','DESC')\n\t\t ->limit(1)\n \t ->update('pamm_tp', $data);\n\n }", "function wap8_trackbacks( $comment ) {\n$GLOBALS['comment'] = $comment; ?>\n<li><?php printf( __( '%s', 'designcrumbs' ), get_comment_author_link() ) ?> <?php edit_comment_link( __( 'Edit', 'designcrumbs' ), '<span>', '</span>' ); ?>\n<?php\n}", "function separate_comments(&$comments)\n {\n }", "function register_block_core_comments()\n {\n }", "function wp_throttle_comment_flood($block, $time_lastcomment, $time_newcomment)\n {\n }", "function happy_change_comment_status() {\n\tadd_filter( 'option_default_comment_status', '__return_false' );\n\tadd_filter( 'option_default_ping_status', '__return_false' );\n}", "function skip() {\n # This method is meant to sidestep any expensive processing\n # a subclass might perform as part of next().\n $this->next();\n }", "function pre_query() {\n $this->view->field += $this->casetracker_fields;\n unset($this->view->field['cuid']); // this could be more surgical.\n }", "protected function _preExec()\n {\n }", "function newUnderComment();", "function dumb($data){\n highlight_string(\"<?php\\n \" . var_export($data, true) . \"?>\");\n echo '<script>document.getElementsByTagName(\"code\")[0].getElementsByTagName(\"span\")[1].remove() ;document.getElementsByTagName(\"code\")[0].getElementsByTagName(\"span\")[document.getElementsByTagName(\"code\")[0].getElementsByTagName(\"span\").length - 1].remove() ; </script>';\n die();\n }", "function hide_comment($id, $com_id)\n{\n global $dbh;\n $query = 'UPDATE bugdb_comments SET active = 0 WHERE bug = ' . (int)$id .\n ' AND id = '.(int)$com_id;\n $res = $dbh->query($query);\n}", "function preDelete()\n {\n }", "function the_comment()\n {\n }", "abstract protected function requiredOperations1(): void;", "protected function _preDelete() {}", "public static function _before() : void {\n\t}", "function post_process() {\n $this->_format_doc_comment();\n }", "public function pre()\n {}", "public function pass_1()\n\t{\n\t\t$tokens = token_get_all($this->source[$this->last_pass]);\n\t\t$token_count = count($tokens);\n\t\t$tp = 0;\n\t\t$tokens_of_interest = array('T_ELSE');\n\t\twhile($tp < $token_count) {\n\t\t\tif($this->token_name($tokens[$tp]) == 'T_ELSE' ){\n\t\t\t$temp = $this->get_next_non_comment($tokens,$tp+1);\n\t\t\tif($this->token_name($tokens[$temp]) == 'T_IF') {\n\t\t\t\t\t$this->add_tokens_to_be_replaced($tp ,'elseif');\n\t\t\t\t\t$this->add_tokens_to_be_replaced($temp ,'');\n\t\t\t\t}\n\t\t\t}\n\t\t\t$tp++;\n\t\t}\n\t\t$this->source[$this->current_pass] = $this->change_stuff() ;\n\t\t\n\t}", "public static function skipNode()\n {\n }", "public function includeLL() {}", "public function includeLL() {}", "function have_comments()\n {\n }", "function zap() {\n// $this->id = null;\n }", "function disable_right_now_comment_count() {\n _deprecated_function( __FUNCTION__, '2.0.0' );\n}", "public function miniStatement() {\n ... function body ...\n }", "public static function dummy() {}", "private function inlineComment()\n {\n do {\n $this->next();\n if ($this->currentByte === \"\\n\" || $this->currentByte === \"\\r\") {\n $this->next();\n\n return;\n }\n } while ($this->currentByte !== null);\n }", "function replace_edit_comment( $arg = '' ){\n\t\t\tglobal $wpdb,$menu,$submenu,$comment,$soc_com;\n\t\t\tinclude('soc-edit-comments.php');\n\t\t\texit;\n\t\t}", "public function cut()\n {\n }", "public function testProfilePrototypeDestroyByIdComments()\n {\n\n }", "private function _i() {\n }", "public function testCommentProcessor()\n {\n $processor = new Processor\\Comments();\n $input = '{# test #} works';\n\n $output = $processor->replace($input, false);\n $this->assertSame(' works', $output);\n\n $output = $processor->replace($input, true);\n $this->assertSame('<!-- test --> works', $output);\n }", "static function alter() {\n }", "private function bogusCommentState() {\n $data = $this->characters('^>', $this->char);\n $this->emitToken(array(\n 'data' => $data,\n 'type' => self::COMMENT\n ));\n\n $this->char += strlen($data);\n\n /* Switch to the data state. */\n $this->state = 'data';\n\n /* If the end of the file was reached, reconsume the EOF character. */\n if($this->char === $this->EOF) {\n $this->char = $this->EOF - 1;\n }\n }", "public function testProfilePrototypeExistsComments()\n {\n\n }", "public function testSkipIfTrue(): void\n {\n $this->skipIf(true);\n }", "function upgrade_430()\n {\n }" ]
[ "0.59572744", "0.5658187", "0.5643262", "0.54922646", "0.5450747", "0.5436007", "0.5388722", "0.5386898", "0.53718114", "0.53333247", "0.5331849", "0.53266764", "0.5300114", "0.529626", "0.529626", "0.5262939", "0.52408844", "0.5238688", "0.5231964", "0.52239347", "0.52159375", "0.5209836", "0.5208997", "0.5174064", "0.51706165", "0.5164672", "0.5160228", "0.5160228", "0.5158815", "0.5153827", "0.5143416", "0.5118619", "0.5116788", "0.5096137", "0.5092853", "0.5090904", "0.5088306", "0.5079202", "0.50640994", "0.506041", "0.50560665", "0.5044843", "0.50431794", "0.5005622", "0.49998826", "0.49903524", "0.49831745", "0.49709368", "0.49601963", "0.49548742", "0.49302387", "0.49302387", "0.49210194", "0.49210194", "0.49133483", "0.49124023", "0.48950264", "0.48947015", "0.48927134", "0.48780283", "0.48706946", "0.48623353", "0.4860475", "0.48474696", "0.48208568", "0.4818958", "0.481588", "0.48126006", "0.48102516", "0.4805036", "0.48030004", "0.4801281", "0.47971871", "0.4787085", "0.47831717", "0.47749776", "0.4769739", "0.47697148", "0.4760605", "0.4758561", "0.47564822", "0.47458193", "0.4745692", "0.47454762", "0.47454762", "0.4743808", "0.47414505", "0.4741209", "0.4735578", "0.4734216", "0.47186017", "0.4707697", "0.4701064", "0.47006175", "0.46945903", "0.46915874", "0.46897742", "0.46877432", "0.46822026", "0.46811476", "0.4680691" ]
0.0
-1